jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amir Mistric" <amist...@nemours.org>
Subject Xpath query with number
Date Tue, 01 May 2007 23:32:48 GMT
Hi all


I am trying to pull some data from Magnolia's Jackrabbit repository and am having a difficulty
with the following Xpath query.


/jcr:root/www-site1-org/mediaroom/press/2006//element(*,nt:base)[@tag='news' and MetaData/@mgnl:template='np-article']
order by @date descending


The error I get is


javax.jcr.query.InvalidQueryException: Parse error: data is not a RelationQueryNode
        at org.apache.jackrabbit.core.query.xpath.XPathQueryBuilder.visit(XPathQueryBuilder.java:448)
        at org.apache.jackrabbit.core.query.xpath.SimpleNode.jjtAccept(SimpleNode.java:80)
...



The weird thing is that if I omit '2006' from the above query it works...
So, I guess is there a special way of 'encoding' the number in Xpath query or do I need to
do something else... 


Thanks

Amir
Mime
View raw message