public class XSLTProcessor extends BaseProcessor implements TemplateProcessor
| Modifier and Type | Field and Description |
|---|---|
static org.alfresco.service.namespace.QName |
ROOT_NAMESPACE |
extension, name, processorExtensions, scriptService, services, templateService| Constructor and Description |
|---|
XSLTProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addParameters(XSLTemplateModel xsltModel,
org.w3c.dom.Document xslTemplate)
Adds the specified parameters to the xsl template as variables within the alfresco namespace.
|
protected java.util.List |
addScripts(XSLTemplateModel xsltModel,
org.w3c.dom.Document xslTemplate)
Adds a script element to the xsl which makes static methods on this object available to the xsl tempalte.
|
protected javax.xml.transform.Source |
getXMLSource(java.util.Map model) |
void |
process(java.lang.String template,
java.lang.Object model,
java.io.Writer out)
Process a template against the supplied data model and write to the out.
|
void |
processString(java.lang.String template,
java.lang.Object model,
java.io.Writer out)
Process a string template against the supplied data model and write to the out.
|
void |
register()
Registers this processor with the relevant services
|
getExtension, getName, getProcessorExtensions, registerProcessorExtension, setExtension, setName, setScriptService, setServiceRegistry, setTemplateServicepublic void register()
BaseProcessorregister in class BaseProcessorpublic void process(java.lang.String template,
java.lang.Object model,
java.io.Writer out)
TemplateProcessorprocess in interface TemplateProcessortemplate - Template name/pathmodel - Object model to process template againstout - Writer object to send output toopublic void processString(java.lang.String template,
java.lang.Object model,
java.io.Writer out)
TemplateProcessorprocessString in interface TemplateProcessortemplate - Template stringmodel - Object model to process template againstout - Writer object to send output tooprotected java.util.List addScripts(XSLTemplateModel xsltModel, org.w3c.dom.Document xslTemplate)
xslTemplate - the xsl templateprotected void addParameters(XSLTemplateModel xsltModel, org.w3c.dom.Document xslTemplate)
xsltModel - the variables to place within the xsl templatexslTemplate - the xsl templateprotected javax.xml.transform.Source getXMLSource(java.util.Map model)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.