This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: xsl:template that matches all children of a given node?
- To: xsl-list at mulberrytech dot com
- Subject: Re: xsl:template that matches all children of a given node?
- From: "Heiner de Wendt" <H dot dewendt at systec dot de>
- Date: Wed, 16 Aug 2000 17:35:20 +0200
- Organization: SYSTEC Elektronik und Software GmbH
- Reply-To: xsl-list at mulberrytech dot com
Hi,
> Hi there. How would one write an <xml:template match> to copy all of a
> node's children AND THEIR data? I have been able to copy just the nodes, and
> just the data, but copying BOTH seems to be eluding me...
The following XSLT would work:
<xsl:template match="*">
<xsl:element name="{name()}">
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
I think only attributes aren't copied yet.
Bye,
Heiner
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list