Package eu.europa.ec.taxud.message
Class XSLTransform
java.lang.Object
eu.europa.ec.taxud.message.XSLTransform
The type Xsl transform.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocessXSLTransform(StreamSource xslStreamSource, File xmlPath) Process xsl transform byte array output stream.transform(ByteArrayOutputStream xml, BufferedReader xsl) Transform byte array output stream.transform(File xmlPath, BufferedReader xsl) Transform byte array output stream.transform(File xmlPath, ByteArrayOutputStream xsl) Transform byte array output stream.
-
Constructor Details
-
XSLTransform
public XSLTransform()
-
-
Method Details
-
transform
public ByteArrayOutputStream transform(File xmlPath, ByteArrayOutputStream xsl) throws net.sf.saxon.s9api.SaxonApiException Transform byte array output stream.- Parameters:
xmlPath- the xml pathxsl- the xsl- Returns:
- the byte array output stream
- Throws:
net.sf.saxon.s9api.SaxonApiException- the saxon api exception
-
transform
public ByteArrayOutputStream transform(File xmlPath, BufferedReader xsl) throws net.sf.saxon.s9api.SaxonApiException Transform byte array output stream.- Parameters:
xmlPath- the xml pathxsl- the xsl- Returns:
- the byte array output stream
- Throws:
net.sf.saxon.s9api.SaxonApiException- the saxon api exception
-
transform
public ByteArrayOutputStream transform(ByteArrayOutputStream xml, BufferedReader xsl) throws net.sf.saxon.s9api.SaxonApiException, TransformerConfigurationException Transform byte array output stream.- Parameters:
xml- the xmlxsl- the xsl- Returns:
- the byte array output stream
- Throws:
net.sf.saxon.s9api.SaxonApiException- the saxon api exceptionTransformerConfigurationException- the transformer configuration exception
-
processXSLTransform
public ByteArrayOutputStream processXSLTransform(StreamSource xslStreamSource, File xmlPath) throws net.sf.saxon.s9api.SaxonApiException Process xsl transform byte array output stream.- Parameters:
xslStreamSource- the xsl stream sourcexmlPath- the xml path- Returns:
- the byte array output stream
- Throws:
net.sf.saxon.s9api.SaxonApiException- the saxon api exception
-