- From: Norman Walsh <Norman.Walsh@Sun.COM>
- Date: Thu, 01 Feb 2007 09:36:34 -0800
- To: public-xml-processing-model-wg@w3.org
- Message-ID: <87ejp9vkyl.fsf@nwalsh.com>
/ Alex Milowski <alex@milowski.org> was heard to say:
| In 2.2 Inputs and Outputs we say:
|
| "Each component declares its input and output ports. [Definition: The input
| ports declared on a component are its *declared inputs*.] [Definition: The
| output ports declared on a component are its *declared outputs*.]"
|
| In 4.2.8 we say:
|
| "The p:viewport component has exactly one input named "source" and exactly
| one output named "result"."
|
| In 4.1.2 Associating Documents with Ports we say:
|
| "When a pipe is used to bind an input, the specified port must be in the *
| outputs* of the current context. When a pipe is used to bind an output, the
| specified port must be in the *inputs* of the context."
|
| As such, that means we've got the binding of "source" in the viewport's
| context's inputs and "result" in the
| viewport's context's outputs. That means it isn't available according to
| 4.1.2 in the outputs of the current context
| and can't be bound to by a contained step.
You forgot 3.3:
The context of a viewport is its inherited context modified as follows:
* All of the declared inputs of the viewport are added to the
outputs in the context.
* The union of all the declared outputs of the contained
components are added to the outputs in the context.
* All of the declared parameters of the viewport are added to the
parameters in the context.
* The port named ¡Ècurrent¡É becomes the default input port.
(I still think there might be value in collapsing sections 3 and 4 into
a single section so that this sort of confusion was less likely.)
Be seeing you,
norm
--
Norman Walsh
XML Standards Architect
Sun Microsystems, Inc.
Received on Thursday, 1 February 2007 17:36:57 UTC