-
Notifications
You must be signed in to change notification settings - Fork 65
Semantic validation of MusicXML documents #621
Description
Sometimes validating MusicXML syntax via XSD is not enough. For example, any element <sound tocoda="some-label"/> implies that there has to be another (and only one) element <sound coda="some-label"/> elsewhere in the document.
I asked Stack Overflow what existing XML technologies can help with that sort of validation. I received some authoritative answers advising to use Schematron or XSD 1.1. Another option is to use XSLT to generate a conformance report.
This ticket is about starting a tests folder in this repo where such semantic tests can be added. At this point in time, it is not clear which tech (Schematron or XSD 1.1) is better supported in terms of tools, and better suited to the task at hand.
For what it's worth, MEI schema supports embedded validation using Schematron and possibly other schemata via the contraintSpec element.