This post has been migrated from, we apologise if some of the images or content is missing

This post has been migrated, original date 16 Dec 2008 If you want a simple way to get the output from an XSLT Rendering using Sitecore in code use the following:
        Sitecore.Web.UI.WebControls.XslFile file = new Sitecore.Web.UI.WebControls.XslFile();
        file.Path = "/xsl/MyRendering.xslt";
        string output = file.RenderAsText();
    This will give you the output of the rendering as a single string that you can then use for any purpose.One thing that would be really cool would be to create XSLT on the fly and feed it into this XslFile control. If I work this out I will let you know.