[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: RE: Namespace incompatibility b/n XPath 2.0 Data M

Subject: Re: RE: Namespace incompatibility b/n XPath 2.0 Data Model and XPath 1.0 (Was Re: XML schema general convert with XSLT (namespaces..))
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Mon, 24 Sep 2001 11:55:22 -0700 (PDT)
xpath 2.0 namespace problem
> > I was just thinking that when the XPath Data Model is
> > implemented in XPath 2.0 the
> > above solution will have to be rewritten.
> >
> > This is because according to the model namespace nodes will
> > no longer be copied to
> > all descendent nodes. Another (minor) potential trap is that
> > in XPath 2.0 a namespace node has no parent.
> 
> This is a misunderstanding of the proposed change to the model.
> 
> Under the proposed change, an element node will still have (on its namespace
> axis) a namespace node for every namespace that is in scope for that
> element. 

Mike,

Thank you very much for the explanation -- this is what I expected.

However, this means that in the model the definition of the namespace::* and of the
"namespace" axis in general, has been changed.

The current definition, according to the XPath spec (http://www.w3.org/TR/xpath) is
as follows:

"the namespace axis contains the namespace nodes of the context node"

and further in the spec...

"Elements never share namespace nodes: if one element node is not the same node as
another element node, then none of the namespace nodes of the one element node will
be the same node as the namespace nodes of another element node."

The XPath 2.0 Data Model document doesn't mention that there is a change in the
above definition. Any misunderstanding would have been avoided, if this had been
explained in the document. For example, the document could say:

"The meaning of the 'namespace' axes has been changed from XPath 1.0 in order to
reflect the fact that a namespace node belonging to an element is not copied to all
of its descendent element nodes".

Cheers,
Dimitre Novatchev.


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.