[Home] [By Thread] [By Date] [Recent Entries]
Chad Chelius wrote:
I have xml with a section structured like this: Write a template for the parent element of those 'body' elements. Assuming it is named 'foo' <xsl:template match="foo"> <field name="body"> <xsl:apply-templates select="body"/> </field> </xsl:template> <xsl:template match="body"> <p> <xsl:apply-templates/> </p> </xsl:template> If the 'foo' element has further children and you want to process them as well then you need to do that in the match="foo" template but obviously it depends on what you want to do with those elements exactly. -- Martin Honnen http://JavaScript.FAQTs.com/
|

Cart



