[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Replacing server scripts (ASP) with XSL, was RE: About x
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|