jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djsnowsill <david.snows...@calibreft.com.au>
Subject XPath Or Query
Date Sun, 27 Feb 2011 05:55:05 GMT
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