W3C home > Mailing lists > Public > xproc-dev@w3.org > June 2009

Re: Bug in Calabash? The input port for p:parameters is (incorrectly) automatically binding to its prior step

From: Norman Walsh <ndw@nwalsh.com>
Date: Mon, 29 Jun 2009 08:23:41 -0400
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <m2zlbrw7n6.fsf@nwalsh.com>
"Costello, Roger L." <costello@mitre.org> writes:

> Hi Folks,
> The specification says that p:parameters has an input port, parameters, which is not primary. So, it shouldn't automatically connect to its prior step. Thus, this pipeline should fail, but it doesn't:
> <p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
>                 xmlns:c="http://www.w3.org/ns/xproc-step"
>                 name="myPipeline">
>     <p:input port="parameters" kind="parameter">
>         <p:inline>
>                 <c:param name="Title" value="First and Last Freedom" />
>         </p:inline>
>     </p:input>
>     <p:output port="result" sequence="true">
>         <p:pipe step="params" port="result" />
>     </p:output>
>     <p:parameters name="params" />
> </p:declare-step>
> Do you agree that it should fail?

Actually, according to 5.1.2, it shouldn't fail, it should simply be bound
to an empty sequence:

  If no binding is provided for a parameter input port other than the
  primary parameter input port, then the port will be bound to an
  empty sequence of documents.

Fixed in subversion for Calabash v.next.

                                        Be seeing you,

Norman Walsh <ndw@nwalsh.com> | Weeks of programming can save you hours
http://nwalsh.com/            | of planning.

Received on Monday, 29 June 2009 12:24:29 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:05 UTC