jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Klimetschek" <aklim...@day.com>
Subject Re: Boolean function true() in query string
Date Thu, 10 Jul 2008 20:07:08 GMT
What is the use-case for this query? JCR only supports a subset of
XPath, so it might be correct, that this query is not valid... the
true() predicate does not bring any new information anyway.

Regards,
Alex

On Thu, Jul 10, 2008 at 9:12 PM, MARTINEZ Antonio
<Antonio.Martinez@alcatel-lucent.com> wrote:
> Hello,
>
> And according to the JSR170 document, it should work since the Boolean
> function true() should just be a true expression.
>
> Using this query returns all my "pon" objects
>  //Inventory//ne/rack/subrack/slot/pon
>
> But using
>   //Inventory//ne/rack/subrack/slot/pon[true()]
>
> I get error
>   "java.lang.RuntimeException: Query failed: Unsupported location for
> true()"
>
>
> Is there an error in my query string or is it not supported ?
>
> Thanks,
> Antonio
>



-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message