Beispiel #1
0
 /** Sets the XSLT transformer from a File */
 public void setTransformerFile(File xslt) throws TransformerConfigurationException {
   setTransformerSource(new StreamSource(xslt));
 }
Beispiel #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));
 }
Beispiel #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;
 }