Subject: RE: Selecting all descendants with no child nodes From: Kay Michael <Michael.Kay@xxxxxxx> Date: Wed, 4 Oct 2000 18:47:01 +0100 |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Selecting all descendants with , Evan Lenz | Thread | HTML parameters and Ampersands, David_Benua |
Re: Formatting elements, Jeni Tennison | Date | RE: Exclusion in path, Kay Michael |
Month |