Subject: Re: newbie: Pameters in MSXML
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Fri, 23 Nov 2001 17:32:19 +0000
|
Hi,
> How can I use (receive) this parameter in the style sheet?
You need to declare the parameter at the top level of the stylesheet
(i.e. as a child of the xsl:stylesheet element, at the same level as
the xsl:template elements) using the xsl:param element:
<xsl:param name="Group" />
You can use the xsl:param element to set the default for the parameter
as well, using the select attribute to set it to a boolean, number,
string or node set, or its content to set it to a result tree
fragment. Given you're passing it from the command line, you probably
want to set it to a string, for example:
<xsl:param name="Group" select="'default'" />
I hope that helps,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|