Declares a decimal-format, which controls the interpretation of a format pattern used by the format-number
function. 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 (QName). An error occurs if you declare either the default decimal-format or a decimal-format with a given name more than once (even with different import precedence), unless it is declared every time with the same value for all attributes (taking into account any default values).
For more information, see format-number Function.
<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 />
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. It is an error to declare either the default decimal-format or a decimal-format with a given name more than once unless it is declared every time with the same value for all attributes (taking into account any default values)."."
.,
"."Infinity"
."-"
, "#x2D"
)."NaN"
."%"
)."#x2030"
)."0"
)."#"
.";"
). An example of the semi-colon used in a pattern is the following:format-number(-123.45, '###,###.00;(###,###.00)')
Number of occurrences | Unlimited |
Parent elements | xsl:stylesheet, xsl:transform |
Child elements | (No child elements) |
The following topic provides an example of <xsl:decimal-format>
.