Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 5824 invoked from network); 26 Oct 2006 09:04:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2006 09:04:05 -0000 Received: (qmail 89614 invoked by uid 500); 26 Oct 2006 08:04:17 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 89604 invoked by uid 500); 26 Oct 2006 08:04:17 -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 89595 invoked by uid 99); 26 Oct 2006 08:04:17 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2006 01:04:15 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Gd0AF-0001IW-4s for users@jackrabbit.apache.org; Thu, 26 Oct 2006 01:00:35 -0700 Message-ID: <7006762.post@talk.nabble.com> Date: Thu, 26 Oct 2006 01:00:35 -0700 (PDT) From: zagarol To: users@jackrabbit.apache.org Subject: Re: XPath query using references In-Reply-To: <454068DF.60601@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: shane.preater@googlemail.com References: <6974369.post@talk.nabble.com> <454068DF.60601@gmx.net> X-Virus-Checked: Checked by ClamAV on apache.org Hi Marcel, The simple answer is yes they do kind of, the actual name depends on the locale you are in as you retrieve the article in your chosen language. Thanks for the help, I would imagine it is something to do with the way I have constructed the path to the categories node as it isn't quite as simple as my example. Regards, Zagarol. Marcel Reutegger wrote: > > Hi Zagrol, > > zagarol wrote: >> I am trying to get all the article nodes for a given category (note the >> category nodes maybe 1 - 6 extra nodes deep) which have a reference to a >> given publication node) This reference is stored as a property on the >> article node called, unsuprisingly, 'publication'. >> >> I am assuming that I could look up the UUID of the publication I am >> interested in and then run something like the following query: >> >> /jcr:root/categories//article[@publication = ''] >> >> Is this correct as it doesn't seem to work? > > The query looks ok and should work. the query indicates that all your > article > nodes have the same name 'article', is this correct? > > regards > marcel > > -- View this message in context: http://www.nabble.com/XPath-query-using-references-tf2501830.html#a7006762 Sent from the Jackrabbit - Users mailing list archive at Nabble.com.