<?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>24509</bug_id>
          
          <creation_ts>2014-02-05 03:55:20 +0000</creation_ts>
          <short_desc>Classifying patterns, bind-source and xsl:merge missing in rule #3</short_desc>
          <delta_ts>2014-05-15 14:00:35 +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>
          <cc>abel.online</cc>
    
    <cc>cmsmcq</cc>
          
          <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>99742</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2014-02-05 03:55:20 +0000</bug_when>
    <thetext>Under 19.8.9 Classifying Patterns (http://www.w3.org/TR/xslt-30/#classifying-patterns), the first numbered list, item #3 we say:

&quot;The pattern does not contain (at any depth) a variable reference bound to a variable declared in the bind-group attribute of an xsl:for-each-group instruction.&quot;

This is not complete. A variable reference to a bind-source of xsl:merge-source and a bind-group of xsl:merge should also be included. Perhaps also bind-key?

In addition, the paragraph &quot;A pattern that is not motionless is classified as free-ranging.&quot; seems to be redundant, in the opening paragraph, the same is already said.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100289</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Braaksma">abel.online</who>
    <bug_when>2014-02-11 15:24:25 +0000</bug_when>
    <thetext>You can forget the bind-key, it is atomic, so can be referenced at a deeper level as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100291</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2014-02-11 15:32:38 +0000</bug_when>
    <thetext>We discussed this in Prague and were satisfied that there is a problem; the editor to consider it and come back to the WG if further discussion is needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101230</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-02-24 12:01:18 +0000</bug_when>
    <thetext>If the proposal in bug #24510 (to drop group binding variables and revert to use of current-group() etc) is adopted, then this problem disappears because use of current-group() and current-grouping-key() within a pattern is already disallowed.

If we don&apos;t go down that route, then I think it would make sense to disallow these binding variables within patterns, just as we currently disallow the corresponding functions.

(I think the reason the fucntion calls are disallowed is primarily to do with template match patterns; we don&apos;t want a template to match a node or not depending on the circumstances. This argument doesn&apos;t apply directly to the group binding variables because they are not in scope for template match patterns anyway; but similar arguments extend to their use in other patterns, namely those used on xsl:number and xsl:for-each-group).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104349</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-04-24 14:25:40 +0000</bug_when>
    <thetext>This bug is overtaken by events; the resolution of bug #24510 removes the problem.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>