This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: different templates
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] different templates
- From: Jörg Heinicke <Joerg dot Heinicke at gmx dot de>
- Date: Mon, 29 Oct 2001 10:49:03 +0100 (MET)
- References: <3BDD217D.7000708@globalpark.de>
- Reply-To: xsl-list at lists dot mulberrytech dot com
<xsl:apply-templates select="var" mode="foo"/>
<xsl:apply-templates select="var" mode="bar"/>
<xsl:template match="var" mode="foo">
<!-- foo -->
</xsl:template>
<xsl:template match="var" mode="bar">
<!-- foo -->
</xsl:template>
Hope this helps,
Joerg
> Hi list,
>
> I (think I) need 2 different apply-templates which match the same xml
> node in a stylesheet.
> How can I do this without conflicts?
>
> <xsl:template match="var"> <!-- foo --> </xsl:template>
> <xsl:template match="var"> <!-- bar --> </xsl:template>
>
> Well, there must be a simple solution ...
> Problem: I need the elements and id's from 'vars' in different parts of
> html output.
>
> Greets,
>
> Ingo
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list