Another way(*) you could do this is
 
<xsl:message use-when="contains(system-property('xslt.debug'), 'A')">message</xsl:message>
 
allowing you to control which xsl:message instructions are active by setting Java system properties.
 
Michael Kay
http://www.saxonica.com/
 
(*) Martin, if you haven't see the other responses you can find them on http://saxon.markmail.org/


From: saxon-help-bounces@lists.sourceforge.net [mailto:saxon-help-bounces@lists.sourceforge.net] On Behalf Of martin.me.roberts@bt.com
Sent: 18 March 2008 16:08
To: saxon-help@lists.sourceforge.net
Subject: [saxon] getting variable debug

Hi,
 is there a way to switch on or off the xsl:message output?  I was rather hoping for a commons logging equivalent that would allow types of messages to get set?
 
martin