Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi, I have a method to render HT

Status
Not open for further replies.

kyledunn

Programmer
Jan 2, 2001
145
US
Hi,

I have a method to render HTML from XSLT. Here is the method:

/// <summary>
/// Method that renders HTML from XSLT document
/// </summary>
/// <param name=&quot;writer&quot;></param>
protected override void Render(HtmlTextWriter writer)
{
XPathDocument xdoc = new XPathDocument(Context.Server.MapPath(sourceFilePath));
XslTransform xslt = new XslTransform();
xslt.Load(Context.Server.MapPath(transformFilePath));
xslt.Transform(xdoc, null, writer);
}

I am now getting this warning:

warning CS0618: 'System.Xml.Xsl.XslTransform.Transform(System.Xml.XPath.IXPathNavigable, System.Xml.Xsl.XsltArgumentList, System.IO.TextWriter)' is obsolete: 'You should pass XmlResolver to Transform() method'

I need some help resolving this warning. Can you help?

Kyle


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top