xsl-list
[Top] [All Lists]

Re: [xsl] Template mode value from param

2011-09-20 03:38:38
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>