[xslt] A bit of help



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.

   thanks,

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]