Package org.inria.ns.reflex.xml.translet

Support for compiled stylesheets (Java bytecode), includes a compiler from XSLT to javax.xml.transform.Templates.

See:
          Description

Class Summary
AbstractTemplateTemplates A Templates that wraps a Translet.
Compile Compiles an XSLT stylesheet to a JAR file.
TemplateTemplates As its name suggests, this class is just a template and doesn't have to be used directly (it will fail if you try to).
TemplateTemplatesCreator Do not update: this class has been generated.
 

Package org.inria.ns.reflex.xml.translet Description

Support for compiled stylesheets (Java bytecode), includes a compiler from XSLT to javax.xml.transform.Templates.

The idea is to get with XSLTC a compiled form of an XSLT stylesheet that is a Templates, in order to used a compiled instance exactly the same way as if it would have been supplied by JAXP.

Once compiled (and its JAR file can be loaded by a classloader), a compiled stylesheet can be used like this:

javax.xml.transform.Templates myXSLT = (javax.xml.transform.Templates) Class.forName( "org.acme.MyTemplates" );

...and then use it as usual.

Note that RefleX uses a more convenient way to get a singleton of such classes.

Since:
1.4