Easy Tutorial
❮ El Message Xsl Value Of ❯

XSLT <xsl:number> Element



Definition and Usage

The <xsl:number> element is used to determine the integer position of the current node in the source. It is also used for formatting numbers.


Syntax

Attributes

Attribute Value Description
count expression Optional. An XPath expression that specifies the nodes to count.
level single <br>multiple <br>any Optional. Controls how the sequence numbers are assigned. Possible values: single (default)<br> multiple<br> any (not supported by Netscape 6)
from expression Optional. An XPath expression that specifies where to start counting.
value expression Optional. Specifies a user-provided number to replace the generated sequence number.
format formatstring Optional. Defines the output format of the number. Possible values: format="1" results in 1 2 3 . . <br> format="01" results in 01 02 03 (not supported by Netscape 6)<br> format="a" results in a b c . . (not supported by Netscape 6)<br> format="A" results in A B C. . (not supported by Netscape 6)<br> format="i" results in i ii iii iv . . (not supported by Netscape 6)<br> format="I" results in I II III IV . . (not supported by Netscape 6)
lang languagecode Optional. Specifies the language alphabet used for numbering. (not supported by Netscape 6)
letter-value alphabetic <br>traditional Optional. Specifies whether the numbering for the selected language is an alphabetic sequence ("alphabetic") or another sequence ("traditional"). The value "alphabetic" specifies an alphabetic sequence; the value "traditional" specifies another sequence. The default is "alphabetic".
grouping-separator character Optional. Specifies what character to use to separate groups or numbers. The default is a comma.
grouping-size number Optional. Specifies the number of digits in each group separated by the grouping-separator character. The default is 3.

Example 1

Example 2

Example 3

Example 4


❮ El Message Xsl Value Of ❯