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

Re: Node ordering question with preceding axis

Subject: Re: Node ordering question with preceding axis
From: Kenneth Stephen <marvin.the.cynical.robot@xxxxxxxxx>
Date: Sun, 27 Nov 2005 08:47:34 -0600
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

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.