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

Re: XPath expression confusion

Subject: Re: XPath expression confusion
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 13 Jan 2006 15:17:37 GMT
xpath2 expression
  Sorry. I actually meant the outmost root element. I was thinking the "/"
  represent the document node. So if the <system> is not the root element,
  the absolute path starts with "/" would return an empty sequence.


note you are using xpath2 terminology for what is (I think) an xpath1
question. Xpath1 does not have "document nodes" it has "root nodes"
and it doesn't have sequences it has node sets. Neither Xpath1 nor xpath2
calls the top level element a "root element", some other specifications,
including XML spec itself do so, but the Xpath/xquery/xslt specifications
wisely avoid doing that as it leads to confusion. Especially with the
XPath1 terminology of "root node".

Xpath2 is trying to reduce the confusing nature of this by calling what
used to be called root nodes, document nodes, but like any renaming
attempt, it has yet to be seen whether renaming to a new "clearer" name,
actually reduces confusion or just adds another variation into the mix
for users to be confused over.

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.