W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > June 2007

position() after match in component

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
Message-Id: <20070607125141.92BC0219183@macpro.inf.ed.ac.uk>

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:43 UTC