<staff>

A group of equidistant horizontal lines on which notes are placed in order to represent pitch or a grouping element for individual 'strands' of notes, rests, etc. that may or may not actually be rendered on staff lines; that is, both diastematic and non-diastematic signs.
Module MEI.shared
Attributes
@copyof(optional)Points to an element of which the current element is a copy. Value conforms to data.URI. att.common.anl
@corresp(optional)Used to point to other elements that correspond to this one in a generic fashion. One or more values from data.URI, separated by spaces. att.common.anl
@decls(optional)Identifies one or more metadata elements within the header, which are understood to apply to the element bearing this attribute and its content. One or more values from data.URI, separated by spaces. att.declaring
@def(optional)Provides a mechanism for linking the staff to a staffDef element. Value conforms to data.URI. att.staff.log
@facs(optional)Permits the current element to reference a facsimile surface or image zone which corresponds to it. One or more values from data.URI, separated by spaces. att.facsimile
@label(optional)Provides a name or label for an element. The value may be any string. Value of datatype string. att.commonPart
@metcon(optional)Indicates the relationship between the content of a staff or layer and the prevailing meter. Allowed values are: "c" (Complete; i.e., conformant with the prevailing meter.), "i" (Incomplete; i.e., not enough beats.), "o" (Overfull; i.e., too many beats.)att.meterconformance
@n(optional)A non-negative integer value functioning as a "name". Value of datatype nonNegativeInteger. staff
@next(optional)Used to point to the next event(s) in a user-defined collection. One or more values from data.URI, separated by spaces. att.common.anl
@prev(optional)Points to the previous event(s) in a user-defined collection. One or more values from data.URI, separated by spaces. att.common.anl
@sameas(optional)Points to an element that is the same as the current element but is not a literal copy of the current element. One or more values from data.URI, separated by spaces. att.common.anl
@synch(optional)Points to elements that are synchronous with the current element. One or more values from data.URI, separated by spaces. att.common.anl
@visible(optional)Indicates if a feature should be rendered when the notation is presented graphically or sounded when it is presented in an aural form. Value conforms to data.BOOLEAN. att.visibility
@when(optional)Indicates the point of occurrence of this feature along a time line. Its value must be the ID of a when element elsewhere in the document. Value conforms to data.URI. att.alignment
@xml:base(optional)Provides a base URI reference with which applications can resolve relative URI references into absolute URI references. Value conforms to data.URI. att.commonPart
@xml:id(optional)Regularizes the naming of an element and thus facilitates building links between it and other resources. Each id attribute within a document must have a unique value. Value of datatype ID. att.id
Member of
Contained by
MEI.cmnmeasure ossia
MEI.critapplem rdg
MEI.sharedending section
May contain
Declaration
<classes>
<memberOf key="att.commonPart"/>
<memberOf key="att.declaring"/>
<memberOf key="att.facsimile"/>
<memberOf key="att.staff.log"/>
<memberOf key="att.staff.vis"/>
<memberOf key="att.staff.ges"/>
<memberOf key="att.staff.anl"/>
<memberOf key="model.staffLike"/>
</classes>
<content>
<rng:zeroOrMore>
<rng:choice>
<rng:ref name="model.appLike" />
<rng:ref name="model.divLike" />
<rng:ref name="model.milestoneLike.music" />
<rng:ref name="model.annotLike" />
<rng:ref name="model.graphicprimitiveLike" />
<rng:ref name="model.editLike" />
<rng:ref name="model.transcriptionLike" />
<rng:ref name="model.staffPart" />
</rng:choice>
</rng:zeroOrMore>
</content>
Remarks

The def attribute may be used to create a connection with a staffDef element where logical and visual information about the staff is recorded. Alternatively, the n attribute may be used as a reference to a staffDef element with the same value in its n attribute. If neither def nor n attributes are present, then the encoding order of the staves is presumed to match the encoding order of the staff defintions.