[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Node ordering question with preceding axis
On 11/27/05, Michael Kay <mike@xxxxxxxxxxxx> wrote: > The result of a path expression (an expression involving "/") is always in > document order. > > I'm not sure exactly what you want, but you might be able to get it by > replacing > > A/B > > with > > for $a in A return $a/B > > which doesn't sort into document order. > Michael, I wasnt able to figure out how to get your solution to work (probably because I picked A and B incorrectly to apply to my testcase).Thats ok, though, because my objective was to understand the behaviour of the language, and your answer pointed me in the right direction. It wasnt clear to me from reading the spec (and your book) that the reverse axis only changed the context position and not the order of nodes in the result of an XPath expression. Thanks, Kenneth
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|