This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: xsl:template node set parameter
- To: xsl-list at mulberrytech dot com
- Subject: Re: xsl:template node set parameter
- From: David_Marston at lotus dot com
- Date: Fri, 25 Aug 2000 14:52:22 -0400
- Reply-To: xsl-list at mulberrytech dot com
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