</xs:simpleType>
 <xs:simpleType name="weather_category_code_enum">
 <xs:restriction base="xs:string">
 <xs:maxLength value="2"/>
 <xs:enumeration value="0"/>
 <xs:enumeration value="1"/>
 <xs:enumeration value="2"/>
 <xs:enumeration value="3"/>
 <xs:enumeration value="4"/>
 <xs:enumeration value="5"/>
 <xs:enumeration value="6"/>
 <xs:enumeration value="7"/>
 <xs:enumeration value="8"/>
 <xs:enumeration value="9"/>
 <xs:enumeration value="10"/>
 <xs:enumeration value="11"/>
 <xs:enumeration value="12"/>
 <xs:enumeration value="13"/>
 <xs:enumeration value="14"/>
 <xs:enumeration value="15"/>
 <xs:enumeration value="16"/>
 <xs:enumeration value="17"/>
 <xs:enumeration value="18"/>
 <xs:enumeration value="19"/>
 <xs:enumeration value="20"/>
 <xs:enumeration value="21"/>
 <xs:enumeration value="22"/>
 </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="weather_direction_code_enum">
 <xs:restriction base="xs:string">
 <xs:maxLength value="3"/>
 <xs:enumeration value="N"/>
 <xs:enumeration value="NE"/>
 <xs:enumeration value="E"/>
 <xs:enumeration value="SE"/>
 <xs:enumeration value="S"/>
 <xs:enumeration value="SW"/>
 <xs:enumeration value="W"/>
 <xs:enumeration value="NW"/>
 <xs:enumeration value="WRB"/>
 </xs:restriction>
 </xs:simpleType>
 <!--
 =====================================
 = types used in several definitions =
 =====================================
 -->
 <xs:simpleType name="internal_id_type">
 <xs:annotation>
 <xs:documentation>Internal ID — best practice: global unique identifier</xs:documentation>
 </xs:annotation>
 <xs:restriction base="xs:string">
 <xs:maxLength value="64"/>
 </xs:restriction>
 </xs:simpleType>
 <xs:complexType name="nts_number_type">
 <xs:sequence>
 <xs:element name="organisation">
 <xs:annotation>
 <xs:documentation>Name of the publishing organisation (NtS Provider)</xs:documentation>
 </xs:annotation>
 <xs:simpleType>
 <xs:restriction base="xs:string">
 <xs:maxLength value="64"/>
 </xs:restriction>
 </xs:simpleType>
 </xs:element>
 <xs:element name="year">
 <xs:annotation>
 <xs:documentation>Year of first issuing of the notice</xs:documentation>
 </xs:annotation>
 <xs:simpleType>
 <xs:restriction base="xs:gYear">
 <xs:minInclusive value="1900"/>
 <xs:maxInclusive value="9999"/>
 </xs:restriction>
 </xs:simpleType>
 </xs:element>
 <xs:element name="number">
 <xs:annotation>
 <xs:documentation>Number of the notice (per year, starting with: 1, 0 shall not be used for published notices)</xs:documentation>
 </xs:annotation>
 <xs:simpleType>
 <xs:restriction base="xs:integer">
 <xs:minInclusive value="00000000"/>
 <xs:maxInclusive value="99999999"/>
 </xs:restriction>
 </xs:simpleType>
 </xs:element>
 <xs:element name="serial_number">
 <xs:annotation>
 <xs:documentation>Serial number of notice (replacements and withdrawals), original notice: 0</xs:documentation>
 </xs:annotation>
 <xs:simpleType>
 <xs:restriction base="xs:integer">
 <xs:minInclusive value="00"/>
 <xs:maxInclusive value="99"/>
 </xs:restriction>
 </xs:simpleType>
 </xs:element>
 </xs:sequence>
 </xs:complexType>
 <xs:complexType name="validity_period_type">
 <xs:sequence>
 <xs:element name="date_start" type="xs:date">
 <xs:annotation>
 <xs:documentation>Start date of validity period including time zone</xs:documentation>
 </xs:annotation>
 </xs:element>
 <xs:element name="date_end" type="xs:date" minOccurs="0">
 <xs:annotation>
 <xs:documentation>End date of validity period including time zone</xs:documentation>
 </xs:annotation>
 </xs:element>
 </xs:sequence>
 </xs:complexType>
 <xs:complexType name="fairway_section_type">
 <xs:sequence>
 <xs:element name="geo_object" type="nts:geo_object_type">
 <xs:annotation>
 <xs:documentation>Geo information of fairway</xs:documentation>
 </xs:annotation>
 </xs:element>
 <xs:element name="limitation" type="nts:limitation_type" minOccurs="0" maxOccurs="unbounded">
 <xs:annotation>
 <xs:documentation>Fairway section limitations</xs:documentation>
 </xs:annotation>
 </xs:element>
 </xs:sequence>
 </xs:complexType>
 <xs:complexType name="geo_object_type">
 <xs:sequence>
 <xs:element name="id" type="nts:isrs_code_type" maxOccurs="2">
 <xs:annotation>
 <xs:documentation>ISRS Location Code of the fairway/object</xs:documentation>
 </xs:annotation>
 </xs:element>
 <xs:element name="name">
 <xs:annotation>
 <xs:documentation>Local name of the fairway section</xs:documentation>
 </xs:annotation>
 <xs:simpleType>
 <xs:restriction base="xs:string">
 <xs:maxLength value="256"/>
 </xs:restriction>
 </xs:simpleType>
 </xs:element>
 <xs:element name="type_code" type="nts:type_code_enum" default="FWY">
 <xs:annotation>
 <xs:documentation>Type of geographical object</xs:documentation>
 </xs:annotation>
 </xs:element>
 <xs:element name="position_code" type="nts:position_code_enum" minOccurs="0">
 <xs:annotation>
 <xs:documentation>Describes the position related to the fairway</xs:documentation>
 </xs:annotation>
 </xs:element>
 <xs:element name="coordinate" type="nts:coordinate_type" minOccurs="0" maxOccurs="2">
 <xs:annotation>
 <xs:documentation>Fairway section begin and end coordinates</xs:documentation>
 </xs:annotation>
 </xs:element>
 <xs:element name="fairway_name" minOccurs="0">
 <xs:annotation>
 <xs:documentation>Waterway name (usefull if no RIS Index is available)</xs:documentation>
 </xs:annotation>
 <xs:simpleType>
 <xs:restriction base="xs:string">
 <xs:maxLength value="256"/>
 </xs:restriction>
 </xs:simpleType>
 </xs:element>
 </xs:sequence>
 </xs:complexType>
 <xs:simpleType name="isrs_code_type">
 <xs:annotation>
 <xs:documentation>ISRS location code, unique identification of the geo object as defined in RIS Index encoding guide</xs:documentation>
 </xs:annotation>
 <xs:restriction base="xs:string">
 <xs:length value="20"/>
 <xs:pattern value="[A-Z]{2}[A-Z]{3}[A-Z0-9]{5}[A-Z0-9]{5}[0-9]{5}" />
 </xs:restriction>
 </xs:simpleType>
 <xs:simpleType name="type_code_enum">
 <xs:restriction base="xs:string">
 <xs:maxLength value="3"/>
 <xs:enumeration value="RIV"/>
 <xs:enumeration value="CAN"/>
 <xs:enumeration value="LAK"/>
 <xs:enumeration value="FWY"/>
 <xs:enumeration value="LCK"/>
 <xs:enumeration value="BRI"/>
 <xs:enumeration value="RMP"/>
 <xs:enumeration value="BAR"/>
 <xs:enumeration value="BNK"/>
 <xs:enumeration value="GAU"/>
 <xs:enumeration value="BUO"/>
 <xs:enumeration value="BEA"/>
 <xs:enumeration value="ANC"/>
 <xs:enumeration value="BER"/>
 <xs:enumeration value="MOO"/>
 <xs:enumeration value="TER"/>
 <xs:enumeration value="HAR"/>
 <xs:enumeration value="FDO"/>
 <xs:enumeration value="CAB"/>
 <xs:enumeration value="FER"/>
 <xs:enumeration value="PIP"/>
 <xs:enumeration value="PPO"/>
 <xs:enumeration value="HFA"/>
 <xs:enumeration value="HMO"/>
 <xs:enumeration value="SHY"/>
 <xs:enumeration value="REF"/>
 <xs:enumeration value="MAR"/>
 <xs:enumeration value="LIG"/>
 <xs:enumeration value="SIG"/>
 <xs:enumeration value="TUR"/>
 <xs:enumeration value="CBR"/>
 <xs:enumeration value="TUN"/>
 <xs:enumeration value="BCO"/>
 <xs:enumeration value="REP"/>
 <xs:enumeration value="FLO"/>
 <xs:enumeration value="SLI"/>
 <xs:enumeration value="DUK"/>
 <xs:enumeration value="VTC"/>
 <xs:enumeration value="RES"/>
 <xs:enumeration value="LKB"/>
 <xs:enumeration value="BRO"/>
 <!--the following value is added due to CR 157-->
 <xs:enumeration value="BNS"/>
 </xs:restriction>
 </xs:simpleType>
 <xs:complexType name="coordinate_type">
 <xs:sequence>
