<?xml version="1.0" encoding="UTF-8"?>
  <!-- PDS4 XML/Schema for Name Space Id:bc_mpo_bel  Version:1.0.0.1 - Mon Jul 29 12:18:30 CEST 2024 -->
  <!-- Generated from the PDS4 Information Model Version 1.22.0.0 - System Build 14.1 -->
  <!-- *** This PDS4 product schema is an operational deliverable. *** -->
  <!--                                                                           -->
  <!--               Dictionary Stack                                            -->
  <!-- 1.22.0.0 - pds: - Common Dictionary                                       -->
  <!-- 1.0.0.1 - bc_mpo_bel: - BepiColombo BELA instrument dictionary            -->
  <!--                                                                           -->
  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://psa.esa.int/psa/bc/mpo/bel/v1"
    xmlns:bc_mpo_bel="http://psa.esa.int/psa/bc/mpo/bel/v1"
    xmlns:pds="http://pds.nasa.gov/pds4/pds/v1"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified"
    version="1.0.0.1">
 
    <xs:import namespace="http://pds.nasa.gov/pds4/pds/v1" schemaLocation="https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1M00.xsd"/>
 
  <xs:annotation>
    <xs:documentation>

        This is the BepiColombo BELA mission dictionary LDDIngest file. 
        
        Modification history:
        
        Version 1.0.0.0 2020-02-11
        - First entry
        
        Version 1.0.0.1 2020-09-01
        - Added pulse_record_count, sensor_record_count and albedo_record_count attributes
    
    </xs:documentation>
  </xs:annotation>
 
  <xs:element name="Acquisition_Properties" type="bc_mpo_bel:Acquisition_Properties"> </xs:element>
  <xs:element name="Instrument_Information" type="bc_mpo_bel:Instrument_Information"> </xs:element>

  <xs:complexType name="Acquisition_Properties">
    <xs:annotation>
<xs:documentation> Acquisition_Information </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="adr_record_count" type="bc_mpo_bel:adr_record_count" minOccurs="1" maxOccurs="1"> </xs:element>
      <xs:element name="cws_record_count" type="bc_mpo_bel:cws_record_count" minOccurs="1" maxOccurs="1"> </xs:element>
      <xs:element name="rws_record_count" type="bc_mpo_bel:rws_record_count" minOccurs="1" maxOccurs="1"> </xs:element>
      <xs:element name="pulse_record_count" type="bc_mpo_bel:pulse_record_count" minOccurs="1" maxOccurs="1"> </xs:element>
      <xs:element name="sensor_record_count" type="bc_mpo_bel:sensor_record_count" minOccurs="1" maxOccurs="1"> </xs:element>
      <xs:element name="albedo_record_count" type="bc_mpo_bel:albedo_record_count" minOccurs="1" maxOccurs="1"> </xs:element>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="Instrument_Information">
    <xs:annotation>
<xs:documentation> Instrument_Information </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="instrument_version" type="bc_mpo_bel:instrument_version" minOccurs="1" maxOccurs="1"> </xs:element>
      <xs:element name="instrument_version_id" type="bc_mpo_bel:instrument_version_id" minOccurs="1" maxOccurs="1"> </xs:element>
    </xs:sequence>
    <!-- Begin assert statements for schematron - Enumerated Values -->
    <!-- <xs:assert test="bc_mpo_bel:instrument_version = ('BELA Flight Model', 'BELA Flight Spare')"/> -->
    <!-- <xs:assert test="bc_mpo_bel:instrument_version_id = ('FM', 'FS')"/> -->
    <!-- End assert statements for schematron - Enumerated Values -->
  </xs:complexType>

    <xs:annotation>
      <xs:documentation>This section contains the simpleTypes that provide more constraints
        than those at the base data type level. The simpleTypes defined here build on the base data
        types. This is another component of the common dictionary and therefore falls within the
        common namespace.
      </xs:documentation>
    </xs:annotation>

  <xs:simpleType name="adr_record_count">
    <xs:annotation>
      <xs:documentation>Number of records in the ADR
        table</xs:documentation>
    </xs:annotation>
    <xs:restriction base="pds:ASCII_NonNegative_Integer">
    	<xs:pattern value='[0-9]+'/>
     <xs:minInclusive value="0"/>
     <xs:maxInclusive value="18446744073709551615"/>
	   </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="albedo_record_count">
    <xs:annotation>
      <xs:documentation>Number of records recorded in ALBEDO operation
        mode</xs:documentation>
    </xs:annotation>
    <xs:restriction base="pds:ASCII_NonNegative_Integer">
    	<xs:pattern value='[0-9]+'/>
     <xs:minInclusive value="0"/>
     <xs:maxInclusive value="18446744073709551615"/>
	   </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="cws_record_count">
    <xs:annotation>
      <xs:documentation>Number of records in the CWS
        table</xs:documentation>
    </xs:annotation>
    <xs:restriction base="pds:ASCII_NonNegative_Integer">
    	<xs:pattern value='[0-9]+'/>
     <xs:minInclusive value="0"/>
     <xs:maxInclusive value="18446744073709551615"/>
	   </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="instrument_version">
    <xs:annotation>
<xs:documentation>Name of the BELA model</xs:documentation>
    </xs:annotation>
    <xs:restriction base="pds:ASCII_Short_String_Collapsed">
     <xs:minLength value="1"/>
     <xs:maxLength value="255"/>
	   </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="instrument_version_id">
    <xs:annotation>
      <xs:documentation>ID (abbreviation) of the the BELA
        model</xs:documentation>
    </xs:annotation>
    <xs:restriction base="pds:ASCII_Short_String_Collapsed">
     <xs:minLength value="1"/>
     <xs:maxLength value="255"/>
	   </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="pulse_record_count">
    <xs:annotation>
      <xs:documentation>Number of records recorded in PULSE operation
        mode</xs:documentation>
    </xs:annotation>
    <xs:restriction base="pds:ASCII_NonNegative_Integer">
    	<xs:pattern value='[0-9]+'/>
     <xs:minInclusive value="0"/>
     <xs:maxInclusive value="18446744073709551615"/>
	   </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="rws_record_count">
    <xs:annotation>
      <xs:documentation>Number of records in the RWS
        table</xs:documentation>
    </xs:annotation>
    <xs:restriction base="pds:ASCII_NonNegative_Integer">
    	<xs:pattern value='[0-9]+'/>
     <xs:minInclusive value="0"/>
     <xs:maxInclusive value="18446744073709551615"/>
	   </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="sensor_record_count">
    <xs:annotation>
      <xs:documentation>Number of records recorded in SENSOR operation
        mode</xs:documentation>
    </xs:annotation>
    <xs:restriction base="pds:ASCII_NonNegative_Integer">
    	<xs:pattern value='[0-9]+'/>
     <xs:minInclusive value="0"/>
     <xs:maxInclusive value="18446744073709551615"/>
	   </xs:restriction>
  </xs:simpleType>
</xs:schema>
