Problems with Jackrabbit XPath Query with an OR statement -
i have following xpath query in jackrabbit 2.2 application:
//crms:publications/*/*[ @crms:publication-security = '28862' or @crms:publication-security='23459' or @crms:publication-security='23489' ]
which causing following exception when executed
javax.jcr.query.invalidqueryexception: lexical error @ line 1, column 73. encountered: "@" (64), after : "" statement: $v in //crms:publications/*/*[@crms:publication-security='28862' or @crms:publication-security='23459' or @crms:publication-security='23489'] return $v
but if run following query without or's runs fine:
//crms:publications/*/*[@crms:publication-security='28862']
it obvious guidance appreciated on doing wrong
thanks
david
it obvious unfortunately. xpath case sensitive 'or' should have been 'or'
Comments
Post a Comment