Element: linkDescriptionThe link type serves as an outgoing simple XLink. It is also used to connect a MusicXML score with a MusicXML opus. If a relative link is used within a document that is part of a compressed MusicXML file, the link is relative to the root folder of the zip file. Derived ByType link Attributes
Content ModelAlways empty. Referenced ByExampleFigure 1Figure 2The individual MusicXML score files contain hyperlinks within the score indicating the connections between them. Example 1 shows the connection stored in the first variant. The id names reflect that there are no slurs in the top staff of the first variant, while slurs are present in the top staff of the second variant. Example 1: Representing a link from the first variant to the second variantEach variant is represented by a separate MusicXML score-partwise document. The first variant is called bach_1.xml and the second is called bach_2.xml. Each of these files is then placed in the bach_1.mxl compressed zip file. A compressed MusicXML zip file always has a file at META-INF/container.xml whose first rootfile element points to the primary music notation file. Example 4 shows the content of the container.xml file in this example, where the first variant is considered the primary file. Example 4: Contents of the container.xml file within the bach_1.mxl file <?xml version="1.0" encoding="UTF-8"?> Since these compressed files are zip-based, similar to the techniques used for many other XML-based formats in other domains such as word processing, they can be directly edited by industry-standard XML editors. The figure below shows what the bach_1.mxl file looks like when opened by the XMLSpy editor. Opening the bach_1.mxl file in the XMLSpy editor |
MusicXML Documentation Home
|