Package com.atlassian.confluence.xml
Class XalanXslTransformer
- java.lang.Object
-
- com.atlassian.confluence.xml.XalanXslTransformer
-
- All Implemented Interfaces:
XslTransformer
- Direct Known Subclasses:
XhtmlXalanXslTransformer
public class XalanXslTransformer extends Object implements XslTransformer
An implementation of the XslTransformer interface which will perform transforms using the Xalan Transformer.
-
-
Field Summary
Fields Modifier and Type Field Description protected TransformerFactorytransformerFactory
-
Constructor Summary
Constructors Constructor Description XalanXslTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SourcecreateInputSource(Reader xml)protected SourcecreateXsltSource(Reader xslt)Resulttransform(Reader stylesheet, Reader xml, Result output)Transform the supplied XML stream using the supplied stylesheet.
-
-
-
Field Detail
-
transformerFactory
protected final TransformerFactory transformerFactory
-
-
Method Detail
-
transform
public Result transform(Reader stylesheet, Reader xml, Result output)
Description copied from interface:XslTransformerTransform 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.
- Specified by:
transformin interfaceXslTransformer- Parameters:
stylesheet- the transform to applyxml- the xml to be transformedoutput- the Result to be populated by the transform- Returns:
- the populated output parameter or null if there was an error.
-
-