This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
How to test for NULL?
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: How to test for NULL?
- From: "Frick, Gary" <gary dot frick at compaq dot com>
- Date: Fri, 3 Mar 2000 17:55:30 -0800
- Reply-To: xsl-list at mulberrytech dot com
I'm formatting for values returned from a SQL query. Some columns may
contain NULL. I do I test for NULL character since it isn't a valid
character in XML world?
<xsl:for-each select="@*">
<TD>
<xsl:if test=". != 'XSNULL'">
<xsl:value-of select="."/>
</xsl:if>
</TD>
</xsl:for-each>
Thanks,
Gary
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list