Re: [xslt] A bit of help



Hi Daniel,

> I'm trying to find what's the proper thing to do with bug #72236
> In that case the behaviour is not defined in the XSLT spec but as
> the Java behaviour on formatting numbers:
> 
> http://bugzilla.gnome.org/show_bug.cgi?id=72236
> 
> Libxslt does the following as reported by Jon Zaid :
> -----------------
> <xsl:stylesheet version="1.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> <xsl:template match="/">
> <xsl:value-of select="format-number(-1,'###,###;###,###')"/>|
> <xsl:value-of select="format-number(-1,'###,###;###,### ')"/>|
> </xsl:template>
> </xsl:stylesheet>
> 
> gives:
> 
> -1|
> 1 |
> 
> I would expect:
> 
> 1|
> 1 |
> -----------------
> 
>  Looking at the code it seems it is on-purpose. 
>  Could people confirm that other XSLT processors are doing the same,
> especially Saxon and the Java version of Xalan.
> 
Java Xalan outputs
<?xml version="1.0" encoding="UTF-8"?>
-1|
1 |

(Version 2.2.0)

Sorry, no saxon installed here...

greetings
	Morus



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