xsl-list
[Top] [All Lists]

RE: Side-effect and PROGN, example JDBC in XSLT

2003-06-20 04:06:33

Hi, on the issue of side-effects, I rediscovered the PROGN 
form that we know from LISP as the thing that's needed in 
order to handle inevitable side-effects in non-trivial XSLT 
applicaitons.

Yes: at some stage I think it may become necessary to introduce a
construct that requires sequential execution, but for the moment, you
can usually get by without it.
 

PS: Interestingly even Saxon 7.5.1 sometimes
evaluates variables/@select expressions even though the 
variable is never actually referenced. But I would never 
exploit such odd behavior, actually it is now even hurting me.

Good, because the time will come when it no longer happens!

I think that unreferenced global variables are common, and it makes
sense to avoid evaluating them. Unreferenced local variables seem to
have no practical use case. Most of my optimization work is driven by
things I actually encounter in real stylesheets.

Michael Kay


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



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