妙倍丽去渍净白洗衣液:ASP.net创建服务器控件时出错Transform()已过时,不知道怎样用XmlResolver代替

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/05 22:49:37
创建服务器控件时出错Transform()已过时,不知道怎样用XmlResolver代替,
创建服务器控件需要用"Config/NavMenu.xml" 和 "Styles/NavMenu.xslt"

E:\aspado\Wrox\ThePhileA\Controls\Server\Navigator.vb(42):
“Public Sub Transform(input As System.Xml.XPath.IXPathNavigable, args As System.Xml.Xsl.XsltArgumentList, output As System.IO.TextWriter)”已过时:
“You should pass XmlResolver to Transform() method”

Protected Overrides Sub Render(ByVal writer As HtmlTextWriter)

Dim xDoc As New XPathDocument(Context.Server.MapPath(mySourceFilePath))
Dim xslt As New XslTransform()

With xslt
.Load(Context.Server.MapPath(myTransformFilePath))
.Transform(xDoc, Nothing, writer)
End With

End Sub

E:\aspado\Wrox\ThePhileA\Controls\Server\Navigator.vb(42):
“Public Sub Transform(input As System.Xml.XPath.IXPathNavigable, args As System.Xml.Xsl.XsltArgumentList, output As System.IO.TextWriter)”已过时:
“You should pass XmlResolver to Transform() method”

重装阿