This particular XSL I'm working on is creating elements (by merging them from the source xml) and then using them later on. Copy-of type stuff.
You have to convert the in xsl elements to a node-set using msxsl:to-node-set() but obviously I don't want to couple this to a particular implementation. A better (though still dirty) way to get around this is to use the document() function to select the created element as a node-set.
However using your tool (which is very useful btw), I get:
Execution of the 'document()' function was prohibited. Use the XsltSettings.EnableDocumentFunction property to enable it. An error occurred at (137,1). System.Xml.Xsl.XslTransformException
http://stackoverflow.com/questions/443724/get-xpath-from-xsl-variable
Thanks