This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Disable showing of NaN
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] Disable showing of NaN
- From: "Mazza, Glen" <glen dot mazza at eds dot com>
- Date: Thu, 11 Jan 2001 10:37:22 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
Simple question (no flaming here, I did check "Math" and "Formatting" off
the XSL FAQ for the answer), how do I disable the showing of NaN if I am
doing a division by zero?
I know there is a xsl:decimal-format command with a NaN parameter I can set
to "", but I don't know how to integrate it with format-number() as follows:
<td align="right">
<xsl:value-of select="format-number(total div sum(//ports/port/total) * 100,
'#.00')"/>
</td>
Thanks,
Glen Mazza
glen.mazza@eds.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list