[MEI-L] Strange Error in ScoreDef

Andrew Hankinson andrew.hankinson at mail.mcgill.ca
Fri Aug 30 16:00:49 CEST 2013

Hi all,

Does anyone know why I'm getting an error with the following markup?

<scoreDef meter.count="3" meter.unit="4" ppq="256">
    <staffGrp n="1">
	<staffDef clef.line="2" clef.shape="G" key.mode="major" key.sig="3f" label="Voice" lines="5" n="1" xml:id="sd1"/>	
    <staffGrp symbol="brace" n="2">
	<staffDef clef.line="2" clef.shape="G" key.mode="major" key.sig="3f" label="Piano" lines="5" n="2" xml:id="sd2"/>
	<staffDef clef.line="4" clef.shape="F" key.mode="major" key.sig="3f" label="Piano" lines="5" n="3" xml:id="sd3"/>

When I go to validate it against the mei-all.rng schema, Oxygen complains 'element staffGrp not allowed here; expected the element end tag' with a red squiggly line under the second staffGrp element. As far as I can see scoreDef can take one or more staffGrp elements, so I'm a bit confused.

Any help would be appreciated,

More information about the mei-l mailing list