last() The last() function returns a number equal to the position of the last node in the current context. Syntax: number last() Arguments: None. Result: A number equal to the number of nodes in the current context. If there are 10 nodes, last() returns 10. Defined: XPath, section 4.1. NS support: Supported.
The last() function returns a number equal to the position of the last node in the current context.
number last()