Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 36426 invoked from network); 18 Oct 2006 09:39:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Oct 2006 09:39:32 -0000 Received: (qmail 67269 invoked by uid 500); 18 Oct 2006 09:39:29 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 67114 invoked by uid 500); 18 Oct 2006 09:39:29 -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 67103 invoked by uid 99); 18 Oct 2006 09:39:28 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Oct 2006 02:39:28 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of the.mindstorm.mailinglist@gmail.com designates 66.249.92.171 as permitted sender) Received: from [66.249.92.171] (HELO ug-out-1314.google.com) (66.249.92.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Oct 2006 02:39:28 -0700 Received: by ug-out-1314.google.com with SMTP id m3so1602354uge for ; Wed, 18 Oct 2006 02:39:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=smzQtgB7AtnINdnSQFbo1debCjf76keuZivwNmnH+EDvPVAx4qsJfiydmGIoH3RzjkSEdj9w32nd9pvmS3p4Q1UVoTTSJRH/I4fUlMdwEyskTlWr9Y9eHutjnMzTLg06FxLeIETsL8xsPQYKWFrwy13885S+U03dImQM8oZVioM= Received: by 10.78.165.16 with SMTP id n16mr10372320hue; Wed, 18 Oct 2006 02:39:06 -0700 (PDT) Received: by 10.78.81.11 with HTTP; Wed, 18 Oct 2006 02:39:06 -0700 (PDT) Message-ID: Date: Wed, 18 Oct 2006 12:39:06 +0300 From: "Alexandru Popescu" To: userJackrabbit Subject: Re: XPath queries for versions In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 10/18/06, Alexandru Popescu wrote: > Hi! > > According to the specification, if an implementation is supporting > versioning, then this is stored in a special version storage area, > which must be exposed in each workspace under > /jcr:system/jcr:versionStorage. > > I am wondering if you can use normal XPath queries upon this tree? > Considering a node: /foo/bar/mynode with a property @my:property I would like 1/ to find the version of this node whose my:property was 'data': /jcr:root/jcr:system/jcr:versionStorage/foo/bar/mynode[@my:property = 'data'] ? 2/ to find a labeled version of mynode (label that I know) thanks in advance, ./alex -- .w( the_mindstorm )p.