[MEI-L] Strange Error in ScoreDef

Roland, Perry (pdr4h) pdr4h at eservices.virginia.edu
Fri Aug 30 16:34:11 CEST 2013


As a follow-up to my answer to Andrew's question, I want to draw everyone's attention to the mei-all_anyStart schema, which can be useful in isolating problems like this.  With this schema any MEI element can be the document element, but to you have to add the MEI namespace for oXygen, i.e.,

<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="../Documents/SVN-meiGoogle/trunk/schemata/mei-all_anyStart.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="../Documents/SVN-meiGoogle/trunk/schemata/mei-all_anyStart.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<scoreDef meter.count="3" meter.unit="4" ppq="256" xmlns="http://www.music-encoding.org/ns/mei">
  <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 Roland, Perry (pdr4h) [pdr4h at eservices.virginia.edu]
Sent: Friday, August 30, 2013 10:09 AM
To: Music Encoding Initiative
Subject: Re: [MEI-L] Strange Error in ScoreDef

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
_______________________________________________
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