|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wamblee.xml.XslTransformer
public class XslTransformer
XSL transformer for simplified usage of XSL transformations.
| Constructor Summary | |
|---|---|
XslTransformer()
Constructs the XSLT processor. |
|
XslTransformer(URIResolver aResolver)
Constructs the URL resolver. |
|
| Method Summary | |
|---|---|
Source |
resolve(String aXslt)
Resolves an XSLT based on URI. |
String |
textTransform(byte[] aDocument,
Source aXslt)
Transforms a document to a text output. |
Document |
transform(byte[] aDocument,
Source aXslt)
Transforms a document using XSLT. |
Document |
transform(Document aDocument,
Source aXslt)
Transforms a DOM document into another DOM document using a given XSLT transformation. |
void |
transform(Source aSource,
Result aResult,
Source aXslt)
Transforms a document using XSLT. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XslTransformer(URIResolver aResolver)
aResolver - URI resolver to use.public XslTransformer()
| Method Detail |
|---|
public Source resolve(String aXslt)
throws TransformerException
aXslt - XSLT to resolve,
TransformerException - In case the XSLT cannot be found.
public Document transform(Document aDocument,
Source aXslt)
throws IOException,
TransformerException
aDocument - Document to transform.aXslt - XSLT to use.
IOException - In case of problems reading resources.
TransformerException - In case transformation fails.
public Document transform(byte[] aDocument,
Source aXslt)
throws IOException,
TransformerException
aDocument - Document to transform.aXslt - XSLT to use.
IOException - In case of problems reading resources.
TransformerException - In case transformation fails.
public String textTransform(byte[] aDocument,
Source aXslt)
throws IOException,
TransformerException
aDocument - Document to transform.aXslt - XSL transformation.
IOException
TransformerException
public void transform(Source aSource,
Result aResult,
Source aXslt)
throws IOException,
TransformerException
aSource - Document to transform.aResult - Result of the transformation.aXslt - XSLT to use.
IOException - In case of problems reading resources.
TransformerException - In case transformation fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||