public class XalanXslTransformer extends Object implements XslTransformer
An implementation of the XslTransformer interface which will perform transforms using the Xalan Transformer.
Modifier and Type | Field and Description |
---|---|
protected TransformerFactory |
transformerFactory |
Constructor and Description |
---|
XalanXslTransformer() |
Modifier and Type | Method and Description |
---|---|
protected Source |
createInputSource(Reader xml) |
protected Source |
createXsltSource(Reader xslt) |
Result |
transform(Reader stylesheet,
Reader xml,
Result output)
Transform the supplied XML stream using the supplied stylesheet.
|
protected final TransformerFactory transformerFactory
public Result transform(Reader stylesheet, Reader xml, Result output)
XslTransformer
Transform the supplied XML stream using the supplied stylesheet. If the transform fails then null will be returned.
You control the format of the output you desire by supplying the Result implementation to be used. This supplied Result will be populated during the transform and returned.
transform
in interface XslTransformer
stylesheet
- the transform to applyxml
- the xml to be transformedoutput
- the Result to be populated by the transformCopyright © 2003–2016 Atlassian. All rights reserved.