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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format