On Thursday 14 January 2010 16:46, Thomas Fromm wrote: > I want to look for a node which is not child of an another specific node > e.g.: > > //Foobar[../name()!="abc:XYZ"] > > But this is not supported. > > How can I modify the xpath to work around this issue?
Beside this problem I tried: /jcr:root/ibis:Foo//ibis:Object[count(ancestor::/jcr:root/ibis:Foo/ibis:Bar) = 0] But it fails with javax.jcr.query.InvalidQueryException: Encountered "/" at ... How do I rewrite this query, that it will work with the jcr supported xpath subset?
