Class XSLTTransformerProcessor

java.lang.Object
net.simplace.pipe.control.FWProcessor
net.simplace.pipe.processors.XSLTTransformerProcessor

public final class XSLTTransformerProcessor extends FWProcessor
Transforms a xml in field ${parameterToTransform} with ${XSLT} file from classpath.
Author:
Andreas Enders
  • Constructor Details

    • XSLTTransformerProcessor

      public XSLTTransformerProcessor()
  • Method Details

    • process

      public boolean process() throws PipeLineException
      Must be overidden to implemnt concrete pipe procedure.
      Specified by:
      process in class FWProcessor
      Returns:
      true on success; false makes FWProcessor.pipe(FWObservable, Integer) fail
      Throws:
      PipeLineException - if processing fails
    • performTransformation

      public String performTransformation(String aXML, Reader aReader) throws Exception
      Performs the XSLT transformation. Included/imported stylesheets are resolved as connector resources or as files (UTF-8).
      Parameters:
      aXML - the XML document as string
      aReader - reader for the XSLT stylesheet
      Returns:
      the transformation result
      Throws:
      Exception - if the stylesheet cannot be compiled or the transformation fails