[xslt] format-number() and NaN
- From: "Stephan Otte" <Stephan Otte pcc de>
- To: xslt gnome org
- Subject: [xslt] format-number() and NaN
- Date: Wed, 18 Jul 2001 16:56:16 +0200
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]