public static void xsltConvert(String xmlSourceFile,
                                   String xsltSourceFile,
                                   OutputStream out) {
        try {
            File xmlFile = new File(xmlSourceFile);
            File xsltFile = new File(xsltSourceFile);            Source xmlSource = new StreamSource(xmlFile);
            Source xsltSource = new StreamSource(xsltFile);
            Result result = new StreamResult(out);            TransformerFactory transFact = TransformerFactory.newInstance();
            Transformer trans = transFact.newTransformer(xsltSource);
            //给参数传递值
            //trans.setParameter("image","B.jpg");
            //trans.clearParameters();
            trans.transform(xmlSource, result);
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }