You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Sorin Ristache (JIRA)" <xe...@xml.apache.org> on 2005/10/04 16:38:47 UTC
[jira] Created: (XERCESJ-1102) Wrong value of xml:base attribute after resolving XInclude references
Wrong value of xml:base attribute after resolving XInclude references
---------------------------------------------------------------------
Key: XERCESJ-1102
URL: http://issues.apache.org/jira/browse/XERCESJ-1102
Project: Xerces2-J
Type: Bug
Components: XInclude 1.0
Versions: 2.7.1
Environment: J2SE 1.5.0_04
Reporter: Sorin Ristache
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 is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org
[jira] Updated: (XERCESJ-1102) Wrong value of xml:base attribute
after resolving XInclude references
Posted by "Franziska Meyer (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESJ-1102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Franziska Meyer updated XERCESJ-1102:
-------------------------------------
Attachment: 1102-improved.patch
1102-improved.patch solves the problem with absolute paths (it replaces the first patch)
> 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
> Attachments: 1102-improved.patch, bug-1102.patch, XercesXIncludeBug.zip
>
>
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org
[jira] Assigned: (XERCESJ-1102) Wrong value of xml:base attribute
after resolving XInclude references
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESJ-1102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Glavassevich reassigned XERCESJ-1102:
---------------------------------------------
Assignee: (was: Michael Glavassevich)
> 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
> Attachments: XercesXIncludeBug.zip
>
>
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org
[jira] Assigned: (XERCESJ-1102) Wrong value of xml:base attribute after resolving XInclude references
Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XERCESJ-1102?page=all ]
Michael Glavassevich reassigned XERCESJ-1102:
---------------------------------------------
Assign To: Michael Glavassevich
> Wrong value of xml:base attribute after resolving XInclude references
> ---------------------------------------------------------------------
>
> Key: XERCESJ-1102
> URL: http://issues.apache.org/jira/browse/XERCESJ-1102
> Project: Xerces2-J
> Type: Bug
> Components: XInclude 1.0
> Versions: 2.7.1
> Environment: J2SE 1.5.0_04
> Reporter: Sorin Ristache
> Assignee: Michael Glavassevich
> Attachments: XercesXIncludeBug.zip
>
> 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 is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org
[jira] Updated: (XERCESJ-1102) Wrong value of xml:base attribute after resolving XInclude references
Posted by "Sorin Ristache (JIRA)" <xe...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XERCESJ-1102?page=all ]
Sorin Ristache updated XERCESJ-1102:
------------------------------------
Attachment: XercesXIncludeBug.zip
Archive with test files for reproducing the bug.
> Wrong value of xml:base attribute after resolving XInclude references
> ---------------------------------------------------------------------
>
> Key: XERCESJ-1102
> URL: http://issues.apache.org/jira/browse/XERCESJ-1102
> Project: Xerces2-J
> Type: Bug
> Components: XInclude 1.0
> Versions: 2.7.1
> Environment: J2SE 1.5.0_04
> Reporter: Sorin Ristache
> Attachments: XercesXIncludeBug.zip
>
> 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 is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org
[jira] Commented: (XERCESJ-1102) Wrong value of xml:base attribute
after resolving XInclude references
Posted by "Mansour Al Akeel (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESJ-1102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12571862#action_12571862 ]
Mansour Al Akeel commented on XERCESJ-1102:
-------------------------------------------
This bug was created on Oct 4, 2005. Currently it's Feb 24 2008. Is there any plan to resolve this bug ??
> 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: XercesXIncludeBug.zip
>
>
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org
[jira] Commented: (XERCESJ-1102) Wrong value of xml:base attribute
after resolving XInclude references
Posted by "Sorin Ristache (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESJ-1102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12592329#action_12592329 ]
Sorin Ristache commented on XERCESJ-1102:
-----------------------------------------
The patch inserts a correct value for the xml:base attribute but it is the absolute path for the included fragment. I think the correct relative path in the xml:base attribute would be more readable / easy to use for an XML user.
> 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
> Attachments: bug-1102.patch, XercesXIncludeBug.zip
>
>
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org
[jira] Commented: (XERCESJ-1102) Wrong value of xml:base attribute
after resolving XInclude references
Posted by "Sorin Ristache (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESJ-1102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12592376#action_12592376 ]
Sorin Ristache commented on XERCESJ-1102:
-----------------------------------------
Yes, this patch uses the correct relative path in the xml:lang attribute.
> 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
> Attachments: 1102-improved.patch, bug-1102.patch, XercesXIncludeBug.zip
>
>
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org
[jira] Updated: (XERCESJ-1102) Wrong value of xml:base attribute
after resolving XInclude references
Posted by "Franziska Meyer (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESJ-1102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Franziska Meyer updated XERCESJ-1102:
-------------------------------------
Attachment: bug-1102.patch
The given patch for XIncludeHandler solves the bug for me.
> 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
> Attachments: bug-1102.patch, XercesXIncludeBug.zip
>
>
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org