<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
    xmlns:ns94="urn:norsk:std:ns94:eseddel"
    targetNamespace="urn:norsk:std:ns94:eseddel"> 

    <!--====== Simple Types =====-->
    <xs:simpleType name="fartoyTypeNs9400Type">
        <xs:restriction base="xs:unsignedByte">
            <xs:enumeration value="1"/> <!-- Fiskefartøy -->
            <xs:enumeration value="2"/> <!-- Transportfartøy som bringer fangst fra annet fartøy. -->
            <xs:enumeration value="3"/> <!-- Brønnbåt som har hentet fangst fra lås/mer -->
            <xs:enumeration value="4"/> <!-- Leiefartøy -->
            <xs:enumeration value="5"/> <!-- Kjøpefartøy -->
            <xs:enumeration value="6"/> <!-- Samfiskefartøy -->
            <xs:enumeration value="7"/> <!-- Partrållag: Fiskefartøy som har tillatelse til å drive partråling -->
            <xs:enumeration value="8"/> <!-- Forskningsfartøy -->
            <xs:enumeration value="9"/> <!-- Skolefartøy -->
            <xs:enumeration value="10"/> <!-- Landnotfartøy -->
            <xs:enumeration value="11"/> <!-- Taretråler -->
            <xs:enumeration value="12"/> <!-- Fritidsfartøy -->
            <xs:enumeration value="13"/> <!-- Ulovlig fartøy, 02.02.2026 -->
            <xs:enumeration value="14"/> <!-- Tanghøster -->
            <xs:enumeration value="15"/> <!-- Uten fartøy -->
            <xs:enumeration value="16"/> <!-- landing fra annet enn fiskefartøy -->
            <xs:enumeration value="70"/> <!-- Frakt_tilskudd. NB! IKKE DEFINERT I NS9400 PER 23.05.2011 -->
            <xs:enumeration value="71"/> <!-- Vernet fartøy -->
            <xs:enumeration value="72"/> <!-- Turistfiskebåt -->
        </xs:restriction>
    </xs:simpleType>
    
    <xs:simpleType name="redskapNs9400Type">
        <xs:restriction base="xs:unsignedByte">
            <xs:enumeration value="10"/> <!-- UDEFINERT NOT -->
            <xs:enumeration value="11"/> <!-- SNURPENOT/RINGNOT -->
            <xs:enumeration value="12"/> <!-- LANDNOT -->
            <xs:enumeration value="20"/> <!-- UDEFINERT GARN -->
            <xs:enumeration value="21"/> <!-- DRIVGARN -->
            <xs:enumeration value="22"/> <!-- SETTEGARN -->
            <xs:enumeration value="30"/> <!-- UDEFINERT KROKREDSKAP -->
            <xs:enumeration value="31"/> <!-- LINE -->
            <xs:enumeration value="32"/> <!-- ANDRE LINER -->
            <xs:enumeration value="33"/> <!-- JUKSA/PILK/SNØRE -->
            <xs:enumeration value="34"/> <!-- DORG/HARP/SNIK -->
            <xs:enumeration value="35"/> <!-- AUTOLINE -->
            <xs:enumeration value="41"/> <!-- RUSER/TEINER -->
            <xs:enumeration value="42"/> <!-- TEINER -->
            <xs:enumeration value="44"/> <!-- HAVTEINER -->
            <xs:enumeration value="50"/> <!-- UDEFINERT TRÅL -->
            <xs:enumeration value="51"/> <!-- BUNNTRÅL -->
            <xs:enumeration value="53"/> <!-- FLYTETRÅL -->            
            <xs:enumeration value="55"/> <!-- REKETRÅL -->
            <xs:enumeration value="56"/> <!-- BOMTRÅL -->
            <xs:enumeration value="61"/> <!-- SNURREVAD/RUFITRÅL -->
            <xs:enumeration value="71"/> <!-- HVALKANON -->
            <xs:enumeration value="73"/> <!-- RIFLE -->
            <xs:enumeration value="80"/> <!-- ANNET -->
            <xs:enumeration value="81"/> <!-- SKJELLSKRAPE ETC. -->
            <xs:enumeration value="83"/> <!-- TARETRÅL -->
            <xs:enumeration value="84"/> <!-- TANGKUTTER -->
            <xs:enumeration value="85"/> <!-- HÅNDPLUKK -->
            <xs:enumeration value="86"/> <!-- BUNNDYRHØSTER -->
            <xs:enumeration value="90"/> <!-- OPPDRETT -->
        </xs:restriction>        
    </xs:simpleType>
 
    <xs:simpleType name="sdlTypeNs9400Type">
        <xs:restriction base="xs:unsignedByte">
            <xs:enumeration value="0"/> <!-- Sluttseddeldokument -->
            <xs:enumeration value="1"/> <!-- Landingsdokument -->
            <xs:enumeration value="2"/> <!-- Gjelder for EU-fartøy som lander i transitt i Norge -->
            <xs:enumeration value="3"/> <!-- Bryggeseddel -->
            <xs:enumeration value="4"/> <!-- Landingsdokument fra føringsfartøy - Sluttseddel er allerede skrive ut -->
            <xs:enumeration value="5"/> <!-- Fangstsertifikat -->
            <xs:enumeration value="9"/> <!-- Innmeldingsdokument: Brukes på landingsseddel som referanse til internt saksnummer på innmelding -->
        </xs:restriction>        
    </xs:simpleType>
    
    <xs:simpleType name="idNrNs9400Type">
        <xs:restriction base="xs:unsignedByte">
            <xs:enumeration value="1"/> <!-- Fødselsnr -->
            <xs:enumeration value="2"/> <!-- organisasjonsnummer i Enhetsregisteret (rederi) -->
            <xs:enumeration value="3"/>  <!--  arbeidsgivernummer - Utgått fra NS9400 -->
            <xs:enumeration value="4"/> <!-- internt fiskernummer hos salgslaget -->
            <xs:enumeration value="5"/> <!-- utenlandsk fødselsnummer -->
            <xs:enumeration value="6"/> <!-- utenlandsk organisasjonsnummer -->
            <xs:enumeration value="9"/> <!-- ukjent -->
        </xs:restriction>
    </xs:simpleType>
    
    <xs:simpleType name="kvoteNs9400Type">
        <xs:restriction base="xs:unsignedByte">
            <xs:enumeration value="1"/> <!-- Vanlig kvote -->
            <xs:enumeration value="2"/> <!-- Forskningskvote -->
            <xs:enumeration value="3"/> <!-- Skolekvote -->
            <xs:enumeration value="4"/> <!-- Annet lands kvote -->
            <xs:enumeration value="5"/> <!-- Ungdomskvote -->
            <xs:enumeration value="6"/> <!-- Fritidsfiske -->
            <xs:enumeration value="7"/> <!-- Vanlig kvote med leveringsbetingelser -->
            <xs:enumeration value="8"/> <!-- Distriktskvote -->
            <xs:enumeration value="9"/> <!-- Agnkvote -->
            <xs:enumeration value="10"/> <!-- Vanlig kvote, salg til turist -->
            <xs:enumeration value="11"/> <!-- Kongekrabbe-kvote i kvoteområdet -->
            <xs:enumeration value="12"/> <!-- Bonuskvote, Fersk:  Gjelder leveranser av fersk torsk.-->
            <xs:enumeration value="13"/> <!-- levendelagring-->
            <xs:enumeration value="14"/> <!-- Lærlingekvote-->
            <xs:enumeration value="15"/> <!-- Tilleggskvote, Brukes bl.a. av seitrålerne ved direktefiske etter torsk og hyse. -->
        </xs:restriction>
    </xs:simpleType>
    
    <xs:simpleType name="salgslagIdType">
      <xs:restriction base="xs:unsignedByte">
        <xs:enumeration value="2"/> <!-- Skagerakfisk S/L -->
        <xs:enumeration value="3"/> <!-- Rogaland Fiskesalgslag S/L -->
        <xs:enumeration value="4"/> <!-- Vest-Norges Fiskesalslag -->
        <xs:enumeration value="6"/> <!-- Sunnmøre og Romsdal Fiskesalslag -->
        <xs:enumeration value="7"/> <!-- Norges Råfisklag -->
        <xs:enumeration value="8"/> <!-- Norges Sildesalgslag -->
      </xs:restriction>
    </xs:simpleType>
</xs:schema>
