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

RE: The output of evaluating an XSLT transform is the

Subject: RE: The output of evaluating an XSLT transform is the same regardless of the order in which output elements are evaluated. Right?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 13 Apr 2010 19:49:22 +0100
RE:  The output of evaluating an XSLT transform is the
> Not necessarily true. The evaluation of
> f(g(x))
> requires that g(x) be evaluated, before f()  can be evaluated.

Quite. A better way of expressing the rule would be "the order of evaluation
of a set of expressions is constrained only by the functional dependencies
that exist among the expressions, and the functional dependencies can always
be statically determined."

(But in reality there are further complications. Consider string-join(f(),
g()). Saxon doesn't evaluate g() at all unless f() is a sequence of length 2
or more. So there appears to be a functional dependency from static
analysis, but it's actually a conditional dependency.)


Michael Kay

Current Thread


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.
First Name
Last Name
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.