title: How to run saxon xslt transformation in java
body: <p>I can easily run the following in command line to transform an xml file:</p>
  
  <pre><code>java -jar saxon9he.jar -o:outputfile.xml data.xml transform.xslt
  </code></pre>
  
  <p>I would like to do the exact same results from within a java file so I can use it in part of a program I'm making.
  I have put the saxon9he.jar in the build path but how can I call that same command outside the commandline?</p>