<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 } />
count: A Patterns that specifies what nodes should be counted at those levels.
value: specifies the value to be used as the number
format: specifies the format to be output
grouping-separator: a char to separate large numbers
grouping -separator: the number of digits in a group default to be 3
Hierarchical numbers are often seen in technical documents
<xsl:number level="multiple" count="Channel| Program | CastMember" format="1-1.A" />
by default the value of the number is depend on the source document to use number from the current document, use position() to get the current value
For complete reference see http://msdn.microsoft.com/en-us/library/ms256084