jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Xpath - Multiple paths selection
Date Tue, 01 Jul 2008 08:01:33 GMT
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

Mime
View raw message