Hi All
When I'm trying to compile my class the followong error occures:
--------------
c:\inetpub\wwwroot\OnlineCommunity\Controls\Navigator.cs
(56): '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'm using the following method to transform:
--------------
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 );   
                }
-------------------------------
the error in this line:
xslt.Transform( xdoc, null, writer );

can anyone tell me what can I do?
any suggestion or modefications in the code is appriciated.
thanks alot




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to