xsl-list
[Top] [All Lists]

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

2004-02-10 20:11:11
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(_at_)oxygenxml(_dot_)com
<oXygen/> XML Editor - http://www.oxygenxml.com/


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



<Prev in Thread] Current Thread [Next in Thread>