Re: Calabash problem - primary port(s)

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 UTC