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 126994 - Peculiar xsl:number behavior
Peculiar xsl:number behavior
Status: VERIFIED FIXED
Product: libxslt
Classification: Platform
Component: general
1.1.0
Other Windows
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2003-11-14 17:52 UTC by xyster_
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description xyster_ 2003-11-14 17:52:20 UTC
I'm getting strange output from xsltproc on Windows ("Using libxml 20602,
libxslt 10100 and libexslt 800") when trying to use xsl:number.

Example 1 (xsl:stylesheet tags omitted for brevity):

<xsl:template match="/">
<html>
<body>
<xsl:number value="4234237" grouping-separator="," grouping-size="3" />
</body>
</html>
</xsl:template> 

Produces:

<html><body>
4 34 37
</body></html>

Instead of:

<html><body>
4,234,237
</body></html>


Example 2 (same as above without html and body tags):

<xsl:template match="/">

<xsl:number value="4234237" grouping-separator="," grouping-size="3" />

</xsl:template>

Produces:

xmlEncodeEntitiesReentrant : char out of range
<?xml version="1.0"?>
4&#255;34 37


Instead of:

<?xml version="1.0"?>
4,234,237



For all tests I'm using a blank XML file:

<?xml version='1.0'?>
<?xml-stylesheet type="text/xsl" href="test.xsl" ?>
<lala>
</lala>
Comment 1 William M. Brack 2003-11-16 12:23:28 UTC
Fixed in CVS.  Thanks for the report.
Comment 2 Daniel Veillard 2004-03-25 11:35:59 UTC
This should be closed by release of libxslt-1.1.5,
                                                                                
  thanks,
                                                                                
Daniel