Discussion:
[jira] [Updated] (COCOON3-125) Missing support for Catalog Resolver
Mansour Al Akeel (JIRA)
2013-05-29 20:48:24 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON3-125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mansour Al Akeel updated COCOON3-125:
-------------------------------------

Attachment: CatalogResolver-support.diff

patch to add CatalogResolver support.
Missing support for Catalog Resolver
------------------------------------
Key: COCOON3-125
URL: https://issues.apache.org/jira/browse/COCOON3-125
Project: Cocoon 3
Issue Type: Improvement
Components: cocoon-sax
Affects Versions: 3.0.0-beta-1
Reporter: Mansour Al Akeel
Priority: Minor
Fix For: 3.0.0-beta-1
Attachments: CatalogResolver-support.diff
When we load xml document using org.apache.cocoon.sax.util.XMLUtils.toSax, and the XML document has a link to a DTD, the parser fails if the DTD is not in the specified location. To solve this issue, a CatalogManager.properties can be used. The same thing if we are using document() function from an xslt and loaded document has a DTD.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Mansour Al Akeel (JIRA)
2013-05-29 20:48:23 UTC
Permalink
Mansour Al Akeel created COCOON3-125:
----------------------------------------

Summary: Missing support for Catalog Resolver
Key: COCOON3-125
URL: https://issues.apache.org/jira/browse/COCOON3-125
Project: Cocoon 3
Issue Type: Improvement
Components: cocoon-sax
Affects Versions: 3.0.0-beta-1
Reporter: Mansour Al Akeel
Priority: Minor
Fix For: 3.0.0-beta-1


When we load xml document using org.apache.cocoon.sax.util.XMLUtils.toSax, and the XML document has a link to a DTD, the parser fails if the DTD is not in the specified location. To solve this issue, a CatalogManager.properties can be used. The same thing if we are using document() function from an xslt and loaded document has a DTD.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Francesco Chicchiriccò (JIRA)
2013-05-30 06:26:20 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON3-125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13670099#comment-13670099 ]

Francesco Chicchiriccò commented on COCOON3-125:
------------------------------------------------

If you take a look at cocoon-sax's pom.xml, you will notice that no external dependencies (besides cocoon's and logging) are included: by design, in fact, cocoon-sax is meant to be used with as few external dependencies as possible.

For this reason cocoon-optional exists: I'd suggest to rework your patch for providing a new more capable XSLT transformer (extending the original XSLT transformer) in cocoon-optional.
Missing support for Catalog Resolver
------------------------------------
Key: COCOON3-125
URL: https://issues.apache.org/jira/browse/COCOON3-125
Project: Cocoon 3
Issue Type: Improvement
Components: cocoon-sax
Affects Versions: 3.0.0-beta-1
Reporter: Mansour Al Akeel
Priority: Minor
Fix For: 3.0.0-beta-1
Attachments: CatalogResolver-support.diff
When we load xml document using org.apache.cocoon.sax.util.XMLUtils.toSax, and the XML document has a link to a DTD, the parser fails if the DTD is not in the specified location. To solve this issue, a CatalogManager.properties can be used. The same thing if we are using document() function from an xslt and loaded document has a DTD.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Mansour Al Akeel (JIRA)
2013-05-30 12:10:20 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON3-125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13670278#comment-13670278 ]

Mansour Al Akeel commented on COCOON3-125:
------------------------------------------

The idea of having few dependencies is great, but I don't see this a fit in an optional component. I can use com.sun.org.apache.xml.internal.resolver.tools.CatalogResolver , there is access restriction in the JDK on this class.
I am not sure if using reflection is an option. I can check if the CatalogResolver is in the class path, and then load it. In this case, there is no need to include it in the pom, but this is just a hack, and I don't see it a decent solution.

If you think it is better to include this dependency in lower level pom, then this could be a better solution.
Missing support for Catalog Resolver
------------------------------------
Key: COCOON3-125
URL: https://issues.apache.org/jira/browse/COCOON3-125
Project: Cocoon 3
Issue Type: Improvement
Components: cocoon-sax
Affects Versions: 3.0.0-beta-1
Reporter: Mansour Al Akeel
Priority: Minor
Fix For: 3.0.0-beta-1
Attachments: CatalogResolver-support.diff
When we load xml document using org.apache.cocoon.sax.util.XMLUtils.toSax, and the XML document has a link to a DTD, the parser fails if the DTD is not in the specified location. To solve this issue, a CatalogManager.properties can be used. The same thing if we are using document() function from an xslt and loaded document has a DTD.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
David Crossley (JIRA)
2013-06-03 23:22:20 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON3-125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13673762#comment-13673762 ]

David Crossley commented on COCOON3-125:
----------------------------------------

I cannot help much at this time, other than to ensure awareness of previous efforts. I was involved with getting the original Catalog Entity Resolver into Cocoon-2.1 and you will find good docs and cocoon samples. Pretty sure that the Samples with Cocoon-2.2 also work.

IIRC then there was some discussion in the early days of Cocoon3/Corona. All that i have time for is to give some pointers to search, e.g. the following with Google:
site:gmane.org/gmane.text.xml.cocoon entity resolver carsten
site:gmane.org/gmane.text.xml.cocoon entity resolver crossley
Missing support for Catalog Resolver
------------------------------------
Key: COCOON3-125
URL: https://issues.apache.org/jira/browse/COCOON3-125
Project: Cocoon 3
Issue Type: Improvement
Components: cocoon-sax
Affects Versions: 3.0.0-beta-1
Reporter: Mansour Al Akeel
Priority: Minor
Fix For: 3.0.0-beta-1
Attachments: CatalogResolver-support.diff
When we load xml document using org.apache.cocoon.sax.util.XMLUtils.toSax, and the XML document has a link to a DTD, the parser fails if the DTD is not in the specified location. To solve this issue, a CatalogManager.properties can be used. The same thing if we are using document() function from an xslt and loaded document has a DTD.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
David Crossley (JIRA)
2013-06-04 01:01:03 UTC
Permalink
[ https://issues.apache.org/jira/browse/COCOON3-125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13673892#comment-13673892 ]

David Crossley commented on COCOON3-125:
----------------------------------------

For example:

http://s.apache.org/9bz
From: Carsten Ziegeler
Subject: Core XML Module
Date: 2008-04-08

Not sure what happened after that regarding actual code.
Missing support for Catalog Resolver
------------------------------------
Key: COCOON3-125
URL: https://issues.apache.org/jira/browse/COCOON3-125
Project: Cocoon 3
Issue Type: Improvement
Components: cocoon-sax
Affects Versions: 3.0.0-beta-1
Reporter: Mansour Al Akeel
Priority: Minor
Fix For: 3.0.0-beta-1
Attachments: CatalogResolver-support.diff
When we load xml document using org.apache.cocoon.sax.util.XMLUtils.toSax, and the XML document has a link to a DTD, the parser fails if the DTD is not in the specified location. To solve this issue, a CatalogManager.properties can be used. The same thing if we are using document() function from an xslt and loaded document has a DTD.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Loading...