public class XMLTransformer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
XMLTransformer.XMLTransformerException
Exception class for XSLT transformations.
|
Constructor and Description |
---|
XMLTransformer(java.lang.String xslturi)
Constructs a new transformer using the XSLT script at the given
URI.
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Element |
doTransform(org.w3c.dom.Element srcel)
Applies this transform to the given input DOM element, returning
the result also as a DOM element.
|
org.w3c.dom.Element |
doTransform(javax.xml.transform.Source src)
Applies this transform to the given source, returning
the result as a DOM element.
|
void |
doTransform(javax.xml.transform.Source src,
javax.xml.transform.Result rslt)
Applies this transform to the given source to produce the
given result.
|
java.lang.String |
doTransform(java.lang.String srcstr)
Applies this transform to the given input XML text, returning
the result as a string.
|
void |
doTransform(java.lang.String inf,
java.lang.String outf)
Applies this transform to the given input XML file, producing
the result in the given output file.
|
java.lang.String |
elText(org.w3c.dom.Element el)
Returns the text of the given DOM element.
|
public XMLTransformer(java.lang.String xslturi) throws XMLTransformer.XMLTransformerException
public java.lang.String elText(org.w3c.dom.Element el) throws XMLTransformer.XMLTransformerException
public void doTransform(java.lang.String inf, java.lang.String outf) throws XMLTransformer.XMLTransformerException
public java.lang.String doTransform(java.lang.String srcstr) throws XMLTransformer.XMLTransformerException
public org.w3c.dom.Element doTransform(org.w3c.dom.Element srcel) throws XMLTransformer.XMLTransformerException
public org.w3c.dom.Element doTransform(javax.xml.transform.Source src) throws XMLTransformer.XMLTransformerException
public void doTransform(javax.xml.transform.Source src, javax.xml.transform.Result rslt) throws XMLTransformer.XMLTransformerException