Re: [xslt] Peculiar xsl:number behavior or XSL mistake?
- From: Daniel Veillard <veillard redhat com>
- To: xslt gnome org
- Subject: Re: [xslt] Peculiar xsl:number behavior or XSL mistake?
- Date: Fri, 14 Nov 2003 08:09:04 -0500
On Fri, Nov 14, 2003 at 06:56:41AM +0000, Xyster ! wrote:
> Hi,
>
> I'm getting strange output from xsltproc on Windows ("Using libxml 20602,
> libxslt 10100 and libexslt 800") when trying to use xsl:number.
>
> Here is an example:
>
> <xsl:template match="/">
> <html><body>
>
> <xsl:number value="4234237" grouping-separator="," grouping-size="3" />
>
> </body></html>
>
> </xsl:template>
>
>
> The expected output (and I am getting it from Saxon, Mozilla and IE) is:
>
> <html><body>
> 4,234,237
> </body></html>
>
> On the other hand, from xsltproc I get:
>
> <html><body>
> 4 34 37
> </body></html>
>
> Even worse, if I remove the <html> and <body> tags and use this:
>
> <xsl:template match="/">
>
> <xsl:number value="4234237" grouping-separator="," grouping-size="3" />
>
> </xsl:template>
>
> Instead of:
>
> <?xml version="1.0"?>
> 4,234,237
>
> I get from xsltproc:
>
> xmlEncodeEntitiesReentrant : char out of range
> <?xml version="1.0"?>
> 4ÿ34 37
>
>
> In all tests I am using an empty XML input file:
>
> <?xml version='1.0'?>
> <?xml-stylesheet type="text/xsl" href="test.xsl" ?>
> <lala>
> </lala>
>
>
> Am I doing something wrong or is this a bug in xsltproc?
Oh, our xsl:number friend again :-(
Well this doesn't look good. Could fill up a bugzilla entry ?
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]