Transform the XML Source
to a Result
. Specific transformation behavior is determined by the settings of the TransformerFactory
in effect when the Transformer
was instantiated and any modifications made to the Transformer
instance.
An empty Source
is represented as an empty document as constructed by {@link javax.xml.parsers.DocumentBuilder#newDocument()}. The result of transforming an empty Source
depends on the transformation behavior; it is not always an empty Result
.
@param xmlSource The XML input to transform.
@param outputTarget The
Result
of transforming the
xmlSource
.
@throws TransformerException If an unrecoverable error occursduring the course of the transformation.