You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Bernhard Lahres <be...@scopus.de> on 2001/04/17 19:09:05 UTC

Proposed Patch: adding message string to exception thrown when terminate property of xsl:message is true

Hi,

I applied the following rather simple patch to our local version of Xalan
(2.0.1). It solves the problem (which is quite severe in our context) that
the user will never see the actual message leading to the termination of
stylesheet processing if  the processing is terminated using xsl:message
with attribute terminate='true'.

I suggest to include this patch in the next release of Xalan.

org.apache.xalan.templates.ElemMessage.java, line 166:

old
<    if(m_terminate)
<      transformer.getErrorListener().fatalError(new
TransformerException("Stylesheet directed termination"));

new
>    if(m_terminate)
>      transformer.getErrorListener().fatalError(new
TransformerException("Stylesheet directed termination. " + data));


Regards

	Bernhard

____________________________________________
Bernhard Lahres
scopus GmbH, Hamburg, Germany
WWW:    http://www.scopus.de