Class XsltTransformerExtensions

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void transform​(java.io.File xmlFile, java.io.File xsltFile, java.io.OutputStream outputStream)
      Transform.
      static void transform​(java.lang.String xmlInputFile, java.lang.String xsltInputFile, java.io.OutputStream outputStream)
      Transform.
      static void transform​(javax.xml.transform.Source xmlSource, javax.xml.transform.Source xsltSource, java.io.OutputStream outputStream)
      Transform.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • transform

        public static void transform​(java.io.File xmlFile,
                                     java.io.File xsltFile,
                                     java.io.OutputStream outputStream)
                              throws javax.xml.transform.TransformerConfigurationException,
                                     javax.xml.transform.TransformerException
        Transform.
        Parameters:
        xmlFile - the xml file
        xsltFile - the xslt file
        outputStream - the output stream
        Throws:
        javax.xml.transform.TransformerConfigurationException - is thrown if there are errors when parsing the Source or it is not possible to create a Transformer instance.
        javax.xml.transform.TransformerException - is thrown if an unrecoverable error occurs during the course of the transformation.
      • transform

        public static void transform​(javax.xml.transform.Source xmlSource,
                                     javax.xml.transform.Source xsltSource,
                                     java.io.OutputStream outputStream)
                              throws javax.xml.transform.TransformerConfigurationException,
                                     javax.xml.transform.TransformerException
        Transform.
        Parameters:
        xmlSource - the xml source
        xsltSource - the xslt source
        outputStream - the output stream
        Throws:
        javax.xml.transform.TransformerConfigurationException - is thrown if there are errors when parsing the Source or it is not possible to create a Transformer instance.
        javax.xml.transform.TransformerException - is thrown if an unrecoverable error occurs during the course of the transformation.
      • transform

        public static void transform​(java.lang.String xmlInputFile,
                                     java.lang.String xsltInputFile,
                                     java.io.OutputStream outputStream)
                              throws javax.xml.transform.TransformerConfigurationException,
                                     javax.xml.transform.TransformerException
        Transform.
        Parameters:
        xmlInputFile - the xml input file
        xsltInputFile - the xslt input file
        outputStream - the output stream
        Throws:
        javax.xml.transform.TransformerConfigurationException - is thrown if there are errors when parsing the Source or it is not possible to create a Transformer instance.
        javax.xml.transform.TransformerException - is thrown if an unrecoverable error occurs during the course of the transformation.