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

RE: XSLT 2.0: Are arguments to functions evaluated ea

Subject: RE: XSLT 2.0: Are arguments to functions evaluated eagerly or lazily?
From: "Colin Adams" <colinpauladams@xxxxxxxxxxx>
Date: Wed, 18 Jul 2007 07:22:10 +0100
RE:  XSLT 2.0: Are arguments to functions evaluated  ea
From: Justin Johansson <procode@xxxxxxxxxx>

Supposing you have a function that is passed two arguments, say, a
condition argument, test, and an argument,  value, that returns value if
test is true and the empty sequence otherwise,
is the value argument evaluated at the time of calling the function if the
test argument is false?  Is this processor implementation specific and/or
are there any XSLT 2.0 processors which do evaluate lazily?

It is processor specific - there are no constraints on the order in which arguments are evaluated (or whether they are evaluated at all), provided the semantics of the particular function are met.


So strict, lazy or speculatively parallel evaluations are all possible.

And yes, some processors do use lazy evaluation.

_________________________________________________________________
Tell MSN about your most memorable emails!  http://www.emailbritain.co.uk/

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.