Errors when using Saxon versions after 10.5
A Java implementation of XProc 3.0
Brought to you by:
xml-project-com
We were recently testing Morgana III in an environment where the default Saxon was 10.8, and were not able to get it to work; rolling back to 10.5 solved the problem. If you're aware of this and it's in the plan to add support for later versions of Saxon (especially 11.x), then this isn't an important issue, but if it's unexpected, I'm happy to re-run tests and provide the error messages.
Hi Martin,
yes, this is indeed unexpected as my standard testing config uses Saxon-HE 10.8. I would be happy if you could provide the error messages, so I am able to fix the problem.
Thanks in advance,
Achim
if this would help, I am using Saxon-EE 10.8 by default, no issues either
(morgana III both se and ee, windows 10, java 11)
Last edit: Geert B 2022-11-30
Will do, ASAP. :-)
When I switch in Saxon 10.8 to replace 10.5, I get this initial error message:
If I switch the XSLT version in the relevant file to 3.0, I get this:
This is the entirety of the XPL file:
Is there something I'm missing here?
Hi Martin,
I am not able to reproduce this problem from the pipeline and an random xlst with "version='2.0'".
My guess is that it is a configuration problem so that MorganaXProc-III is no able to find (the right) Saxon. If you use a batch file to start MorganaXProc, make sure Saxon is the first on classpath. If you use MorganaXProc's plug-in modus, make sure that there is only one instance of Saxon in folder "MorganaXProc-IIIse_lib".
Does this help?
Greetings from Germany,
Achim
The process is invoked from Ant:
This is the content of the MorganaXProc-IIIse_lib folder:
and this is what's in the config.xml:
Swapping the Saxon 10.8 for 10.5 fixes the problem. Is there anything in this setup that you think could be causing it?
Hi Martin,
sorry for being late. I think the problem comes up from your ANT-java call. By using "jar" you rely on the manifest inside the jar. This is no longer supported, in fact it was supported until Saxon-10-5. I abandoned this mechanism some time ago in favor of the new plug-in mechanism. To use this from ant, the following works for me:
This puts all jar in MorganaXProc-IIIse_lib on the class path, so if Saxon 10.8 is in this folder, it is correctly found.
Hope this is helpful.
Greetings from Germany,
Achim
Thanks Achim, that works perfectly!
I don't seem to have privileges to close the ticket, so please go ahead and close it.