title: How to run Saxon from command line
body: <p>Can anyone please post detailed, step-by-step instructions how to install Saxon (10 HE) and how to run a transformation from the command line in MacOS (10.13.6)?</p>
  <p>I have installed Java on my computer.<br />
  I have downloaded the <code>SaxonHE10-6J.zip</code> file from SourceForge.<br />
  Based on the recommendation <a href="https://stackoverflow.com/a/12842423">here</a> I have placed the <code>saxon-he-10.6.jar</code> in the  <code>myUserName/Library/Java/Extensions</code> folder.<br />
  I then opened the Terminal application and entered a command based on <a href="https://stackoverflow.com/a/61985818">this answer</a>:</p>
  <pre><code>java -jar saxon-he-10.6.jar -'/Users/myUserName/Documents/path/to/mystylesheet.xsl' -s:'/Users/myUserName/Documents/path/to/some.xml'
  </code></pre>
  <p>This results in:</p>
  <pre><code>Unable to access jarfile saxon-he-10.6.jar
  </code></pre>
  <p>All my attempts, including moving the .jar file to the <code>/Library/Java/Extensions </code>directory or including a full path to the .jar file within the command failed with the same error message.</p>
  <p>Please note that I am not a Java developer and I do not intend to use this in an application. All I want is to be able to perform an occasional transformation.</p>
  <p>I should also note that the locations of my XML and XSLT files may change from one case to another. I would like to be able to keep the .jar file in a constant location and supply the paths to the XML and XSLT files as required - IOW, I want to have a command template where I only need to change the 2 filepaths (and possibly add some options to the transformation).</p>
  <p>What do I need to do?</p>