On 09.05.2014, at 07:20, hsp <[email protected]> wrote:

> I did not find any option to negate a contains in XPath, I tried:

It's "not()" [1].

> jcr:contains(.,'NOT \|') -> returns nodes with NOT in index...
> jcr:contains(.,'- \|') -> returns none
> and some other combinations...

This might work:

not( jcr:like(fn:name(), "%|%") )

otherwise (if like doesn't work with fn:name):

not( jcr:contains(. "|") )

but "." in the contains referes to the aggregated full text index for one node, 
so this does look into more than just the node name, but properties of the node 
as well.

[1] http://www.day.com/specs/jcr/1.0/6.6.4.8_Boolean_Functions.html

Cheers,
Alex

Reply via email to