MDN’s new design is in Beta! A sneak peek: https://blog.mozilla.org/opendesign/mdns-new-design-beta/


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

Syntax

last()

Returns

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

Notes

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

Defined

XPath 1.0 4.1

Gecko support

Supported.

Document Tags and Contributors

 Contributors to this page: Sheppy, Mgjbot, Fredchat, Ptak82, Momoko, Jonnyq
 Last updated by: Sheppy,