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

Effect of exclude-result-prefixes is cumulative across stylesheet modules with XSLTC

    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

      Section 7.1.1 of XSLT 1.0 states that "The designation of a namespace as an excluded namespace is effective within the subtree of the stylesheet rooted at the element bearing the exclude-result-prefixes or xsl:exclude-result-prefixes attribute; a subtree rooted at an xsl:stylesheet element does not include any stylesheets imported or included by children of that xsl:stylesheet element."

      However, XSLTC accumulates the declarations of exclude-result-prefixes in each included or imported stylesheet module into the set of excluded namespaces for the main stylesheet module.

      [1] http://www.w3.org/TR/xslt#literal-result-element

      Attachments

        1. j2447.actual.out
          0.2 kB
          Henry Zongaro
        2. j2447.expected.out
          0.3 kB
          Henry Zongaro
        3. j2447.patch.txt
          4 kB
          Henry Zongaro
        4. j2447.xsl
          0.6 kB
          Henry Zongaro
        5. j2447imp.xsl
          0.4 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: