Hi,

Vincent Giguère wrote:
I am trying to query Jackrabbit through an Xpath query. My query involves
the selection of multiple paths.

Example:
The first path is : //AAA/BBB/*
The second path is : /AAA/CCC/*

Each of these queries return nodes when they are issued individually, but
when they are combined using the ' | ' operator : //AAA/BBB/* | /AAA/CCC/* ,
jackrabbit returns 0 results.

Does jackrabbit support multiple path Xpath queries?

no, jackrabbit does not support the union ('|') operator.

If no, is there a workaround?

there is, but only for simple cases:

/jcr:root/AAA/*[fn:name() = 'BBB' or fn:name() = 'CCC']/*

regards
 marcel

Reply via email to