|
[jira] Updated: (MOJO-630) Transform documents do not have their entities r: msg#00366java.maven-plugins.mojo.devel
[ http://jira.codehaus.org/browse/MOJO-630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Thornton updated MOJO-630: --------------------------------- Attachment: catalog-fix.diff (Attached patch to fix this issue) I've had a fairly good hack at fixing this and my fix appears to work, I'm just not particularly sure I've done it the most cleanly. I've attached an svn diff to the current trunk so you can take a gander at it. In detail here's what I've found you need to do: 1. The Resolver needs to return a SAXSource when it is called to resolve a reference. This means that you have to create an XMLReader, set its entityResolver to be the Resolver; then get the xml-commons-resolver to resolve the source and create a SAXSource with it and the XMLReader! (This step allows document(), xsl:include, xsl:import's to all use the catalog.) 2. The input Source to the Transformer has to be mangled similarly, so I've basically used the Resolver to resolve the input source too. (Thus allowing the input to be resolved with reference to the catalog!) Of course all this would be moot if there was just a way to set the entityResolver on the TrAX Transformer in a non-implementation specific way. > Transform documents do not have their entities resolved with respect to the > Catalog > ----------------------------------------------------------------------------------- > > Key: MOJO-630 > URL: http://jira.codehaus.org/browse/MOJO-630 > Project: Mojo > Issue Type: Bug > Components: xml > Reporter: Andrew Thornton > Priority: Critical > Attachments: catalog-fix.diff > > > The catalog parameter is being ignored for xml:transform as transform > documents that have a dtd declaration do not have their DTD resolved with > respect to the provided catalog. This occurs for both input documents and > documents referenced inside the xslt using the XPath function document() and > the xslt functions <xsl:import> <xsl:include>. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [jira] Commented: (MOJO-630) Transform documents do not have their entities resolved with respect to the Catalog, Andrew Thornton (JIRA) |
|---|---|
| Next by Date: | Re: Plugins for dependences and Fitness, Wayne Fay |
| Previous by Thread: | [jira] Commented: (MOJO-630) Transform documents do not have their entities resolved with respect to the Catalog, Andrew Thornton (JIRA) |
| Next by Thread: | [jira] Created: (MOJO-631) Extension parameter for the transform mojo, Petar Tahchiev (JIRA) |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |