[quoted text, click to view] frustratedcoder wrote:
> Thank you for the reply. I changed my code into:
> Dim xmlhttp, xsldoc, xmldoc
> set xmlhttp = Server.CreateObject("Microsoft.XMLHTTP")
You should use the "Server" version of the XMLHTTP object. Also, I usually
am a little bit more explicit in my server-side code:
set xmlhttp = Server.CreateObject("msxml2.ServerXMLHTTP")
[quoted text, click to view] > xmlhttp.open "GET", "
http://www.somesite.com/xml", false
> xmlhttp.send
>
Don't create and load your "xsl" document until you have verified that you
have received something from your xmlhttp request. I am going to rearrange
things now
[quoted text, click to view] >
> set xmldoc = xmlhttp.responseXML
First debugging step:
response.ContentType = "text/xml"
xmldoc.save Response
Response.End
If all looks well when you run the page, comment out the above lines. I
would still add something like:
If len(xmldoc.xml) > 0 then
[quoted text, click to view] > set xsldoc = Server.CreateObject("Microsoft.XMLDOM")
set xsldoc = Server.CreateObject("msxml2.DomDocument")
[quoted text, click to view] > xsldoc.async = false
> xsldoc.load(Server.MapPath("stylesheet.xsl"))
>
> response.ContentType = "text/html"
>
> xmldoc.transformNodeToObject xsldoc, Response
else
response.write "No xml was returned"
end if
[quoted text, click to view] >
> The xsl's output method is set to html, but the result is the same: I
> get the xslt when I check the source.
Try "text/xml"
Also, if you have "on error resume next" anywhere, comment it out.
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"