Just a general posting as I am not sure if it is a bug or a feature of xsl.
Using the latest xalan (don't know about the behaviour in previous versions) I cannot wrap an xsl:for-each as a variable e.g. <xsl:variable name="test"><xsl:for-each ......etc... ></xsl:for-each></xsl:variable> I get a 'cannot convert tree fragment to node-list exception'. However, if I put the 'for each' in a template I can wrap the return from this template in a variable. This seems inconsistent. Any comments Rob Tice