Exemple #1
0
 /** Sets the XSLT transformer from a File */
 public void setTransformerFile(File xslt) throws TransformerConfigurationException {
   setTransformerSource(new StreamSource(xslt));
 }
Exemple #2
0
 /** Sets the XSLT transformer from the given input stream */
 public void setTransformerInputStream(InputStream in)
     throws TransformerConfigurationException, IOException {
   notNull(in, "InputStream");
   setTransformerSource(new StreamSource(in));
 }
Exemple #3
0
 /** Creates an XSLT processor using the given XSLT source */
 public static XsltBuilder xslt(Source xslt) throws TransformerConfigurationException {
   notNull(xslt, "xslt");
   XsltBuilder answer = new XsltBuilder();
   answer.setTransformerSource(xslt);
   return answer;
 }