Name

Package javax.xml.transform

Synopsis

This package defines an high-level implementation-independent API for using an XSLT engine or other document transformation system for transforming XML document content, and also for transforming XML documents from one form (such as a stream of text in a file) to anther form (such as a tree of DOM nodes). The Source interface is a very generic description of a document source. Three concrete implementations that represent documents in text form, as DOM trees, and as sequences of SAX parser events are defined in the three subpackages of this package. The Result interface is a similarly high-level description of what form the source document should be transformed into. The three subpackages define three Result implementations that represent XML documents as streams or files, as DOM trees, and as sequnces of SAX parser events.

The TransformerFactory class represents the document transformation engine. The implementation provides a default factory that represents an XSLT engine. A TransformerFactory can be used to produce Templates objects that represent compiled XSL stylesheets (or other implementation-dependent forms of transformation instructions). Documents are actually transfomed from Soruce to Result with a Transformer object, which is obtained from a Templates object, or directly from a TransformerFactory.

Interfaces

public interface ErrorListener;
public interface Result;
public interface Source;
public interface SourceLocator; public interface ...

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.