Subject: Re: Template mode value from param
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Tue, 20 Sep 2011 09:38:29 +0100
|
On 19/09/2011 19:39, Martynas Jusevicius wrote:
Hey list,
I looked up that template mode is a QName, so I can define and use
modes with prefixes like this:
<xsl:apply-templates select="." mode="hn:BobsLynListView"/>
However I want to make it even more flexible and use a param value like this:
<xsl:apply-templates select="." mode="{$mode}"/>
Is this possible?
No, this isn't possible.
If you expain the problem you are trying to solve, I'm sure you will get
some ideas for solving it without inventing new language constructs.
Michael Kay
Saxonica
|