Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1102

Wrong value of xml:base attribute after resolving XInclude references

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.7.1
    • None
    • XInclude 1.0
    • None
    • J2SE 1.5.0_04

    Description

      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".

      Attachments

        1. 1102-improved.patch
          1 kB
          Franziska Meyer
        2. 1102-tested.patch
          4 kB
          Jan Tošovský
        3. bug-1102.patch
          1 kB
          Franziska Meyer
        4. XercesXIncludeBug.zip
          1.0 kB
          Sorin Ristache

        Activity

          People

            mrglavas@ca.ibm.com Michael Glavassevich
            sorin Sorin Ristache
            Votes:
            7 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: