W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2015

[Bug 29148] [XSLT30] Text on constructing complex content says that document nodes are removed, but this is not always true

From: <bugzilla@jessica.w3.org>
Date: Fri, 25 Sep 2015 02:20:13 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29148-523-b3HFmbc6Rt@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29148

--- Comment #2 from Abel Braaksma <abel.braaksma@xs4all.nl> ---
Deja-vu feeling, did I report this before? If so, I must suffer of
tunnel-vision ;).

I found in 9.3 Values of Variables and Parameters

"The content of the variable-binding element is a sequence constructor; a new
document is constructed with a document node having as its children the
sequence of nodes that results from evaluating the sequence constructor and
then applying the rules given in 5.7.1 Constructing Complex Content. "

So I guess that covers it. However:

> The rules for xsl:variable do not invoke the rules for constructing 
> complex content.
I came here by:

5.7 Sequence constructors
--> 5.7.1. Constructing Complex Content

after following this text:

"The sequence may be used to construct the content of a new element or document
node. [....] It also happens when the sequence constructor is contained in one
of the elements xsl:variable, xsl:param, or xsl:with-param, when this
instruction has no as attribute. For details, see 5.7.1 Constructing Complex
Content."

I could argue that this is a misleading path through the spec, but I think
other places in the spec (9.3 mentioned above) cover this.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Friday, 25 September 2015 02:20:16 UTC

This archive was generated by hypermail 2.3.1 : Friday, 25 September 2015 02:20:17 UTC