xsl:decimal-format
<xsl:decimal-format name = "QualifiedName
" 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
top-level element defines a pattern by which the
format-number( )
function can
convert floating-point numbers into text strings. The defaults
work well for English, but details may change for other languages
and locales, such as French or Chinese.
name
, optionalThe string by which the format-number( )
function
identifies the xsl:decimal-format
element to use.
If this attribute is omitted, then this element establishes
the default decimal format used by the format-number()
function.
decimal-separator
,
optionalThe character that separates the integer part from the fractional point in a floating-point number. This character is a period (decimal point) in English and a comma in French. It may be something else in other languages. If not specified, the default is a period.
grouping-separator
,
optionalThe character that separates groups of digits; for example, the comma that separates every three digits in English or the space in French. If this is not specified, the comma is the default.
infinity
,
optionalThe string that represents IEEE 754 infinity; Infinity
by default.
minus-sign
,
optionalThe character prefixed to negative numbers; a hyphen by default.
NaN
, optionalThe string that represents IEEE 754 Not a Number;
NaN
by default.
percent
,
optionalThe character that represents a percent; %
by default.
per-mille
,
optionalThe character that represents a per mille; ‰
by default.
zero-digit
,
optionalThe character that represents zero; 0
by default. Digits 1 through 9
will be represented by the nine subsequent Unicode values
after this one. For instance, setting zero-digit
to A
would set 1 to B
, 2 to C
, 3 to D
, and so on. This is also the
character used to represent 0 in format patterns.
digit
,
optionalThe character that represents a digit in a format
pattern; #
by
default.
pattern-separator
,
optionalThe character that separates positive and negative
subpatterns in a format pattern; ;
by default.