Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
As per 2016 version of ISO Schematron 6.5 "Order and side-effects" it is mandated that "a rule element acts as an if-then-else-statement". Subsequently once a context node had been matched by a rule, it cannot be matched by a following rule in the same pattern.
It would be helpful if SchXslt could report on rules that are shadowed.
First idea: Have an option for the compiler that enables or disables generating the respective code. If enabled, the validation stylesheet uses xsl:message to report.
Alternative reporting mechanisms:
The benefit of comment, pi, or custom element is, that they could be placed below the svrl:fired-rule that machted the context. The drawback of custom element is, that the result won't be a valid SVRL.