Subject: Re: How to copy all child elements except specific one?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 16 Jan 2001 23:44:26 GMT
|
> I want to get here:
Oh, so all you need is this:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
>
<xsl:template match="*|/">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
<xsl:template match="ChildElementToChange">
<xsl:copy>
<NewElement>
<xsl:copy-of select="../@L3Attr|@*"/>
<xsl:apply-templates/>
</NewElement>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- Re: How to copy all child elements except specific one?, (continued)
- David Carlisle - Tue, 16 Jan 2001 13:22:27 -0500 (EST)
- Michael Kay - Tue, 16 Jan 2001 17:43:37 -0500 (EST)
- Dimitre Novatchev - Tue, 16 Jan 2001 14:46:44 -0500 (EST)
- Morris, Chris - Tue, 16 Jan 2001 14:51:06 -0500 (EST)
- David Carlisle - Tue, 16 Jan 2001 18:46:13 -0500 (EST) <=
- Morris, Chris - Tue, 16 Jan 2001 15:00:09 -0500 (EST)
- Morris, Chris - Wed, 17 Jan 2001 10:22:08 -0500 (EST)
|
|