org.mmbase.module
Class XSLConvert

Package class diagram package XSLConvert
java.lang.Object
  extended by org.mmbase.util.functions.FunctionProvider
      extended by org.mmbase.util.functions.DescribedFunctionProvider
          extended by org.mmbase.module.Module
              extended by org.mmbase.module.ProcessorModule
                  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mmbase.module.ProcessorModule
ProcessorModule.GetNodeListFunction, ProcessorModule.ProcessFunction, ProcessorModule.ReplaceFunction
 
Field Summary
 
Fields inherited from class org.mmbase.module.ProcessorModule
PARAM_PAGEINFO, PARAMS_PAGEINFO
 
Fields inherited from class org.mmbase.module.Module
configurationPath, getMaintainerFunction, getVersionFunction, properties, STATE_START_TIME
 
Fields inherited from class org.mmbase.util.functions.DescribedFunctionProvider
description, guiName, name
 
Fields inherited from class org.mmbase.util.functions.FunctionProvider
functions, getFunctions
 
Constructor Summary
XSLConvert(String name)
           
 
Method Summary
 String getModuleInfo()
           
 void init()
           
 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.ProcessorModule
, getList, getListBuilder, getNodeList, onload, process, reload, replace, unload
 
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 org.mmbase.util.functions.FunctionProvider
addFunction, createParameters, getFunction, getFunctions, getFunctionValue, newFunctionInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSLConvert

public XSLConvert(String name)
Method Detail

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 file
xslPath - 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