# Switch Between Versions of Saxon/C
by Apollia - http://apollia.org/
Written and released Feb. 17, 2018.
Bash scripts which make it easy to switch between the Saxon/C v1.0.2 PHP module, and the Saxon/C v1.1.0 PHP module.
You'll probably have to customize these scripts a bit by adding the folderpaths where Saxon/C v1.0.2 and v1.1.0 are installed in your system.
Saxon/C home page: http://www.saxonica.com/saxon-c/index.xml
I made these scripts soon after I discovered that Schematron - https://github.com/Schematron/schematron - doesn't work with the open source Saxon-HE/C edition of Saxon/C v1.1.0.
I found this page which explains why: https://github.com/xspec/xspec/issues/142
>From 9.8, XSLT 1.0 backwards-compatibility mode requires Saxon-PE or higher
>(that is, Saxon-HE will reject stylesheets that specify version="1.0").
An alternative to using this repo's scripts might be, installing a second copy of PHP itself, and using Saxon/C v1.0.2 with one copy of PHP, and Saxon/C v1.1.0 with the other.
But, I didn't have enough RAM in my VirtualBox for that to be a comfortable option. Also, I never tried running two different copies of the same web server software at the same time before, so I don't know if that would work.