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

fired-rule should not be mandatory following an active-pattern #5

Open
AndrewSales opened this issue Nov 25, 2018 · 1 comment
Open

Comments

@AndrewSales
Copy link

As reported by @dmj, a pattern may be active without necessarily having rules that fire.

David writes:
"If I validate the [...] SVRL report [...] with Jing it complains about
the following structure:

<svrl:fired-rule context="mods:name[not(parent::mods:subject)]"/>
<svrl:active-pattern/>
<svrl:active-pattern/>

Read: We have an active pattern with no matching rule.

But the RelaxNG of SVRL requires at least one svrl:fired-rule after an
svrl:active-pattern."

Therefore he proposes
https://github.com/Schematron/schema/blob/c785b593daf8b33ebd1bf7a942dd6ecd4c2d7bfd/svrl.rnc#L45
should be amended to read:

(fired-rule, (failed-assert | successful-report)*)*)+

@AndrewSales
Copy link
Author

Addressed in the latest edition of the standard; will close if/when standard becomes publicly available.

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

No branches or pull requests

1 participant