Name
xsl:decimal-format
Synopsis
<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
, optionalThe string by which the
format-number( )
function identifies thexsl:decimal-format
element to use. If this attribute is omitted, then this element establishes the default decimal format used by theformat-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 ...
Get XML in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.