Re: side-effect-free (was Re: Can solve the N-queens - but can't count!)

Subject: Re: side-effect-free (was Re: Can solve the N-queens - but can't count!)
From: "James Tauber" <jtauber@xxxxxxxxxxx>
Date: Fri, 18 Jun 1999 20:24:38 +0800
I wrote:
>  > As I understand, the side-effect-freeness of XSL means that when
processing
>  > this above template, you can go and apply the template for C before the
>  > template for B, or run both in parallel, etc without having to worry
that
>  > something that applying one template does will affect the application
of the
>  > other.

Dieter wrote:
> Are you sure?
>
> If the "apply-templates" generate result tree fragments (as
> they usually do), reordering will produce a different tree.

Yes but, I meant changing the order of execution, not where you put the
result.

> Beside this, you are right. You can change the evaluation
> order without effect as long as you ensure that the result
> tree fragments are plugged in in the right result tree position.

Yes, this is what I was assuming would be done.

JamesT


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread