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

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

From: Alam Sher <alam.sher@advoss.com>
Date: Wed, 02 Feb 2011 21:08:44 +0500
Message-ID: <4D49818C.8050502@advoss.com>
To: xproc-dev@w3.org
Why in the world I would get following output from this pipeline using 

<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"

<p:input port="source">
<p:output port="result">
<p:pipe step="try" port="result"/>

<p:import href="http://xmlcalabash.com/extension/steps/library-1.0.xpl"/>

<p:try name="try">
<p:output port="result"/>
<p:error name="sp-error" code="rc-non-zero" code-prefix="advoss">
<p:input port="source">
<p:catch name="catch">
<p:output port="result"/>
<p:input port="source">
<p:pipe step="catch" port="error"/>

*Alam Sher Khan*
Lead Engineer, Billing & Integration
+92 321 512 6543
Received on Wednesday, 2 February 2011 17:00:48 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:08 UTC