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

Fix Schematron paths in profile resolver XML files #1945

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

galtm
Copy link
Contributor

@galtm galtm commented Sep 28, 2023

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 added an explanation of what your changes do and why you'd like us to include them?
  • 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.

@galtm
Copy link
Contributor Author

galtm commented Sep 28, 2023

@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.

@aj-stein-nist aj-stein-nist requested review from a team and removed request for wendellpiez September 28, 2023 20:35
@aj-stein-nist
Copy link
Contributor

@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.

@aj-stein-nist aj-stein-nist added Scope: Tooling and APIs Issues targeted at development of tooling and APIs to support OSCAL content creation and use. Developer Experience Issues around enhancing and optimizing work for development of NIST OSCAL artifacts labels Sep 28, 2023
Copy link
Contributor

@wendellpiez wendellpiez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay rah

Copy link
Contributor

@aj-stein-nist aj-stein-nist left a 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.

@aj-stein-nist aj-stein-nist merged commit 534b12d into usnistgov:develop Oct 5, 2023
1 check passed
galtm added a commit to galtm/OSCAL that referenced this pull request Feb 23, 2024
- 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
@galtm galtm mentioned this pull request Feb 23, 2024
9 tasks
iMichaela pushed a commit that referenced this pull request Feb 26, 2024
- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Developer Experience Issues around enhancing and optimizing work for development of NIST OSCAL artifacts Scope: Tooling and APIs Issues targeted at development of tooling and APIs to support OSCAL content creation and use.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants