W3C home > Mailing lists > Public > xsl-editors@w3.org > April to June 2002

AVT for terminate attribute of xsl:message

From: Jeni Tennison <jeni@jenitennison.com>
Date: Tue, 9 Apr 2002 11:22:03 +0100
Message-ID: <130614912026.20020409112203@jenitennison.com>
To: xsl-editors@w3.org

What do you think about making the terminate attribute of xsl:message
an attribute value template? In some cases it would be really useful
to have a global parameter that controls stylesheet behaviour:

<xsl:param name="terminate-on-error" select="'yes'" />

and then:

  <xsl:message terminate="{$terminate-on-error}">

rather than having to do:

  <xsl:variable name="message">...</xsl:variable>
    <xsl:when test="$terminate-on-error = 'yes'">
      <xsl:message terminate="yes">
        <xsl:copy-of select="$message" />
        <xsl:copy-of select="$message" />


Jeni Tennison
Received on Tuesday, 9 April 2002 06:22:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:44:22 UTC