[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: Re: How can I capture output from <xsl:message> for a log
From: Ian Lang <ianplang@xxxxxxxxx>
Date: Wed, 11 Feb 2004 12:20:31 -0800 (PST)
xsl message errorlistener
Yep, that worked great.  Thanks a lot.

The api has a setErrorListener method which I gather
means the default error listener is out of the picture
once I set mine.  All I want to do is log the
messages.  So my plan is to create a class that
implements ErrorListener and takes another
ErrorListener as a parameter to the constructor and
then my implementation will log what I want and
forward the calls to the passed in ErrorListener
(unless it is null of course).

Then the setup would look like this:
    transformer.setErrorListener(new
MyLoggingErrorListner
(transformer.getErrorListener()));

Does anyone see any flaws in my plan?

IL

--- "George Cristian Bina" <george@xxxxxxx>
 wrote:
<snip>
> 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)]
<snip>

__________________________________
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.