Wednesday, September 24, 2003

You should pass XmlResolver to Transform() method

protected override void Render(HtmlTextWriter writer)
XPathDocument xDoc = new XPathDocument(Context.Server.MapPath(sourceFilePath) );

XslTransform xslt = new XslTransform();
xslt.Load( Context.Server.MapPath(transformFilePath) );


now i got on "xslt.Transform(xDoc,null,writer);" those informations:

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

It seems you are using version 1.1 or higher of .Net Framework.

This way of calling Transform method of XslTransform class
is indeed obselete in the new versions.

Visit the following url for the latest info in this regard

and one more article:

No comments:

Shared Cache - .Net Caching made easy

All information about Shared Cache is available here: Its free and easy to use, we provide all sources at codeplex.

Facebook Badge