W3C home > Mailing lists > Public > xproc-dev@w3.org > February 2011

Re: try/catch not behaving correctly in pipeline. No way to retrieve the c:error elements within c:errors

From: Romain Deltour <rdeltour@gmail.com>
Date: Wed, 2 Feb 2011 20:04:25 +0100
Message-Id: <183DF8BC-5141-4F6C-AD71-E35AFE70A07E@gmail.com>
To: XProc Dev <xproc-dev@w3.org>
It looks like a bug to me (as far as I understand)...

Romain.

Le 2 févr. 11 à 17:08, Alam Sher a écrit :

> Why in the world I would get following output from this pipeline  
> using calabash?
>
>
> **************OUTPUT****************
> <c:errors xmlns:c="http://www.w3.org/ns/xproc-step"/>
>
> Should I not receive <c:error> children in here?
>
>
>
>
>
>
> ******************My Pipeline: *******************
>
> <?xml version="1.0"?>
> <p:declare-step name="vomsPipe" xmlns:p="http://www.w3.org/ns/xproc"
>     xmlns:c="http://www.w3.org/ns/xproc-step"
>     xmlns:cx="http://xmlcalabash.com/ns/extensions"
>     version="1.0">
>
>     <p:input port="source">
>         <p:empty/>
>     </p:input>
>     <p:output port="result">
>         <p:pipe step="try" port="result"/>
>     </p:output>
>
>     <p:import href="http://xmlcalabash.com/extension/steps/library-1.0.xpl 
> "/>
>
>     <p:try name="try">
>         <p:group>
>             <p:output port="result"/>
>             <p:error name="sp-error" code="rc-non-zero" code- 
> prefix="advoss">
>                 <p:input port="source">
>                     <p:inline>
>                         <sometag>somevalue</sometag>
>                     </p:inline>
>                 </p:input>
>             </p:error>
>         </p:group>
>         <p:catch name="catch">
>             <p:output port="result"/>
>             <p:identity>
>                 <p:input port="source">
>                     <p:pipe step="catch" port="error"/>
>                 </p:input>
>             </p:identity>
>         </p:catch>
>     </p:try>
> </p:declare-step>
>
>
>
> -- 
> Alam Sher Khan
> Lead Engineer, Billing & Integration
> http://www.AdvOSS.com
> +92 321 512 6543
Received on Wednesday, 2 February 2011 19:05:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 2 February 2011 19:05:03 GMT