how to use XslCompiledTransform, XSLT in c# (server side), and how to use it with Sharepoint
scenario 1: I just want to do XSLT in server side: in most examples on the web u'll see stuff like this: // Load the style sheet. XslCompiledTransform xslt = new XslCompiledTransform(); xslt.Load( "output.xsl" ); // Execute the transform and output the results to a file. xslt.Transform( "books.xml" , "books.html" ); now many times u'll and want to use the XmlReader and the XmlWriter classes, and there u'll start getting exceptions. T he main reason is that those 2 classes really check for your XML, XSL and the output, so unless ur a goody good boy with XML-XSL its really annoying. One main example is that in my scenario I want to create a chunk of HTML but as a DIV, not a whole document, so you need to explicitly tell that to the result output. so there r ways to continue and be a goody good boy and the only place I found good and exact info about all that is here: http://stackoverflow.com/questions/6214354/problem-with-xslco