W3C home > Mailing lists > Public > public-qt-comments@w3.org > February 2016

[Bug 29458] [xslt30ts] seqtor-027

From: <bugzilla@jessica.w3.org>
Date: Sun, 14 Feb 2016 21:32:20 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29458-523-66DoBhw6a7@http.www.w3.org/Bugs/Public/>

--- 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 expand-text="yes">{ (:hello:) 'empty'[false()]}</xsl:text>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:59 UTC