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

Re: Difference between preceding::foo[1] and (precedin

Subject: Re: Difference between preceding::foo[1] and (preceding::foo)[1]
From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx>
Date: Thu, 06 Sep 2001 17:13:41 +0200
Re:  Difference between preceding::foo[1] and (precedin
Zwetselaar M. van (Marco) wrote:

Now, I understand the syntactic difference between preceding::foo[1] and
(preceding::foo)[1]. In the first expression, the predicate is part of
a location path, whereas in the second it is applied to an expression.
The fact that these two expressions select different nodes is also clear
to me. What I don't understand is how the predicate could apply to a CHILD axis. WHOSE child axis?
I dont't think an axis can belong to something, it's only direction.
See section 2.4 of XPath spec to grasp how predicate filters a nodeset.
Axis is have to be known to evaluate proximity position of every node being filtered. So, filtering with respect to child axis implies document ordered sorting and taking into account elements only (because of child axis' principal node type).




--
Oleg Tkachenko
Multiconn International


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.