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

Wrapping a sequence

From: Norman Walsh <ndw@nwalsh.com>
Date: Fri, 11 May 2007 09:26:54 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <874pmjcwyp.fsf@nwalsh.com>
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

I propose that we change the signature of p:wrap to make this

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

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,

Norman Walsh <ndw@nwalsh.com> | On the other hand, you have different
http://nwalsh.com/            | fingers.

Received on Friday, 11 May 2007 13:27:21 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:43 UTC