Skip to content

Semantic validation of MusicXML documents #621

@infojunkie

Description

@infojunkie

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    toolsIssues related to MusicXML tools such as XSLT.validationIssues with document validation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions