M
Mike
Hello,
I am using XML webcontrol on my form to display my transformed xml as html.
I am having a warning about using XslTransform (being obsolete). The
warning told me to use the new class XslCompiledTransform. The problem is
the XML control only accepts the XslTransform object for its .Transform
property. See code below. Any ideas?
Thanks
Xml xmlCtl = new Xml();
xmlCtl.ID = "New Report";
XmlDocument docXML = new XmlDocument();
docXML.LoadXml(reportDTO.Response);
XslTransform docXSL = new XslTransform();
docXSL.Load(Server.MapPath("Transforms\\" + reportDTO.XslSrc));
xmlCtl.Document = docXML;
xmlCtl.Transform = docXSL;
I am using XML webcontrol on my form to display my transformed xml as html.
I am having a warning about using XslTransform (being obsolete). The
warning told me to use the new class XslCompiledTransform. The problem is
the XML control only accepts the XslTransform object for its .Transform
property. See code below. Any ideas?
Thanks
Xml xmlCtl = new Xml();
xmlCtl.ID = "New Report";
XmlDocument docXML = new XmlDocument();
docXML.LoadXml(reportDTO.Response);
XslTransform docXSL = new XslTransform();
docXSL.Load(Server.MapPath("Transforms\\" + reportDTO.XslSrc));
xmlCtl.Document = docXML;
xmlCtl.Transform = docXSL;