position() after match in component

This is *NOT* about position() in document sequences.

In a component like string-replace, a match pattern is applied to all
the nodes in a document to identify a set of nodes, and another xpath
expression is applied to each matching node (to determine the
replacement text, in the string-replace case).  The context node is
the matching node, but what is the rest of the context, i.e. the
context position and context size?  Is the context position the
position of the node amongst the matching nodes?  Is the context
position the number of matching nodes?

It seems obvious that the answer would be "yes" if the nodes were
obtained from a select expression, but not so obvious given that it is
a match pattern.

-- Richard

Received on Thursday, 7 June 2007 12:51:54 UTC