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

John Snelson jsnelson at sleepycat.com
Tue Oct 17 15:35:58 PDT 2006


  flowrrr - how to structure a function?
Hi Robert,

It shouldn't matter which order functions are evaluated in, since XQuery 
functions are meant to be side-effect free. In the case of your query, 
what that means is that the attribute setting and redirection should be 
queued up to be executed after the query has finished - this is what 
happens in the XQuery Update specification.

As it happens, all the functions that you use are probably just setting 
name-value pairs to be output in the HTTP response header, so their 
order won't matter there either.

John

Robert Koberg wrote:
> I wonder how other processors work. I read somewhere that you can use 
> Saxon as eXist's XQuery processor, which I intend to do for validity and 
> performance comparisons.
> 
> Do other processors evaluate sequences in order?
> 
>>>> So theoretically an XQuery engine might choose to first evaluate
>>>> session:set-attribute($project-key,
>>>> $group-name),response:redirect-to(xs:anyURI("./project/"))
>>>>
>> FYI. I asked on the eXist list and Wolfgang Meier responded with:
>>
>> "No. The functions will be evaluated in the same order as they are
>> added to the sequence. No problem here."
>>
> 
> -Rob
> 
> _______________________________________________
> http://x-query.com/mailman/listinfo/talk
> http://x-query.com/mailman/listinfo/talk



PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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.