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

Re: Grouping in wrap-sequence

From: Innovimax SARL <innovimax@gmail.com>
Date: Wed, 18 Jul 2007 12:25:10 +0200
Message-ID: <546c6c1c0707180325w4417ebakddd1350bb3da2952@mail.gmail.com>
To: "Norman Walsh" <ndw@nwalsh.com>
Cc: public-xml-processing-model-wg@w3.org

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"/> ?

>   </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>

Mohamed


-- 
Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 9 52 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 
Received on Wednesday, 18 July 2007 10:25:16 GMT

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