Path: blob/main/files/en-us/web/xpath/functions/position/index.md
6532 views
------{{ XsltRef() }}
The position function returns a number equal to the context position from the expression evaluation context.
Syntax
Returns
An integer equal to the context position from the expression evaluation context.
Notes
Note that a node's position in a context is not zero-based. The first node has a position of 1.
The context is determined by the rest of the path.
Defined
Gecko support
Supported.