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

Whitespace stripping is affecting descendant elements of elements matching xsl:strip-space

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 2.7
    • Xalan-interpretive
    • None

    Description

      By default, according to section 3.4 of XSLT 1.0 [1], all element names are in the set of whitespace-preserving elements. Elements whose names match a NameTest specified in xsl:strip-space are added to the set of whitespace-stripping elements. A whitespace text node in a source document that is a child of a whitespace-stripping element is stripped from the source tree.

      Xalan-J Interpretive is stripping all descendant whitespace text nodes of such elements that have no nearer ancestor elements that match a NameTest in an xsl:preserve-space.

      [1] http://www.w3.org/TR/xslt#strip

      Attachments

        1. j2241.out
          0.2 kB
          Henry Zongaro
        2. j2241.xml
          0.2 kB
          Henry Zongaro
        3. j2241.xsl
          0.2 kB
          Henry Zongaro

        Activity

          People

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

            Dates

              Created:
              Updated: