position() The position() function returns a number equal to the context position from the current context. Syntax: number position() Arguments: None. Result: A number, the position of the current node in the evaluation context. Defined: XPath, section 4.1. NS support: Supported.
The position() function returns a number equal to the context position from the current context.
number position()