In the final implementation, we separated three different steps:
The documentation of the rules in a constraints XML document.
The implementation of the rules in Schematron.
The creation of a report that could be used by an end user product.
As the approach we took can be applied to any XML vocabulary in many scenarios, we will present a simplified use case to visualize the key points.
The scenario is to test cabin bag weight against the allowance of the two assumed airlines Aeto and Örn.
In the appendix, different examples show how the approach can be applied to TTML vocabularies.