jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Ordering by Node name in XPath queries
Date Tue, 25 Oct 2005 17:35:35 GMT
Hi Cédric,

Cédric Damioli wrote:
> Spec paragraph says "Support for ordering on PATH and NAME 
> properties is not required".
> Does JackRabbit handles this case ?

yes, it does, but ordering NAME or PATH values will not always make 
sense because those values are namespace sensitive. which raises the 
question how exactly such values are ordered. because this question 
couldn't be answered easily it was decided to make it optional in the spec.

jackrabbit will make sure that names that belong to the same namespace 
will be properly ordered. when names belong to different namespaces 
ordering may be arbitrary.

> I'd like to write a query like : "//*[@prop = 'foo'] order by name()"
> Is it possible ?

no, currently not, because the name() function is not implemented. that 
would be another enhancement ;)


View raw message