You are reading O'Reilly XForms Essentials by Micah Dubinko. (What is this?) - Buy XForms Essentials Online

Name

position( ) — returns the context position from the expression evaluation

Synopsis

Defined in: XPath 1.0
Parameters: <none>
Return type: number

This example returns the 4th para element child of the context node (or an empty node-set if there is no 4th para element):

para[position()=4]