[xsl] Testing strings for null

Subject: [xsl] Testing strings for null
From: Paul Holman <pablos@xxxxxxxx>
Date: Mon, 08 Jan 2001 19:40:56 -0800
OK, I'm a newbie. Please beat me over the head with why this doesn't work:

<xsl:choose>
       <xsl:when test="ASTRING $igt$ 0">
               <xsl:value-of select="ASTRING"/>
       </xsl:when>
       <xsl:otherwise>
               Empty!
       </xsl:otherwise>
</xsl:choose>

I just want to know if ASTRING is null, and I can't seem to figure out what to do. This test comes up False every time.

Thanks, pablos.

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread