- The UML Class must have the additional stereotype XSDlist.
- Binding between this class and XSD:list must be provided.
- “itemsType” maps to UML TemplateArgument from Binding.
List model example.
List XML code sample
<?xml version=1.0, encoding=’UTF-8’?›
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:simpleType name="my_number_list2" >
<xs:list >
<xs:simpleType>
<xs:restriction base="xs:string" />
</xs:simpleType›
</xs:list>
</xs:simpleType>
<xs:simpleType name="my_number_list" >
<xs:annotation >
<xs:documentation >my list documentation</xs:documentation>
</xs:annotation>
<xs:list itemType="xs:boolean" />
</xs:simpleType>
</xs:schema>