The position() function returns the value of the context position. When processing a list of items, position() gives the number assigned to the current item in the list, with the first item being numbered as 1. This function takes no arguments.
Data Type | Meaning | |
---|---|---|
Result | xs:integer | A number, the value of the context position. As the name implies, this is context dependent |