XSLT » XPath Core Functions » position

Syntax:
number = position()

The position function returns the position number in the current node list of the node that is currently being processed by an xsl:for-each or xsl:apply-templates element. There are no arguments.