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

Add Document.schematronValidate method #39

Merged
merged 5 commits into from
Dec 21, 2020
Merged

Conversation

paulish
Copy link
Contributor

@paulish paulish commented Dec 20, 2020

libxml contains code to run schematron validation. I added it to libxmljs similar to rngValidate and validate methods we aready have there.

@marudor
Copy link
Owner

marudor commented Dec 21, 2020

Could you split the test to check valid/invalid in seperate tests?
(I would do that tomorrow or so otherwise, wont have time earlier)

Thanks though! Looks good.

@paulish
Copy link
Contributor Author

paulish commented Dec 21, 2020

I wrote the test using 'validate' and 'rngValidate' as a reference. If you wish to split this test then other tests needs to be splitted too.

@marudor
Copy link
Owner

marudor commented Dec 21, 2020

You are correct. Lets leave it like this and I will split them someday in the future (the original is also not by me)

@marudor marudor merged commit c2c6e5e into marudor:main Dec 21, 2020
marudor pushed a commit that referenced this pull request Dec 21, 2020
* + implement Document.schematronValidate() method

* + add schematronValidate test

* * fix indentation

* * fix spacing

* * fix linter errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants