public class

XalanXslTransformer

extends Object
implements XslTransformer
java.lang.Object
   ↳ com.atlassian.confluence.xml.XalanXslTransformer
Known Direct Subclasses

Class Overview

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

Summary

Fields
protected final TransformerFactory transformerFactory
Public Constructors
XalanXslTransformer()
Public Methods
Result transform(Reader stylesheet, Reader xml, Result output)

Transform the supplied XML stream using the supplied stylesheet.

Protected Methods
Source createInputSource(Reader xml)
Source createXsltSource(Reader xslt)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.xml.XslTransformer

Fields

protected final TransformerFactory transformerFactory

Public Constructors

public XalanXslTransformer ()

Public Methods

public Result transform (Reader stylesheet, Reader xml, Result output)

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.

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.

Protected Methods

protected Source createInputSource (Reader xml)

protected Source createXsltSource (Reader xslt)