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 } />
Identifies the counting level
Selects the element(s) to count
Selects the location where counting should begin
A numeric expression to convert to a text representation
The format string
The language to use for conversion
Selects alphabetic or traditional letter values (in English, alphabetic is the traditional sequence, but that is not true in all languages)
The grouping separator character (",")
The number of digits in a group (3)