Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 98789 invoked from network); 4 Aug 2008 08:21:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Aug 2008 08:21:46 -0000 Received: (qmail 39295 invoked by uid 500); 4 Aug 2008 08:21:45 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 39276 invoked by uid 500); 4 Aug 2008 08:21:44 -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 39260 invoked by uid 99); 4 Aug 2008 08:21:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Aug 2008 01:21:44 -0700 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: local policy) Received: from [84.14.163.131] (HELO trinity.anyware-tech.com) (84.14.163.131) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Aug 2008 08:20:47 +0000 Received: from localhost (localhost [127.0.0.1]) by trinity.anyware-tech.com (Postfix) with ESMTP id 8FCE0400DC1 for ; Mon, 4 Aug 2008 10:21:12 +0200 (CEST) Received: from trinity.anyware-tech.com ([127.0.0.1]) by localhost (trinity.anyware-tech.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22349-01-5 for ; Mon, 4 Aug 2008 10:21:06 +0200 (CEST) Received: from [10.0.1.122] (krusty.anyware [10.0.1.122]) by trinity.anyware-tech.com (Postfix) with ESMTP id 7CF1D400053 for ; Mon, 4 Aug 2008 10:21:06 +0200 (CEST) Message-ID: <4896BC0B.2020402@anyware-tech.com> Date: Mon, 04 Aug 2008 10:21:31 +0200 From: =?ISO-8859-1?Q?S=E9bastien_Launay?= User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: xpath queries with node names consisting of numbers? References: <61F1F0BF-A60A-4526-847F-B77499AA58CF@mac.com> In-Reply-To: <61F1F0BF-A60A-4526-847F-B77499AA58CF@mac.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Debian amavisd-new at anyware-tech.com X-Virus-Checked: Checked by ClamAV on apache.org Hi Will, This is the same problem as described recently here: http://markmail.org/message/xyvhkjjsm2igtrhb?q=jackrabbit So you must use : /jcr:root/public/_x30_00 or /jrc:root/public/*[fn:name() = '000'] (only one '/' is needed for direct children) -- S�bastien Launay Will Scheidegger a �crit : > I have a bunch of nodes with numbers as names. When I try to do an > xpath query like > > /jcr:root/public/000 > > I get a JCR exception: javax.jcr.query.InvalidQueryException: Parse > error: data is not a RelationQueryNode > > I also tried this: > > /jrc:root/public//*[name() = '000'] > > But it seems like name() is not supported by JCR. Is there a way to do > this? > Thanks! > > will