RE: Replacing server scripts (ASP) with XSL, was RE: About xsl:scripts

Subject: RE: Replacing server scripts (ASP) with XSL, was RE: About xsl:scripts
From: "Didier PH Martin" <martind@xxxxxxxxxxxxx>
Date: Wed, 14 Apr 1999 19:43:36 -0400
Hi Jonathan,

<Comment>
Here's a snippet from a current XML/XSL based electronic medical record
project (this is already being used in beta form, and is going into
production/live patient data mode in about 2 weeks).

What is illustrated is how ASP scripts can be replaced by XSL
transformations. The client request is sent via HTTP as an XML document. The
HTTP response is XML back to the client, hence XML is used as a sort of RPC
PDU (not to be confused with XML-RPC).
</Comment>

<reply>
You said through HTTP From the client to the server:is is with a post
command? And from the server to the client: is it with a Get command comming
from the client?
</reply>

<Comment>
By hooking into the ASP Request object, this document is read directly into
a DOM object which is transformed via XSL.

This project uses relational database storage (because queries and indices
are critical). Relational database access is via an XML -XSL-> ODBC adapter.

You can see how straightforward this is (and it works :-)

---------asp javascript snippet here----------

	var req = Server.CreateObject("Microsoft.XMLDOM");
	req.load(Request);

	var query = req.transformNode(xfQuery);
	var rs = conn.Execute(query);
	rsToXML(rs);

---------------------
</Comment>

<reply>
got it. lean and mean and efficient. rsToXML is probably a function you
created to transform the data set into a XML document. This is a good hint.
Thanks Jonathan.
</reply>

regards
Didier PH Martin
mailto:martind@xxxxxxxxxxxxx
http://www.netfolder.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread