On 24/08/2011 16:04, Florent Georges wrote:
> Hi Mike,
>
> Thanks to Norm, I've just discovered the Initializer class,
> associated to the -init option. That's a very good news to in
> order provide a more complex configuration of Saxon than allowed
> by the other options of the command line, thanks!
>
> I am just wondering how a user is supposed to report a fatal
> error, since the initialize() method does not allow any checked
> exception to be thrown. Shouldn't it allow something like a
> TransformerConfigurationException, or an XPathException?
>
> Regards,
>
Good point. I will add a checked exception. Meanwhile, I guess you just
have to throw an unchecked one. As it's only invoked from the command
line, the only difference is that you'll get a stack trace.
Michael Kay
Saxonica
|