RE: data model: parent of namespace nodes

The intention is that the model is the same as the XPath 1.0 model, i.e.
there is a one-to-many relationship between element nodes and namespace
nodes, this relationship is called "dm:namespaces" in one direction and
"dm:parent" in the other.

You are right that this isn't clearly expressed in the current document.

Michael Kay

> -----Original Message-----
> From: Per Bothner [mailto:per@bothner.com] 
> Sent: 10 May 2003 05:56
> To: public-qt-comments@w3.org
> Subject: data model: parent of namespace nodes
> 
> 
> 
> DM 4.5.2 and G.4 say that dm:parent of a namespace node
> is "the parent element node".  It does not define
> what this means.
> 
> However, none of the namespace nodes in D Example
> show a value for dm:parent, though dm:parent is
> shown for other nodes.
> 
> Should there be a constraint in 4.3.1 and/or 4.5.1 that
> is a namespace node has a parent, then it should be among
> the namespace of its parent?  The converse constraint would 
> prohibit sharing of namespace nodes, as in D example. The 
> issue should at least be mentioned.
> 
> One solution is to just define dm:parent of a namespace as ().
> -- 
> 	--Per Bothner
> per@bothner.com   http://per.bothner.com/
> 
> 

Received on Saturday, 10 May 2003 13:20:47 UTC