Saxon allows you to call setMessageEmitter() to register a listener for the output of xsl:message. Typically you can subclass the standard MessageEmitter. This mechanism was introduced before JAXP introduced the idea of sending message output to the ErrorListener, a feature which I never implemented because I couldn't see how to do it without breaking existing applications.
Michael Kay

From: [] On Behalf Of Jim Garrison
Sent: 16 January 2008 21:49
Subject: [saxon] Transformer.setErrorListener() and <xsl:message...>

Does Saxon B9 allow capturing the text of <xsl:message…> tags?


I tried attaching an ErrorListener to the Transformer with setErrorListener(), but the listener’s methods are not invoked for <xsl:message>, with or without terminate=”yes”.