[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] XPath for leaf nodes


Subject: RE: [xsl] XPath for leaf nodes
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Thu, 20 Jan 2005 10:20:43 +0200

Hi.

> That is great.  But I have a follow-up question.
>
> How would I find all nodes whose descendants are only
> leaf nodes?

//*[* and not(*/*)]

I.e. all elements who have at least one child, but do not have any
grandchildren.

Cheers,

Jarno


Current Thread