[Bug 29458] [xslt30ts] seqtor-027

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

--- Comment #2 from Michael Kay <mike@saxonica.com> ---
Regarding seqtor-041 and -042:

seqtor-041 has

    <xsl:variable name="foo" as="text()">
        <!-- multiple empty text nodes are removed -->
        <xsl:text expand-text="yes">{ (:hello:) 'empty'[false()]}</xsl:text>
        <xsl:text/>
        <xsl:text expand-text="yes">{ (:hello:) 'empty'[false()]}</xsl:text>
    </xsl:variable>

There is nothing in the spec to justify the comment "multiple empty text nodes
are removed". When xsl:variable has an "as" attribute, the value of the
variable is the result of the sequence constructor, modified if necessary by
applying the function conversion rules. The rules for constructing
simple/complex content are not applied, therefore empty text nodes are not
removed, therefore the raw value is a sequence of three text nodes and this
fails the type check.

Similarly seqtor-042 - multiple text nodes are NOT combined unless CSC or CCC
is invoked, and this only happens when the seqtor is used to construct the
content of a node.

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

Received on Sunday, 14 February 2016 21:32:24 UTC