<?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>30056</bug_id>
          
          <creation_ts>2017-01-28 17:52:36 +0000</creation_ts>
          <short_desc>[XSLT30]Example input and output in streamed grouping example in diff document https://www.w3.org/XML/Group/qtspecs/specifications/xslt-30/html/Overview-diff.html#stream-examples don&apos;t match</short_desc>
          <delta_ts>2017-04-03 20:57:20 +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>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>editorial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Martin Honnen">martin.honnen</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          <cc>sca.w3c</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>128416</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Honnen">martin.honnen</who>
    <bug_when>2017-01-28 17:52:36 +0000</bug_when>
    <thetext>While reading https://www.w3.org/XML/Group/qtspecs/specifications/xslt-30/html/Overview-diff.html#stream-examples I noticed that for the example &quot;Using xsl:source-document with xsl:for-each-group&quot; the input and output don&apos;t match because the input sample has &quot;chapter&quot; elements with &quot;title&quot; child elements (e.g.

 &lt;chapter part=&quot;1&quot;&gt;
    &lt;title&gt;The first chapter of book A&lt;/title&gt;
    ...
  &lt;/chapter&gt;

) while the result document has &quot;title&quot; attributes (e.g. 

    &lt;chapter title=&quot;The first chapter of book A&quot; part=&quot;1&quot;&gt;
      ...
    &lt;/chapter&gt;

) although the XSLT does simply use 

         &lt;xsl:for-each-group select=&quot;chapter&quot; group-adjacent=&quot;data(@part)&quot;&gt;
            &lt;part number=&quot;{current-grouping-key()}&quot;&gt;
               &lt;xsl:copy-of select=&quot;current-group()&quot;/&gt;
            &lt;/part&gt;
         &lt;/xsl:for-each-group&gt;

so it does not modify the &quot;chapter&quot; elements. The document https://www.w3.org/XML/Group/qtspecs/specifications/xslt-30/html/#stream-examples does not have this problem, so somehow the example in the diff.html is different from the one in the spec document.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128417</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2017-01-28 18:23:04 +0000</bug_when>
    <thetext>Thanks.

I think the error is present in both versions of the document.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128424</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2017-01-30 09:02:48 +0000</bug_when>
    <thetext>I have fixed the expected output of the example.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>