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

Re: p:wrap

From: Alessandro Vernet <avernet@orbeon.com>
Date: Fri, 23 May 2008 00:41:33 -0700
Message-ID: <4828ceec0805230041u2cb4b057s4e54a4c87eca597a@mail.gmail.com>
To: public-xml-processing-model-wg <public-xml-processing-model-wg@w3.org>

On Thu, May 22, 2008 at 10:43 AM, Norman Walsh <ndw@nwalsh.com> wrote:
> If I run <p:wrap match="section" wrap="chap"/> what do I get?
>
> This:
>
>  <doc>
>    <chap><section>...</section></chap>
>    <chap><section>...</section></chap>
>    <chap>
>      <section>
>        <section/>
>      </section>
>    </chap>
>  </doc>
>
> or this:
>
>  <doc>
>    <chap><section>...</section></chap>
>    <chap><section>...</section></chap>
>    <chap>
>      <section>
>        <chap>
>          <section/>
>        </chap>
>      </section>
>    </chap>
>  </doc>

The latter seems to give pipeline authors more latitude: assuming that
p:wrap wraps every element matched by the "match" expression, if
pipeline authors only want to wrap top-level sections, they can always
write match="/doc/section".

Alex
-- 
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet
Received on Friday, 23 May 2008 07:42:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 23 May 2008 07:42:20 GMT