Name
<xsl:decimal-format>
Synopsis
<xsl:decimal-format [name =”name“] [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
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 whichxsl:decimal-formatelement 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; ...
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