You can supply a node-set as a parameter value using the JAXP API, but from the command line, the only kind of parameter you can supply is a string. It seems that you are not actually wanting to pass a node-set, you are wanting to pass an XPath expression. To treat a string as an XPath expression, use saxon:evaluate():
xsl:for-each select="saxon:evaluate($type)"
Michael Kay 
-----Original Message-----
From: [] On Behalf Of Pisani Christopher M
Sent: 19 June 2002 18:23
To: ''
Subject: [saxon] setting paramters to node-sets

I want to use an input parameter in a for-each statement, but when I try this saxon reports that "The value is not a node-set".  How can I convert the input parameter to a node-set or even have it come in as a node-set? 

My command line reads:   saxon doc.xml doc.xsl type="value" match="value"

My stylesheet reads:            <xsl:param name="type"/>
                                <xsl:param name="match"/>
                                <xsl:for-each select="$type">

Chris Pisani
*****************************************************************           DISCLAIMER:   The information contained in this e-mail may be confidential and is intended solely for the use of the named addressee.  Access, copying or re-use of the e-mail or any information contained therein by any other person is not authorized.  If you are not the intended recipient please notify us immediately by returning the e-mail to the originator.