<?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>2269</bug_id>
          
          <creation_ts>2005-09-19 20:07:43 +0000</creation_ts>
          <short_desc>Current template rule within xsl:for-each-group/xsl:fallback</short_desc>
          <delta_ts>2005-09-28 14:46:25 +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>6342</commentid>
    <comment_count>0</comment_count>
    <who name="Anton Lapounov">antonl</who>
    <bug_when>2005-09-19 20:07:45 +0000</bug_when>
    <thetext>The table in section &quot;5.4.4 Additional Dynamic Context Components used by 
XSLT&quot; specifies that the current template rule (CTR) is cleared by xsl:for-
each-group, xsl:matching-substring, xsl:non-matching-substring. It implies 
that the CTR is NOT cleared when an XSLT processor executes xsl:fallback 
children of xsl:analyze-string, however CTR is always cleared within 
xsl:fallback children of xsl:for-each-group.

Moreover, the previous row of the table specifies that the focus is set by 
xsl:analyze-string - i.e. not only within its xsl:matching-substring and 
xsl:non-matching-substring children, but also within its xsl:fallback children.

Though it may concern only XSLT 2.0 processors working in backwards-compatible 
mode, or early XSLT processors that do not implement XSLT 2.0 in full, it 
makes sense to be consistent in both cases.

The proposal is to specify that CTR is cleared by (and the focus is set 
by) &quot;successful&quot; execution of xsl:for-each-group, xsl:analyze-string, when no 
fallbacks performed.

If you decide this clarification is not worth it, we at least should be 
consistent in putting (xsl:analyze-string) OR (xsl:matching-substring, xsl:non-
matching-substring) in the first two rows of the table.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6366</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-09-20 13:50:33 +0000</bug_when>
    <thetext>An XSLT 2.0 processor never executes the xsl:fallback child of an
xsl:analyze-string or xsl:for-each-group instruction (even in backwards
compatibility mode), so the 2.0 spec doesn&apos;t need to say what should happen if
it does. It&apos;s up to the 1.0 spec to define what an XSLT 1.0 processor does.

I agree that editorially, it might be clearer to remove xsl:matching-substring
and xsl:non-matching-substring from the second row of the table, and put
xsl:analyze-string there instead. But there&apos;s no substantive difference.

Michael Kay (personal response)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6434</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-09-24 22:43:13 +0000</bug_when>
    <thetext>The XSL Working Group agreed that it was unnecessary to describe the action of
an xsl:fallback child of xsl:for-each-group or xsl:analyze-string, since such an
xsl:fallback instruction is ignored by an XSLT 2.0 processor.

The WG also accepted the change proposed in the second paragraph of my
provisional response.

I am marking this as fixed; if there are any problems with this resolution,
please re-open the bug.

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

    </bug>

</bugzilla>