[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?

Robert Koberg rob at koberg.com
Tue Oct 17 08:27:07 PDT 2006


  flowrrr - how to structure a function?
Peter wrote:
> Rob,
> 
> Without trying it, what you have written seems fine to me. You could inline
> some things but it should, at least in theory, not make a difference
> 
> One thing to be aware of is that you have no guarantee (again in theory)
> that the order in which function calls are evaluated match the order in
> which you write them.
> 
> So theoretically an XQuery engine might choose to first evaluate 
> 
> session:set-attribute($project-key,
> $group-name),response:redirect-to(xs:anyURI("./project/"))
> 
> before it evaluates the other function calls in the deepest return.

hmmm... if I understand correctly, that would [expletive deleted]. I suppose it would 
be implementation dependent (I am using eXist), but I would hope that it 
would be in order so a redirect would happen after the session variables 
are set - or do the redirect but still set the session variables ??

I will ask on the eXist list what can be expected.

thanks,
-Rob

> 
> Hth,
> 
> Peter



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.