Hi,

You may want to try the recently donated XSLT Compiler (XSLTC).

You can compile your stylesheets into translets and cache a specialized
DOM built once from the XML file and optimized to work with the
the compiled translets to perform the fastest transformation.

Take a look at

   ...\xml-xalan\java\src\org\apache\xalan\xsltc\dom\DocumentCache.java

There is an example showing the use of document caching in

   ...\xml-xalan\java\samples\CompiledServlet

If your unique XML file doesn't change often and you are transforming
it over and over again with your set of XSL stylesheets (compiled into
translets), this may be the ideal solution for you.

Tom

MAHE Vincent FTRD/DIH/REN wrote:

> Can anyone tell me what is the fastest way to process one unique XML file
> against several XSL files.
> I mean, I want to process the same XML file with different XSL files (and I
> have a lot of them !).
>
> How can I parse the XML file just once and then use always the same object
> with my Transformer ?
>
> Thanks.
>
>
> Vincent

Reply via email to