jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Roeloffzen" <ted.roeloff...@gmail.com>
Subject Re: Order By in XPath
Date Wed, 06 Dec 2006 09:51:22 GMT
That worked.
Thank you very much.

Ted


2006/12/6, Marcel Reutegger <marcel.reutegger@gmx.net>:
>
> Ted Roeloffzen wrote:
> > Is there a standard way to order the results of an XPath query.
> > In SQL you would use order by, but does XPath have an equivelant?
>
> no, strict XPath doesn't. but JSR 170 specifies an extension to standard
> XPath
> which is borrowed from XQuery.
>
> See spec section 6.6.5.5
>
> Example:
>
> //element(*, car)[@colour='green'] order by @price ascending
>
>
> regards
> marcel
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message