<xsl:number>

The <xsl:number> element counts elements in the source tree (or takes a numeric expression) and inserts a text representation of the resulting number into the result tree.

<xsl:number
  level = "single" | "multiple" | "any"
  count = pattern 
  from = pattern 
  value = number-expression 
  format = { string }
  lang = { nmtoken }
  letter-value = { "alphabetic" | "traditional" }
  grouping-separator = { char }
  grouping-size = { number } />
level

Identifies the counting level

count

Selects the element(s) to count

from

Selects the location where counting should begin

value

A numeric expression to convert to a text representation

format

The format string

lang

The language to use for conversion

letter-value

Selects alphabetic or traditional letter values (in English, alphabetic is the traditional sequence, but that is not true in all languages)

grouping-separator

The grouping separator character (",")

grouping-size

The number of digits in a group (3)