p:wrap

Consider:

  <doc>
    <section>...</section>
    <section>...</section>
    <section>
      <section/>
    </section>
  </doc>

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>


                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Words ought to be a little wild for
http://nwalsh.com/            | they are assaults of thought on the
                              | unthinking.--John Maynard Keynes

Received on Thursday, 22 May 2008 17:44:28 UTC