W3C home > Mailing lists > Public > xproc-dev@w3.org > September 2008

Re: Where is my c:result?

From: James Garriss <james@garriss.org>
Date: Fri, 19 Sep 2008 11:38:11 -0400
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <C4F93FA3.898%james@garriss.org>
Now that was an incredibly helpful email; it makes it much easier to grok
inputs and outputs.  Thank you!

James Garriss
http://garriss.blogspot.com




From: Norman Walsh <ndw@nwalsh.com>
Date: Fri, 19 Sep 2008 11:24:17 -0400
To: James Garriss <james@garriss.org>
Cc: XProc Dev <xproc-dev@w3.org>
Subject: Re: Where is my c:result?

James Garriss <james@garriss.org> writes:

> I suppose the former is wrong because the WD says in 5:4:  ©řIt is a static
> error (err:XS0029) to specify a binding for a p:output inside a
> p:declare-step for an atomic step.©÷
>
> So why is the first way an error and the second ok?  They look about the
> same to me.

Conceptually, in order to make the data flow from one step to another,
you have to connect the output end of a pipe on the first step to the
input end of a pipe on the second step.

You could do this by:

1. Labelling each output port with the name of the input port to which
   it should be attached.

2. Labelling each input port with the name of the output port to which
   it should be attached.

3. Allowing both kinds of labels.

The WG decided that option 3 was too confusing. I don't recall off the
top of my head precisely how we arrived at option 2 instead of option
1, but we did.

Having decided that inputs will point to outputs, it's entirely
redundant to allow p:output on an atomic step. The declaration already
says what output ports it has so the p:output can't provide any new
information.

Requiring it to be present would be onerous and verbose. Allowing to
to optionally be present is verbose introduces unnecessary variation
in the syntax.

So we forbid it. Even if Calabash currently gets that part wrong :-)

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | All knowledge is of itself of some
http://nwalsh.com/            | value. There is nothing so minute or
                              | inconsiderable, that I would not rather
                              | know it than not.--Dr. Johnson
Received on Friday, 19 September 2008 15:39:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 19 September 2008 15:39:12 GMT