Open SingingBush opened 4 years ago
This is proving to be a real pita. I've got a 30 day evaluation license and spent a few days trying to get Saxon 10/11/12 support working based on the information here: https://www.saxonica.com/html/documentation10/extensibility/instructions.html
If anyone has experience in writing xslt extensions with Saxon please get in contact.
I have some experience with Saxon HE 12.4 as I'm using it with my project Middleware4j. I was a real change from version 9.x but I'm willing to try to help.
Thanks I made some progress on this a few months ago but couldn't get it finished. I have an incomplete branch for this locally. I wasn't able to finish it before the trial license expired. That's also going to be a problem for CI, so tests will need to be skipped for the module in GitHub actions. I'll tidy up the branch and push it so you can take a look
Can you just clarify for me. There is a HE Home Edition which you can freely include in your project albeit calling user defined java functions is a rather cumbersome process. Are you able to use that version or do you need the commercial version of Saxon ?
As far as I am aware it needs to be the commercial version. I'd be happy to be proved wrong though. I should be able to push the work in progress branch in a day or two. It's on my old laptop.
I've pushed the branch. It's messy and incomplete. The plan was for the barcode4j-saxon module to become the one that works with Saxon 10 and above and eventually to delete the existing modules. To work on it there needs to be a valid license file on the class path. When I was working on it I just placed one in the resources directory.
Well - I will be the first one to admit my maven experience is very sketchy but try as I might I can't import this into Eclipse.
Well - I can but I have so many issues I'm stumped.
What IDE do you use for this project ?
I use Intellij generally but any IDE that supports Java and maven should be fine. I expect that there will be issues as it's incomplete. Looks like I may have left out some changes when I pushed as well. Perhaps just exclude the older saxon8 module for now. I'll push another commit next time I am on that machine.
Hi @C4J did you get it to build? I've force-pushed changes to that branch. it's worth removing your local version and checking out again. it should build for you now. I'd neglected to add some dependencies to one of the sub-projects.
Sorry for the delay on this
No worries. I'll need to rebase it again. Do you have a Saxon license to use when testing it?
I have a professional license which I purchased simply so I could tap into Saxonica support - I use the non commercial version in my project.
I have to appologies and admit defeat. I use Eclipse and I'm not particulary Maven savvy - and despite many many attempts to get this working in my IDE I have failed.
no problem, Saxon support was never published. The main priority is to continue to publish jars that serve the functionality of the existing artifacts on maven central.
as part of the maven migration #5 I setup a separate sub-module for Saxon 8 support. In more recent versions of Saxon (9, 10, 11) the PE or EE version is required. These are not available through maven and require a license. I've downloaded both saxon-ee-10.6.jar and saxon-ee-11.1.jar and taken a look at what would be required to support those versions. There are definitely breaking changes in the Saxon API since Saxon 8/9. With some work it should be possible to add a barcode4j-saxon module that works on both v10 and v11 but the saxon documentation isn't great and the requirement to have a valid license of the classpath makes testing a problem.