Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 17026 invoked from network); 24 Feb 2009 22:11:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Feb 2009 22:11:59 -0000 Received: (qmail 94609 invoked by uid 500); 24 Feb 2009 22:11:58 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 94078 invoked by uid 500); 24 Feb 2009 22:11:57 -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 94067 invoked by uid 99); 24 Feb 2009 22:11:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2009 14:11:57 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aklimets@day.com designates 207.126.148.181 as permitted sender) Received: from [207.126.148.181] (HELO eu3sys201aog001.obsmtp.com) (207.126.148.181) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 24 Feb 2009 22:11:47 +0000 Received: from source ([64.233.182.187]) by eu3sys201aob001.postini.com ([207.126.154.11]) with SMTP ID DSNKSaRwjtBAOZ3TY3aEq3CbQDCXQxuwT8Ir@postini.com; Tue, 24 Feb 2009 22:11:27 UTC Received: by nf-out-0910.google.com with SMTP id e27so739713nfd.46 for ; Tue, 24 Feb 2009 14:11:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.210.105.20 with SMTP id d20mr10020ebc.99.1235513485618; Tue, 24 Feb 2009 14:11:25 -0800 (PST) In-Reply-To: <7E79528FEA116746A9B896C817C51E5B040E71F6@athexm01.corp.ad.diginsite.com> References: <7E79528FEA116746A9B896C817C51E5B040E71F6@athexm01.corp.ad.diginsite.com> Date: Tue, 24 Feb 2009 23:11:25 +0100 Message-ID: Subject: Re: Xpath query to filter out frozen nodes From: Alexander Klimetschek To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Feb 24, 2009 at 9:51 PM, Conoly, Brett wrote: > What I was trying to implement was some kind of filter against the > actual jcr:type of file, i.e. > > //*[jcr:contains(.,'pathFilter')][@wc:fileType='temporary'][jcr:type='my > :file'] > > But this doesn't seem to work, any suggestions? The jcr-special element function is what you need [1]: //element(*, my:file)[jcr:contains(.,'pathFilter') and @wc:fileType='temporary'] [1] http://www.day.com/specs/jcr/1.0/6.6.4.13__i_element____i__Node_Test.html Regards, Alex -- Alexander Klimetschek alexander.klimetschek@day.com