Re: xsl:template that matches all children of a given node?

Subject: Re: xsl:template that matches all children of a given node?
From: "Heiner de Wendt" <H.dewendt@xxxxxxxxx>
Date: Wed, 16 Aug 2000 17:35:20 +0200
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


Current Thread