Package org.imixs.workflow.xml
Class XSLHandler
java.lang.Object
org.imixs.workflow.xml.XSLHandler
This class can be used to transform xml by XSL template.
The class is used by the ReportRestService to execute a report and also by
the MailPluign to transform the mail body
- Version:
- 1.0
- Author:
- imixs.com - Ralph Soika
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
transform
(String xmlSource, String xslSource, String encoding, OutputStream output) This method transforms an XML source with a provided XSL template.static void
transform
(List<ItemCollection> dataSource, String xslSource, String encoding, OutputStream output) This method transforms an Collection of Documents into XML and translates the result based on a provided XSL template.static void
transform
(ItemCollection dataSource, String xslSource, String encoding, OutputStream output) This method transforms a single Documents (ItemCollection) into XML and translates the result based on a provided XSL template.
-
Constructor Details
-
XSLHandler
public XSLHandler()
-
-
Method Details
-
transform
public static void transform(String xmlSource, String xslSource, String encoding, OutputStream output) throws UnsupportedEncodingException, TransformerException This method transforms an XML source with a provided XSL template. The result will be written into a output stream.- Parameters:
xmlSource
- -xslSource
-encoding
- (default UTF-8)- Throws:
UnsupportedEncodingException
TransformerException
-
transform
public static void transform(List<ItemCollection> dataSource, String xslSource, String encoding, OutputStream output) throws jakarta.xml.bind.JAXBException, TransformerException, IOException This method transforms an Collection of Documents into XML and translates the result based on a provided XSL template. The result will be written into a output stream.- Parameters:
xmlSource
- -xslSource
-encoding
- (default UTF-8)- Throws:
jakarta.xml.bind.JAXBException
TransformerException
IOException
-
transform
public static void transform(ItemCollection dataSource, String xslSource, String encoding, OutputStream output) throws jakarta.xml.bind.JAXBException, TransformerException, IOException This method transforms a single Documents (ItemCollection) into XML and translates the result based on a provided XSL template. The result will be written into a output stream.- Parameters:
xmlSource
- -xslSource
-encoding
- (default UTF-8)- Throws:
jakarta.xml.bind.JAXBException
TransformerException
IOException
-