[xsl] howto add elements to sections of xml document

Subject: [xsl] howto add elements to sections of xml document
From: John Mason <stockgames2003@xxxxxxxxx>
Date: Mon, 8 Mar 2004 08:25:20 -0800 (PST)
I apologize if this is a double-post, I did not
receive the message to my other address so I created
another one.

I would like to tranform the following xml:
<doc>
   <section>
      <title>XXXXXX</title>
      <para>XXX XXX XXX</para>

      <title>YYYYYY</title>
      <para>YYY YYY YYY</para>
      <para>YYY YYY YYY</para>
   </section>
</doc>

to:

<doc>
   <section>

      <sub-section>
         <title>XXXXXX</title>
         <para>XXX XXX XXX</para>
      </sub-section>

      <sub-section>
         <title>YYYYYY</title>
         <para>YYY YYY YYY</para>
         <para>YYY YYY YYY</para>
       <sub-section>

   </section>
</doc>


__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you?re looking for faster
http://search.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread