Class XSLTTransformerProcessor
java.lang.Object
net.simplace.pipe.control.FWProcessor
net.simplace.pipe.processors.XSLTTransformerProcessor
Transforms a xml in field ${parameterToTransform} with ${XSLT} file from classpath.
- Author:
- Andreas Enders
-
Field Summary
Fields inherited from class FWProcessor
iAllreadyLoopedCount, iContainer, iInObservable, iObservable, iProgressTasks -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionperformTransformation(String aXML, Reader aReader) Performs the XSLT transformation.booleanprocess()Must be overidden to implemnt concrete pipe procedure.Methods inherited from class FWProcessor
checkInParameterMap, checkOutParameterMap, clone, containsParameter, createProcessor, createProcessor, fireTaskEvent, getAllStringInParameters, getConfiguration, getInitialParameters, getInParameter, getInParameter, getInParameters, getNewProgressTask, getOutParameter, getOutParameterKeys, getPipeLine, getProgressTask, getStringInParameter, getStringInParameter, getSystemID, hasConfiguration, isEndOfPipe, pipe, removeOutParameter, setConfiguration, setEndOfPipeFlag, setInitialParameters, setInParameterMap, setLoopedCount, setOutParameter, setStateOfTask, setStateProgressing, toXML
-
Constructor Details
-
XSLTTransformerProcessor
public XSLTTransformerProcessor()
-
-
Method Details
-
process
Must be overidden to implemnt concrete pipe procedure.- Specified by:
processin classFWProcessor- Returns:
trueon success;falsemakesFWProcessor.pipe(FWObservable, Integer)fail- Throws:
PipeLineException- if processing fails
-
performTransformation
Performs the XSLT transformation. Included/imported stylesheets are resolved as connector resources or as files (UTF-8).- Parameters:
aXML- the XML document as stringaReader- reader for the XSLT stylesheet- Returns:
- the transformation result
- Throws:
Exception- if the stylesheet cannot be compiled or the transformation fails
-