Name
<xsl:decimal-format>
Defines a number format to be used when writing numeric
values to the output document. If the <decimal-format> does not have a
name, it is assumed to be the
default number format used for all calls to the format-number() function. On the other
hand, if a number format is named, it can be referenced from the
format-number()
function.
Category
Top-level element.
Required Attributes
None.
Optional Attributes
nameGives a name to this format.
decimal-separatorDefines the character (usually either a period or comma) used as the decimal point. This character is used both in the format string and in the output. The default value is the period character (
.).grouping-separatorDefines the character (usually either a period or comma) used as the thousands separator. This character is used both in the format string and in the output. The default value is the comma (
,).infinityDefines the string used to represent infinity. Be aware that XSLT’s number facilities support both positive and negative infinity. This string is used only in the output. The default value is the string
"Infinity".minus-signDefines the character used as the minus sign. This character is used only in the output. The default value is the hyphen character (
-,-).NaNDefines the string displayed when the value to be formatted is not a number. This string is used only in the output; the default value is the string
"NaN".percentDefines the character used as the percent sign. This character is used both in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access