There are some basic node functions:
last() - returns the index of the last node in the current node set.
position() - returns the index of the current node in the current node set.
count(node-set) - returns the size of the node set.
local-name(node-set?) - returns the local name of a node.
namespace-uri(node-set?) - returns the namespace name of a node.
name(node-set?) - returns the QName of a node.