<?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>2270</bug_id>
          
          <creation_ts>2005-09-19 20:45:13 +0000</creation_ts>
          <short_desc>[XSLT 2.0] Current template rule and current mode (editorial)</short_desc>
          <delta_ts>2005-09-28 14:47:16 +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 2.0</component>
          <version>Last Call drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/2005/WD-xslt20-20050915/#additional-dynamic-context</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anton Lapounov">antonl</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>6343</commentid>
    <comment_count>0</comment_count>
    <who name="Anton Lapounov">antonl</who>
    <bug_when>2005-09-19 20:45:14 +0000</bug_when>
    <thetext>Section 5.4.4 says that the current mode is &quot;the mode in which the current 
template rule was invoked&quot;. However, section 6.7 specifies cases when the 
current template rule (CTR) becomes null, and the current mode, according to 
section 6.5, preserves its value in those cases.

I found it confusing, and, in my opinion, it might help other readers if the 
spec clearly says that the current mode is still defined even if CTR becomes 
null.

Also, I found two appearances of the term &quot;current template&quot;, I think they 
should be changed to &quot;current template rule&quot; for the sake of consistency.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6368</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-09-20 14:09:12 +0000</bug_when>
    <thetext>I think this point is largely editorial. I&apos;m not sure how best to respond to it.
The sentence in 5.4.4 is intended to give a brief introduction to the concept of
&quot;current mode&quot;, and it is clearly linked to the more complete definition of the
term in section 6.7. Perhaps I should just add a word in 5.4.4 that emphasises
that the explanation is informal, like &quot;generally&quot; or &quot;normally&quot;.

I agree that it would be a good idea to use the term &quot;current template rule&quot;
consistently, rather than &quot;current template&quot;. This also means (see comment on
your other bug report) fixing the problem that the current template is set to
the initial template even if it isn&apos;t a template rule.

Michael Kay (personal response)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6435</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-09-24 23:15:45 +0000</bug_when>
    <thetext>The XSL Working Group asked the editor to propose revised wording for the
relevant rule to clarify the intent. The WG also accepted that &quot;current
template&quot; should always be &quot;current template rule&quot; (2 occurrences found).

Proposed revision: change

The current mode, which is the mode
in which the current template rule was invoked: 
see &lt;specref ref=&quot;modes&quot;/&gt;;

to

The current mode, which is the mode set by the most recent call of
xsl:apply-templates (for a full definition see &lt;specref ref=&quot;modes&quot;/&gt;);

If there are any problems with this resolution, please reopen the bug.

Michael Kay
XSLT 2.0 editor</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>