Package org.imixs.workflow.xml
Klasse 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
- Autor:
- imixs.com - Ralph Soika
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic voidtransform(String xmlSource, String xslSource, String encoding, OutputStream output) This method transforms an XML source with a provided XSL template.static voidtransform(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 voidtransform(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.
-
Konstruktordetails
-
XSLHandler
public XSLHandler()
-
-
Methodendetails
-
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.- Parameter:
xmlSource- -xslSource-encoding- (default UTF-8)- Löst aus:
UnsupportedEncodingExceptionTransformerException
-
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.- Parameter:
xslSource-encoding- (default UTF-8)xmlSource- -- Löst aus:
jakarta.xml.bind.JAXBExceptionTransformerExceptionIOException
-
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.- Parameter:
xslSource-encoding- (default UTF-8)xmlSource- -- Löst aus:
jakarta.xml.bind.JAXBExceptionTransformerExceptionIOException
-