Forum Moderators: open
Someone has written some code for me which consists of:
the xml file
the xml stylesheet
an html file with some javascript which loads it all up, does something with ActiveX and makes it work
The problem with this is that it works whilst sitting on my pc, but as soon as I put it on a server, I just get a blank page. Can anyone shed any light on this?
Thanks,
Helen.
Do you have Script Debugging available (MSIE?).
If the XSLT is driven by JavaScript, then you should be seeing an error. Try and get Debugging working.
In the meantime, when this sort of thing happens to me, it is usually something to do with changes to filepath references in the code.
Hope this helps....
sourceFile = "http://www.example.com/rss.xml"
styleFile = Server.MapPath("newsfeed.xsl")
Set xmlhttp = Server.CreateObject("MSXML2.SERVERXMLHTTP")
xmlhttp.Open "GET", sourceFile, false
xmlhttp.Send
set source = Server.CreateObject("MSXML2.DOMDocument")
source.async = false
source.loadxml(xmlhttp.ResponseText)
set style = Server.CreateObject("MSXML2.DOMDocument")
style.async = false
style.load(styleFile)
Response.Write source.transformNode(style)
Art