[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] XPath expression confusion
Subject: Re: [xsl] XPath expression confusion From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 13 Jan 2006 15:17:37 GMT |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XPath expression confusio, Xia Li | Thread | RE: Re: Re: [xsl] Newbie to XSLT ne, convextech |
RE: RE: RE: [xsl] html tables with , Deepak | Date | [xsl] Formatting XML output, Rick Quatro |
Month |
Keywords