81 lines
2.8 KiB
XML
81 lines
2.8 KiB
XML
<?xml version="1.0"?>
|
|
<!-- DATEN + DIENSTE GmbH Rostock, Version vom 11.04.2017 -->
|
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
|
|
|
<xs:complexType name="vessel-type">
|
|
<xs:sequence>
|
|
<xs:element name="ShipName" type="string1-99-type"/>
|
|
<xs:element name="CallSign" type="callsign-type"/>
|
|
<xs:element name="MMSINumber" type="mmsinumber-type"/>
|
|
<xs:element name="Flag" type="flag-type"/>
|
|
<xs:element name="LengthOverall_MTR" type="posfloat-type"/>
|
|
<xs:element name="Beam_MTR" type="posfloat-type"/>
|
|
<xs:element name="GrossTonnage" type="posint-type"/>
|
|
<xs:element name="PortOfRegistry" type="locode-type"/>
|
|
<xs:element name="InmarsatCallNumber" type="string1-99-type" minOccurs="0"/>
|
|
<xs:element name="TransportMode" type="transportmode-type"/>
|
|
<xs:element name="ShipType" type="ship-type"/>
|
|
<xs:element name="ISMCompany" type="ismcompany" minOccurs="0"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
|
|
<xs:complexType name="ismcompany">
|
|
<xs:sequence>
|
|
<xs:element name="ISMCompanyName" type="string1-99-type"/>
|
|
<xs:element name="ISMCompanyId" type="companyid-type"/>
|
|
<xs:element name="ISMCompanyStreetAndNumber" type="string1-99-type" minOccurs="0"/>
|
|
<xs:element name="ISMCompanyPostalCode" type="string1-24-type" minOccurs="0"/>
|
|
<xs:element name="ISMCompanyCity" type="string1-99-type" minOccurs="0"/>
|
|
<xs:element name="ISMCompanyCountry" type="string1-99-type" minOccurs="0"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
|
|
<!-- ============ simple types ============ -->
|
|
<xs:simpleType name="imonumber-type">
|
|
<xs:restriction base="xs:string">
|
|
<xs:minLength value="7"/>
|
|
<xs:maxLength value="7"/>
|
|
<xs:pattern value="[0-9]*"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
|
|
<xs:simpleType name="callsign-type">
|
|
<xs:restriction base='xs:string'>
|
|
<xs:minLength value='4' />
|
|
<xs:maxLength value='7' />
|
|
<xs:pattern value="[A-Za-z0-9]*" />
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
|
|
<xs:simpleType name="mmsinumber-type">
|
|
<xs:restriction base='xs:string'>
|
|
<xs:minLength value='9' />
|
|
<xs:maxLength value='10' />
|
|
<xs:pattern value="[0-9]*" />
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
|
|
<xs:simpleType name="eninumber-type">
|
|
<xs:restriction base="xs:string">
|
|
<xs:minLength value='8'/>
|
|
<xs:maxLength value='8'/>
|
|
<xs:pattern value="[0-9]*"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
|
|
<xs:simpleType name="transportmode-type">
|
|
<xs:restriction base="xs:string">
|
|
<xs:minLength value='1'/>
|
|
<xs:maxLength value='1'/>
|
|
<xs:pattern value="(1|8)"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
|
|
<xs:simpleType name="ship-type">
|
|
<xs:restriction base="xs:string">
|
|
<xs:minLength value='2'/>
|
|
<xs:maxLength value='3'/>
|
|
<xs:pattern value="[A-Z0-9]*"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
</xs:schema> |