[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Let's face it: side effects are sometimes necessar

Subject: Re: Let's face it: side effects are sometimes necessary!
From: Gunther Schadow <gunther@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 02 Dec 2002 19:56:18 -0500
changing data side effect
Well, by transaction I meant, for instance, that the XSLT
would process an incoming order and would write that order
into a database. Or it would receive a cancellation of that
order and would delete that record from the order. By
transaction I meant more than fetching data. I meant changing
data. And a function performing a change of data once it
returns by definition has a side effect, right?

regards
-Gunther



Dion Houston wrote:


Let me tickle a bit: you don't agree with the subject line, but
how do you suppose one could use XSLT to execute a transaction
in an information system? By definition this is using side-
effects. XML driven JDBC calls through XSLT is where I find the
best use of XSLT right now (I'm not a web-designer, but a
passionate XSLT user.)

- OK, I'll bite... why do transactions "by definition" require side
effects? I've written a prototype web server in XSLT with C#
extensions. These extensions only fetch the next web request, and send
back a response.


My "web server" operates in a completely stateless matter, simply by
taking XML from the request, applying templates, and piping the result
tree fragment over the wire.  It is therefore completely stateless and
side effect free, and still handles transactions just fine.


--
Gunther Schadow, M.D., Ph.D.                    gschadow@xxxxxxxxxxxxxxx
Medical Information Scientist      Regenstrief Institute for Health Care
Adjunct Assistant Professor        Indiana University School of Medicine
tel:1(317)630-7960                         http://aurora.regenstrief.org



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.