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: Checking for empty values



>       <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

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