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

Missing prefix for literal result element with XSLTC if namespace was associated with a different prefix in another part of the stylesheet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.1
    • None
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • None

    Description

      If the namespace for a literal result element is declared using a particular prefix in one part of a stylesheet, and then another literal result element with the same local part of the name and namespace appears in another part of the stylesheet where the first prefix is not associated with any namespace URI, the result will be an element that's in no namespace; if the first prefix is associated with a different namespace URI, the result will be an element that's in that second, incorrect namespace.

      Attachments

        1. j2446.xsl
          2 kB
          Henry Zongaro
        2. j2446.xml
          0.0 kB
          Henry Zongaro
        3. j2446.patch.txt
          13 kB
          Henry Zongaro
        4. j2446.expected.out
          0.7 kB
          Henry Zongaro
        5. j2446.actual.out
          0.7 kB
          Henry Zongaro

        Activity

          People

            zongaro@ca.ibm.com Henry Zongaro
            zongaro@ca.ibm.com Henry Zongaro
            Christine Li Christine Li
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: