Open xatapult opened 2 years ago
It would be good to have a specific use case.
I can think of five scenarios, each with different solutions:
We only want to test certain rules, as a matter of modeled progressive validation. In other words, it fits into Schematron's model as an enhancement of the phase mechanism. (In which case, say, we could introduce sch:phase/sch:active/@before which takes an IDREF to a sch:rule in that pattern, so that in that phase only the rules before the rule with that ID are tested.)
We want to have a simple kind of exclusion. But we can do this already, for example:
...
@rjelliffe , here and in some of your other contributions to this repo, something is inserting ***@***.***
in your posts in place of what I assume is markup or an XPath(?), which makes them quite hard to follow. See e.g. (1) and (3) above.
@AndrewSales, I blame GitHub for trying to obfuscate email addresses and overreaching. This is an email address: john@example.com. This is an XPath for an attribute: john/@example. This is the XPath as code: john/@example
.
Or maybe not GitHub. It turns out that I couldn't reproduce the effect.
According to the official Schematron schema, an empty
<rule>
(not containing asserts/reports) is not allowed. However, there are use-case where this is useful. For instance, when you purposely want to stop further validation in a pattern when a certain condition is true.Therefore I would propose to allow empty
<rule>
elements as well.