Hello friends,
I do have a Webpart inherited from DataformWebpart. By default this have a XSL Editor as the webpart property. Here i need to manipulate the XSL string and transform to a resulatant HTML. When i have gone through the related as mentioned below. I find that it can be taken only from a physical file. Im my case XSL is as a Webpart property(string). So how come i transform?,,, Kindly help.. Thanks...
abinjaik //load the data
XPathDocument xdoc = new XPathDocument(Server.MapPath("Address.xml"));
//load Xslt
XslCompiledTransform transform = new XslCompiledTransform();
transform.Load(Server.MapPath("DynamicControls.xslt"));
StringWriter sw = new StringWriter();
//transform it
//transform.Transform(xdoc, null, sw);
transform.Transform(xdoc, xslArg, sw);
string result = sw.ToString();