Numbering
<xsl:number
| value="expression" | converted to number
|
| format="..."
| default: 1.
|
| level="..." | any/single/multiple
|
| count="..." | select what to count
|
| from="..."
| select where to start counting
|
| lang="..." |
|
| letter-value="..." |
|
| grouping-separator="..." |
|
| grouping-size="..."/> |
|
- If value is specified, that value is used.
- Otherwise, the action is determined by level:
- level="any": number of preceding count
nodes occuring after from
(example use: numbering footnotes)
- level="single" (the default): as any but only
considers ancestors and their siblings
(example use: numbering ordered list items)
- level="multiple": generates whole list of numbers
(example use: numbering sections and subsections at the same time)
- lots and lots of details omitted here...