« Return to Thread: Predicate after deref

Re: Predicate after deref

by ehsavoie :: Rate this Message:

Reply to Author | View in Thread

Hi Sébastien,
Thanks this is working great :o)
I missed this issue when I browsed the JIRA.
Emmanuel

Sébastien Launay a écrit :

> Hi Emmanuel,
>
> This a known bug referenced here:
> https://issues.apache.org/jira/browse/JCR-1650
>
> You can bypass this bug using the following query:
> /jcr:root//element(*,
> slv:theme)[@jcr:uuid='c2f57bd0-2d29-4b0f-9e84-a299ef19fe65']/jcr:deref(@slv:links,
> '*')[@slv:publication]/jcr:deref(@slv:publication,
> '*')[@slv:author='bart']
>
> --
> Sébastien Launay
>
> Emmanuel Hugonnet a écrit :
>> Hi,
>> I am using Jackrabbit 1.4.5.
>> I have a problem with a predicate after a jcr:deref() function .
>> This xpath query works fine returning a list of publications:
>> /jcr:root//element(*,
>> slv:theme)[@jcr:uuid='c2f57bd0-2d29-4b0f-9e84-a299ef19fe65']/jcr:deref(@slv:links,
>> '*')/jcr:deref(@slv:publication, '*')
>>
>> but if I want only publications with a specified author like this :
>> /jcr:root//element(*,
>> slv:theme)[@jcr:uuid='c2f57bd0-2d29-4b0f-9e84-a299ef19fe65']/jcr:deref(@slv:links,
>> '*')/jcr:deref(@slv:publication, '*')[@slv:author='bart']
>> then I don't get any result even if all the publications have bart as
>> the author :(
>> I don't have any exception either. Is this a bug ?
>>
>> Emmanuel


 « Return to Thread: Predicate after deref

LightInTheBox - Buy quality products at wholesale price!