-
Notifications
You must be signed in to change notification settings - Fork 222
Fix #5248 - Typo in Schematron extension: .sch, not .sct! #5333
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
Conversation
|
@jmarrec I'm testing it out and overall it's working well except for one thing. One of our OS-HPXML tests is to verify that our schematron file itself is valid relative to its schema. This test now fails with:
Can we at least allow .sch file extensions for XSD schema validation too? Or maybe we shouldn't bother to check for the file extension at all since there can be other file extensions for XML files. |
|
@shorowit your error says you tried to call XMLValidator::validate("something.sch") but the link you shared is .xsd? which? Also, couldn't you do that validation with whatever ruby or python external lib is doing? OpenStudio/src/utilities/xml/XMLValidator.cpp Lines 251 to 272 in 2d4cbea
Maybe we should log warn when the extension of the file to validate is not XML and let it go to hell if it's not actually an xml file... |
We are trying to validating something.sch (the schematron XML) against its XSD schema. Sorry, I could have linked to the schematron file too, it's here.
That'd be fine by me. |
|
CI Results for 940a26a:
|
|
@jmarrec Happy to test the latest commit if an Ubuntu build gets posted. Just seeing a single build for Windows right now. |
|
@wenyikuang FYI, I just rebooted the unix (2 ubuntus and the macos) with a temp cbci_jenkins_lib branch that will wipe the build dirs. Hopefully that'll solve a couple of weird build failures we're seeing on all PRs right now. |
|
the locateOrCreateBinaryComment is malfunctioning for Ubuntu 24.04 at least. But anyways, wiping the build dir helped and I added the 24.04 deb / tar.gz links above @shorowit so you can test. |
shorowit
left a comment
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.
Confirmed that it works in OS-HPXML, thanks!
Pull request overview
.schextensions for schematron documents #5248Pull Request Author
Review Checklist
This will not be exhaustively relevant to every PR.