Hi Shane
My java programm runs only a short time and will be restart some days later.
The stylesheet is every time the same. So I want not to compile the stylesheet
each time. What I want is to compile the stylesheet (perhaps in another
program) and to load the compiled stylesheet.
Bernward
>
>
>
>
>
>
> Hmmm? I thought a Templates object in JAXP/TrAX mapped particularly
> well to an xsltc translet. (Someone correct me if I'm missing
> something!)
>
> System.setProperty(set property to use xsltc);
> // The below line creates the Templates (And in xsltc causes the
> translet to be compiled once)
> Templates templates = transformerFactory.newTemplates(XSLSource);
> Transformer transformer = templates.newTransformer();
> transformer.transform(XMLSourceOne, result);
> // From here on out, no more compilation needed: the newTransformer()
> should be very quick
> transformer = templates.newTransformer();
> transformer.transform(XMLSourceTwo, result);
>
> In general I'd reccommend that people try coding just to the JAXP spec
> itself, and avoid using either the xalan or xsltc direct API's unless
> they need a specific feature there. This will mean easier maintenance
> for your code and the chance to change JAXP implementations (i.e. from
> xalan mode to xsltc mode or whatever) easily.
>
> - Shane
>
>
> =====
> <eof aka="mailto:[EMAIL PROTECTED]"
> BartSays="Nobody reads these anymore."/>
>
______________________________________________________________________________
Die sch�nsten Ski-Regionen der Alpen - jetzt bei Ferienklick.de
http://ferienklick.de/ski/?PP=2-5-100-105-38