File: Transform.xslt
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:decimal-format name="f1" decimal-separator=":" grouping-separator="/"/>
<xsl:decimal-format name="f2" infinity="Really, really big" NaN="[not a number]"/>
<xsl:template match="/">
<xsl:text>format-number(1528.3, '#/###:00', 'f1')=</xsl:text>
<xsl:value-of select="format-number(1528.3, '#/###:00;-#/###:00', 'f1')"/>
</xsl:template>
</xsl:stylesheet>
Output:
format-number(1528.3, '#/###:00', 'f1')=1/528:30
|