jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From François Cassistat <f.cassis...@maya-systems.com>
Subject Re: XPath Or Query
Date Sun, 27 Feb 2011 06:25:44 GMT
Not sure, but I think the "or" must be lower-case for XPath.


F


Le 2011-02-27 à 00:55, djsnowsill a écrit :

> I have the following Xpath Query:
> 
> //crms:publications/*/*[@crms:publication-security='28862' OR
> @crms:publication-security='23459' OR @crms:publication-security='23489']
> 
> which is causing the following exception when it is executed
> 
> javax.jcr.query.InvalidQueryException: Lexical error at line 1, column 73. 
> Encountered: "@" (64), after : "" for statement: for $v in
> //crms:publications/*/*[@crms:publication-security='28862' OR
> @crms:publication-security='23459' OR @crms:publication-security='23489']
> return $v
> 
> but if I run the following query without the OR's it runs fine:
> 
> //crms:publications/*/*[@crms:publication-security='28862']
> 
> It is probably something obvious but any guidance would be appreciated on
> what I am doing wrong
> 
> Thanks
> 
> David
> 
> 
> -- 
> View this message in context: http://jackrabbit.510166.n4.nabble.com/XPath-Or-Query-tp3326580p3326580.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message