[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

flowrrr - how to structure a function?

Michael Kay mhk at mhk.me.uk
Wed Oct 18 11:32:19 PDT 2006


  flowrrr - how to structure a function?
> I think Wolfgang's function library in eXist (http://demo.exist-
> db.org/xquery/functions.xq) also includes functions to create 
> user sessions, this might be more difficult to make 
> side-effect free. I.e.  
> if session:create(), session:set-current-user() and session:invalidate
...


I'm inclined to thing that the best way to handle such things is to define
an XML representation of the object (for example, a session) and allow the
user to construct the XML representation any way they like. Similarly an
HttpHeader. Then if the response from the query includes one of these
elements (which can be detected from its namespace) the calling code can
translate it into the native representation.

I do something along these lines to allow DTDs to be constructed: see
http://www.saxonica.com/documentation/extensions/instructions/doctype.html

Michael Kay
http://www.saxonica.com/



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-2007 All Rights Reserved.