|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Predicate after derefHi,
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 |
|
|
Re: Predicate after derefHi 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 |
|
|
Re: Predicate after derefHi 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 |
| Free Forum Powered by Nabble | Forum Help |