<?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>10110</bug_id>
          
          <creation_ts>2010-07-08 14:11:57 +0000</creation_ts>
          <short_desc>[XQuery11UC]expected result sample for windowing question 2 seems wrong</short_desc>
          <delta_ts>2010-12-12 17:59:33 +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>XQuery 3.0 Use Cases</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/xquery-11-use-cases/#windowing_head_para</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="Martin Honnen">martin.honnen</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</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>36691</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Honnen">martin.honnen</who>
    <bug_when>2010-07-08 14:11:57 +0000</bug_when>
    <thetext>The input document for http://www.w3.org/TR/xquery-11-use-cases/#windowing_head_para is as follows:

&lt;body xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:noNamespaceSchemaLocation=&quot;head_para.xsd&quot;&gt;
  &lt;h2&gt;heading1&lt;/h2&gt;
  &lt;p&gt;para1&lt;/p&gt;
  &lt;p&gt;para2&lt;/p&gt;
  &lt;h2&gt;heading2&lt;/h2&gt;
  &lt;p&gt;para3&lt;/p&gt;
  &lt;p&gt;para4&lt;/p&gt;
  &lt;p&gt;para5&lt;/p&gt;
&lt;/body&gt;

The expected result is as follows:

&lt;chapter&gt;
  &lt;section title=&quot;heading1&quot;&gt;
    &lt;para&gt;para1&lt;/para&gt;
    &lt;para&gt;para2&lt;/para&gt;
    &lt;para&gt;heading2&lt;/para&gt;
  &lt;/section&gt;
  &lt;section title=&quot;heading2&quot;&gt;
    &lt;para&gt;para3&lt;/para&gt;
    &lt;para&gt;para4&lt;/para&gt;
    &lt;para&gt;para5&lt;/para&gt;
  &lt;/section&gt;
&lt;/chapter&gt;

Why does the &quot;section&quot; element with &apos;title=&quot;heading1&quot;&apos; have a third &quot;para&quot; element with contents &quot;heading2&quot;? 

With the English description of the aim being &quot;Convert a structure with implicit sections to a structure with explicit sections.&quot; I would expect a result where each &quot;section&quot; elements wraps the &quot;para&quot; elements following the &quot;h2&quot; in the input:

&lt;chapter&gt;
  &lt;section title=&quot;heading1&quot;&gt;
    &lt;para&gt;para1&lt;/para&gt;
    &lt;para&gt;para2&lt;/para&gt;
  &lt;/section&gt;
  &lt;section title=&quot;heading2&quot;&gt;
    &lt;para&gt;para3&lt;/para&gt;
    &lt;para&gt;para4&lt;/para&gt;
    &lt;para&gt;para5&lt;/para&gt;
  &lt;/section&gt;
&lt;/chapter&gt;

That is also the result I get with Zorba 1.2.0 when using the code in http://www.w3.org/Bugs/Public/show_bug.cgi?id=6241 which seems to be a fix of the code sample in the public working draft.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43284</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2010-12-12 17:59:33 +0000</bug_when>
    <thetext>The Working Group agrees. I will make the suggested change.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>