You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Torgeir Veimo <to...@pobox.com> on 2006/07/17 14:49:31 UTC
descendant or self query
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?
--
-Torgeir
Re: descendant or self query
Posted by Marcel Reutegger <ma...@gmx.net>.
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