Subject: Re: [xsl] howto add elements to sections of xml document From: "Andrew Curry" <andrew.curry@xxxxxxxxxxxx> Date: Mon, 8 Mar 2004 16:54:56 -0000 |
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@xxxxxxxxx> To: "xsl" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] howto add elements to sec, David Carlisle | Thread | RE: [xsl] howto add elements to sec, Andreas L. Delmelle |
RE: [xsl] howto add elements to sec, Andrew Welch | Date | Re: [xsl] setting the variable valu, Andrew Curry |
Month |