Re: Wrapping a sequence

I would rather go for a special component : p:wrap-sequence, since I
need grouping on p:wrap and not on p:wrap-sequence

On 5/11/07, Norman Walsh <ndw@nwalsh.com> wrote:
> I have a sequence of documents that I'd like to turn into a single
> document by putting an element wrapper around the whole sequence.
> p:wrap seems like the obvious answer, but it doesn't accept a
> sequence.
>
> I propose that we change the signature of p:wrap to make this
> possible:
>
> <p:declare-step type="p:wrap">
>    <p:input port="source" sequence="yes"/>
>    <p:output port="result"/>
>    <p:option name="name" required="yes"/>
>    <p:option name="match"/>
> </p:declare-step>
>
> If a match expression is specified, then it is an error for a sequence
> to appear on the source port.
>
> If the match expression is not specified, then the wrapper is placed
> around the whole sequence of documents on the source port. (The whole
> sequence may, naturally, be a single document.)
>
>                                         Be seeing you,
>                                           norm
>
> --
> Norman Walsh <ndw@nwalsh.com> | On the other hand, you have different
> http://nwalsh.com/            | fingers.
>
>


-- 
Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 8 72 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 €

Received on Friday, 11 May 2007 19:49:30 UTC