Subject: Replacing server scripts (ASP) with XSL, was RE: About xsl:scripts From: "Jonathan Borden" <jborden@xxxxxxxxxxxx> Date: Wed, 14 Apr 1999 18:38:23 -0400 |
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). 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); --------------------- Jonathan Borden http://jabr.ne.mediaone.net > > <Comment> > Maybe, though I think they'd have to give XSL access to all the > ASP objects > (for form interaction and all that) to make XSL do all the work > ASP can do. > Maybe that's a direction they're headed, in which case we'll definitely > have MS-XSL to contend with, but I suspect they'll be leaving ASP as the > framework and XSL as part of the toolkit. > > (That's how I'm presenting it in an upcoming ASP book, anyway, but MS has > been known to change directions on a regular basis.) > </Comment> > > <reply> > You are right on this. So the XSL script host would have to > provide the same > objects as the ASP script host provide today. If that is the > case, XSL would > be a kind of superset to ASP. You and Guy make me think a lot on this :-) > </reply> > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: About xsl:scripts, Didier PH Martin | Thread | RE: Replacing server scripts (ASP) , Didier PH Martin |
Re: apache,perl,xml,xsl, Matthew MacKenzie | Date | RE: Searching huge xml-documents, Ed Nixon |
Month |