xsl-list
[Top] [All Lists]

Re: [xsl] The output of evaluating an XSLT transform is the same regardless of the order in which output elements are evaluated. Right?

2010-04-13 13:03:13
On Tue, Apr 13, 2010 at 10:50 AM, Wolfgang Laun 
<wolfgang(_dot_)laun(_at_)gmail(_dot_)com> wrote:
On Tue, Apr 13, 2010 at 7:12 PM, Dimitre Novatchev 
<dnovatchev(_at_)gmail(_dot_)com> wrote:

Not necessarily true. The evaluation of

f(g(x))

requires that g(x) be evaluated, before f()  can be evaluated.


a) The obvious reaction: This a trivial statement.


Trivial??? Not quite so, if there is this whole discussion going on :)


b) Second thought: Not necessarily. There are functions f(x), where
you don't have to evaluate x.


There may be such functions, but these are not *all* functions.

c) And even if the final outcome of f(g(x)) does depend on f's
argument, an "evaluation" of f(.) might take place even before g(x) is
evaluated, possibly delaying this to some later moment.

OK. let me correct my original statement from:

f(g(x))

requires that g(x) be evaluated, before f()  can be evaluated.


to:

 f(g(x))

 requires that g(x) be evaluated, before f()  can be *completely* evaluated.




I think the important point is that functional describes the result
but does not prescibe how to produce it.

Another important point is that in many cases evaluation cannot be
*completely*  "independent" or "parallel". Thinking of it this way is
simply wrong.




Cheers,
Dimitre




-W

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





-- 
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play
-------------------------------------
I enjoy the massacre of ads. This sentence will slaughter ads without
a messy bloodbath.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>