You can use <xsl:copy> for this purpose, do you want this to always do 1
title, 1 para, 1 title 2 para?? Or are you trying to use space as a
delimiter?
----- Original Message -----
From: "John Mason" <stockgames2003(_at_)yahoo(_dot_)com>
To: "xsl" <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Monday, March 08, 2004 4:25 PM
Subject: [xsl] howto add elements to sections of xml document
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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list