com.atlassian.confluence.xml
Class XalanXslTransformer

java.lang.Object
  extended by com.atlassian.confluence.xml.XalanXslTransformer
All Implemented Interfaces:
XslTransformer
Direct Known Subclasses:
XhtmlXalanXslTransformer

public class XalanXslTransformer
extends java.lang.Object
implements XslTransformer

An implementation of the XslTransformer interface which will perform transforms using the Xalan Transformer.


Field Summary
protected  javax.xml.transform.TransformerFactory transformerFactory
           
 
Constructor Summary
XalanXslTransformer()
           
 
Method Summary
protected  javax.xml.transform.Source createInputSource(java.io.Reader xml)
           
protected  javax.xml.transform.Source createXsltSource(java.io.Reader xslt)
           
 javax.xml.transform.Result transform(java.io.Reader stylesheet, java.io.Reader xml, javax.xml.transform.Result output)
           Transform the supplied XML stream using the supplied stylesheet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transformerFactory

protected final javax.xml.transform.TransformerFactory transformerFactory
Constructor Detail

XalanXslTransformer

public XalanXslTransformer()
Method Detail

transform

public javax.xml.transform.Result transform(java.io.Reader stylesheet,
                                            java.io.Reader xml,
                                            javax.xml.transform.Result output)
Description copied from interface: 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.

Specified by:
transform in interface XslTransformer
Parameters:
stylesheet - the transform to apply
xml - the xml to be transformed
output - the Result to be populated by the transform
Returns:
the populated output parameter or null if there was an error.

createXsltSource

protected javax.xml.transform.Source createXsltSource(java.io.Reader xslt)

createInputSource

protected javax.xml.transform.Source createInputSource(java.io.Reader xml)


Copyright © 2003-2014 Atlassian. All Rights Reserved.