<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>28933</bug_id>
          
          <creation_ts>2015-07-09 16:53:19 +0000</creation_ts>
          <short_desc>[XT30] Change the default for assertions to be OFF</short_desc>
          <delta_ts>2015-10-29 12:42:31 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XSLT 3.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Abel Braaksma">abel.braaksma</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>121920</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-07-09 16:53:19 +0000</bug_when>
    <thetext>As discussed by mail (see https://lists.w3.org/Archives/Member/w3c-xsl-wg/2015Jun/0012.html, member only) and agreed in the XSLWG meeting of July 9, 2015.

The default for assertions should be OFF instead of ON (current status quo).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121934</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-07-09 23:11:45 +0000</bug_when>
    <thetext>Note, this change means it is no longer possible to control assertion enablement in this kind of way:

&lt;xsl:variable name=&quot;ASSERTIONS_ON&quot; select=&quot;true()&quot; static=&quot;true&quot;/&gt;

&lt;xsl:assert test=&quot;2=2&quot; use-when=&quot;$ASSERTIONS_ON&quot;/&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121939</commentid>
    <comment_count>2</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-07-10 13:18:04 +0000</bug_when>
    <thetext>(In reply to Michael Kay from comment #1)
&gt; Note, this change means it is no longer possible to control assertion
&gt; enablement in this kind of way:
&gt; 
&gt; &lt;xsl:variable name=&quot;ASSERTIONS_ON&quot; select=&quot;true()&quot; static=&quot;true&quot;/&gt;
&gt; 
&gt; &lt;xsl:assert test=&quot;2=2&quot; use-when=&quot;$ASSERTIONS_ON&quot;/&gt;

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 non-necessity. 

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&apos;m still somewhat silently rooting for it ;).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122012</commentid>
    <comment_count>3</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-07-14 04:04:00 +0000</bug_when>
    <thetext>For reference, the proposal in comment#0 was accepted during XSLWG telcon of July 9, 2015, see https://lists.w3.org/Archives/Member/w3c-xsl-wg/2015Jul/0017.html (member only).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>