XSLT: Process an Xml node set in a template while still having access to the document root
I have an xslt stylesheet that needs to call a C# XSLT extension function in order to process a collection of elements. The code looks a little like this: Xslt: <xsl:apply-templates mode="MyTemplate" select="myextension:GetSomeCollection(@someattribute)" /> <xsl:template mode="MyTemplate" match="myroot"> <xsl:value-of select="xpath"...