[DM] Non-element children in the example

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