W3C home > Mailing lists > Public > public-qt-comments@w3.org > April 2005

[Bug 1250] [XQuery] the typed value of a document node

From: <bugzilla@wiggum.w3.org>
Date: Thu, 14 Apr 2005 20:12:11 +0000
To: public-qt-comments@w3.org
Message-Id: <E1DMAh9-00070U-UT@wiggum.w3.org>


------- Additional Comments From mike@saxonica.com  2005-04-14 20:12 -------
The reason for the rule you refer to is backwards compatibility with XSLT 1.0.
Here it is very common for users to use constructs such as

<xsl:variable name="x">
[<xsl:value-of select="d"/>]

and then use $x as if it were a string.

Here the value of $x is a document node, which has a single text node child.
There is no root element. It's also common to see constructs like

<xsl:variable name="lookup">
<a code="12" value="red"/>
<a code="13" value="blue"/>
<a code="14" value="green"/>

where the document has several element nodes among its children.

Michael Kay
Received on Thursday, 14 April 2005 20:12:12 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:23 UTC