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]

How to test for NULL?


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

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