|
[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








