Re: Calabash problem - primary port(s)

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 UTC