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

Re: calabash: p:identity with multiple inline

From: James Fuller <james.fuller.2007@gmail.com>
Date: Fri, 12 Dec 2008 16:06:22 +0100
Message-ID: <a0ad8ffe0812120706w44f3731ep761042d88db7da0@mail.gmail.com>
To: Toman_Vojtech@emc.com
Cc: xproc-dev@w3.org

yes, its correct behavior, but I think that we should reconsider
allowing default inputs and outputs to have sequence="true" ...
otherwise its gonna be a FAQ.

I will be doing further testing to understand if there are any
implications to doing this and reporting back.

ta, J

On Fri, Dec 12, 2008 at 4:02 PM,  <Toman_Vojtech@emc.com> wrote:
>
>>  <p:pipeline name="pipeline"
>>             xmlns:p="http://www.w3.org/ns/xproc">
>>
>>    <p:identity name="step1">
>>         <p:input port="source">
>>               <p:inline>
>>                   <root1/>
>>               </p:inline>
>>               <p:inline>
>>                   <root2/>
>>               </p:inline>
>>               <p:inline>
>>                   <root3/>
>>               </p:inline>
>>               <p:empty/>
>>         </p:input>
>>    </p:identity>
>>
>> </p:pipeline>
>>
>> I would expect this to process correctly outputing a sequence of the 3
>> root elements  (I also added a p:empty for good measure) ///// its
>> giving me a XD0007 e.g.
>>
>> Error  : Pipeline failed: err:XD0007: null  If sequence is not
>> specified on p:output, or has the value false, then it is a dynamic
>> error if the step does not produce exactly one document on the
>> declared port.
>>
>> is this a bug in calabash or my misunderstanding ?
>>
>
> This is correct. the "source"/"result" ports of p:pipeline don't allow
> sequences. Look in section 4.1.
>
> Regards,
> Vojtech
>
>
Received on Friday, 12 December 2008 15:06:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 12 December 2008 15:06:57 GMT