The referenced XML documents I was loading/processing during operation
of the primary XML document were being cached. Although I only used
each document once within the scope of single template, the XSL
processor in general couldn't know this. I found a reference in the FAQ
with regards to memory problems processing multiple documents and it
showed a mechanism for turning the document caching off. The example is
in the context of the for-each which I didn't have and don't need, but I
couldn't seem to get this to work without it. However, I did
restructure my template to have a for-each (to handle a single document)
and was able to get things to work.
Following is the example code from the FAQ for those interested:
<xsl:template match="doc">
<xsl:for-each select="document(@href)/bar/zulu">
<?xalan-doc-cache-off?>
<!-- process each document -->
<xsl:for-each>
</xsl:template>
Joseph Kesselman wrote:
Java GC should run automatically as memory gets scarce, so it probably is
NOT your issue. (And note that Java never lets you "force" garbage
collection; the most you can do is hint that "you might want to do it now
rather than waiting until later").
How deep is the recursion in your stylesheet? How many layers of variables
are piling up? How many documents are you referencing (normally, they're
all cached in memory until the transformation ends)?
______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Edward L. Knoll Phone (FedEx) : (719)484-2717
e-mail (FedEx) : [EMAIL PROTECTED]
e-mail (personal) : [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]