jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djsnowsill <david.snows...@calibreft.com.au>
Subject Re: XPath Or Query
Date Sun, 27 Feb 2011 07:10:20 GMT
Thanks Francois, you were spot on!

On 27 February 2011 17:26, François Cassistat-2 [via Jackrabbit] <
ml-node+3326585-382140526-214779@n4.nabble.com> wrote:

> 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<http://jackrabbit.510166.n4.nabble.com/XPath-Or-Query-tp3326580p3326580.html?by-user=t>
> > Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://jackrabbit.510166.n4.nabble.com/XPath-Or-Query-tp3326580p3326585.html
>  To unsubscribe from XPath Or Query, click here<http://jackrabbit.510166.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3326580&code=ZGF2aWQuc25vd3NpbGxAY2FsaWJyZWZ0LmNvbS5hdXwzMzI2NTgwfC0yNjMzNjcwNjQ=>.
>
>



-- 

*David J Snowsill*
*Managing Director*

*Calibre Financial Technology*
Suite 487,
311 Castlereagh Street,
Sydney NSW 2000

david.snowsill@calibreft.com.au

tel:
mobile:
skype id:

+61 (0)2 9212 0527
+61 (0) 403091468
djsnowsill


-- 
View this message in context: http://jackrabbit.510166.n4.nabble.com/XPath-Or-Query-tp3326580p3326598.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message