June 2008
Intermediate to advanced
986 pages
27h 8m
English
The <xsl:decimal-format> element lets us
define named formats for decimal numbers. Each named format is a group
of settings for the properties discussed in Table F-2.
| Part name | Meaning | Default value |
name | Gives a name to this format. | N/A |
decimal-separator | Defines 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. | . (period) |
grouping-separator | Defines 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. | , (comma) |
infinity | Defines 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. | Infinity |
minus-sign | Defines the character used as the minus sign. This character is used only in the output. | – (hyphen,
-) |
NaN | Defines the string displayed when the value to be formatted is not a number. This string is used only in the output. | NaN |
percent | Defines the character used as the percent sign. This character is used both in the format string and in the output. | % (percent
sign) |
per-mille | Defines the character used as the per-mille sign. This character is used both in the format string and in the output. | ‰ (Unicode per-mille
character, ‰). |
zero-digit | Defines the character used for the digit zero. This character is used both in the format string and in the output. ... |
Read now
Unlock full access