I installed Saxon in macOS 10.15 via home-brew. Now when I try
net.sf.saxon.Transform
I get
zsh: command not found: net.sf.saxon.Transform
What am I doing wrong?
thanks, geb
I installed Saxon in macOS 10.15 via home-brew. Now when I try
net.sf.saxon.Transform
I get
zsh: command not found: net.sf.saxon.Transform
What am I doing wrong?
thanks, geb
@MartinHonnen has already answered in a comment, but for the record, the command required is
java -jar saxon9he.jar -xsl:sheet.xsl -s:input.xml
Note that this form only works when you don't need anything else on the classpath (for example, a library holding extension functions). Also the JAR file name has changed with the release of 10.0. A more general form might be
java -cp saxon-he-10.0.jar:my-other.jar net.sf.saxon.Transform -xsl:sheet.xsl -s:input.xml
In the -cp option, JAR files are separated by ":" on Mac and Linux, or by ";" on Windows.