- From: Norman Walsh <ndw@nwalsh.com>
- Date: Fri, 26 Sep 2008 09:12:58 -0400
- To: XProc Dev <xproc-dev@w3.org>
- Message-ID: <m2abdvm4o5.fsf@nwalsh.com>
James Garriss <james@garriss.org> writes:
> So we can't bind an input port in the declaration. Can we bind one when we
> specify (use) it? IOW, is this legal pipeline code?
Yes. In fact, *all* inputs must be bound when you *use* a step. If you
don't specify a primary input/output port, it'll get bound
automatically.
All *primary* output ports must also be bound (implicitly or
explicitly) when you use a step. Output ports that aren't primary can
be left unbound, in which case any data that flows throw them "falls
on the floor" (i.e. gets silently discarded).
> <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" name="main">
> <p:input port="source">
> <p:document href="BookStore.xml"/>
> </p:input>
> <p:output port="result">
> <p:empty/>
> </p:output>
> <p:sink>
> <p:input port="source"> <!-- can I do
> this? -->
> <p:pipe step="main" port="source"/>
> </p:input>
> </p:sink>
> </p:declare-step>
Perfectly legit.
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | Everything has been said before, but
http://nwalsh.com/ | since nobody every listens we have to
| keep going back and beginning all over
| again.--André Gide
Received on Friday, 26 September 2008 13:13:40 UTC