Back to Content

last

files/en-us/web/xml/xpath/reference/functions/last/index.md

latest529 B
Original Source

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

Syntax

plain
last()

Return value

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

Description

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

Specifications

XPath 1.0 4.1

Gecko support

Supported.