jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Klimetschek" <aklim...@day.com>
Subject Re: Select all leafs of a tree w/XPath
Date Mon, 10 Nov 2008 08:59:18 GMT
On Sat, Nov 8, 2008 at 11:25 PM, Phil Weighill-Smith
<phil.weighill-smith@volantis.com> wrote:
> Are you sure you can't use the XPath expression:
>
> //*[count(child::*) = 0]
>
> to select the element nodes that have no children (i.e. leaf nodes)?

No, JCR's subset of XPath does not support the count() method.

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message