Code:
<xsl:template name="select">
<xsl:param name="options" />
<xsl:for-each select="exslt:node-set($options)/node()">
<xsl:copy-of select="name"/>
<xsl:copy-of select="value"/>
</xsl:for-each>
</xsl:template>
But I would use
Code:
exslt:node-set($options)/option">
or
Code:
exslt:node-set($options)/*">
in preference to node() as node() can pick up text nodes.
Alternatively embed the options into the stylesheet under the root element:
Code:
<my:options><option><name>1</name><value>test1</value></option>
<option><name>2</name><value>test2</value></option><my:options>
Then you can select them using
Code:
document('')/*/my:options/option
and dispense with exslt:node-set altogether. Or move to XSLT 2.0 :)
--
Joe (
Microsoft MVP - XML)