Re: Grouping in wrap-sequence

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 UTC