Hi Dmitri,
 
just call
<xsl:call-template name="template-with-nodeset-param">
    <xsl:with-param name="nodeset-param" select="nodeset-expression"/>
</xsl:call-template>
 
You'll get node-set in parameter "nodeset-param" in template "template-with-nodeset-param".
 
For instance for XML:
<root>
    <items>
        <item id="1"/>
        <item id="2"/>
        <item id="3"/>
    </items>
</root>
 
in xsl:
 
.....
<xsl:template match="/">
    <xsl:call-template name="show-items">
        <xsl:with-param name="items" select="/root/items"/>
    </xsl:call-template>
</xsl:template>
...
<xsl:template name="show-items">
    <xsl:param name="items"/>
    <xsl:for-each select="$items/item">
        <xsl:value-of select="@id"/>
    </xsl:for-each>
</xsl:template>
 
Is that what you need?
 
Thanks,
Dmitry
-----Original Message-----
From: Dmitri Ilyin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 08:51
To: Xalan-Dev List (E-mail)
Subject: node-set as param

Hi *,
 
how can I select  "node set" and set it as param in temlate call??
 
regards
 
Dmitri

Reply via email to