Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 41333 invoked from network); 26 Oct 2006 06:56:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2006 06:56:37 -0000 Received: (qmail 24214 invoked by uid 500); 24 Oct 2006 14:50:09 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 24205 invoked by uid 500); 24 Oct 2006 14:50:09 -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 24196 invoked by uid 99); 24 Oct 2006 14:50:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Oct 2006 07:50:09 -0700 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 (herse.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; Tue, 24 Oct 2006 07:49:56 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GcNay-0008PZ-K6 for users@jackrabbit.apache.org; Tue, 24 Oct 2006 07:49:36 -0700 Message-ID: <6974369.post@talk.nabble.com> Date: Tue, 24 Oct 2006 07:49:36 -0700 (PDT) From: zagarol To: users@jackrabbit.apache.org Subject: XPath query using references MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: shane.preater@googlemail.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am trying to restrict a list of nodes in a certain hierarchy by the UUID of a node they reference and was wondering if this was possible and if so what the query would be: My Node tree in Jackrabbit looks like this: jcr:root / \ publications categories / \ / \ / \
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? Many thanks, Zagarol. -- View this message in context: http://www.nabble.com/XPath-query-using-references-tf2501830.html#a6974369 Sent from the Jackrabbit - Users mailing list archive at Nabble.com.