Profile resolver: Compatibility with Saxon 10 and 11 #1685
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Committer Notes
This PR addresses issue #1629 by replacing usage of
document-uriwithbase-uri. Thedocument-urifunction is known to return different results in Saxon 10 vs. 11. Usingbase-uriremoves a difference in the XSLT profile resolver's behavior between Saxon 10 and 11.Unlike #1639, this PR builds on the head of the develop branch and does not include code from #1596 or #1549.
All Submissions:
(Note: Profile resolver compatibility with Saxon 11 (on top of other unmerged PRs) #1639 has the same update, but mixed with other code. This pull request isolates the code for Saxon 11 compatibility.)
By submitting a pull request, you are agreeing to provide this contribution under the CC0 1.0 Universal public domain dedication.
Changes to Core Features:
Have you included examples of how to use your new feature(s)?Have you updated all OSCAL website and readme documentation affected by the changes you made? Changes to the OSCAL website can be made in the docs/content directory of your branch.Testing Done
.xspecfiles in thetesting/directory) with Oxygen 24.1, which uses Saxon 10.src/specifications/profile-resolution/profile-resolution-examples. Diff'd the results, and they are the same except time stamps. The profiles that error out (e.g.,broken_profile.xml) behave the same way in both Oxygen versions.