This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Can apply-templates attribute mode be passed a variable?
- From: "James Fuller" <james dot fuller at o-idev dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 8 Jul 2002 09:56:09 +0100
- Subject: Re: [xsl] Can apply-templates attribute mode be passed a variable?
- Organization: o-iDeveloper ltd.
- References: <OFF63845E1.62544B50-ONCC256BF0.000705FB@nzi.co.nz>
- Reply-to: xsl-list at lists dot mulberrytech dot com
----- Original Message -----
From: <seema_mehta@nzi.co.nz>
> Can apply-templates attribute mode be passed a variable? i.e. is the
> following code legal?
>
> <xsl:for-each select="x">
> <xsl:variable name="mode" select="@attr"/>
> <xsl:apply-templates select="self::x" mode="$mode"/>
> </xsl:for-each>
you could use a named template
http://www.dpawson.co.uk/xsl/sect2/N5280.html
gl, jim fuller
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list