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


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()">

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

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