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 17:14:20 +0100
Message-ID: <a0ad8ffe0812070814w25b6b135tc7818b18c4ff087c@mail.gmail.com>
To: "Norman Walsh" <ndw@nwalsh.com>
Cc: "XProc Dev" <xproc-dev@w3.org>

On Sun, Dec 7, 2008 at 5:11 PM, Norman Walsh <ndw@nwalsh.com> wrote:
> "Dave Pawson" <dave.pawson@gmail.com> writes:
>
>> 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?
>
> I bet that's a calabash bug. I bet it's not prepared for p:output to contain
> both a p:pipe and a p:document. I think that probably ought to work though.
>

I agree it should work but the result would be the result of
p:identity step and op.xml ... which I dont think DaveP was expecting.

ta, J
Received on Sunday, 7 December 2008 16:14:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 7 December 2008 16:14:56 GMT