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

What the semantics of a construct should look like

From: Richard Tobin <richard@inf.ed.ac.uk>
Date: Thu, 28 Sep 2006 17:24:42 +0100 (BST)
To: public-xml-processing-model-wg@w3.org
Message-Id: <20060928162442.2C19A73B135@macintosh.inf.ed.ac.uk>

The semantics of a construct should describe:

 - which external ports are visible to the subpipelines within
   the construct
 - which new ports are provided to those subpipelines by the pipeline
 - what document is available on each of the new ports
   (the documents available on the visible external ports are of
    course those that were avilable to the construct itself)
 - probably something similar about parameters

So the semantics of for-each will state that all the ports visible to
the for-each itself are visible to the sub-pipeline, that an
additional port (the iteration port) is visible, and that during
successive executions of the sub-pipeline, the document available on
the iteration port will be successive portions of the input document
selected by the XPath.

This does not seem to have any compositionality problem.  An inner
for-each that references an outer for-each's iteration port will see
it as a constant, just because the semantics of the outer for-each
specified the document that is available on it for a given iteration.

-- Richard
Received on Thursday, 28 September 2006 16:24:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:48 GMT