jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: descendant or self query
Date Mon, 17 Jul 2006 17:47:31 GMT
Torgeir Veimo wrote:
> Is there a way to specify an xpath query for nodes underneath a parent 
> node, with a given maxDepth, where maxDepth is something else than 1 or 
> infinite?

no, this is not possible.

you could implement an extremely *ugly* workaround by using a property 
that keeps track of the nodes level and then do something like:
//element(*,my:type)[@level <= 10]

regards
  marcel

Mime
View raw message