Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2491

Relative URIs can be resolved incorrectly in document() calls

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.7.1
    • None
    • Xalan
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • None
    • Windows XP, JRE 1.6.0_11

    Description

      When using certain nested XSL and XML file structures and relative paths within document() calls in select attributes, it is possible for Xalan to incorrectly resolve the relative URI. In the attached test files, test.xml is styled by /xsl/nested/test.xsl, which imports test2.xsl, which makes document() calls.

      Example file structure:

      /test.xml
      /xsl/test2.xsl
      /xsl/nested/test.xsl

      Error messages:
      <PATH>/xsl/test2.xsl; Line #17; Column #49; Cannot load requested doc: <PATH>\xsl\test.xml (The system cannot find the file specified)
      <PATH>/xsl/test2.xsl; Line #22; Column #57; Cannot load requested doc: <PATH>\xsl\test.xml (The system cannot find the file specified)

      Attachments

        1. test.xml
          0.1 kB
          David Eckel
        2. test.xsl
          0.2 kB
          David Eckel
        3. test2.xsl
          0.6 kB
          David Eckel

        Activity

          People

            Unassigned Unassigned
            dvdckl David Eckel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: