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

RE: AVT for terminate attribute of xsl:message

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Tue, 9 Apr 2002 14:24:33 +0200
Message-ID: <DFF2AC9E3583D511A21F0008C7E6210602679D12@daemsg02.software-ag.de>
To: "'Jeni Tennison'" <jeni@jenitennison.com>, xsl-editors@w3.org
I've never understood why this attribute isn't an AVT. I'll put it forward.

Michael Kay

> -----Original Message-----
> From: Jeni Tennison [mailto:jeni@jenitennison.com]
> Sent: 09 April 2002 11:22
> To: xsl-editors@w3.org
> Subject: AVT for terminate attribute of xsl:message
> 
> 
> Hi,
> 
> 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}">
>     ...
>   </xsl:message>
> 
> rather than having to do:
> 
>   <xsl:variable name="message">...</xsl:variable>
>   <xsl:choose>
>     <xsl:when test="$terminate-on-error = 'yes'">
>       <xsl:message terminate="yes">
>         <xsl:copy-of select="$message" />
>       </xsl:message>
>     </xsl:when>
>     <xsl:otherwise>
>       <xsl:message>
>         <xsl:copy-of select="$message" />
>       </xsl:message>
>     </xsl:otherwise>
>   </xsl:choose>
> 
> Cheers,
> 
> Jeni
> ---
> Jeni Tennison
> http://www.jenitennison.com/
> 
Received on Tuesday, 9 April 2002 08:24:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:53 GMT