ho (parzialmente) risolto (copiato) in c#:
// Generating a temporary HTML file
string outfile = Path.GetTempFileName().Replace(".tmp", ".html");
// Creating the XslCompiledTransform object
XslCompiledTransform transform = new XslCompiledTransform();
// Loading the stylesheet file from the textbox
transform.Load(@strPath + "\\Dati\\FoglioStileAssoSoftware.xsl");
// Transforming the XML file and storing output in HTML file
transform.Transform(@strPath + "\\Dati\\IT02470300373.xml", outfile);
// Displaying transformed output on a webbrowser control
webBrowser1.Navigate(outfile);