p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   XSLT (http://p2p.wrox.com/forumdisplay.php?f=86)
-   -   format-number NaN (http://p2p.wrox.com/showthread.php?t=5316)

rbdave October 23rd, 2003 04:42 AM

format-number NaN

when I try to format a number and it contains null value i get NaN displayed.

if the value in NOMINAL is null then NaN is displayed. Can it be displayed null.

Is there a workaround for this?


pgtips October 23rd, 2003 06:48 AM

So you have an <xsl:decimal-format> named 'european' defined. Take a look at all the options in xsl:decimal-format and you'll see that one of the allowed attributes is NaN, which lets you specify what should be output if the number (NOMINAL in your case) is null. Adding this attribute with a value of 'null' will do the trick for you.

All times are GMT -4. The time now is 11:48 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.