Hello,

Could someone tell me how/when/where the "document()" XSLT function
actually happens...

The reason I ask is this:

I am currently running 78 (though this will increase) transformations in
one go..  Each transformation works with the same template (.xsl) but a
different XML set..

I am using XML::Xalan (and Perl) to bind to Xalan C++ and currently
destroying the .xsl each time it is used..

Within this particular XSL there are two calls to
"document(path/to/xml)" and the "path/to/xml" 's are the same each time
the transformation is run..

My point is, I want to improve the overall speed of the operation...


My real question then, is given that I know these "document()" calls are
likely to appear, would I be wise to extend "document()" with my own
extension that would keep the files loaded into memory so that they can
be reused without loading the file from disk every time..  OR, if I
don't destroy the template (I am going to play with ways of deciding
whether to do this anyway), are the document() 's that are loaded going
to stay within Xalan until the compiled stylesheet is destroyed?


I look forward to your advice,

Thanks in advance,


Jimbo




Jim Morrison
_____________________________________
Technology & Development Partner
Isotope LLP
9, 2 Laura Place
Bath, BA2 4BH
(01225) 446170
www.mediaisotope.com



Reply via email to