Class XSLTransform

java.lang.Object
eu.europa.ec.taxud.message.XSLTransform

public class XSLTransform extends Object
The type Xsl transform.
  • 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 path
      xsl - 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 path
      xsl - 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 xml
      xsl - the xsl
      Returns:
      the byte array output stream
      Throws:
      net.sf.saxon.s9api.SaxonApiException - the saxon api exception
      TransformerConfigurationException - 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 source
      xmlPath - the xml path
      Returns:
      the byte array output stream
      Throws:
      net.sf.saxon.s9api.SaxonApiException - the saxon api exception