xsl-list
[Top] [All Lists]

RE: XPath for leaf nodes

2005-01-20 01:20:43
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>