Home >Online Product Documentation >Table of Contents >xsl:decimal-format
Declares a decimal format.
<xsl:decimal-format name = qname decimal-separator = char grouping-separator = char infinity = string minus-sign = char NaN = string percent = char per-mille = char zero-digit = char digit = char pattern-separator = char />
The xsl:decimal-format instruction declares a decimal format, which controls the interpretation of a format pattern that is used by the format-number() function.
xsl:decimal-format
format-number()
If there is a name attribute, the element declares a named decimal format. Otherwise, it declares the default decimal format. The value of the name attribute is a qualified name.
name
The other attributes on xsl:decimal-format correspond to the methods on the JDK DecimalFormatSymbols class. For each get/set method pair, there is an attribute defined for the xsl:decimal-format instruction.
DecimalFormatSymbols
The following attributes control the interpretation of characters in the format pattern and specify characters that can appear in the result of formatting the number:
decimal-separator
grouping-separator
percent
per-mille
zero-digit
The following attributes control the interpretation of characters in the format pattern:
digit
pattern-separator
The following attributes specify characters or strings that can appear in the result of formatting the number:
infinity
"Infinity"
minus-sign
NaN
"NaN"