Skip to content
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

Update Saxon-HE dependency to 9.7 #674

Closed
ezhukov opened this issue Feb 15, 2016 · 23 comments · Fixed by #822
Closed

Update Saxon-HE dependency to 9.7 #674

ezhukov opened this issue Feb 15, 2016 · 23 comments · Fixed by #822
Labels
status: has PR The issue is being processed in a pull request type: improvement The issue suggests an improvement of an existing feature
Milestone

Comments

@ezhukov
Copy link

ezhukov commented Feb 15, 2016

There are two deps in pom.xml on Saxon. One is on 9.4 another is on 9.5.
I tried changing these to 9.7 and encountered 7 compilation errors.
I would really appreciate if you could rebase to latest Saxon version in your next release.

Thanks for your work on epubcheck!
Eugene

@tofi86 tofi86 added the type: improvement The issue suggests an improvement of an existing feature label May 16, 2016
@tofi86
Copy link
Collaborator

tofi86 commented Dec 22, 2016

See #647 for another Saxon discussion.

@mkraetke
Copy link
Contributor

Hi, I recently build epubcheck with Saxon 9.6.0-7 to use epubcheck as XProc extension step along with XML Calabash (which comes with the same Saxon version). You can find my changes to the epubcheck sources in this commit: 21cd661

If you want to update to Saxon 9.6.0-7, I can make a PR.

best, Martin

@tofi86
Copy link
Collaborator

tofi86 commented Jun 7, 2017

There are two deps in pom.xml on Saxon. One is on 9.4 another is on 9.5.

The 9.4 dependency is a maven build plugin dependency and does not need to be changed!

The 9.5 dependency is the "real" code dependency. We are in the middle of upgrading this to Saxon 9.6 in issue #647 and PullRequest #767

@tofi86 tofi86 changed the title Wishlist bug: update Saxon-HE dependencies to 9.7.0-2 Update Saxon-HE dependency to 9.7 Jun 7, 2017
@tofi86
Copy link
Collaborator

tofi86 commented Sep 17, 2017

FYI: We will update to Saxon 9.6.0-10 soon with PR #767.

@tofi86 tofi86 added this to the 4.1.0 milestone Sep 17, 2017
@tofi86
Copy link
Collaborator

tofi86 commented Sep 18, 2017

Saxon 9.7 would also be a nice-to-have for @oxygenxml:

@raducoravu wrote in #647 (comment):

Oxygen XML Editor 19.1 will come bundled with Saxon 9.7.0.19 and EPUB Checked 4.0.2 (just as 19.0 did). Until now we have been patching a couple of EPUB Checker classes which did not work with 9.7 (having copies of the same classes which were rewritten to be compatible with 9.7 in our own JAR library).
So we have our workarounds for this.... but probably when an EPUB Checker version is released to support Saxon 9.7 we can remove our patches.

We should probably consider updating from 9.5 to 9.7 instead from 9.5 to 9.6 (PR #767). Assigning this to milestone 4.1.

@tofi86
Copy link
Collaborator

tofi86 commented Nov 29, 2017

Any thoughts on upgrading to latest Saxon 9.7?
That would be 9.7.0.20 from July 31 2017

@rdeltour ?

@raducoravu
Copy link

Oxygen XML Editor 20 will probably update its internal Saxon libraries to Saxon 9.8. So we'll still be out of phase with the EPUB Checker, but it does not matter much, we can probably make it work in one way or another.

@ezhukov
Copy link
Author

ezhukov commented Nov 30, 2017 via email

@rdeltour
Copy link
Member

Any thoughts on upgrading to latest Saxon 9.7?

If we're going to upgrade Saxon, I would even go for the latest version (9.8 at the time of writing).

@tofi86 Do you think we can do that for 4.1? I've not looked at the details, but there probably a few API changes and we have to make sure that the extension functions provided by EpubCheck (notably to report error line numbers) are working OK.

@ezhukov
Copy link
Author

ezhukov commented Nov 30, 2017 via email

@mkraetke
Copy link
Contributor

Looks like most of the changes of your patch are already implemented with this PR #767. I can have a look into the Saxon API changes from 9.6 to 9.8 and create another PR if you all agree?

@tofi86
Copy link
Collaborator

tofi86 commented Nov 30, 2017

@ezhukov I found 9.7.0.20 on maven: https://mvnrepository.com/artifact/net.sf.saxon/Saxon-HE/9.7.0-20

@rdeltour sure, I would also be okay with upgrading to 9.8 as long as we can still support Java 7 with it, right? don't know system reqs for 9.8
If @mkraetke could take a look at the API things that would be great.

@ezhukov
Copy link
Author

ezhukov commented Dec 1, 2017 via email

@rdeltour
Copy link
Member

rdeltour commented Dec 1, 2017

@tofi86

I would also be okay with upgrading to 9.8 as long as we can still support Java 7 with it, right? don't know system reqs for 9.8

Yeah, I don’t know either.

If @mkraetke could take a look at the API things that would be great.

👍

@ezhukov

Unfortunately I cannot find source code for that release.

The source code for Saxon-HE is available on SourceForge.

@mkraetke
Copy link
Contributor

mkraetke commented Dec 14, 2017

The good news is that just a few code changes were necessary to compile epubcheck with Saxon 9.8. The bad news is that I get plenty of error messages while running the tests because Saxon 9.8 HE no longer supports XSLT 1.0 and Jing's schematron implementation relies on XSLT 1.0.

@rdeltour Concluding from the pom.xml, this version of Jing comes from Daisy? Perhaps one of your colleagues may have a look into the issue. Here is my fork of epubcheck:
mkraetke@7a7ec3b

@rdeltour
Copy link
Member

@rdeltour Concluding from the pom.xml, this version of Jing comes from Daisy?

It's a mavenized* version of Jing, but otherwise comes straight from Jing's source code, with no change as far as I can remember (see the POM used to compile it)

(*) and OSGified, although it doesn't matter for EpubCheck.

@tofi86
Copy link
Collaborator

tofi86 commented Dec 14, 2017

Thanks for testing this Martin!

So conclusion is we have to stick to Saxon 9.6 (currently implemented) or Saxon 9.7 (worth a try if it still supports XSLT 1.0).

@mkraetke
Copy link
Contributor

It should be safe to update to Saxon 9.7.0.21 without any code changes, except the one in the pom.xml. All tests passed with this version.

@tofi86 tofi86 self-assigned this Dec 14, 2017
@tofi86 tofi86 added the status: has PR The issue is being processed in a pull request label Dec 14, 2017
@tofi86
Copy link
Collaborator

tofi86 commented Dec 14, 2017

👉 PR #822

@tofi86
Copy link
Collaborator

tofi86 commented Feb 8, 2018

The good news is that just a few code changes were necessary to compile epubcheck with Saxon 9.8. The bad news is that I get plenty of error messages while running the tests because Saxon 9.8 HE no longer supports XSLT 1.0 and Jing's schematron implementation relies on XSLT 1.0.

Note for future EpubCheck/Schematron/Saxon heroes:
Schematron/schematron#55

@raducoravu
Copy link

Actually according to the Saxon docs starting from Saxon 9.8.0.7, XSLT 1.0 backwards-compatibility mode is reinstated in Saxon-HE.

@mkraetke
Copy link
Contributor

I've made a PR in order to update to Saxon 9.8: #830

@tofi86
Copy link
Collaborator

tofi86 commented Feb 10, 2018

Saxon dependency updated to 9.8.0-8 with PR #830 by @mkraetke. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: has PR The issue is being processed in a pull request type: improvement The issue suggests an improvement of an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants