This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]