jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@adobe.com>
Subject Re: Order By in XPath with weakreference
Date Sat, 10 Dec 2011 15:00:09 GMT
I don't know exactly, but I think the orderby clause does not support
resolution of references.

Cheers,
Alex

On 07.12.11 15:27, "Mathaj, Kerstin" <kerstin.mathaj@condat.de> wrote:

>Hi,
>
> 
>
>i have a node with a weakreference property to an other node. E.g.
>
> 
>
>[my:book]
>
>-          publisher [WEAKREFERENCE]
>
>...
>
> 
>
>[my:publisher]
>
> - name
>
> 
>
>I want to query my:book and reference to my:publisher.name, to order by
>the
>name. I tried:
>
> 
>
>.../element(*,my:book)[some conditions] order by publisher/@name ascending
>
> 
>
>The result isn't ordered by the publisher.name, but by the weakreference
>id
>like (JCR identifier: 149553de-2646-4b95-8577-17c10776c4a8)
>
> 
>
>So, how can I use order by in xpath with weakreferences?
>
> 
>
>Thanks
>
>k.m.
>
>



-- 
Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel


Mime
View raw message