Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 53496 invoked from network); 3 Mar 2008 14:28:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Mar 2008 14:28:28 -0000 Received: (qmail 93993 invoked by uid 500); 3 Mar 2008 14:28:23 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 93973 invoked by uid 500); 3 Mar 2008 14:28:23 -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 93964 invoked by uid 99); 3 Mar 2008 14:28:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2008 06:28:23 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [80.12.242.150] (HELO smtp2f.orange.fr) (80.12.242.150) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2008 14:27:36 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2f01.orange.fr (SMTP Server) with ESMTP id 4AC93700009F for ; Mon, 3 Mar 2008 15:27:56 +0100 (CET) Received: from pc-fla.ns.local (LPuteaux-151-42-5-195.w217-128.abo.wanadoo.fr [217.128.164.195]) by mwinf2f01.orange.fr (SMTP Server) with ESMTP id 3036E7000098 for ; Mon, 3 Mar 2008 15:27:56 +0100 (CET) X-ME-UUID: 20080303142756197.3036E7000098@mwinf2f01.orange.fr Received: from [127.0.0.1] (localhost [127.0.0.1]) by pc-fla.ns.local (Postfix) with ESMTP id C1836118E3E for ; Mon, 3 Mar 2008 15:29:31 +0100 (CET) Message-ID: <47CC0B4B.2050501@dementia7.net> Date: Mon, 03 Mar 2008 15:29:31 +0100 From: Frederic Laugier Reply-To: hint@dementia7.net User-Agent: Thunderbird 2.0.0.9 (X11/20070801) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: XPath exists/not exists question References: <47CBE2F8.8020009@dementia7.net> <47CBFEBA.4020204@gmx.net> In-Reply-To: <47CBFEBA.4020204@gmx.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Sure thing, I've created https://issues.apache.org/jira/browse/JCR-1447 and attached a test case (sorry again the test data are in French). Marcel Reutegger wrote: > Hi Frederic, > > this is most likely a bug in jackrabbit, can you please file a jira issue? > > thank you. > > regards > marcel > > Frederic Laugier wrote: >> Hello, >> >> I have a question regarding the Exists / Not exists XPath operators. >> >> >> My test data contains three nodes : >> >> + nodeA >> - prop1 = 'value' >> + child >> - subprop1 = 'something' >> >> + nodeB >> - prop1 = 'value' >> + child >> >> + nodeC >> - prop1 = 'value' >> >> >> >> The query //*[child/@subprop1)] returns nodeA >> >> The query //*[child/not(@subprop1)] returns nodeB >> >> The query //*[not(child/@subprop1)] returns nodeB >> >> I may be mistaken but I thought the third query would return nodeC as >> well >> >> Can anybody tell me if I'm wrong, or if there is any other way to test >> the non existence of a property in a child node regardless if the child >> node exists or not ? >> >> I'm using Jackrabbit 1.5 (r633030). >> >> Best regards, >> Frederic Laugier. >> >>