Re: trouble with port in iteration

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 UTC