Re: xsl:template node set parameter

Subject: Re: xsl:template node set parameter
From: David_Marston@xxxxxxxxx
Date: Fri, 25 Aug 2000 14:52:22 -0400
The ever-anonymous xsl_list@hotmail com writes:
>Can I pass a set of nodes as a parameter to a template?

Yes. But you need to set your variable to be a node-set
rather than a result tree fragment. This is covered, though
not necessarily clearly, in Section 11.2 of the XSLT spec.
It's the difference between
<xsl:with-param name="p">node-set</xsl:with-param>
and
<xsl:with-param name="p" select="node-set"/>
(Section 11.6 deals with xsl:with-param).

Xalan now has a nodeset extension, if you want to go the
conversion route. But it looks like you can just set the
param to be a node-set right away.
.................David Marston


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread