So does this mean that there's no such possibility for XalanJ?
Saxon has such possibility and, as you say, XSLTC as well.
Do I have to change my transformer?

To precise my requirements:
I have a single fixed stylesheet and a single fixed huge XML document.
Clients request different parts from the XML what is defined by parameters
to the stylesheet.
Parsing the XML takes much more time than the transformation itself.

Thanx and regards
Kurt

----- Original Message ----- 
From: Joanne Tong
To: Kurt Riede
Cc: [EMAIL PROTECTED]
Sent: Monday, April 04, 2005 4:46 PM
Subject: Re: is pre-generation and caching a DTM possible?

Hi

If you're using XSLTC, you could cache the XML document.

http://xml.apache.org/xalan-j/xsltc/xsltc_trax_api.html

Joanne Tong
Software Developer, XSLT Development, IBM Toronto Lab



"Kurt Riede" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
04/03/05 08:26 AM To<[EMAIL PROTECTED]>
cc
Subjectis pre-generation and caching a DTM possible?







Suppose we have a big XML document (>10MB) that rarely changes.
We also have a single stylesheet to transform the XML very often (>500/min)
in different ways, to extract and transform different parts of the XML to
distinct targets.

For every transformation, Xalan again builds the DTM from the XML what
impacts performance dramaticaly because the transformations themselfs are
quite simple.

Is there a way to make the transformer to cache the internal optimized
representation of the XML?

Or can I pre-generate the DTM by myself and put it into a DOMSource somehow?

Regards

Kurt Riede

Reply via email to