-
Notifications
You must be signed in to change notification settings - Fork 183
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
Fix Schematron paths in profile resolver XML files #1945
Conversation
@aj-stein-nist : I know there is a lot going on now for your team, and this pull request is not at all urgent. I just wanted to push the change while it was on my mind. The PR can sit. |
Thanks, @galtm. I will try and make a quick review before COB tomorrow if possible. If others in the team have bandwidth, they can feel free to review as well. I assigned it to the whole team to take a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay rah
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked the paths and looks good to me. Thanks again for your contributions, @galtm.
- 2nd argument of resolve-uri makes the path relative to the original XSpec file instead of the compiled one, whose location can vary depending on how the test is run - Remove one ../ from URI to resolve (similar to usnistgov#1945) because of directory reorg
- 2nd argument of resolve-uri makes the path relative to the original XSpec file instead of the compiled one, whose location can vary depending on how the test is run - Remove one ../ from URI to resolve (similar to #1945) because of directory reorg
Committer Notes
While working on #1944, I found that some XML files refer to Schematron schemas using relative paths that need one less
../
now that the profile resolver code has moved. This change can be decoupled from #1944, so I'm making it a separate pull request instead of tacking it onto #1944.I checked this change by opening the 3 files in Oxygen and validating them. Before this change, I got error messages about Schematron files not being found, such as
...\OSCAL\specifications\profile-resolution\example-checkup.sch (The system cannot find the path specified)
. After this change, I no longer got those errors.All Submissions:
By submitting a pull request, you are agreeing to provide this contribution under the CC0 1.0 Universal public domain dedication.
(For reviewers: The wiki has guidance on code review and overall issue review for completeness.)
Changes to Core Features:
Have you written new tests for your core changes, as applicable?This does fix existing tests.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.