This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
xsl:template node set parameter
- To: xsl-list at mulberrytech dot com
- Subject: xsl:template node set parameter
- From: "xsl list" <xsl_list at hotmail dot com>
- Date: Fri, 25 Aug 2000 14:20:42 EDT
- Reply-To: xsl-list at mulberrytech dot com
Can I pass a set of nodes as a parameter to a template?
From the example below, I need to apply templates to node in the parameter
node set. I expect a template that matches <tag_1> to be invoked. The
peoblem is, using Xalan, I am getting the XPATH error:
Can not convert #UNKNOWN to a NodeList!
<xsl:call-template name="temp">
<xsl:with-param name="p">
<tag_1><tag_2>V</tag_2></tag_1>
</xsl:with-param>
</xsl:call-template>
<xsl:template name="temp">
<xsl:param name="p"/>
<xsl:apply-templates select="$p/*"/>
</xsl:template>
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list