xsl:number

xsl:number

The <xsl:number> element counts things sequentially. It can also be used to quickly format a number.

Syntax

<xsl:number
	count=EXPRESSION
	level="single" | "multiple" | "any"
	from=EXPRESSION
	value=EXPRESSION
	format=FORMAT-STRING
	lang=XML:LANG-CODE
	letter-value="alphabetic" | "traditional"
	grouping-separator=CHARACTER
	grouping-size=NUMBER  />

Required Attributes

None.

Optional Attributes

count
Specifies what in the source tree should be numbered sequentially. It uses an XPath expression.
level
Defines how levels of the source tree should be considered in generating sequential numbers. It has three valid values: single, multiple, and any. The default value is single:
<