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]

Re: xsl:template node set parameter



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

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