[Bug 5002] Wrong use of the term "root node" in the XDM spec

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5002


mukul_gandhi@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mukul_gandhi@yahoo.com




------- Comment #2 from mukul_gandhi@yahoo.com  2007-09-09 14:16 -------
Hi Mike,
  Thanks for your response. Please find below my further comments on this
topic.

The XDM spec states (in section, 2.1 Terminology):
1) Every node is one of the seven kinds of nodes defined in 6 Nodes. Nodes form
a tree that consists of a root node plus all the nodes that are reachable
directly or indirectly from the root node via the dm:children, dm:attributes,
and dm:namespace-nodes accessors.
2) A tree whose root node is a Document Node is referred to as a document.
3) A tree whose root node is not a Document Node is referred to as a fragment.

I think the "root node" concept in XDM is fine, and this terminology can
coexist with 7 kinds of nodes possible in XDM (which are presently defined).

But I suggest adding following definitions to the section, 2.1 Terminology.  
A tree is a logical structure which is constructed from the nodes, which
represent a document or a fragment.
The root node of the tree, is it's top most node, which could be a document
node, or it can be the root node of a fragment.

This will define the concept of root node unambiguously.

Regards,
Mukul

Received on Sunday, 9 September 2007 14:16:06 UTC