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

Re: Flagging records that don't match a particular pa

Subject: Re: Flagging records that don't match a particular pattern
From: "Grant Slade" <grant.slade@xxxxxxxxx>
Date: Wed, 28 Mar 2007 14:33:35 -0600
Re:  Flagging records that don't match a particular  pa
Thanks Michael - never done something like that before but I will see
where that leads me.

On 3/28/07, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> I have been investigating using xsl:message to try and
> capture problems in my stylesheet.  I find that it does send
> a message to the processor, but I'm unsure how to capture
> that message within the Java application.  Is that possible?

By default in Saxon the output of xsl:message is formatted and sent to
System.err. From Java you can either change the outputstream that it writes
to, or you can nominate your own listener class to be notified of
xsl:message output -

((Controller)transformer).setMessageEmitter(receiver);

Michael Kay
http://www.saxonica.com/

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.