<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version =
"1.0" >
<xsl:output method =
"text" />
<xsl:variable name =
"A" >0.2548</xsl:variable>
<xsl:template match =
"/" >
<xsl:text >
</xsl:text>
<xsl:value-of select =
"format-number($A,'%')" />
<xsl:text >
</xsl:text>
<xsl:value-of select =
"format-number($A,'%#.#')" />
<xsl:text >
</xsl:text>
<xsl:value-of select =
"format-number($A,'%#.000')" />
<xsl:text >
</xsl:text>
<xsl:value-of select =
"format-number($A,'%#.#####')" />
</xsl:template>
</xsl:stylesheet>
Author: Miloslav Nic [nicmila@idoox.com]