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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.1
    • Component/s: None
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • Labels:
      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.expected.out
          0.7 kB
          Henry Zongaro
        4. j2446.actual.out
          0.7 kB
          Henry Zongaro
        5. j2446.patch.txt
          13 kB
          Henry Zongaro

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: