[MEI-L] Strange Error in ScoreDef
Roland, Perry (pdr4h)
pdr4h at eservices.virginia.edu
Fri Aug 30 16:09:03 CEST 2013
Hi, Andrew,
One more level of markup is necessary -- <scoreDef> requires a single <staffGrp>, which may then contain any number of <staffGrp> elements, i.e.,
<scoreDef meter.count="3" meter.unit="4" ppq="256">
<staffGrp>
<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>
<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"/>
</staffGrp>
</staffGrp>
</scoreDef>
--
p.
__________________________
Perry Roland
Music Library
University of Virginia
P. O. Box 400175
Charlottesville, VA 22904
434-982-2702 (w)
pdr4h (at) virginia (dot) edu
________________________________________
From: mei-l-bounces at lists.uni-paderborn.de [mei-l-bounces at lists.uni-paderborn.de] on behalf of Andrew Hankinson [andrew.hankinson at mail.mcgill.ca]
Sent: Friday, August 30, 2013 10:00 AM
To: Music Encoding Initiative
Subject: [MEI-L] Strange Error in ScoreDef
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>
<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"/>
</staffGrp>
</scoreDef>
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,
-Andrew
_______________________________________________
mei-l mailing list
mei-l at lists.uni-paderborn.de
https://lists.uni-paderborn.de/mailman/listinfo/mei-l
More information about the mei-l
mailing list