| org.apache.turbine.services.TurbineBaseService org.apache.turbine.services.xslt.TurbineXSLTService
TurbineXSLTService | public class TurbineXSLTService extends TurbineBaseService implements XSLTService(Code) | | Implementation of the Turbine XSLT Service. It transforms xml with a given
xsl file. XSL stylesheets are compiled and cached (if the property in
TurbineResources.properties is set) to improve speeds.
author: Leon Messerschmidt author: Sam Ruby author: Thomas Vandahl version: $Id: TurbineXSLTService.java 567398 2007-08-19 13:11:33Z tv $ |
Field Summary | |
protected boolean | caching Property to control the caching of StyleSheetRoots. | protected String | path Path to style sheets used for tranforming well-formed
XML documents. |
Method Summary | |
protected Templates | compileTemplates(URL source) Compile Templates from an input URL. | protected Templates | getTemplates(String xslName) Retrieves Templates. | public void | init() Initialize the TurbineXSLT Service. | protected void | transform(String style, Source in, Result out, Map params) | public void | transform(String xslName, Reader in, Writer out) | public String | transform(String xslName, Reader in) | public void | transform(String xslName, Node in, Writer out) | public String | transform(String xslName, Node in) | public void | transform(String xslName, Reader in, Writer out, Map params) | public String | transform(String xslName, Reader in, Map params) | public void | transform(String xslName, Node in, Writer out, Map params) | public String | transform(String xslName, Node in, Map params) |
caching | protected boolean caching(Code) | | Property to control the caching of StyleSheetRoots.
|
path | protected String path(Code) | | Path to style sheets used for tranforming well-formed
XML documents. The path is relative to the webapp context.
|
getTemplates | protected Templates getTemplates(String xslName) throws Exception(Code) | | Retrieves Templates. If caching is switched on the
first attempt is to load the Templates from the cache.
If caching is switched off or if the Stylesheet is not found
in the cache a new StyleSheetRoot is compiled from an input
file.
|
init | public void init() throws InitializationException(Code) | | Initialize the TurbineXSLT Service. Load the path to search for
xsl files and initiates the cache.
|
|
|