Issue Details (XML | Word | Printable)

Key: XERCESJ-1102
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Sorin Ristache
Votes: 3
Watchers: 5
Operations

If you were logged in you would be able to see more operations.
Xerces2-J

Wrong value of xml:base attribute after resolving XInclude references

Created: 04/Oct/05 11:38 PM   Updated: 25/Apr/08 01:39 PM
Return to search
Component/s: XInclude 1.0
Affects Version/s: 2.7.1
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works 1102-improved.patch 2008-04-25 12:20 PM Franziska Meyer 1 kB
Text File Licensed for inclusion in ASF works bug-1102.patch 2008-04-25 09:07 AM Franziska Meyer 1 kB
Zip Archive Licensed for inclusion in ASF works XercesXIncludeBug.zip 2005-10-04 11:40 PM Sorin Ristache 1.0 kB
Environment:
J2SE 1.5.0_04


 Description  « Hide
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".

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Sorin Ristache made changes - 04/Oct/05 11:40 PM
Field Original Value New Value
Attachment XercesXIncludeBug.zip [ 12314711 ]
Michael Glavassevich made changes - 24/Oct/05 02:56 AM
Assignee Michael Glavassevich [ mrglavas@ca.ibm.com ]
Michael Glavassevich made changes - 24/Oct/05 02:56 AM
Status Open [ 1 ] In Progress [ 3 ]
Michael Glavassevich made changes - 13/Oct/07 02:28 PM
Status In Progress [ 3 ] Open [ 1 ]
Michael Glavassevich made changes - 06/Mar/08 03:47 AM
Assignee Michael Glavassevich [ mrglavas@ca.ibm.com ]
Franziska Meyer made changes - 25/Apr/08 09:07 AM
Attachment bug-1102.patch [ 12380911 ]
Franziska Meyer made changes - 25/Apr/08 12:20 PM
Attachment 1102-improved.patch [ 12380928 ]