|
next
|
Subject: Formating numbers Author: Minollo I. Date: 14 Feb 2006 09:17 AM
|
Alexander,
first, the easiest way to do that is:
<xsl:variable name="aNumber" select="translate(., ',', '.')"/>
<xsl:value-of select="format-number($aNumber, '##.00')"/>
format-number allows you to format a number the way you want (you can even use <xsl:decimal-format/> to control various aspects of how it works); but it needs to work on a *number*; and in XML "30,6" is not a number, as you must use '.' to separate decimals and not use ',', not even as a grouping separator.
Minollo
|
|
|
|