last

The last function returns a number equal to the context size from the expression evaluation context.

last()

An integer equal to the context size from the expression evaluation context.

  • This is often used with the position() function to determine if a particular node is the last in a node-set.

XPath 1.0 4.1

Supported.