1. Web
  2. XML
  3. XPath
  4. Reference
  5. Functions
  6. last

last

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

Syntax

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.

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.

AltStyle によって変換されたページ (->オリジナル) /