RE: [xsl] flushing a variable in XSLT

Subject: RE: [xsl] flushing a variable in XSLT
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 13 Mar 2001 17:55:47 -0000
>
> Does anyone know if it is possible to "flush" the contents of
> a variable in
> XSLT? I am using XT to do transforms on fairly huge XML files and am
> creating several large node-sets during the course of the
> processing. I
> wondered if it were possible to clear their contents from
> memory as soon as
> I have finished with them in order to speed up the transform.
>

(1) Java is quite good at doing garbage collection of things that are no
longer referenced
(2) xt is extremely good at lazy evaluation of node-sets, so they rarely
take up any memory.
(3) A consequence of (2) is that it would be very dangerous to guess when
you have finished with a variable: when you think you've finished with it,
xt probably hasn't even started with it yet.

Mike Kay
Software AG


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


Current Thread