jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: true() and false()
Date Fri, 22 Jan 2010 12:59:51 GMT
2010/1/21 Fran├žois Cassistat <f@maya-systems.com>:
>
> //*[@test='value' and true()]
>
> I get this exception :
> javax.jcr.query.InvalidQueryException: Unsupported location for true()

true() and false() are only supported for comparisons with (boolean) properties:

//*[@test='value' and @boolprop = true()]
//*[@test='value' and @boolprop = false()]


> //*[@test='value' and (0 = 0)]
>
> I get this exception :
> java.lang.ArrayIndexOutOfBoundsException: -1

You can only compare a property against a literal value, not two
properties against each other and not two literal values.

See http://www.day.com/specs/jcr/1.0/6.6.3.3_Property_Constraint.html

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message