axelberndt / MPM

Music Performance Markup (MPM)
Other
19 stars 2 forks source link

disallow wrong def elements in header styles #4

Closed bwbohl closed 4 years ago

bwbohl commented 6 years ago

When defining global header styles any …Def element may be nested within any …Styles element, e.g.

   <performance name="one">
        <global>
            <header>
                <articulationStyles>
                    <styleDef>
                        <accentuationPatternDef></accentuationPatternDef>
                    </styleDef>
                </articulationStyles>
            </header>
        </global>
    </performance>

This should be fixed to allow only the correct type of Def, e.g. articulationDef in articulationStyles:

   <performance name="one">
        <global>
            <header>
                <articulationStyles>
                    <styleDef>
                        <articulationDef></articulationDef>
                    </styleDef>
                </articulationStyles>
            </header>
        </global>
    </performance>
axelberndt commented 6 years ago

Agree!

axelberndt commented 4 years ago

Done