This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Is Extra space in my XML causing a problem?
- To: xsl-list at mulberrytech dot com
- Subject: Re: Is Extra space in my XML causing a problem?
- From: Warren Hedley <w dot hedley at auckland dot ac dot nz>
- Date: Fri, 09 Jun 2000 12:26:30 -0400
- CC: Brian Burridge <brian_burridge at coxtarget dot com>
- Organization: Department of Engineering Science, The University of Auckland
- References: <394101FB.89849433@coxtarget.com>
- Reply-To: xsl-list at mulberrytech dot com
Brian Burridge wrote:
>
> <xsl:if test="go_live_date!='null'">
> <td><xsl:value-of select="go_live_date" /> </td>
> </xsl:if>
Try:
<xsl:if test="normalize-space(go_live_date) != 'null'">
<td><xsl:value-of select="go_live_date" /> </td>
</xsl:if>
See http://www.w3.org/TR/xpath#function-normalize-space
--
Warren Hedley
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list