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

XPath 2.0 - What is a "node"? What is an "item"?


what is a node
[The following was sent a short time ago to the public-qt-comments list. If 
anyone on XML-Dev can clarify my current lack of clarity that would be good.]

I am currently wrestling with what the 30th April Data Model WD. It seems to 
me that there is a fundamental inconsistency in expression relating to what a 
node or information item is, as described in the WD. I hope that the 
difficulty is only in terms of how ideas have been expressed.

In 1. Introduction it is stated that "The data model is based on the 
Information Set". I took that to indicate that XPath 2.0 Data Model 
incorporates all of the Infoset REC.

However, in 4.1 the description of a document node omits several properties 
of the document information item as described in the Infoset REC.

Further, it is stated in 1. that "An item is either a node or an atomic 
value.". I read that to refer to an "information item".

If that is the case then an "information item" is essentially identical to a 
"node".

However an Infoset "information item" has a number of properties which a 
"node" at least as described in XPath 1.0 does not possess. So, it seems that 
an XPath 2.0 node is fundamentally different from an XPath 1.0 node in that 
it now possesses a full set of Infoset properties.

Yet in 4.1 it is stated "Document nodes and XPath 1.0 root nodes are 
essentially identical.".

Yet if an XPath 2.0 document node "is" (as quoted from 1. above) an "item" 
and if an "item" is intended to be the same as an Infoset "information item" 
it is not possible for an XPath 2.0 document node (which must possess Infoset 
properties) to be "essentially identical" to an XPath 1.0 root node (which 
possessed no Infoset properties).

I hope I have conveyed something coherent of what I perceive as the 
inconsistency of descriptions.

My questions now include, What did the WG intend to say about the 
relationships of an XPath 2.0 "node" and an XPath 2.0 "item"? Does an XPath 
2.0 node have (or not have) a full complement of Infoset properties? How, 
precisely, does an XPath 2.0 node differ from an XPath 1.0 node?

Andrew Watt

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.