xsl-list
[Top] [All Lists]

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

2007-03-28 13:34:05
Thanks Michael - never done something like that before but I will see
where that leads me.

On 3/28/07, Michael Kay <mike(_at_)saxonica(_dot_)com> 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/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--