jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "BOWLER Paul" <Paul.Bow...@alcatel-lucent.com>
Subject RE: Query for Nodes from a given Path
Date Tue, 07 Jul 2009 10:58:10 GMT

Many thanks Alex.


-----Original Message-----
From: Alexander Klimetschek [mailto:aklimets@day.com] 
Sent: 07 July 2009 11:47
To: users@jackrabbit.apache.org
Subject: Re: Query for Nodes from a given Path

On Tue, Jul 7, 2009 at 12:46 PM, BOWLER
Paul<Paul.Bowler@alcatel-lucent.com> wrote:
> The problem is that the pcf:Color node can appear at many levels
within the tree so specifying an absolute path won't work.
> [..]
> query = qm.createQuery("/jcr:root/the/starting/node/pcf:Color",

The trick is the "//" location step, which means descendent-or-self,
ie. any node named pcf:Color in the subtree under the absolute path
given before.


Alexander Klimetschek

View raw message