|
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: xsl:template that matches all c, Miloslav Nic | Thread | RE: template that matches all child, Ben Robb |
| RE: Problem with new version of MSX, Chris Bayes | Date | RE: template that matches all child, Matt Coolidge |
| Month |