There are four main classes and interfaces in TrAX,
all in the javax.xml.transforms
package:
Transformer
The class that represents the style sheet.
It transforms a Source
into a
Result
.
TransformerFactory
A factory class that
reads a stylesheet to produce a new
Transformer
.
Source
The interface that represents the input XML document to be
transformed, whether presented as a DOM tree, an
InputStream
, or a SAX event sequence.
Result
The interface that represents the XML document produced by the
transformation, whether generated as a DOM tree, an
OutputStream
, or a SAX event sequence.