Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 32100 invoked from network); 1 Jul 2008 08:02:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jul 2008 08:02:12 -0000 Received: (qmail 45847 invoked by uid 500); 1 Jul 2008 08:02:12 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 45829 invoked by uid 500); 1 Jul 2008 08:02:12 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 45818 invoked by uid 99); 1 Jul 2008 08:02:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 01:02:12 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of marcel.reutegger@gmx.net designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 01 Jul 2008 08:01:21 +0000 Received: (qmail invoked by alias); 01 Jul 2008 08:01:40 -0000 Received: from adsl-62-167-56-113.adslplus.ch (EHLO [10.0.1.195]) [62.167.56.113] by mail.gmx.net (mp028) with SMTP; 01 Jul 2008 10:01:40 +0200 X-Authenticated: #894343 X-Provags-ID: V01U2FsdGVkX19w2kcgkxJwIj52OADP/7ZPlfgHKDEL5PKVDQ7TLi gcA/PslLu1W3j4 Message-ID: <4869E45D.4040706@gmx.net> Date: Tue, 01 Jul 2008 10:01:33 +0200 From: Marcel Reutegger User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: Xpath - Multiple paths selection References: <8e4ba50e0806260756j142fa551mcac38cb777782f4f@mail.gmail.com> In-Reply-To: <8e4ba50e0806260756j142fa551mcac38cb777782f4f@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.67 X-Virus-Checked: Checked by ClamAV on apache.org 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