Subject: [xsl] format-number From: "David Zuccaro" <davidz@xxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 2 May 2002 17:02:39 +1000 |
Hi I'm having a problem with format number. This is my xml file: <?xml version="1.0" encoding="ISO-8859-1"?> <test>12.00</test> This is my xsl code: <?xml version='1.0' encoding='UTF-8' ?> <xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'> <xsl:template match="test"> <output> <xsl:value-of select="format-number(., '0.00')"/> </output> </xsl:template> </xsl:stylesheet> This is the output I am getting: <output>12</output> Shouldn't the output be: <output>12.00</output> I'm using xalan. Thanks in advance. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Re: Extending xsltproc?, Gary Lawrence Murphy | Thread | RE: [xsl] format-number, Stevenson Ngila |
Re: [xsl] Re: Extending xsltproc?, Gary Lawrence Murphy | Date | RE: [xsl] format-number, Stevenson Ngila |
Month |