Class XsltTransmogrifier<T>

java.lang.Object
org.openehealth.ipf.commons.xml.AbstractCachingXmlProcessor<Templates>
org.openehealth.ipf.commons.xml.XsltTransmogrifier<T>
All Implemented Interfaces:
Transmogrifier<Source,T>
Direct Known Subclasses:
SchematronTransmogrifier

public class XsltTransmogrifier<T> extends AbstractCachingXmlProcessor<Templates> implements Transmogrifier<Source,T>
Xslt Processor transforming a Source into an object of type T. The stylesheet to be used is passed with the zap(Source, Object...) call, however, the Xslt Template object is cached for subsequent transformations using this stylesheet.

Xslt parameters can be passed in as Map parameter.

Note: This class is thread-safe and reentrant.

Author:
Christian Ohr
  • Constructor Details

    • XsltTransmogrifier

      public XsltTransmogrifier()
    • XsltTransmogrifier

      public XsltTransmogrifier(Class<T> outputFormat)
    • XsltTransmogrifier

      public XsltTransmogrifier(Class<T> outputFormat, ClassLoader classLoader)
    • XsltTransmogrifier

      public XsltTransmogrifier(Class<T> outputFormat, Map<String,Object> staticParams)
    • XsltTransmogrifier

      public XsltTransmogrifier(Class<T> outputFormat, ClassLoader classLoader, Map<String,Object> staticParams)
      Parameters:
      outputFormat - currently supported: String, Writer, OutputStream
      classLoader - class loader for resource retrieval, may be null
      staticParams - static Xslt parameters
  • Method Details