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

Re: Calabash problem - primary port(s)

From: James Fuller <james.fuller.2007@gmail.com>
Date: Sun, 7 Dec 2008 16:08:59 +0100
Message-ID: <a0ad8ffe0812070708xf9b994fq3f80636c1e5364fd@mail.gmail.com>
To: "Dave Pawson" <dave.pawson@gmail.com>, xproc-dev <xproc-dev@w3.org>

checkout

http://www.w3.org/XML/XProc/docs/langspec.html#ex1

is a good example of p:output getting bound .... the logic especially
starts making sense in multi branch xproc.

hth, Jim Fuller

On Sun, Dec 7, 2008 at 3:58 PM, James Fuller
<james.fuller.2007@gmail.com> wrote:
> problem here is your expectation of port binding to result port.
>
> note also that there a few useful defaults in XProc with respect to
> primary ports ... e.g. usually you can just leave it undefined unless
> of course you have multiple input and output ports.
>
> cheers, Jim Fuller
>
> On Sun, Dec 7, 2008 at 2:36 PM, Dave Pawson <dave.pawson@gmail.com> wrote:
>>
>> Still puzzling over ports.
>>
>>
>> <p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
>>  <p:input port="source" primary='true' >
>>    <p:document href="doc.xml"/>
>>  </p:input>
>>  <p:output port="res" primary='true'>
>>    <p:pipe step='ident' port='result'/>
>>    <p:document href="op.xml"/>
>>  </p:output>
>>  <p:identity name='ident'/>
>>
>> </p:declare-step>
>>
>>
>> Running this through Calabash,
>>
>> Error  : Pipeline failed: err:XS0030: null  It is a static error to
>> specify that more than one input port is the primary.
>>
>> I can only see one port marked as primary?
>>
>>
>>
>>
>> --
>> Dave Pawson
>> XSLT XSL-FO FAQ.
>> Docbook FAQ.
>> http://www.dpawson.co.uk
>>
>>
>
Received on Sunday, 7 December 2008 15:09:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 7 December 2008 15:09:36 GMT