﻿<xs:schema
  targetNamespace="http://nemus.skogsstyrelsen.se/scheman/samradTraktorvag/2"
  elementFormDefault="qualified"
  xmlns="http://nemus.skogsstyrelsen.se/scheman/samradTraktorvag/2"
  xmlns:mstns="http://nemus.skogsstyrelsen.se/scheman/samradTraktorvag/2"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:dt="http://nemus.skogsstyrelsen.se/scheman/dataTypes/2">
  <xs:import namespace="http://nemus.skogsstyrelsen.se/scheman/dataTypes/2" schemaLocation="dataTypes_2.xsd" />

  <xs:element name="samradTraktorvag">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="berorda" type="dt:berordaType"/>
        <xs:element name="geometri" minOccurs="1" maxOccurs="unbounded" type="dt:wktType"/>
        <xs:element name="beskrivning" type="dt:notEmptyString">
          <xs:annotation>
            <xs:documentation>Beskriv åtgärden och skyddsåtgärder för att begränsa skada på naturmiljön</xs:documentation>
          </xs:annotation>
        </xs:element>
    <xs:element name="ovrigaUpplysningar" minOccurs="0" type="dt:notEmptyString"/>
        <xs:element name="bilaga" minOccurs="0" maxOccurs="unbounded" type="bilagaType"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>

  <xs:complexType name="bilagaType">
    <xs:sequence>
      <xs:element name="filformat" type="filformatType" />
      <xs:element name="beskrivning" type="dt:notEmptyString" minOccurs="0" />
      <xs:element name= "data" type="xs:base64Binary" />
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="filformatType">
    <xs:restriction base="dt:notEmptyString">
      <xs:enumeration value="pdf" />
    </xs:restriction>
  </xs:simpleType>


</xs:schema>
