This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
using parameters in a select
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] using parameters in a select
- From: lwong at neocore dot com
- Date: Tue, 24 Apr 2001 12:49:18 -0600
- Organization: NeoCore
- Reply-To: xsl-list at lists dot mulberrytech dot com
I would use a parameter to pass in the XPath to my select statement.
For example,
<xsl:param name="servicePlanNames" select="'default value'"/>
<xsl:apply-templates select="ServicePlan[$servicePlanNames]" />
This is not working. Can I use parameters in the apply-templates select
statement? If not, is a different way I can pass in XPath to a select
statement? Or an xsl:if statement?
Thanks in advance,
Leah
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list