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

RE: order by in XPath 2.0 expression?

Subject: RE: order by in XPath 2.0 expression?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 25 Sep 2008 21:18:51 +0100
RE:  order by in XPath 2.0 expression?
This is an XQuery expression, it is not an XPath expression. XPath 2.0 has
no sorting capability; for sorting you need either XSLT or XQuery.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: Darcy Parker [mailto:darcyparker@xxxxxxxxx] 
> Sent: 25 September 2008 20:43
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  order by in XPath 2.0 expression?
> 
> Hi,
> 
> I was just reading a document about XML databases and saw 
> this interesting XPath expression:
> 
> for $i in /bead order by $i/text/@lang return $i
> 
> (Source: 
> http://www.oracle.com/technology/products/berkeley-db/pdf/over
> view-of-berkeley-database-xml.pdf)
> 
> The meaning of it seems obvious - and useful.  But I have 
> never seen "order by" in an XPath expression before.  I had a 
> look online. I don't see anything about it in 
> http://www.w3.org/TR/xpath20/ or in Michael Kay's XSLT 2.0 
> and XPath 2.0 Programmer's Reference (4th edition).  As well, 
> I tested using it in saxon and see that it is not recognized...
> 
> Perhaps this is an Oracle extension...?  Has anyone seen this 
> in an XPath implementation before?
> 
> Thanks
> 
> Darcy

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.