After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 62577 - format-number ignores decimal-format attributes NaN and Infinity
format-number ignores decimal-format attributes NaN and Infinity
Status: VERIFIED FIXED
Product: libxslt
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2001-10-18 08:54 UTC by Stephan Otte
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
testcase (457 bytes, text/plain)
2001-10-18 08:55 UTC, Stephan Otte
Details
corrected testcase (456 bytes, text/plain)
2001-10-18 09:38 UTC, Stephan Otte
Details

Description Stephan Otte 2001-10-18 08:54:43 UTC
====== stylesheet ======
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
version="1.0">
 
<xsl:decimal-format NaN="myNaN" inifinity="myInfinity" />
 
<xsl:template match="/">
 
case 1:
<xsl:value-of select="format-number('X', '#.#')"/>
<!-- outputs NOT "myNaN" as expected -->
 
case 2:
<xsl:value-of select="format-number(10 div 0, '#.#')"/>
<!-- outputs NOT "myInfinity" as expected -->
 
</xsl:template>
</xsl:stylesheet>
============= end of stylesheet ====================

format-number seems to ignore the attributes "NaN" and "infinity".

Stephan
Comment 1 Stephan Otte 2001-10-18 08:55:50 UTC
Created attachment 5851 [details]
testcase
Comment 2 Stephan Otte 2001-10-18 09:36:07 UTC
Of cause "infinity" not "inifinity" but results are the same!
Stephan
Comment 3 Stephan Otte 2001-10-18 09:38:10 UTC
Created attachment 5854 [details]
corrected testcase
Comment 5 Daniel Veillard 2001-10-30 19:18:08 UTC
Should be fixed in 1.0.6,

 thanks,

Daniel