<?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>29084</bug_id>
          
          <creation_ts>2015-08-25 19:29:33 +0000</creation_ts>
          <short_desc>[xslt 3.0]default-mode - ancestor, or ancestor-or-self?</short_desc>
          <delta_ts>2015-10-29 12:42:26 +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>All</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="Michael Kay">mike</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>122776</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-08-25 19:29:33 +0000</bug_when>
    <thetext>We say in 3.7.2:

When the mode attribute of these elements is omitted, or when it contains the value #default, then the mode is taken from the [xsl:]default-mode attribute of the innermost ancestor element that has such an attribute.

I think it should be the innermost ancestor-or-self element, for consistency with other attributes such as default-collation, namespace declarations, etc.

(In any case the current text is ambiguous as to whether it&apos;s the innermost ancestor of the mode attribute, or of the element from which it is omitted.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123065</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-09-03 21:22:24 +0000</bug_when>
    <thetext>The proposal was accepted.

I have rewritten the relevant text as:

More specifically, when an element &lt;var&gt;E&lt;/var&gt; matches the pattern &lt;code&gt;(xsl:template[@match] | xsl:apply-templates)[not(@mode) or normalize-space(@mode) eq &quot;#default&quot;]&lt;/code&gt; (using the Unicode codepoint collation), then the effective value of the &lt;code&gt;mode&lt;/code&gt; attribute is taken from the value of the &lt;code&gt;[xsl:]default-mode&lt;/code&gt; attribute of the innermost ancestor-or-self element of &lt;var&gt;E&lt;/var&gt; that has such an attribute.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>