This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

xsl:template node set parameter


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]