org.mmbase.module
Class XSLConvert
java.lang.Object
org.mmbase.util.functions.FunctionProvider
org.mmbase.util.functions.DescribedFunctionProvider
org.mmbase.module.Module
org.mmbase.module.ProcessorModule
org.mmbase.module.XSLConvert
- All Implemented Interfaces:
- Descriptor
public class XSLConvert
- extends ProcessorModule
XSL conversion module
Right now, only the replace() method is defined. It is called as:
$MOD-XSLCONVERT-xmlPath-xslFile
where xmlPath is the path relative to mmbase.config and xslFile is
and xsl file located in the subdirectory xslt of mmbase.config.
- Version:
- $Id: XSLConvert.java 35335 2009-05-21 08:14:41Z michiel $
- Author:
- Case Roole, cjr@dds.nl
- Application:
- XSL or Tools
- Move:
- org.mmbase.util.xml
| Methods inherited from class org.mmbase.module.Module |
addInitParameters, checkModules, getInitParameter, getInitParameter, getInitParameter, getInitParameters, getInitParameters, getMaintainer, getModule, getModule, getModule, getModule, getModuleLoader, getModuleReader, getModuleReader, getModules, getState, getStates, getVersion, hasModule, hasStarted, loadInitParameters, loadInitParameters, maintainance, setInitParameter, setMaintainer, setState, setVersion, shutdown, shutdownModules, startModule, startModules |
| Methods inherited from class org.mmbase.util.functions.DescribedFunctionProvider |
getDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUIName, setName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XSLConvert
public XSLConvert(String name)
init
public void init()
- Overrides:
init in class ProcessorModule
replace
public String replace(PageInfo sp,
String cmds)
- Handle a $MOD command
It is called as:
$MOD-XSLCONVERT-xmlPath-xslFile
where:
- xmlPath is the path relative to mmbase.config and,
- xslFile is xsl file located in the subdirectory xslt of mmbase.config.
- Overrides:
replace in class ProcessorModule
transform
public String transform(String xmlPath,
String xslPath)
- Transform XML file using an XSL file
- Parameters:
xmlPath - Path to XML filexslPath - Path to XSL file
- Returns:
- Converted document
getModuleInfo
public String getModuleInfo()
- Overrides:
getModuleInfo in class Module
MMBase Scan 2.0-SNAPSHOT - 2013-05-29T22:21