<xsl:decimal-format>

A <xsl:decimal-format> element defines the default decimal format for number to text conversion.

<xsl:decimal-format
  name = qname 
  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 /> 
name

An optional name that can be used to refer to this decimal format; if no name is given, this declaration sets the default decimal format

decimal-separator

The decimal separator character ("." for example)

grouping-separator

The grouping separator character (",")

infinity

The string to use to represent infinity ("Infinity")

minus-sign

The character to use to represent negative numbers ("-")

NaN

The string to use to represent "not a number" ("NaN")

percent

The percent character ("%")

per-mille

The per-mille character ("‰")

zero-digit

The character used in format strings to represent a digit where a missing digit will show as this character ("0")

digit

The character used in format strings to represent a digit where a missing digit will be absent ("#")

pattern-separator

The character used to separate format strings (";")

All of these attributes, and the operation of the format number function, are interpreted according to the Java JDK 1.1 definition of the DecimalFormat (http://java.sun.com/products/jdk/1.1/docs/api/java.text.DecimalFormat.html) class.