This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
apply-templates with a variable mode
- From: "Joeri Belis" <joeri dot belis at nollekens dot be>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 27 Jun 2002 13:10:26 +0200
- Subject: [xsl] apply-templates with a variable mode
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
Can i have a mode attribute of apply-templates and set it from a variable?
What i tried so far has resulted in an error.
<xsl:template match="root" mode="filter">
<xsl:param name="filtermode"/>
<xsl:apply-templates select="offre" mode="$filtermode"/>
</xsl:copy>
</xsl:template>
Error on line 39 of file:/C:/temp/filter_off.xsl:
Mode name is not a valid QName
Transformation failed
Thank you,
Joeri
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list