Re: [xsl] Test for leaf node

Subject: Re: [xsl] Test for leaf node
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 14 Dec 2004 14:09:26 GMT
this is a FAQ. 

> (maybe empty text() node?

text nodes (in xslt 1) are never empty.

 <xsl:if test="not(*)">
 
is true if there are no child elements.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread