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

XSLTC: nodes are incorrectly selected with document()//

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 2.7.1
    • None
    • XSLTC
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • None
    • Operating System: All
      Platform: All
    • 15253

    Description

      Nodes are incorrectly selected where the XPath contains document()// – nodes
      are being matched as if it were .//

      An example: applying "document(a)//node()" (with for-each or copy-of) on the
      testcase file idkey49.xml. This selects the contents of the idkey49.xml
      document (in addition to the contents of the idkey49a.xml, etc).

      Also, XSLTC does not select the comments in the document() documents.

      Attachments

        1. test.zip
          1 kB
          David Green
        2. ASF.LICENSE.NOT.GRANTED--tt1.xml
          0.1 kB
          Igor Hersht
        3. ASF.LICENSE.NOT.GRANTED--test.xsl
          0.5 kB
          Igor Hersht
        4. ASF.LICENSE.NOT.GRANTED--test.xsl
          0.4 kB
          Gordon Chiu
        5. ASF.LICENSE.NOT.GRANTED--t1.xml
          0.1 kB
          Igor Hersht

        Activity

          People

            Unassigned Unassigned
            grchiu@ca.ibm.com Gordon Chiu
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: