[ 
https://issues.apache.org/jira/browse/XERCESJ-1102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14695333#comment-14695333
 ] 

Frédérik Bilhaut edited comment on XERCESJ-1102 at 8/13/15 3:02 PM:
--------------------------------------------------------------------

Yes, please ! 

XInclude support is completely broken due to this bug, it's amazing it's been 
around for so long. And because Xerces is embedded in so many other things, 
it's really painful to package a patched one in some circumstances. Just try to 
build a Netbeans plugin embedding your own patched xerces jar, it's a lot of 
fun ;-)

That being said, what can we do to help ?




was (Author: fbilhaut):
Yes, please ! 

XInclude support is completely broken due to this bug, it's amazing it's been 
around for so long. And because Xerces is embedded in so many other things, 
it's really painfull to package a patched one in some circumstances. Just try 
to build a Netbeans plugin embedding your own patched xerces jar, it's a lot of 
fun ;-)

That being said, what can we do to help ?



> Wrong value of xml:base attribute after resolving XInclude references
> ---------------------------------------------------------------------
>
>                 Key: XERCESJ-1102
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1102
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XInclude 1.0
>    Affects Versions: 2.7.1
>         Environment: J2SE 1.5.0_04
>            Reporter: Sorin Ristache
>            Assignee: Michael Glavassevich
>         Attachments: 1102-improved.patch, XercesXIncludeBug.zip, 
> bug-1102.patch
>
>
> The value of the xml:base attribute is not computed correctly for files 
> included with XInclude starting with nesting level 2. After resolving the 
> XInclude references the path stored in the xml:base value should be relative 
> to the including document, not relative to the master document.
> To reproduce the bug, unarchive the attached zip in the Xerces install 
> directory and in that directory execute the command line
> java -cp xercesImpl.jar;xercesSamples.jar sax.Writer -xi 
> XercesXIncludeBug\a.xml
> The document echoed in the console contains a "c" element with 
> xml:base="b/c/c.xml". It should be xml:base="c/c.xml".



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to