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: Is Extra space in my XML causing a problem?


Brian Burridge wrote:
> 
> <xsl:if test="go_live_date!='null'">
>     <td><xsl:value-of select="go_live_date" />&#160;</td>
> </xsl:if>

Try:

<xsl:if test="normalize-space(go_live_date) != 'null'">
  <td><xsl:value-of select="go_live_date" />&#160;</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

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