jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sébastien Launay <sebastien.lau...@anyware-tech.com>
Subject Re: Predicate after deref
Date Wed, 09 Jul 2008 10:14:48 GMT
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

Mime
View raw message