[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
Tue Oct 17 18:43:14 PDT 2006


  flowrrr - how to structure a function?
> I wonder how other processors work. I read somewhere that you 
> can use Saxon as eXist's XQuery processor

No, you can use Saxon instead of eXist's XQuery processor.
> 
> Do other processors evaluate sequences in order?

There are some cases where Saxon won't evaluate sequences in order, though
it tries to make pessimistic assumptions when it comes to calling extension
functions (for example, it won't evaluate them at compile time even if all
the arguments are known). The one that usually throws people is with
variable declarations. If you do

let $x := f()
let $y := g()
let $z := h()
return ($y, $x)

then g() will be evaluated before f(), and h() won't be evaluated at all -
at any rate, that's the situation this week.

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.