W3C home > Mailing lists > Public > public-qt-comments@w3.org > July 2015

[Bug 28933] [XT30] Change the default for assertions to be OFF

From: <bugzilla@jessica.w3.org>
Date: Fri, 10 Jul 2015 13:18:04 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-28933-523-zbsl7LkUYM@http.www.w3.org/Bugs/Public/>

--- Comment #2 from Abel Braaksma <abel.braaksma@xs4all.nl> ---
(In reply to Michael Kay from comment #1)
> Note, this change means it is no longer possible to control assertion
> enablement in this kind of way:
> <xsl:variable name="ASSERTIONS_ON" select="true()" static="true"/>
> <xsl:assert test="2=2" use-when="$ASSERTIONS_ON"/>

Interesting. But I have always found it extremely cumbersome to have the
requirement to switch assertions on/off by having to use use-when on each and
every xsl:assert, which kind-of violates the whole idea behind assertions as
being a light-weight simple and quick approach to asserting your code.

Your code suggests the requirement or wish to be able to switch assertions
on/off in the stylesheet, which, on the WG meeting was considered a

Which brings us back to the idea of having an enable-assertions as a global
attribute on xsl:stylesheet and xsl:package, with scope to the current package.
I'm still somewhat silently rooting for it ;).

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Friday, 10 July 2015 13:18:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:55 UTC