Re: [xsl] How can I capture output from <xsl:message> for a log

Subject: Re: [xsl] How can I capture output from <xsl:message> for a log
From: "George Cristian Bina" <george@xxxxxxx>
Date: Wed, 11 Feb 2004 05:11:11 +0200
> I am working on a program that uses Xalan to perform
> an XSLT transformation and right now the contents of
> any <xsl:message> elements are going to stderr.  My
> app has a tracing and logging facilities so I would
> prefer to redirect to those.

You should set an ErrorListerner on the Transformer. AFAIK the <xsl:message>
will be reported by Xalan as a warning.
[http://xml.apache.org/xalan-j/apidocs/javax/xml/transform/Transformer.html#
setErrorListener(javax.xml.transform.ErrorListener)]

Best Regards,
 George
-------------------------------------------------------
George Cristian Bina mailto:george@xxxxxxxxxxxxx
<oXygen/> XML Editor - http://www.oxygenxml.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread