xsl:decimal-format

Indicates a set of localisation parameters. If the xsl:decimal-format element has a name attribute, it identifies a named format; if not, it identifies the default format.

Category: declaration
Content: none
Permitted parent elements: xsl:stylesheet ; xsl:transform

Attributes

name?

eqname

A named format; if the attribute is omitted then the default format is used.

decimal-separator?

char

grouping-separator?

char

infinity?

string

minus-sign?

char

exponent-separator?

char

NaN?

string

percent?

char

per-mille?

char

zero-digit?

char

digit?

char

pattern-separator?

char

Details

In practice decimal formats are used only for formatting numbers using the format-number() function in XPath expressions.

With XSLT 3.0, the specification of format-number() has moved into XPath which means it is also available in XQuery.

Links to W3C specifications

XSLT 2.0 Specification

XSLT 3.0 Specification

See also

format-number()

xsl:number