-
Notifications
You must be signed in to change notification settings - Fork 408
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
EPUB Check Java code depends on specific Saxon 9.5 class #647
Comments
Oh, it seems I suppose that to cover both versions we'll have to use reflexion... |
How about if you use org.apache.xerces.util.XMLChar.isValidNCName instead? |
Xerces is not used explicitly as a 3d party dependency, so I suppose EpubCheck uses the JVM's internal version of it (exposed in a Anyway, on 2nd look it seems Saxon's |
If Xerces is not explicitly listed as a dependency, indeed sometimes EpubCheck might use the Xerces bundled with Java, sometimes like in the case of our application (Oxygen XML Editor) it will use the Xerces libraries which come with Oxygen. Another approach would be to copy the entire isValidNCName implementation from the Saxon or Xerces code to a class in the checker and remove the dependencies. |
@rdeltour I just had a look at this and couldn't find a way to support both saxon 9.5 and 9.6 – though I didn't try Reflexions yet... Why would you like to maintain support for both Saxon versions anyways? |
Upgrade of Saxon to 9.7 has also been requested in #674 |
see my comment in #674 |
@mkraetke sent a PullRequest with those changes today (see #767) which upgrades the Saxon dependency to 9.6.0-7 and drops Saxon 9.5 compatibility. Thanks, Martin! @rdeltour I'm asking my question from above again: Why would you like to support multiple Saxon versions anyways? Is there a specific reason? I would be fine with supporting just Saxon 9.6 and later. |
FYI: We will update to Saxon 9.6.0-10 soon with PR #767. Thanks for your contribution @mkraetke! Is there a specific need by someone (@raducoravu / @oxygenxml ?? ) to update further to 9.7 or 9.8? If so, let's discuss it in #674. |
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 sometimes when using EPUB validation with more recent versions of Saxon (9.6.0.7 in our case) we obtain:
The text was updated successfully, but these errors were encountered: