xsl-list
[Top] [All Lists]

RE: XPath for leaf nodes

2005-01-20 00:19:08
Hi,

I am trying to put together an XPath expression to
select all the leaf nodes (i.e. an element that does
not have any descendants) of an arbitrary XML document
(it may or may not have namespaces defined).

I imagine there is an easy way to do this, but I can't
figure it out.

//*[not(*)]

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>