W3C home > Mailing lists > Public > public-qt-comments@w3.org > October 2010

[DM] Non-element children in the example

From: Rick Yorgason <rick@firefang.com>
Date: Mon, 04 Oct 2010 13:30:22 -0400
Message-ID: <4CAA0F2E.7080402@firefang.com>
To: public-qt-comments@w3.org
The example for the XPath Data Model (in both the current recommendation 
and the 1.1 draft) only seems to list elements among the children, 
leaving out text, comment, and PI nodes.  This seems to go against 6.2.1 
constraint 4:

Exclusive of Attribute and Namespace Nodes, if a node N has a parent 
element E, then N must be among the children  of E.

I'm pretty sure these are the correct values:

dm:children(D1) = ([P1], [E1])
dm:children(E1) = ([C1], [E2], [E7])
dm:children(E3) = ([T1])
dm:children(E5) = ([T2])
dm:children(E6) = ([T3])
dm:children(E8) = ([T4])
dm:children(E10) = ([T5])
dm:children(E11) = ([T6])
Received on Monday, 4 October 2010 20:01:14 UTC

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