W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2003

RE: Data Model: 4.1.4 Parent Accessor

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Wed, 7 May 2003 23:20:54 +0200
Message-ID: <DFF2AC9E3583D511A21F0008C7E62106073DCDF1@daemsg02.software-ag.de>
To: Svgdeveloper@aol.com, public-qt-comments@w3.org

> Can a root node which is not a document node be a parent node?
> 

Yes, it can. The XQuery expression

<a><b/><a>

yields an element node a which has no parent (and is therefore a root), and
which has a child b.

Since the latest XSLT 2.0 draft it is also possible to create such
structures in XSLT:

<xsl:variable name="orphan" as="element()">
 <a><b/></a>
</xsl:variable>

Michael Kay
Received on Wednesday, 7 May 2003 17:21:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:24 GMT