This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Skipping surounding element
- To: xsl-list at mulberrytech dot com
- Subject: Re: Skipping surounding element
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Mon, 6 Nov 2000 17:13:56 GMT
- References: <20001106165216.D4219@titan.blacknet.de>
- Reply-To: xsl-list at mulberrytech dot com
<xsl:template match="source[@attr2]">
<destC attr1="{@attr1}">
<dest1>
<xsl:call-template name="x"/>
</dest1>
</destC>
</xsl:template>
<xsl:template match="source">
<dest1 attr1="{@attr1}">
<xsl:call-template name="x"/>
</dest1>
</xsl:template>
<xsl:template name="x">
something with <xsl:value-of select="@attr2"/>....
</xsl:template>
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list