You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Sebastien Sahuc <ss...@imediation.com> on 2000/08/30 17:34:05 UTC
[C2] XT transformer
As Giacomo suggested so well :-) attached you'll find the
XTTransformer.java
The lib used is the latest one from James Clark site :
http://www.jclark.com/xml/xt.html
the distrib is available directly at :
ftp://ftp.jclark.com/pub/xml/xt.zip
The XTTransformer make use of the "store" component to cache the
StyleSheet. And the code is mainly a copy/paste from two classes defined
in XT (XSLProcessorImpl and XMLProcessorImpl) package since they cannot
be extended because of private fields (Eric van der Vlist helped me in
this task).
Xt needs a SAX 1 parser, so I use JAXP classes (SAXParserFactory,
SAXParser classes) to get one.
You can notice a improvement in term of performance when compared to the
current XalanFilter simply because Xalanfilter doesn't yet cache the
StyleSheet, thus reparsing the whole XSL file at every hit.
All the best,
Sebastien