position( )
number
position( )
The position( )
function returns a number equal to the position of
the current node in the context node-set. For most axes, it counts
forward from the context node. However, if the axis in use is
ancestor
, ancestor-or-self
, preceding
, or preceding-sibling
, then it counts
backward from the context node instead.