GNOME Bugzilla – Bug 126994
Peculiar xsl:number behavior
Last modified: 2009-08-15 18:40:50 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ÿ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>
Fixed in CVS. Thanks for the report.
This should be closed by release of libxslt-1.1.5, thanks, Daniel