MetriXML Score Definition

We can do the same process transforming the textual MSDL (see 6.4.3) into XML:


\begin{spacing}{0.8}
\texttt{\footnotesize <MetriXMLScore>}{\footnotesize\par
}
...
...r
\texttt{\footnotesize </MetriXMLScore>} \\
{\footnotesize\par
}
\end{spacing}

And we can now build the associated XML-Schema:


\begin{spacing}{0.8}
\texttt{\footnotesize <xsd:schema xmlns:xsd=\char\lq \uml {}ht...
...\par
\texttt{\footnotesize    <xsd:sequence>}{\footnotesize\par
}
\end{spacing}

      <xsd:element name="Header">


\begin{spacing}{0.8}
\texttt{\footnotesize        <xsd:complexType name=\char\lq \...
...
name=\char\lq \uml {}VariableKind\char\lq \uml {}>}{\footnotesize\par
}
\end{spacing}

                    <xsd:simpleType=''VariableKindType''>

                      <xsd:restriction base=''xsd:string''>

                        <xsd:enumeration value=''Instrument''/>

                        <xsd:enumeration value=''Generator''/>


\begin{spacing}{0.8}
\texttt{\footnotesize                      </xsd:restriction>}{\footnotesize\par
}
\end{spacing}

                    </xsd:simpleType>

                  <xsd:element name="Name" type=''xsd:string''/>


\begin{spacing}{0.8}
\texttt{\footnotesize                  <xsd:element
name=\...
...exttt{\footnotesize  </xsd:complexType>} \\
{\footnotesize\par
}
\end{spacing}

And as we did for the Instrument Definition, by looking at the previous schema we can now build the object-oriented class diagram of the MetriXML Score. This class diagram is illustrated in Figure 6.13.

Figure 6.13: MetriXML Score class diagram
\includegraphics[%
width=0.60\paperwidth]{images/ch6-MetriX/ps/MetriXMLScore.ps}



2004-10-18