-- XSD schema extracted from ITU-T M.3031 (07/2004)

<?xml version="1.0" encoding="UTF-8"?> <xsd:schema targetNamespace="urn:int.itu/tML/SICSExample" xmlns:tML="urn:int.itu/tML/SICSExample" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.0"> <xsd:annotation> <xsd:documentation xml:lang="en-GB"> <tML:SICSExample> <tML:OriginalAuthor>Dong Wenli - BUPT China</tML:OriginalAuthor> <tML:CreationDate>05-04-2004</tML:CreationDate> <tML:Description>This Schema contains some example Schema definitions. This example doesn't include the whole tML Schema metadata provided in Annex A/M.3030, only because this is just an example showing some Schema features in order to display the corresponding SICS proformas in A.2. It is not necessary to include the whole tml Schema metadata in M.3030 for this purpose. No more annotation is provided in this Schema example. </tML:Description> <tML:Source>M.tMLconf</tML:Source> <tML:SchemaHistory/> </tML:SICSExample> </xsd:documentation> </xsd:annotation> <xsd:element name="externalGsmCell"> <xsd:complexType> <xsd:sequence> <xsd:element ref="tML:userLabel" maxOccurs="unbounded"/> <xsd:element ref="tML:absElement"/> </xsd:sequence> </xsd:complexType> <xsd:key name="empid"> <xsd:selector xpath="tML:userLabel"/> <xsd:field xpath="@id"/> </xsd:key> </xsd:element> <xsd:element name="userLabel" type="tML:Usertype"/> <xsd:element name="absElement" type="xsd:string" abstract="true"/> <xsd:complexType name="Usertype"> <xsd:sequence> <xsd:element ref="tML:name" minOccurs="0" maxOccurs="3"/> <xsd:group ref="tML:ddTop"/> </xsd:sequence> <xsd:attribute name="id" type="xsd:string" use="required" fixed="bj88"/> <xsd:attribute name="contr" use="optional" default="66666"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:minLength value="5"/> <xsd:maxLength value="8"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> </xsd:complexType> <xsd:element name="name" nillable="true"> <xsd:complexType> <xsd:choice> <xsd:element ref="tML:metar"/> <xsd:element ref="tML:name"/> </xsd:choice> </xsd:complexType> </xsd:element> <xsd:element name="metar" type="xsd:decimal"/> <xsd:simpleType name="ListOfMyIntType"> <xsd:list> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:enumeration value="one"/> <xsd:enumeration value="two"/> <xsd:enumeration value="three"/> </xsd:restriction> </xsd:simpleType> </xsd:list> </xsd:simpleType> <xsd:group name="ddTop"> <xsd:choice> <xsd:element name="ddc1"> <xsd:simpleType> <xsd:restriction base="tML:ListOfMyIntType"/> </xsd:simpleType> </xsd:element> <xsd:element name="ddc2"> <xsd:simpleType> <xsd:restriction base="xsd:date"/> </xsd:simpleType> </xsd:element> </xsd:choice> </xsd:group> <xsd:element name="absElementSub" type="xsd:integer" substitutionGroup= "tML:absElement"/> <xsd:element name="namesub" type="xsd:string" substitutionGroup="tML:name"/> <xsd:complexType name="Ausertype"> <xsd:complexContent> <xsd:extension base="tML:Usertype"> <xsd:attribute name="postcode" use="optional"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:length value="6"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> </xsd:extension> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="Busertype" block="restriction"> <xsd:complexContent> <xsd:restriction base="tML:Usertype"> <xsd:sequence> <xsd:element ref="tML:name" minOccurs="0" maxOccurs="3"/> </xsd:sequence> <xsd:attribute name="id" type="xsd:string" use="required" fixed="bj88"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> </xsd:schema>