com.icl.saxon.trax
Interface Templates

All Known Implementing Classes:
PreparedStyleSheet

public interface Templates

The Templates object is the runtime representation of compiled transformation instructions. Templatess must be threadsafe for a given instance over multiple threads concurrently, and are generally meant to be used many multiple times for a given session.

Open issues:

newTransformer

Is newTransformer the right way to create a transformer? The alternative might be to have a factory method in the Transformer class that takes as an argument a Templates object.


Method Summary
 OutputFormat getOutputFormat()
          Get the properties for xsl:output.
 Transformer newTransformer()
          Create a new transformation context for this Templates object.
 

Method Detail

newTransformer

public Transformer newTransformer()
Create a new transformation context for this Templates object.

getOutputFormat

public OutputFormat getOutputFormat()
Get the properties for xsl:output. The object returned will be a clone of the internal values, and thus it can be mutated without mutating the Templates object, and then handed in to the process method.
Returns:
A OutputProperties object that may be mutated.
See Also:
org.xml.serialize.OutputFormat