Re: [xslt] format-number() and NaN



On Wed, Jul 18, 2001 at 04:56:16PM +0200, Stephan Otte wrote:
> 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.

  Please provide a complete but minimal test case, Bjorn may find the
time to look at it, otherwise I will try to find out what's happening,

  thanks,

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
Sep 17-18 2001 Brussels Red Hat TechWorld http://www.redhat-techworld.com




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