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

Re: Grouping in wrap-sequence

From: Norman Walsh <ndw@nwalsh.com>
Date: Wed, 18 Jul 2007 09:41:19 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <87sl7lu8w0.fsf@nwalsh.com>
/ Innovimax SARL <innovimax@gmail.com> was heard to say:
| On 7/17/07, Norman Walsh <ndw@nwalsh.com> wrote:
|> 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'"/>
|
| did you mean    <p:option name="group-adjacent" value="@label"/> ?

I guess so.

|>   </p:wrap-sequence>
|>
|> Don't we need another wrapper element?
|>
|
| Nope
| <wrapme>
| <doc label="a"/>
| <doc label="a"/>
| </wrapme>
| <wrapme>
| <doc label="b"/>
| </wrapme>
| <wrapme>
| <doc label="a"/>
| </wrapme>

Ah. So the output of wrap-sequence can be a sequence? That's not
true at the moment.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | If a little knowledge is dangerous,
http://nwalsh.com/            | where is the man who has so much as to
                              | be out of danger?--Thomas. H. Huxley

Received on Wednesday, 18 July 2007 13:42:48 GMT

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