Here's a piece of code I am working on. It's part of a sub that renders an
XHTML document from
XML. When I run the script that calls this sub, nothing happens--the script loads, but nothing is displayed. However, I get no errors. Anyone have any tips?
- Code: Select all
Dim xmldoc, stylesheet
Set xmldoc = CreateObject("MSXML2.DOMDocument.4.0")
Set stylesheet = CreateObject("MSXML2.DOMDocument.4.0")
xmldoc.Async = False
xmldoc.Load(atombody)
stylesheet.Async = False
stylesheet.Load(Server.MapPath("/Global/xml/stylehtml.xsl"))
'RENDER XML DOCUMENT:
Response.Write xmldoc.TransformNode(stylesheet)
Set xmldoc = Nothing
Set stylesheet = Nothing
(By the way, "atombody" is a string containing a properly-formatted
XML document--it has been validated and contains no errors.)