- From: Richard Tobin <richard@inf.ed.ac.uk>
- Date: Thu, 7 Jun 2007 13:51:41 +0100 (BST)
- To: public-xml-processing-model-wg@w3.org
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