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)[EMAIL 
PROTECTED]'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

Reply via email to