The following function call returns "5,351":
format-number(5351,"#,###")
The following function call returns "5351.00":
format-number(5351, "#.00")
The following function call returns "53.5100":
format-number(53.51, "#.0000")
The following function call returns "0053.5100":
format-number(53.51, "0000.0000")
The following function call returns "0053.51":
format-number(53.51, "0000.####")
The following function call returns "53.6":
format-number(53.56, "0.0")
The following XSLT lines return "24.535,20":
이런식으로 쓸 수 있다.
<xsl:variable name="isSupportedType">
<xsl:choose>
<xsl:when test="slideinfo/subtype = 0 or slideinfo/subtype = 4 or slideinfo/subtype = 7 or slideinfo/subtype = 9">
<xsl:value-of select="1"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="0"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>