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

primary ports and automatic connections

From: James Garriss <james@garriss.org>
Date: Wed, 17 Sep 2008 19:30:09 -0400
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <C4F70B41.824%james@garriss.org>
from:  2:3 Primary Inputs and Outputs

łThe special significance of primary input and output ports is that they are
connected automatically by the processor if no explicit binding is given.˛

Is it valid to assume then that if an input port is not a primary port, it
is not automatically connected by the processor?

I ask because when I run this pipeline in Calabash 0.6.0:

<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
    <p:input port="source">
    <p:output port="result"/>

I get this output:

<foo xmlns:p="http://www.w3.org/ns/xproc">bar</foo>

This puzzles me, because identity has no primary ports:

<p:declare-step type="p:identity">
     <p:input port="source" sequence="true"/>
     <p:output port="result" sequence="true"/>

I expected either no output or an error message.

Do I misunderstand primary ports?  Or is Calabash automatically connecting
something it should not?  Or am I overlooking something?

I appreciate any insight,

James Garriss
Received on Wednesday, 17 September 2008 23:30:54 UTC

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