public class XSLTRenderingEngine extends java.lang.Object implements RenderingEngine
| Modifier and Type | Class and Description |
|---|---|
static class |
XSLTRenderingEngine.ProcessorMethodInvoker |
RenderingEngine.RenderingException, RenderingEngine.TemplateNotFoundException, RenderingEngine.TemplateProcessorMethod, RenderingEngine.TemplateResourceResolverROOT_NAMESPACE| Constructor and Description |
|---|
XSLTRenderingEngine() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addParameters(java.util.Map model,
org.w3c.dom.Document xslTemplate)
Adds the specified parameters to the xsl template as variables within the
alfresco namespace.
|
protected java.util.List |
addScripts(java.util.Map model,
org.w3c.dom.Document xslTemplate)
Adds a script element to the xsl which makes static methods on this
object available to the xsl tempalte.
|
java.lang.String |
getDefaultTemplateFileExtension()
Returns the default file extension for rendering engine templates for this
rendering engine.
|
java.lang.String |
getName()
Returns the rendering engines name.
|
protected javax.xml.transform.Source |
getXMLSource(java.util.Map model) |
void |
render(java.util.Map model,
RenderingEngineTemplate ret,
java.io.OutputStream out)
Renders the xml data in to a presentation format.
|
void |
render(java.util.Map model,
RenderingEngineTemplate ret,
javax.xml.transform.Result result) |
public java.lang.String getName()
RenderingEnginegetName in interface RenderingEnginepublic java.lang.String getDefaultTemplateFileExtension()
RenderingEnginegetDefaultTemplateFileExtension in interface RenderingEngineprotected java.util.List addScripts(java.util.Map model,
org.w3c.dom.Document xslTemplate)
xslTemplate - the xsl templateprotected void addParameters(java.util.Map model,
org.w3c.dom.Document xslTemplate)
model - the variables to place within the xsl templatexslTemplate - the xsl templateprotected javax.xml.transform.Source getXMLSource(java.util.Map model)
public void render(java.util.Map model,
RenderingEngineTemplate ret,
java.io.OutputStream out)
throws java.io.IOException,
RenderingEngine.RenderingException,
org.xml.sax.SAXException
RenderingEnginerender in interface RenderingEnginemodel - The modelret - the rendering engine templateout - The output stream to write tojava.io.IOExceptionRenderingEngine.RenderingExceptionorg.xml.sax.SAXExceptionpublic void render(java.util.Map model,
RenderingEngineTemplate ret,
javax.xml.transform.Result result)
throws java.io.IOException,
RenderingEngine.RenderingException,
org.xml.sax.SAXException
java.io.IOExceptionRenderingEngine.RenderingExceptionorg.xml.sax.SAXExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.