This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The input document for http://www.w3.org/TR/xquery-11-use-cases/#windowing_head_para is as follows: <body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="head_para.xsd"> <h2>heading1</h2> <p>para1</p> <p>para2</p> <h2>heading2</h2> <p>para3</p> <p>para4</p> <p>para5</p> </body> The expected result is as follows: <chapter> <section title="heading1"> <para>para1</para> <para>para2</para> <para>heading2</para> </section> <section title="heading2"> <para>para3</para> <para>para4</para> <para>para5</para> </section> </chapter> Why does the "section" element with 'title="heading1"' have a third "para" element with contents "heading2"? With the English description of the aim being "Convert a structure with implicit sections to a structure with explicit sections." I would expect a result where each "section" elements wraps the "para" elements following the "h2" in the input: <chapter> <section title="heading1"> <para>para1</para> <para>para2</para> </section> <section title="heading2"> <para>para3</para> <para>para4</para> <para>para5</para> </section> </chapter> 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.
The Working Group agrees. I will make the suggested change.