a column major packing component

I proposed last week a p:pack component to get any number of sequence
and put it in a column major way
say each letter represent a document of a sequence
                          .----------.
-- A - B - C - D --  |           |
-- E - F - G - H --  | PACK | -- <_>A E K</_> - <_>B F L</_> - <_>C G
M</_> - <_>D H N</_>
-- K - L - M - N --  |           |
                          .----------.

It seems that I forgot that we loose "en passant" the possibility to
have "*" input ports

So I propose this component with only two sequences as input

<p:declare-step type="p:pack">
    <p:input port="source" sequence="yes" primary="yes"/>
    <p:input port="alternate" sequence="yes"/>
    <p:output port="result" sequence="yes"/>
    <p:option name="wrapper" required="yes"/>
</p:declare-step>

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, 8 August 2007 16:15:16 UTC