I have a current solution that uses an Xml control with statically bound DocumentSource and TransformSource attributes. The page dynamically generates a set of XsltArguments and assigns the resulting XsltArgumentList to the Xml control at run time. This argument list controls the data output to the page.
The foundation of the Xml control, the XslTransform class, has become obsolete and has been replaced with the XsltCommand class in the System.Xml.Query namesapce (and will be changing names and places again for the beta2 release to System.Xml.Xsl.XslCompiledTransform; I need a beta1 solution though.).
This page is accessed all of the time. What I would like to do is use the new XsltCommand object and cache it, thus caching the compiled version of the transform. The problem is that I don't know how to output the result of the XsltCommand.Execute call to a web control. Furthermore, the page is templated with a master page.
Does anyone know, or have a suggestion, as to how to replicate the Xml control's functionality using the XsltCommand as a foundation?