Kay, Michael | 11 Jun 2002 17:00

RE: Add assert element


A nice-to-have, but you can achieve the same effect today with

<xsl:if test="not(assertion)">
  <xsl:message terminate="yes">Failed here!</xsl:message>
</xsl:if>

Michael Kay

> -----Original Message-----
> From: Werner Donné [mailto:werner.donne <at> re.be] 
> Sent: 11 June 2002 13:17
> To: xsl-editors <at> w3.org
> Subject: Add assert element
> 
> 
> 
> Hi,
> 
> In order to prevent fatal errors from passing by unnoticed it 
> would be 
> interesting to
> have an "assert" element with a "test" attribute, just like 
> with the "if" and 
> "when"
> elements. The contents of the element could be anything that 
> generates a 
> message.
> Whenever the evaluation of the test would fail, processing 
> would stop after 
(Continue reading)


Gmane