Subject: Re: [xsl] outputting mutiple html files From: George Cristian Bina <george@xxxxxxx> Date: Mon, 26 Apr 2004 12:29:29 +0300 |
<?xml version="1.0" encoding="UTF-8"?> <test> <section>section one</section> <para>para1</para> <para>para2</para> <section>section two</section> <para>para3</para> </test>
<xsl:template match="para"> <xsl:value-of select="."/> </xsl:template>
section para1para2
section para3
Hope that helps, George ----------------------------------------------- George Cristian Bina <oXygen/> XML Editor - http://www.oxygenxml.com
I want to transform an xml file, outputting separate sections into multiple html documents. If the xml was srtructured as follows I would have no problem, I could simply use <xsl:for-each select="section">
<section> <title>section one</title> <para/> <para/> </section>
However, the structure of the xml file (over which I have no control) is more like:
<section>section one</section> <para/> </para> <section>section two</section> <para/>...
The section tags, rather than wrap separate areas of content merely indicate where a new section begins
Is there an easy way to do this?
Thanks for your help
David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] outputting mutiple html files, David Elsmore | Thread | Re: [xsl] outputting mutiple html f, David Elsmore |
Re: [xsl] Looping through attribute, David Carlisle | Date | [xsl] DOM / Javascript ans XSL, Bertrand Sauviat |
Month |