<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.
Attributes
- name, optional
- The 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, optional
- The 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.
- grouping-separator, optional
- The character that separates groups of digits (e.g., the comma that separates every three digits in English).
- infinity, optional
- The string that represents IEEE 754 infinity; Infinity by default.
- minus-sign, optional
- The character prefixed to negative numbers; a hyphen by default.
- NaN, optional
- The string that represents IEEE 754 Not a Number; NaN by default.
- percent, optional
- The character that represents a percent; % by default.
- per-mille, optional
- The character that represents a per mille; by default.
- zero-digit, optional
- The 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, optional
- The character that represents a digit in a format pattern; # by default.
- pattern-separator, optional
- The character that separates positive and negative subpatterns in a format pattern; ; by default.
No hay comentarios:
Publicar un comentario