Glenn,

There is only one way in which you can instanciate a Templates object,
and that is by running "newTemplates(Source src)" on the transformer
factory. Once this Templates object is created it can then be cached
in memory, or on disk (using serialization). This is all demonstrated
in our "CompiledJAXP" example.

When using TrAX you should stick to what is documented in the TrAX
API. I don't know what convinced you to use the internal interface of
our TrAX implementation.

Thanks,
Morten


Glenn Nielsen wrote:
> 
> I reimplemented use of precompiled Translet's using Xalan 2.2 D9.
> 
> This snippet of code allows me to create a Template from a translet
> class name.
> 
> template = (Templates)new TemplatesImpl(null,translet);
> 
> It isn't clear from the java docs for TemplatesImpl that you can pass
> in either the byte codes or the translet class name.
> 
> So the precompiled Translet's can be instantiated as a Templates object.
> But I have found that a number of XSL stylesheets I tried did not work
> correctly as a precompiled Translet.
> 
> Regards,
> 
> Glenn

Reply via email to