The Xalan processor will throw javax.xml.transformer.TransformerException.  If a wrong extension is called, you don't have to handle it manually.

XSLTC supports the use of extension functions implemented in external java classes, if a wrong method is called, you have to provide a user friendly error message by yourself.

For more detail please refer to http://xml.apache.org/xalan-j/extensions_xsltc.html

Christine Li
XSLT Development
IBM Toronto Lab
Tel: (905)413-2601
Email: [EMAIL PROTECTED]



Nils Kaiser <[EMAIL PROTECTED]>

09/05/2006 05:51 AM

To
xalan-j-users@xml.apache.org
cc
Subject
Throwing exceptions in extensions





Hello,

what type of exception should be thrown in an extension for XSLTC/Xalan
for error handling? I have a complex extension and want to provide error
messages to the user if a wrong extension call was made. Will the error
be located or do I have to do that manually?

Thx,

Nils


Reply via email to