RE: [xsl] Flagging records that don't match a particular pattern

Subject: RE: [xsl] Flagging records that don't match a particular pattern
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 28 Mar 2007 20:54:18 +0100
> 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