The <supports> element
Parent element: <encoding>
The <supports> element indicates if a MusicXML encoding supports a particular MusicXML element. This is recommended for elements like <beam> and <accidental>, where the absence of an element would be ambiguous without this signal. It is also recommended for elements like <stem> to let importers know if all values are specified or just manual overrides. Further, it allows programs to indicate support for specific attributes, or specific attributes with specific values. This lets applications communicate, for example, that all system and/or page breaks are contained in the MusicXML document.
The absence of a given element is interpreted differently depending on whether <supports> for this element has type = “yes” or “no”. If “yes”, the absence of the element means that no element is displayed. If “no”, the encoding signifies that the status of a missing element is unknown. This could be because the element is not supported at all or because it is only partially supported, leaving the importer to use its own heuristics. In either case, the occurrence of the element in the document overrides any heuristics the importer may be applying.
Content
Always empty.
Attributes
| Name | Type | Required?(Default) | Description |
|---|---|---|---|
| element | xs:NMTOKEN | Yes | Indicates the element that is supported or not by the encoding. |
| Indicates the element that is supported or not by the encoding. | |||
| type | yes-no | Yes | If yes, the absence of a particular element with a specified attribute or value is meaningful. It indicates that this information is not present in the score. If no, the absence is not meaningful because the encoding does not include all instances of this type of information. |
| If yes, the absence of a particular element with a specified attribute or value is meaningful. It indicates that this information is not present in the score. If no, the absence is not meaningful because the encoding does not include all instances of this type of information. | |||
| attribute | xs:NMTOKEN | No | Indicates a specific element attribute that is supported or not by the encoding. |
| Indicates a specific element attribute that is supported or not by the encoding. | |||
| value | xs:token | No | Indicates a specific attribute value that is supported or not by the encoding. Only used together with the attribute attribute. |
| Indicates a specific attribute value that is supported or not by the encoding. Only used together with the attribute attribute. | |||
Examples
This element is used in the following examples:
<identification><supports>Tutorial: Après un rêveTutorial: Chopin PreludeTutorial: Chord SymbolsTutorial: PercussionTutorial: Tablature