This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: different templates


<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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]