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

Can a step have both primary document and parameter input ports?

From: Leif Warner <abimelech@gmail.com>
Date: Sun, 20 Sep 2009 16:46:55 -0700
Message-ID: <54d4ec0f0909201646se8743f6m1e42ee6264277978@mail.gmail.com>
To: XProc Dev <xproc-dev@w3.org>
The text in the draft says:

> A document that reads:
>  <p:pipeline some-attributes> some-content </p:pipeline>
> can be interpreted as if it read:
> <p:declare-step some-attributes>
> <p:input port='source' primary='true'/>
> <p:input port='parameters' kind='parameter' primary='true'/>
> <p:output port='result' primary='true'/>
> some-content
> </p:declare-step>
With both the document and parameter input ports explicitly marked primary,
whereas this fails on Calabash with:

> Error  : Pipeline failed: err:XS0030: null  It is a static error to specify
> that more than one input port is the primary.

Does 'primary' mean primary port of that kind, or primary port in that
direction, period?
Received on Sunday, 20 September 2009 23:54:01 UTC

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