[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Making nested elements from elements with level attri
Hi, I have section elements that level attributes like the following: <section level=1> <paragraph>Test line</paragraph> </section> <section level=2> <paragraph>Test line</paragraph> </section> <section level=2> <paragraph>Test line</paragraph> </section> <section level=3> <paragraph>Test line</paragraph> </section> <section level=4> <paragraph>Test line</paragraph> </section> <section level=5> <paragraph>Test line</paragraph> </section> <section level=3> <paragraph>Test line</paragraph> </section> I would like to transfrom that to something like: <section> <paragraph>Test Line</paragraph> <section> <paragraph>...</paragraph> </section> <section> <paragraph/> <section> <paragraph/> <section> <paragraph/> <section> <paragraph/> </section> </section> <section> <paragraph/> </section> Is there an elegant algorithim to do this, or am i looking at a recursive routine with a named template? Thanks, Russ </section>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|