W3C home > Mailing lists > Public > xproc-dev@w3.org > March 2009

Re: trouble with port in iteration

From: Paul Hermans <paul@proxml.be>
Date: Tue, 17 Mar 2009 17:18:58 +0100
Cc: Toman_Vojtech@emc.com
Message-Id: <994A2FE1-7AF2-4B8F-B07A-7B18EAC32479@proxml.be>
To: xproc-dev@w3.org
Hi Toman,

Thanks for the reply.

On 17 Mar 2009, at 16:41, Toman_Vojtech@emc.com wrote:

> Hi,
>
> The pipeline seems correct to me. I have tested it with our XProc  
> processor (I had to play with the paths a bit), and it seems to  
> work. For both valid and invalid documents, the pipeline creates  
> c:result documents with proper content.
> My guess is that there is a p:for-each/p:try/p:catch bug in  
> Calabash. What happens if you try to run this pipeline (a simplified  
> version of yours):
>
> <p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
>                 xmlns:c="http://www.w3.org/ns/xproc-step">
>   <p:output port="result" sequence="true"/>
>
>   <p:for-each>
>     <p:iteration-source>
>       <p:inline><doc1/></p:inline>
>       <p:inline><doc2/></p:inline>
>     </p:iteration-source>
>
>     <p:output port="result" sequence="true">
>       <p:pipe port="result" step="last"/>
>     </p:output>
>
>     <p:try>
>       <p:group>
>         <p:load href="i-do-not-exist.xml"/>
>       </p:group>
>       <p:catch>
>         <p:identity>
>           <p:input port="source">
>             <p:inline><bang/></p:inline>
>           </p:input>
>         </p:identity>
>       </p:catch>
>     </p:try>
>     <p:identity name="last"/>
>   </p:for-each>
> </p:declare-step>
> Do you get the same error?

Yes, same error.


> If so, does anything change if you remove the p:output element  
> inside p:for-each?

No, the error stays the same.

>
> This is just guesswork from my side that may help to isolate the  
> problem. But you will need to wait for a response from Norm; I don't  
> really know Calabash code.
>
>

Thanks for the help.

Paul
Received on Tuesday, 17 March 2009 16:19:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 17 March 2009 16:19:39 GMT