473,395 Members | 1,568 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

What does 'You should pass XmlResolver to Transform() method' mean???

I've got the following code. But the XSLTransform line is underlined by the
blue squiggle and vs tells me
c:\inetpub\wwwroot\Sites\RiderDesign\articles\test .aspx.vb(37): 'Public Sub
Transform(input As System.Xml.XPath.IXPathNavigable, args As
System.Xml.Xsl.XsltArgumentList, output As System.IO.Stream)' is obsolete:
'You should pass XmlResolver to Transform() method'

What the heck does this mean? Thanks...

Dim XMLDoc As New XmlDocument
XMLDoc.Load(Server.MapPath("files/since1968_interview_zeldman.xml"))
Dim XSLTrans As New Xsl.XslTransform
XSLTrans.Load(Server.MapPath("files/nitf-interview-bio-to-html.xsl"))
Dim ms As New MemoryStream
XSLTrans.Transform(XMLDoc, Nothing, ms)
ms.Seek(0, SeekOrigin.Begin)
Dim sr As New StreamReader(ms)
PageContent.Text = sr.ReadToEnd()
sr.Close()
Nov 11 '05 #1
2 8780
Showjumper wrote:
I've got the following code. But the XSLTransform line is underlined by the
blue squiggle and vs tells me
c:\inetpub\wwwroot\Sites\RiderDesign\articles\test .aspx.vb(37): 'Public Sub
Transform(input As System.Xml.XPath.IXPathNavigable, args As
System.Xml.Xsl.XsltArgumentList, output As System.IO.Stream)' is obsolete:
'You should pass XmlResolver to Transform() method'

What the heck does this mean? Thanks...

Isn't it clear? You are using obsolete method, that's what it means.
Use this method instead:
http://msdn.microsoft.com/library/de...ormTopic13.asp
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

Nov 11 '05 #2
I just put up a sample that covers this topic at
http://www.xmlforasp.net/CodeSection.aspx?csID=103.

HTH,
Dan Wahlin

Wahlin Consulting
Microsoft MVP - ASP.NET and XML Web Services
http://www.xmlforasp.net
"Showjumper" <sh*******@grkjashdjkf.com> wrote in message
news:u4*************@tk2msftngp13.phx.gbl...
I've got the following code. But the XSLTransform line is underlined by the blue squiggle and vs tells me
c:\inetpub\wwwroot\Sites\RiderDesign\articles\test .aspx.vb(37): 'Public Sub Transform(input As System.Xml.XPath.IXPathNavigable, args As
System.Xml.Xsl.XsltArgumentList, output As System.IO.Stream)' is obsolete:
'You should pass XmlResolver to Transform() method'

What the heck does this mean? Thanks...

Dim XMLDoc As New XmlDocument
XMLDoc.Load(Server.MapPath("files/since1968_interview_zeldman.xml"))
Dim XSLTrans As New Xsl.XslTransform
XSLTrans.Load(Server.MapPath("files/nitf-interview-bio-to-html.xsl"))
Dim ms As New MemoryStream
XSLTrans.Transform(XMLDoc, Nothing, ms)
ms.Seek(0, SeekOrigin.Begin)
Dim sr As New StreamReader(ms)
PageContent.Text = sr.ReadToEnd()
sr.Close()

Nov 11 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Collin VanDyck | last post by:
I have a basic understanding of this, so forgive me if I am overly simplistic in my explanation of my problem.. I am trying to get a Java/Xalan transform to pass through a numeric character...
2
by: Paul | last post by:
Hi I'm currently having a problem with XMLResolvers. To put it simply using the same stylesheet and the same xml I am getting different results. When using the code and style sheet below. I...
4
by: damien morton | last post by:
Hi, I need some help... Im trying to use XmlValidatingParser with a custom XmlResolver. Im finding, however, that the custom resolver never gets called, and that the XmlValidatingParser acts as...
4
by: BrianProgrammer | last post by:
I have this code below, that works like a champ, but two lines are continually marked as obsolete. See embeded notes. Private Shared Function TransformHTMLString(ByVal XSLT As String, _ ByVal...
3
by: Rouven Hertenstein | last post by:
Hi, I'm trying to test the vb.net-exercise "How to use a DataSet with the Office XP Chart Component and ASP.NET" on http://support.microsoft.com/kb/303016/en-us Visual Studio rails against the...
13
by: Jason Huang | last post by:
Hi, Would someone explain the following coding more detail for me? What's the ( ) for? CurrentText = (TextBox)e.Item.Cells.Controls; Thanks. Jason
0
by: Showjumper | last post by:
I've got the following code. But the XSLTransform line is underlined by the blue squiggle and vs tells me c:\inetpub\wwwroot\Sites\RiderDesign\articles\test.aspx.vb(37): 'Public Sub...
12
by: InvalidLastName | last post by:
We have been used XslTransform. .NET 1.1, for transform XML document, Dataset with xsl to HTML. Some of these html contents contain javascript and links. For example: // javascript if (a &gt; b)...
8
by: moralbarometer | last post by:
Hi all, I intend to retrieve the fault node as a a string from the soap message. When i used transform(DOMSource,StreamResult) i get just the <?xml version="1.0" encoding="UTF-8"?> as string. but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.