This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Selecting all descendants with no child nodes
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Selecting all descendants with no child nodes
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Wed, 4 Oct 2000 18:47:01 +0100
- Reply-To: xsl-list at mulberrytech dot com
> I'm using the XPath expression "//*[count(*)=0]" to locate
> all "endpoint" nodes.
>
> Is there any other way to achieve this, an alternative syntax?
You can always replace "count(X)=0" by "not(X)", and it'd probably more
efficient. So in this case, "//*[not(*)]"
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list