You could always do:
 
<xsl:param name="messages" as="xsd:boolean" select="true()"/>
 
<xsl:if test="$messages = true()">
  <xsl:message>...</xsl:message>
</xsl:if>
 
 
Andy.


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 12: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