Subject: RE: format-number
From: "Cross, Neal - Development Controller" <ncross@xxxxxxxxx>
Date: Tue, 28 Jan 2003 19:51:59 -0000
|
Try this me old mucker!
Call this template passing in SHARE_PRICE as parameter Value.
<xsl:template name="null-dash">
<xsl:param name="Value"/>
<xsl:variable name="buff" select="format-number($Value, '###,##0.00')"/>
<xsl:choose>
<xsl:when test="$buff='NaN'">N/A etc...</xsl:when>
<xsl:otherwise><xsl:value-of select="$buff"/></xsl:otherwise>
</xsl:choose>
</xsl:template>
-----Original Message-----
From: Lee, Insoo [mailto:Insoo.Lee@xxxxxx]
Sent: 28 January 2003 19:33
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Subject: format-number
Quick question,
This would return me the formatted value - but if the 'SHARE_PRICE' is
not number, it would return me NaN
<xsl:value-of select="format-number(SHARE_PRICE, '###,##0.00')"/>
Without any if/when statements, is there anyway to overwrite it so that it
returns me NA or something else I specify insteadof NaN?
Thanks
IL
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- format-number
- Lee, Insoo - Tue, 21 Jan 2003 11:52:05 -0500 (EST)
- <Possible follow-ups>
- Lee, Insoo - Tue, 28 Jan 2003 14:33:20 -0500 (EST)
- Cross, Neal - Development Controller - Tue, 28 Jan 2003 14:49:41 -0500 (EST) <=
|
|