Re: [xsl] calling templates depending on content

Subject: Re: [xsl] calling templates depending on content
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Sat, 30 Oct 2004 17:27:43 +0200
 > <xsl:template name="pages">
 >  <xsl:apply-templates select="." mode="pages"/>
 > </xsl:template>
 >
 > <xsl:template name="start" mode="pages"
 >               match="*[/main/template/@name='start']">
 >
 > <xsl:template name="query" mode="pages"
 >               match="*[/main/template/@name='query']">

Ok, this now makes sense to me. "mode" is to call only templates with the same mode as in apply-templates, isn't it?

Yes.


"mode" however doesn't affect call-template as one cannot specify a mode when 'calling' a template, a name is supposed to be unique enough.. ;)

Not the presence of both name and match on the template... :-P

Grtz,
Geert

Current Thread