xsl-list
[Top] [All Lists]

replace 'NA' for empty string

2003-02-11 15:32:17


 Hello,
 In my XSL, I need to check if some fields are 'NA' and if so, print blank.

                    <td align="right"><xsl:value-of
select="SHORT_RATE_365"/></td>
                        <td align="right"><xsl:value-of
select="LONG_RATE_365"/></td>
                        <td align="right"><xsl:value-of
select="RATE_360"/></td>
                        <td align="right"><xsl:value-of
select="CURR_7_DAY_YIELD"/></td>
                        <td align="right"><xsl:value-of
select="SEVEN_DAY_EFF_YIELD"/></td>
                        <td align="right"><xsl:value-of
select="AVG_30_DAY_RATE"/></td>
                        <td align="right"><xsl:value-of
select="PRICE"/></td>

 Would you suggest using number-format and use blank as a default

        <xsl:decimal-format NaN=""/> 
 Or should I use test= 

 Which would be more efficient approach?
 Any other better way to do test and replace?
 Thanks
IL


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



<Prev in Thread] Current Thread [Next in Thread>
  • replace 'NA' for empty string, Lee, Insoo <=