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

Re: Steps with non-connected outputs

From: Norman Walsh <Norman.Walsh@Sun.COM>
Date: Fri, 13 Apr 2007 14:25:27 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <87veg02ktk.fsf@nwalsh.com>
/ Alex Milowski <alex@milowski.org> was heard to say:
| In my model, we have the following time sequence for the lifetime of
| a step:
|
| 1. Initialization of the component happens.  This is typically while the
|    pipeline itself is being initialized.  This is a event that probably
| happens
|    outside our specification.
|
| 2. Resources that are statically known and bound to input ports are made
|    available to  steps.  This allows steps to detect errors staticially (
| e.g. I can't
|    locate or compile the XSLT transform).  This is an optimization but a
| very
|    important one.
|
| 3. Output ports are bound to their recipients.
|
| 4. The pipeline starts and the step is notified.
|
| 5. Some sequence of documents are received (or "pulled") on the
|    input ports for the step.
|
| 6. The pipeline ends and the step is notified.
|
| I think our specification needs to allow for 1-3 but needs to focus on
| 4-6 as standard semantics.

That is waaayyyy more than we want to say. Or at least, it's way more
than *I* want to say. I think it's something like this:

1. Initialization of the component happens.

Clearly outside our scope.

2. The pipeline starts running.

Well, duh, how else is anything ever going to happen.

3. Each step is run. Steps that occur inside for-each may run more than
   once.

4. Each step reads as much of its input as it wants. There's no
   gaurantee that all input is avialable when execution begins. Steps
   may have to block waiting for input. There's no gaurantee that all
   steps read all their inputs.

5. Steps produce their output, if any.

6. Each step stops.

7. The pipeline stops.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
XML Standards Architect
Sun Microsystems, Inc.

Received on Friday, 13 April 2007 18:25:35 GMT

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