[xslt] format-number() and NaN



Hi
As Michael Kay's XSLT Programmer's Reference says,
the conversion rules for the value argument of format-number() from string to
number
are the same as for the number() function.
format-number("", "###.###")  or format-number("xyz", "###.###") should
therefore give NaN as result,
which could be redirected with <xsl:decimal-format NaN="not available">.
But libxslt gives something like 000000.000000 (many, many zeroes)!
What' wrong?
The number() function works correctly in these cases.

Stephan
===============================
stephan.otte@pcc.de






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]