Re: Calabash: get the p:error input out of an XProcException

Florent,

Your question is a bit strange

p:error only exists in the case of a p:try

In that context, the error cannot be escalated to Java since it's catched
by the p:catch

If there is no try, then there is no p:error, hence no possibility to get
it at the Java level

Having said that, you have probably a clear use case in mind when asking
this and there might be a limitation in Calabash from this side

Hope this helps

Xmlizer

2012/4/26 Florent Georges <fgeorges@fgeorges.org>

>  Hi,
>
>  When executing a pipeline from Java, a p:error step will end up
> throwing an XProcException.  I can get the error code passed by the
> user to p:error out of the XProcException object, but I can I get the
> document passed through the p:error source port? (from the exception
> object)
>
>  As an aside question, how is it possible to writeTo() a port an
> empty document, in Java? (as if one had used p:empty in XProc)
>
>  Regards,
>
> --
> Florent Georges
> http://fgeorges.org/
> http://h2oconsulting.be/
>
>

Received on Sunday, 20 May 2012 11:01:42 UTC