Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 29369 invoked from network); 1 Feb 2010 13:34:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2010 13:34:58 -0000 Received: (qmail 16928 invoked by uid 500); 1 Feb 2010 13:34:57 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 16900 invoked by uid 500); 1 Feb 2010 13:34: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 16889 invoked by uid 99); 1 Feb 2010 13:34:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2010 13:34:57 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aklimets@day.com designates 207.126.148.89 as permitted sender) Received: from [207.126.148.89] (HELO eu3sys201aog103.obsmtp.com) (207.126.148.89) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 01 Feb 2010 13:34:47 +0000 Received: from source ([209.85.216.189]) by eu3sys201aob103.postini.com ([207.126.154.11]) with SMTP ID DSNKS2bYYbuk9Rn9CcvqUxEcY+1ow8nOMEKl@postini.com; Mon, 01 Feb 2010 13:34:27 UTC Received: by pxi27 with SMTP id 27so3890618pxi.4 for ; Mon, 01 Feb 2010 05:34:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.141.13.21 with SMTP id q21mr3158906rvi.259.1265031264796; Mon, 01 Feb 2010 05:34:24 -0800 (PST) In-Reply-To: <1774B1C6F7D65448AE964FB69BC08AEE081D043F@MKEXCHVS3.Mail.Fiserv.net> References: <1774B1C6F7D65448AE964FB69BC08AEE080B0F90@MKEXCHVS3.Mail.Fiserv.net> <4d6717571001280912n40b12e13j7f83097a96d39992@mail.gmail.com> <1774B1C6F7D65448AE964FB69BC08AEE081D043F@MKEXCHVS3.Mail.Fiserv.net> Date: Mon, 1 Feb 2010 14:34:24 +0100 Message-ID: Subject: Re: Jackrabbit2.0 xpath functions From: Alexander Klimetschek To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Fri, Jan 29, 2010 at 11:40, Niu, Xuetao wrote: > Hello, > > I am wondering what are the standard xpath functions supported by > Jackrabbit2.0, and what are also supported by Jackrabbit2.0 but not > standard xpath functions. > > Especially, how to select all nodes whose namespace is "abc:"? I tried > to use "//abc:*" as xpath, but jackrabbit throws exception, I also tried > to use "//*[starts-with(name(),'abc:')]" and > "//*[fn:starts-with(name(),'abc:')]", both being complained by > jackrabbit as invalid xpath. Supported axes are only child (/), descendant-or-self (abbreviated syntax: //) and attribute (@). See the JCR 1.0 spec [1], section 6.6.4.6 [2]. Please also note that JCR 2.0 (in Jackrabbit 2.0) deprecated XPath support, but Jackrabbit will keep the XPath option. [1] http://jcp.org/en/jsr/detail?id=170 [2] http://www.day.com/specs/jcr/1.0/6.6.4.6_Axes.html Regards, Alex -- Alexander Klimetschek alexander.klimetschek@day.com