Name
<xsl:decimalformat>
Synopsis
The <xsl:decimal-format> element defines a
pattern by which the XPath format-number( )
function can convert floating-point numbers into text strings. The
attributes are specified as follows:
-
name The string by which the
format-number( )function identifies which<xsl:decimal-format>element to use. If this attribute is omitted, then the element establishes the default decimal format used by theformat-number( )function.-
decimal-separator The character that separates the integer part from the fractional part in a floating-point number. This is a period (decimal point) in English and a comma in French. It may be something else again in other languages.
-
grouping-separator The character that separates groups of digits (e.g., the comma that separates every three digits in English).
-
infinity The string that represents IEEE 754 infinity; infinity by default.
-
minus-sign The character prefixed to negative numbers; a hyphen by default.
-
NaN The string that represents IEEE 754 Not a Number; NaN by default.
-
percent The character that represents a percent; % by default.
-
per-mille The character that represents a per mille; #x2030 by default.
-
zero-digit The character that represents zero in a format pattern; 0 by default.
-
digit The character that represents a digit in a format pattern; # by default.
-
pattern-separator The character that separates positive and negative subpatterns in a format pattern; a semicolon (;) by default.
<xsl:decimal-format [name ="
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