Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 46040 invoked from network); 26 Jul 2006 16:43:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jul 2006 16:43:32 -0000 Received: (qmail 6841 invoked by uid 500); 26 Jul 2006 16:43:32 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 6798 invoked by uid 500); 26 Jul 2006 16:43:32 -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 6783 invoked by uid 99); 26 Jul 2006 16:43:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jul 2006 09:43:31 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of shaneosullivan1@gmail.com designates 64.233.182.187 as permitted sender) Received: from [64.233.182.187] (HELO nf-out-0910.google.com) (64.233.182.187) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jul 2006 09:43:31 -0700 Received: by nf-out-0910.google.com with SMTP id o25so803166nfa for ; Wed, 26 Jul 2006 09:43:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=VGUiXr/eLeOSDTz+rKcmN+RJdKiUWDm+h2PG+yDmGFf2cuBGay0PWaaOLM92E8UPRb1RHA/OXysbe3mUbHl+knjF6hJr7XUMvwyK6KZMae9vE9c5wx7D/T3iaweTRe7IfOUw13rUjEdCKQhQK0q7m8ajU5Azh3tMZA4tA3wV3nQ= Received: by 10.78.177.3 with SMTP id z3mr3234958hue; Wed, 26 Jul 2006 09:43:09 -0700 (PDT) Received: by 10.78.120.16 with HTTP; Wed, 26 Jul 2006 09:43:04 -0700 (PDT) Message-ID: <5db525fa0607260943p39ac782chda273324931c3958@mail.gmail.com> Date: Wed, 26 Jul 2006 17:43:04 +0100 From: "Shane O'Sullivan" To: users@jackrabbit.apache.org Subject: How to select nodes that do NOT have a given child in JackRabbit MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8266_33318403.1153932184823" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_8266_33318403.1153932184823 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I need to be able to run an XPATH query on jackrabbit that will allow me to select all nodes that do not have a particular child. For example, given the tree I want to only select the "A" nodes that don't have a child. With Xpath I should be able to do something like /A/*[name()!='B'] or /A/*[count(B)=0] but JackRabbit says that both of these XPath functions are not supported. Does anyone know of another way to do this? Thanks, Shane ------=_Part_8266_33318403.1153932184823--