<%
'Load the XML
Set xmlObj = Server.CreateObject("Microsoft.XMLDOM")
xmlObj.async = False
xmlObj.load(Server.MapPath("address_book.xml"))
'Load the XSL
Set xslObj = Server.CreateObject("Microsoft.XMLDOM")
xslObj.async = False
xslObj.load(Server.MapPath("address_book.xsl"))
Response.Write(xmlObj.transformNode(xslObj))
%>
<%
' Get Remote XML
Set objXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
objXMLHTTP.open "GET","http://www.charlesjanco.com/test/address_book.xml", false
objXMLHTTP.send
'Load the XML
Set xmlObj = Server.CreateObject("MSXML2.DOMDocument")
xmlObj.async = False
xmlObj.loadXML objXMLHTTP.ResponseXML.xml
'Load the XSL
Set xslObj = Server.CreateObject("MSXML2.DOMDocument")
xslObj.async = False
xslObj.load Server.MapPath("address_book.xsl")
Response.Write xmlObj.transformNode(xslObj)
%>
|