2010/1/21 François Cassistat <[email protected]>: > > //*...@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 [email protected]
