com.atlassian.confluence.xml
Interface XslTransformer

All Known Implementing Classes:
XalanXslTransformer, XhtmlXalanXslTransformer

public interface XslTransformer

Implemented by a component that can apply an XSL transform to provided XML input.


Method Summary
 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.
 

Method Detail

transform

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. 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.


Copyright © 2003-2014 Atlassian. All Rights Reserved.