Namespaces (Was: Re: [Xpath-ng] Thoughts on work products)
bryan
bry at itnisk.com
Mon Nov 25 06:00:33 MST 2002
Jeni Tennison wrote:
>It's in the Data Model WD, in the Namespace Nodes section at:
> http://www.w3.org/TR/query-datamodel/#NamespaceNode
Okay, so reading this I get confused because a namespaceNode does not
have a parent, but in 4.5.3 Accessors it says that it can be accessed by
dm:parent, which I guess means that as the NamespaceNode does not have a
parent the use of dm:parent returns an empty sequence? What does
dm:children return against a namespaceNode? Since these are virtual
functions, I suppose that they resolve to the equivalent axes.
It seems to me that one reason why namespaceNodes would not have parents
in Xpath 2.0 is the need to support XSDL. In the Xpath-NG discussion it
was suggested that the absence of support for parentage was not a bad
thing because after all, how many people need to get a hold of a
namespace nodes parent, maybe not that many, I have a feeling however
that folks might be more used to getting a hold of position() when they
need or want to.
If they don't have parents does this mean they don't have ancestors?
Said with a :) cause I expect the answer is yes.
Cheers,
Bryan.
More information about the Xpath-ng
mailing list