|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: format-number
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








