Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 27402 invoked from network); 2 Aug 2008 09:34:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Aug 2008 09:34:25 -0000 Received: (qmail 79784 invoked by uid 500); 2 Aug 2008 09:34:23 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 79772 invoked by uid 500); 2 Aug 2008 09:34: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 79760 invoked by uid 99); 2 Aug 2008 09:34:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Aug 2008 02:34:23 -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: domain of willscheidegger@mac.com designates 17.148.16.86 as permitted sender) Received: from [17.148.16.86] (HELO asmtpout011.mac.com) (17.148.16.86) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Aug 2008 09:33:28 +0000 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from [192.168.0.141] ([84.75.167.238]) by asmtp011.mac.com (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPA id <0K4Y00F43VQ44P80@asmtp011.mac.com> for users@jackrabbit.apache.org; Sat, 02 Aug 2008 02:30:10 -0700 (PDT) Message-id: <61F1F0BF-A60A-4526-847F-B77499AA58CF@mac.com> From: Will Scheidegger To: users@jackrabbit.apache.org Subject: xpath queries with node names consisting of numbers? Date: Sat, 02 Aug 2008 09:38:11 +0200 X-Mailer: Apple Mail (2.928.1) X-Virus-Checked: Checked by ClamAV on apache.org 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