[Bug 29455] New: [xslt30ts] on-empty-113a

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29455

            Bug ID: 29455
           Summary: [xslt30ts] on-empty-113a
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0 Test Suite
          Assignee: abel.online@xs4all.nl
          Reporter: mike@saxonica.com
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

The rules for xsl:on-empty say:

An xsl:on-empty instruction is evaluated only if every preceding sibling
instruction, text node, and literal result element in the same sequence
constructor returns either an empty sequence, or a sequence consisting entirely
of zero-length text nodes and/or document nodes with no children.

In this case one of the preceding sibling instructions is

<xsl:sequence select="''"/>

which delivers a zero-length string. This is not an empty sequence, it is not a
zero-length text node, and it is not a document node with no children,
therefore according to the spec (whether we like it or not...) the xsl:on-empty
should not be activated.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Sunday, 14 February 2016 14:19:45 UTC