Overview | Package | Class | Use | Tree | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES

## Package javax.xml.transform

Base "TRAX" API for XSLT transformers.

See:
Description

Interface Summary
ErrorListener | JAXP/Transform analogue of SAX ErrorHandler, using `TransformerException` classes.
Result | Result
Source | Identifies the URI for either a transformation (XSLT stylesheet) or an input to a transformation (XML document to be transformed).
SourceLocator | JAXP/transform analogue of SAX Locator.
Templates | Encapsulates a pre-parsed (reusable) XSLT transform.
URIResolver | URIResolver

Class Summary
OutputKeys | Provides names for XSLT output attributes.
Transformer | Apply a transformation from a source, populating a result.
TransformerFactory | Abstract class extended by implementations.

Exception Summary
TransformerConfigurationException | TransformerConfigurationException
TransformerException | Encapsulates a problem exposed during a transformation.

Error Summary
TransformerFactoryConfigurationError | Reports a `TransformerFactory` configuration error.

## Package javax.xml.transform Description

Base "TRAX" API for XSLT transformers. This API borrows many structural notions from SAX, such as the way error handling and external entity resolution are handled, although it does not reuse the corresponding SAX classes. To use XSLT transformers:

- Start with TransformerFactory.newInstance();
- Then you may wish to configure that factory through its features and properties. This includes modifying the way errors are handled and URIs are resolved.
- Then you have several options for how to perform the XSLT transformations. One generic option is to ask the factory for a Transformer and then use Transformer.transform() to pull input text onto output text.
- Alternatively, most factories support flexible integration with SAX event streams. You can cast such factories to a SAXTransformerFactory and perform either push or pull mode transformations.

The OutputKeys class holds constants that can be used to configure output properties used with Result objects, as if they were specified in xslt:output attributes in the stylesheet specifying the transform.

The Templates class accomodates the notion of "compiled" transforms.

Overview | Package | Class | Use | Tree | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES

Source code is under GPL (with library exception) in the JAXP project at http://www.gnu.org/software/classpathx/jaxp
This documentation was derived from that source code on 2001-11-20.