W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > July 2007

Grouping in wrap-sequence

From: Norman Walsh <ndw@nwalsh.com>
Date: Tue, 17 Jul 2007 07:51:28 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <87hco3z1rz.fsf@nwalsh.com>
As currently specified, I don't understand what wrap-sequence does.
Given:

  <p:wrap-sequence>
    <p:input port="source">
      <p:inline><doc label="a"/></p:inline>
      <p:inline><doc label="a"/></p:inline>
      <p:inline><doc label="b"/></p:inline>
      <p:inline><doc label="a"/></p:inline>
    </p:input>
    <p:option name="wrapper" value="wrapme"/>
  </p:wrap-sequence>

I think the output is:

<wrapme>
<doc label="a"/>
<doc label="a"/>
<doc label="b"/>
<doc label="a"/>
</wrapme>

What is the output of

  <p:wrap-sequence>
    <p:input port="source">
      <p:inline><doc label="a"/></p:inline>
      <p:inline><doc label="a"/></p:inline>
      <p:inline><doc label="b"/></p:inline>
      <p:inline><doc label="a"/></p:inline>
    </p:input>
    <p:option name="wrapper" value="wrapme"/>
    <p:option name="group-adjacent" value="@label='a'"/>
  </p:wrap-sequence>

Don't we need another wrapper element?

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | The firmest line that can be drawn upon
http://nwalsh.com/            | the smoothest paper is still jagged
                              | edges if seen through a microscope.
                              | This does not matter until important
                              | deductions are made on the supposition
                              | that there are no jagged edges.--Samuel
                              | Butler (II)

Received on Tuesday, 17 July 2007 11:51:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:53 GMT