xsl-list
[Top] [All Lists]

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

2004-02-10 17:06:06
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.

I hooked up a TraceListener:
    TraceManager traceManager =
((TransformerImpl)transformer).getTraceManager ();
    traceManager.addTraceListener(new MyTraceListener
());

But this looks more like for debugging and I still saw
the output from my <xsl:message>es in stderror.

What I would really like is to be able to register a
listener and have my listener called with the text
output from each <xsl:message> so I can call into my
tracing facility.

Thanks,

IL

Ian

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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



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