Subject: Re: [xsl] q: could a template mode be used as a parameter or variable?; q: is there something like a default mode? From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx> Date: Mon, 13 Jan 2003 09:14:28 +0200 |
What's wrong with passing a parameter as you said? Isn't it more clear and robust?I didn't found anything like that in tutorials nor spec. but it's possible i missed something, i want to do:
<xsl:call-template name="some" mode="a"/> <xsl:call-template name="some" mode="b"/>
<xsl:template name="some"> blablabla
<xsl:if test="??mode??='a'> do something here </xsl:if>
blablabla </xsl:template>
Not really. Much simpler: if apply-templates has a mode, it applies only to templates in the same mode. If it doesn't - it applies only to templates that don't have a mode.Also, another question: is there something like a default mode, or a global variable that says what mode should be called?
I know i could do something like all of this with parameters, but..Not something, but IMO exactly what you want to do.
-- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] q: could a template mode be u, alejandro david weil | Thread | RE: [xsl] q: could a template mode , Jarno . Elovirta |
Re: [xsl] tree fragments in variabl, Mike Brown | Date | RE: [xsl] q: could a template mode , Jarno . Elovirta |
Month |