ASP 101 - Active Server Pages 101 - Web01
The Place ASP Developers Go!

Please visit our partners

Windows Technology Windows Technology
15 Seconds
ASP 101
ASP Wire
VB Forums
VB Wire
internet.commerce internet.commerce
Partners & Affiliates

ASP 101 is an site
ASP 101 is an site
Internet News
Small Business
Personal Technology

Corporate Info
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash

ASP Source Code:
Dim objXML
Dim objXSL
Dim strHTML
' Load the XML File
' The "ServerHTTPRequest" line tells the XML processor that
' the file is to be retrieved from a remote server via HTTP.
' Please note that this code will not work for you until you
' replace our internal address ( with
Set objXML = Server.CreateObject("MSXML2.DOMDocument")
objXML.async = False
objXML.setProperty "ServerHTTPRequest", True
' Load the XSL File
' In most cases I would think this would be local so I'm still
' pulling the stylesheet from the file system, but the code to
' retreive it via HTTP is simply commented out below:
Set objXSL = Server.CreateObject("MSXML2.DOMDocument")
objXSL.async = False
' Local (via file system)
' Remote (via HTTP)
'objXSL.setProperty "ServerHTTPRequest", True
' Transform the XML file using the XSL stylesheet
strHTML = objXML.transformNode(objXSL)
Set objXML = Nothing
Set objXSL = Nothing
' Spit out the resulting HTML... the data comes from the
' .xml file, but the formatting of the results depends
' completely upon the .xsl file.
Response.Write strHTML

Back the the Sample Output

Back to the Sample Index

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback
The Network for Technology Professionals



Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers