W3C home > Mailing lists > Public > xproc-dev@w3.org > December 2010

Re: Calabash: p:error

From: Tony Rogers <tony@gonk.net>
Date: Wed, 22 Dec 2010 15:29:47 -0500
Cc: XProc Dev <xproc-dev@w3.org>
Message-Id: <1E23EC6E-B46B-40F3-AD48-ED9D224F7445@gonk.net>
To: Florent Georges <fgeorges@fgeorges.org>
+1 to this idea!  I have been wishing for this (or at least a snipped of the offending XML as a bare minimum) since I started using XProc…

—Tony

On Dec 22, 2010, at 12:13 PM, Florent Georges wrote:

>  Hi,
> 
>  In the implementation of p:error, an XProcException is thrown.  If
> there is an input doc on the port source, its trings value is used as
> the exception message:
> 
>    throw new XProcException(errorCode, doc.getStringValue());
> 
>  Is there any reason why not to get the serialized representation of
> this XML document, instead of its string value?  For instance like:
> 
>    throw new XProcException(errorCode, doc.toString());
> 
>  That results in more readable logs in case we define an error
> vocabulary for an application.
> 
>  Regards,
> 
> -- 
> Florent Georges
> http://fgeorges.org/
> 
Received on Wednesday, 22 December 2010 20:30:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 22 December 2010 20:30:20 GMT