<?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>28240</bug_id>
          
          <creation_ts>2015-03-19 12:48:54 +0000</creation_ts>
          <short_desc>[XSLT30] conflicting text in the section on default modes and suggestion to allow #current</short_desc>
          <delta_ts>2015-10-29 09:50:30 +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>Member-only Editors Drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</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>118681</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-03-19 12:48:54 +0000</bug_when>
    <thetext>The introduction text on default modes (3.8.2 The [xsl:]default-mode Attribute) contains a conflicting statement, in the introduction, the value #default is allowed, but then the text says in the second para:

&lt;quote&gt;
The value MUST either be an EQName, or the token #unnamed which refers to the unnamed mode. It is not necessary for the referenced mode to be explicitly declared in an xsl:mode declaration.
&lt;/quote&gt;

In other words, the &quot;must&quot; in this sentence seems to remove the ability to use #default as mode name.

Also, I think it will make sense to extend the above sentence with something like &quot;[...], regardless of the setting of xsl:package/@declared-modes&quot;.

In addition, I was wondering if it makes sense to allow #current, which will have the same meaning as using &lt;xsl:apply-templates mode=&quot;#current&quot;/&gt; and is a shortcut for a common programming style where inside an xsl:template, one typically wants to stay within the current mode, unless you specify otherwise.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119424</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-04-10 16:36:01 +0000</bug_when>
    <thetext>&gt; in the introduction, the value #default is allowed

My mistake, the text refers to the mode attribute of xsl:template/apply-templates:

&gt; &quot;When the mode attribute of these elements is omitted, or when it contains 
&gt; the value #default, [...]&quot;

Leaving the bug open for possible inclusion of #current here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119576</commentid>
    <comment_count>2</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-04-16 17:13:25 +0000</bug_when>
    <thetext>Today the WG discussed the inclusion of #current in @default-mode and decided not to add this feature, therefore I am resolving this bug as WORKSFORME.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>