This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Selecting all descendants with no child nodes


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]