Click here to Skip to main content
11,702,130 members (62,751 online)
Click here to Skip to main content
Articles » Languages » XML » XSLT » Downloads
Add your own
alternative version

Using XSLT to render XML data returned by a COM object

, 12 Sep 2001 118.5K 825 31
This is a 3-tier application. A COM component returns SQL data in XML format, then using XSLT to transform to HTML at client side. By using XML, all the data can be sort, split into pages locally, that will give users a quick response!
Option Explicit

dim comObj
dim strXML

set comObj = createobject("xmlrs.xmlrsobj")

'Modify the connection String to fit your environment
comobj.ConnectDB "Provider=sqloledb;Data Source=MyServer;" & _
        "Initial Catalog=pubs;User Id=sa;Password=YourPassword;"

strXML = comObj.GetXmlrs

Response.ContentType = "text/xml"
response.write "<?xml version=""1.0""?>"
response.write "<?xml-stylesheet type=""text/xsl"" href=""xml.xsl""?>"
response.write strXML


By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Alan Wen
Web Developer
China China
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150819.1 | Last Updated 13 Sep 2001
Article Copyright 2001 by Alan Wen
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid