Click here to Skip to main content
11,579,662 members (70,019 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.2K 824 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!
xmlrs_src.zip
code
xml.xsl
xmlrs
xmlrs.def
xmlrs.dsp
xmlrs.dsw
xmlrs.tlb
xmlrsobj.rgs
xmlrsps.def
xmlrsps.mk
// xmlrs.idl : IDL source for xmlrs.dll
//

// This file will be processed by the MIDL tool to
// produce the type library (xmlrs.tlb) and marshalling code.

import "oaidl.idl";
import "ocidl.idl";
	[
		object,
		uuid(31C0C662-890C-4331-89F7-31C0DAADFA30),
		dual,
		helpstring("Ixmlrsobj Interface"),
		pointer_default(unique)
	]
	interface Ixmlrsobj : IDispatch
	{
		[id(1), helpstring("method ConnectDB")] HRESULT ConnectDB([in] BSTR bstrConn);
		[id(2), helpstring("method GetXmlrs")] HRESULT GetXmlrs([out, retval] BSTR * bstrXmlrs);
		[id(3), helpstring("method CloseDB")] HRESULT CloseDB(void);
	};

[
	uuid(CDFD378C-0265-48CB-8F73-0B6E69CE7C99),
	version(1.0),
	helpstring("xmlrs 1.0 Type Library")
]
library XMLRSLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(364A14BD-69E2-4615-AEBA-EEF5C348BB44),
		helpstring("xmlrsobj Class")
	]
	coclass xmlrsobj
	{
		[default] interface Ixmlrsobj;
	};
};

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.

License

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

Share

About the Author

Alan Wen
Web Developer
China China
No Biography provided

You may also be interested in...

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