This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Param test in mode argument
- To: XSL-List at mulberrytech dot com
- Subject: Param test in mode argument
- From: P Boichat <pcxpab at nottingham dot ac dot uk>
- Date: Wed, 20 Sep 2000 18:11:23 +0100 (BST)
- Reply-To: xsl-list at mulberrytech dot com
Hi,
Is there any reason why I am unable to apply a template using a mode
argument that is obtained from a passed parameter i.e.
<xsl:param name="myparam" select="thisone"/>
<xsl:apply templates select="mynode" mode="$myparam">
<xsl:template match="mynode" mode="thisone">
where I have set the stylesheet param using
processor.setStylesheetParam("myparam","'thisone'");
(for a xalan processor),
The param seems to be passed correctly as I can <xsl:value-of
select="$myparam"/>
There is probably a way around this by changing the xml but it's really
bugging me now.......
Cheers
Paul B.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list