You are reading O'Reilly XForms Essentials by Micah Dubinko. (What is this?) - Buy XForms Essentials Online
last( ) — returns the context size from the expression evaluation context
This example returns the last para element child of the context node:
para[position()=last()]