Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 4091 invoked from network); 31 Oct 2005 08:15:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Oct 2005 08:15:30 -0000 Received: (qmail 49702 invoked by uid 500); 31 Oct 2005 08:15:28 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 49691 invoked by uid 99); 31 Oct 2005 08:15:28 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Oct 2005 00:15:28 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of marcel.reutegger@gmx.net designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 31 Oct 2005 00:15:24 -0800 Received: (qmail invoked by alias); 31 Oct 2005 08:15:05 -0000 Received: from bsl-rtr.day.com (EHLO [10.0.0.58]) [212.249.34.130] by mail.gmx.net (mp013) with SMTP; 31 Oct 2005 09:15:05 +0100 X-Authenticated: #894343 Message-ID: <4365D286.4060906@gmx.net> Date: Mon, 31 Oct 2005 09:15:02 +0100 From: Marcel Reutegger User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: jackrabbit-dev@incubator.apache.org Subject: Re: Query on version nodes References: <3b728ee90510281623o1808daa3y3a7f30cc7dc74702@mail.gmail.com> In-Reply-To: <3b728ee90510281623o1808daa3y3a7f30cc7dc74702@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Christophe, that's because xpath does not allow names that start with a digit, you need to encode them properly. e.g. if you are looking for the 1.0 nodes your query would be: /jcr:root/jcr:system//_x0031_.0 regards marcel Christophe Lombart wrote: > Hi all, > > I cannot search correctly on version nodes. > In fact, I'm getting version node paths from the version history by > using the JCR API. That works correctly but I got an exception when I > build a query like this : > > /jcr:system/jcr:versionStorage/e8/5a/3b/e85a3b3b-942f-4b98-9b92-efceaad07352/1.0//element(*,graffito:paragraph) > > Is it not a correct query ? > > Here is the exception : > javax.jcr.query.InvalidQueryException: Encountered "/" at line 1, column 47. > Was expecting one of: > ... > ... > ... > ... > " " ... > ... > ... > ... > ... > ... > ... > ... > ... > ... > ..... > > > Thanks, > Christophe > >