OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] XQuery Puzzle

> would the result be any different ?

no xpath 1 and 2 would be the same in that case.

> '... The xpath 2.0 spec is unclear regarding multiple predicates,
I'm not sure what part os unclear but predicates (in xpath 1 and 2, and
xquery) are evaluated left to right, with for example  last() a being
re-calculated after each predicate to refect the number of items

> it would seem that, at least for eXist and Saxon, the first predicate
> causes the expression to evaluate to a sequence before the last
> predicate is considered.' yes, but note


is different from


in the first case you get the closest matching iten, and in the second
case you get the first one in documet order, ie the one furthest from
the current node.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS