Skip to content

add support for Saxon PE/EE versions 10, 11 & 12 #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
SingingBush opened this issue Mar 8, 2020 · 14 comments
Open

add support for Saxon PE/EE versions 10, 11 & 12 #8

SingingBush opened this issue Mar 8, 2020 · 14 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@SingingBush
Copy link
Owner

SingingBush commented Mar 8, 2020

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.

@SingingBush SingingBush self-assigned this Mar 8, 2020
@SingingBush SingingBush changed the title reinstate the Saxon support add support for Saxon PE/EE versions 10 & 11 Feb 7, 2022
@SingingBush SingingBush changed the title add support for Saxon PE/EE versions 10 & 11 add support for Saxon PE/EE versions 10, 11 & 12 Dec 1, 2023
@SingingBush SingingBush added the help wanted Extra attention is needed label Dec 1, 2023
@SingingBush
Copy link
Owner Author

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.

@SingingBush SingingBush added this to the 2.3.0 milestone Jan 27, 2024
@C4J
Copy link

C4J commented Jul 1, 2024

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.

@SingingBush
Copy link
Owner Author

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

@C4J
Copy link

C4J commented Jul 2, 2024

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 ?

@SingingBush
Copy link
Owner Author

SingingBush commented Jul 2, 2024

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.

@SingingBush
Copy link
Owner Author

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.

@C4J
Copy link

C4J commented Jul 9, 2024

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 ?

@SingingBush
Copy link
Owner Author

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.

@SingingBush
Copy link
Owner Author

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.

@SingingBush SingingBush removed this from the 2.3.0 milestone Jul 17, 2024
@C4J
Copy link

C4J commented Jul 17, 2024

Sorry for the delay on this

@SingingBush
Copy link
Owner Author

No worries. I'll need to rebase it again. Do you have a Saxon license to use when testing it?

@C4J
Copy link

C4J commented Jul 18, 2024

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.

@C4J
Copy link

C4J commented Jul 23, 2024

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.

@SingingBush
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants