Closed martindholmes closed 2 months ago
With @HelenaSabel and @sydb worked some more on this issue, and solved the initial problem by adding a pattern element containing a p with a message to the effect that no Schematron rules were in the ODD file. This makes the output files valid, albeit pointless; but if they did not appear, users might be confused, so this is a good solution to this problem. The remaining question of how to test the Schematron we've generated will be issue #30.
We currently generate empty Schematron root elements which are therefore invalid. We should a) not generate Schematron files from PLODDs containing no rules, and b) actually have at least one test set which has rules in it so we can test Schematron generation.