This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Checking for empty values
- To: xsl-list at mulberrytech dot com
- Subject: Re: Checking for empty values
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Mon, 17 Jul 2000 15:46:19 GMT
- References: <200007171425.QAA16005@statistik.cinetic.de>
- Reply-To: xsl-list at mulberrytech dot com
> <xsl:when test="count(child::* | text()) = 0">
that can more easily be written
<xsl:when test="* | text()">
and even more easily but not quite equivalent as it also tests for
comments and processing instructions:
<xsl:when test="node()">
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list