From: Tim [mailto:timlhunt(_at_)mindspring(_dot_)com]
Sent: Thursday, January 08, 2009 11:12 AM
To: XSL MulberryTech
Subject: [xsl] flattening an xml hierarchy
Hi,
I'd like to remove some elements from an xml hierachy using xslt:
Original xml example:
<Dontwant1>
<dontwant2>foo</dontwant2>
<x3>
<x4>stuff</x4>
<y5>more stuff</y5>
</x3>
</Dontwant1>
Like to have transform output:
<x3>
<x4>stuff</x4>
<y5>more stuff</y5>
</x3>
Just search for x3 and do a copy-of
<xsl:template match="/">
<xsl:copy-of select="//x3" />
</xsl:template>
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--