Multiplicity
UML multiplicity is addressed in a similar manner within schema files through the use of the minOccurs and maxOccurs attributes of xsd:element. The remainder of this section depicts several different line types depicted in UML and how they would be represented in XSD.
0..1
... <xsd:sequence> <xsd:element name=”LicenseID” minOccurs=”0” maxOccurs=”1”/> </xsd:sequence> ...
1..*
...
<xsd:sequence>
<xsd:element name=”LicenseID” minOccurs=”1”
maxOccurs=”unbounded”/>
</xsd:sequence>
...
1..1
... <xsd:sequence> <xsd:element name=”LicenseID” minOccurs=”1” maxOccurs=”1”/> </xsd:sequence> ...
Patterns other than xsd:sequence do in fact exist and are discussed in the Stereotypes proposed functional design document.