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
|
Method Summary |
String |
getModuleInfo()
Provide some info on the module;
By default, this returns the module description for the default locale |
void |
init()
Initializes the module. |
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. |
String |
transform(String xmlPath,
String xslPath)
Transform XML file using an XSL file |
| 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()
- Description copied from class:
ProcessorModule
- Initializes the module.
Init must be overridden to read the environment variables it needs.
This method is called by Module.startModule(), which makes sure it is not called
more than once. You should not call init() directly, call startModule() instead.
- 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()
- Description copied from class:
Module
- Provide some info on the module;
By default, this returns the module description for the default locale
- Overrides:
getModuleInfo in class Module
MMBase 2.0-SNAPSHOT - null