<?xml version="1.0" encoding="UTF-8"?>
  <!-- PDS4 Schematron for Name Space Id:mgn  Version:1.1.0.0 - Fri May 23 14:52:56 UTC 2025 -->
  <!-- Generated from the PDS4 Information Model Version 1.23.0.0 - System Build 15.0 -->
  <!-- *** This PDS4 schematron file is an operational deliverable. *** -->
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">

  <sch:title>Schematron using XPath 2.0</sch:title>

  <sch:ns uri="http://www.w3.org/2001/XMLSchema-instance" prefix="xsi"/>
  <sch:ns uri="http://pds.nasa.gov/pds4/pds/v1" prefix="pds"/>
  <sch:ns uri="http://pds.nasa.gov/pds4/mission/mgn/v1" prefix="mgn"/>

		   <!-- ================================================ -->
		   <!-- NOTE:  There are two types of schematron rules.  -->
		   <!--        One type includes rules written for       -->
		   <!--        specific situations. The other type are   -->
		   <!--        generated to validate enumerated value    -->
		   <!--        lists. These two types of rules have been -->
		   <!--        merged together in the rules below.       -->
		   <!-- ================================================ -->
  <sch:pattern>
    <sch:rule context="mgn:Magellan_Parameters/mgn:band_name">
      <sch:assert test=". = ('S', 'X')">
        <title>mgn:Magellan_Parameters/mgn:band_name/mgn:band_name</title>
        The attribute mgn:Magellan_Parameters/mgn:band_name must be equal to one of the following values 'S', 'X'.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <sch:pattern>
    <sch:rule context="mgn:Magellan_Parameters/mgn:mission_phase_name">
      <sch:assert test=". = ('Aerobraking', 'Mapping Cycle 1', 'Mapping Cycle 2', 'Mapping Cycle 3', 'Mapping Cycle 4', 'Mapping Cycle 5', 'Mapping Cycle 6', 'Primary Mission')">
        <title>mgn:Magellan_Parameters/mgn:mission_phase_name/mgn:mission_phase_name</title>
        The attribute mgn:Magellan_Parameters/mgn:mission_phase_name must be equal to one of the following values 'Aerobraking', 'Mapping Cycle 1', 'Mapping Cycle 2', 'Mapping Cycle 3', 'Mapping Cycle 4', 'Mapping Cycle 5', 'Mapping Cycle 6', 'Primary Mission'.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <sch:pattern>
    <sch:rule context="mgn:Magellan_Parameters/mgn:organization_id">
      <sch:assert test=". = ('SUE')">
        <title>mgn:Magellan_Parameters/mgn:organization_id/mgn:organization_id</title>
        The attribute mgn:Magellan_Parameters/mgn:organization_id must be equal to the value 'SUE'.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <sch:pattern>
    <sch:rule context="mgn:Magellan_Parameters/mgn:product_type">
      <sch:assert test=". = ('ARCDR', 'BSR', 'C-BIDR', 'C1-MIDR', 'C2-MIDR', 'C3-MIDR', 'F-BIDR', 'F-MIDR', 'GEDR', 'GREDR', 'GSDR', 'GTDR', 'GVDR', 'GXDR', 'LOSAPDR', 'P-MIDR', 'SCVDR', 'SHXDR')">
        <title>mgn:Magellan_Parameters/mgn:product_type/mgn:product_type</title>
        The attribute mgn:Magellan_Parameters/mgn:product_type must be equal to one of the following values 'ARCDR', 'BSR', 'C-BIDR', 'C1-MIDR', 'C2-MIDR', 'C3-MIDR', 'F-BIDR', 'F-MIDR', 'GEDR', 'GREDR', 'GSDR', 'GTDR', 'GVDR', 'GXDR', 'LOSAPDR', 'P-MIDR', 'SCVDR', 'SHXDR'.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <sch:pattern>
    <sch:rule context="mgn:Magellan_Parameters/mgn:radar_look_direction">
      <sch:assert test=". = ('Left', 'Maxwell', 'Mixed', 'Right', 'Stereo')">
        <title>mgn:Magellan_Parameters/mgn:radar_look_direction/mgn:radar_look_direction</title>
        The attribute mgn:Magellan_Parameters/mgn:radar_look_direction must be equal to one of the following values 'Left', 'Maxwell', 'Mixed', 'Right', 'Stereo'.</sch:assert>
    </sch:rule>
  </sch:pattern>
  <sch:pattern>
    <sch:rule context="mgn:Magellan_Parameters/mgn:received_polarization_type">
      <sch:assert test=". = ('left circular', 'right circular')">
        <title>mgn:Magellan_Parameters/mgn:received_polarization_type/mgn:received_polarization_type</title>
        The attribute mgn:Magellan_Parameters/mgn:received_polarization_type must be equal to one of the following values 'left circular', 'right circular'.</sch:assert>
    </sch:rule>
  </sch:pattern>
</sch:schema>
