<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:i="http://niem.gov/niem/appinfo/2.0"
  xmlns:s="http://niem.gov/niem/structures/2.0"
  xmlns:icism="urn:us:gov:ic:ism:v2"
  xmlns:icismmd="http://niem.gov/niem/icism/2.0"
  targetNamespace="http://niem.gov/niem/icism/2.0" version="1">

  <xsd:annotation>
	  <xsd:documentation>This schema (icism-metadata.xsd) provides a method for using the Intelligence Community Information Security Marking (IC-ISM) standard, Version 2.0, dated 30 April 2004, within NIEM 2.0.  This schema defines a NIEM metadata element derived from s:MetadataType that contains the optional IC-ISM attributes.  Within an instance, an element links through its s:metadata attribute to the appropriate s:id attribute of the IC-ISM metadata container.  This schema cannot and does not use IC-ISM attributeGroups.  For more information about the IC-ISM standard refer to ISM Data Element Dictionary (IC-ISM-DED-v2.0.3.pdf) and the ISM Implementation Guide (IC-ISM-Implementation-Guide-v2.0.3.pdf), both documents are Release 2.0.3, 15 Feb 2006, Unclassified, and For Official Use Only.</xsd:documentation>
    <xsd:appinfo>
      <i:ConformantIndicator>true</i:ConformantIndicator>
    </xsd:appinfo>
  </xsd:annotation>

  <xsd:import schemaLocation="../../structures/2.0/structures.xsd" namespace="http://niem.gov/niem/structures/2.0"/>
  <xsd:import schemaLocation="../../appinfo/2.0/appinfo.xsd" namespace="http://niem.gov/niem/appinfo/2.0"/>
  <xsd:import schemaLocation="../../icism/2.0/IC-ISM-V2.xsd" namespace="urn:us:gov:ic:ism:v2">
    <xsd:annotation>
      <xsd:appinfo>
        <i:ConformantIndicator>false</i:ConformantIndicator>
      </xsd:appinfo>
    </xsd:annotation>
  </xsd:import>

  <xsd:complexType name="ICISMMetadataType">
    <xsd:annotation>
      <xsd:documentation>A data type for IC-ISM metadata about information security for the content of an element.</xsd:documentation>
      <xsd:appinfo>
        <i:Base i:namespace="http://niem.gov/niem/structures/2.0" i:name="MetadataType"/>
	<i:AppliesTo i:namespace="http://niem.gov/niem/structures/2.0" i:name="ComplexObjectType"/>
      </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexContent>
      <xsd:extension base="s:MetadataType">
        <xsd:attribute ref="icism:classification" use="optional">
          <xsd:annotation>
            <xsd:documentation>
              A simple type in which a name token is restricted to the US, non-US, and joint classification portion mark abbreviations from the CAPCO Register.
            </xsd:documentation>
          </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute ref="icism:ownerProducer" use="optional">
          <xsd:annotation>
            <xsd:documentation>
              ISO 3166-1 trigraph(s) of the owner or producer country(ies) and/or CAPCO-specified tetragraphs of international organizations. Either (a) a single trigraph or tetragraph or (b) a space-delimited list of trigraphs followed by tetragraphs. Trigraphs must be in alphabetical order and tetragraphs must be in alphabetical order.
            </xsd:documentation>
          </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute ref="icism:SCIcontrols" use="optional">
          <xsd:annotation>
            <xsd:documentation>
              Authorized abbreviation(s) of SCI control system(s). Either (a) a single abbreviation or (b) a space-delimited list of abbreviations in the order prescribed in the CAPCO Register.
            </xsd:documentation>
          </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute ref="icism:SARIdentifier" use="optional">
          <xsd:annotation>
            <xsd:documentation>
              Authorized Special Access Required program digraph(s) or trigraph(s) preceded by "SAR-". Either (a) a single digraph or trigraph or (b) a space-delimited list of digraphs or trigraphs. Example: "SAR-ABC SAR-DEF ..."
            </xsd:documentation>
          </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute ref="icism:disseminationControls" use="optional">
          <xsd:annotation>
            <xsd:documentation>
              Authorized dissemination control portion mark abbreviation(s). Either (a) a single abbreviation or (b) a space-delimited list of abbreviations in the order shown in the CAPCO Register. Exception: For the "REL" abbreviation, omit the country code trigraph(s) and instead place the trigraph(s) in the "releasableTo" attribute value.
            </xsd:documentation>
          </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute ref="icism:FGIsourceOpen" use="optional">
          <xsd:annotation>
            <xsd:documentation>
              Non-US classification portion marking for foreign government information in a document portion. Use this attribute to record a source country when the intent is to post the document to a shared space with the source identified.
            </xsd:documentation>
          </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute ref="icism:FGIsourceProtected" use="optional">
          <xsd:annotation>
            <xsd:documentation>
              Non-US classification portion marking for foreign government information in a document portion. Use this attribute to record a source country when the intent is to filter out the identity of the source prior to posting the document to a shared space.
            </xsd:documentation>
          </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute ref="icism:releasableTo" use="optional">
          <xsd:annotation>
            <xsd:documentation>
              ISO 3166-1 trigraphic codes of countries to which the associated content can be released. Include "USA" in all instances. Use a space-delimited list with "USA" first, followed by the other trigraph(s) in alphabetical order.
            </xsd:documentation>
          </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute ref="icism:nonICmarkings" use="optional">
          <xsd:annotation>
            <xsd:documentation>
              Authorized non-IC portion marking abbreviation(s) from the CAPCO Register. Either (a) a single non-IC abbreviated marking or (b) a space-delimited list of abbreviations in the order shown in the CAPCO Register.
            </xsd:documentation>
          </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute ref="icism:classifiedBy" use="optional">
          <xsd:annotation>
            <xsd:documentation>
              Use as specified by E.O. 12958.
            </xsd:documentation>
          </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute ref="icism:classificationReason" use="optional">
          <xsd:annotation>
            <xsd:documentation>
              A text string containing one or more paragraph numbers, 1.4(a) through 1.4(h), taken from E.O. 12958, as amended. Enter the paragraph references as they should appear in a classification/declassification block.
            </xsd:documentation>
          </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute ref="icism:derivedFrom" use="optional">
          <xsd:annotation>
            <xsd:documentation>
              A text string containing (a) the title and date of a specific source document, or (b) the title and date of an organization classification guide, or (c) the literal string "Multiple Sources".
            </xsd:documentation>
          </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute ref="icism:declassDate" use="optional">
          <xsd:annotation>
            <xsd:documentation>
              A specific date, in the format YYYY-MM-DD, at which the applicable information is automatically declassified.
            </xsd:documentation>
          </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute ref="icism:declassEvent" use="optional">
          <xsd:annotation>
            <xsd:documentation>
              A textual description of an event that triggers declassification.
            </xsd:documentation>
          </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute ref="icism:declassException" use="optional">
          <xsd:annotation>
            <xsd:documentation>
              One or more of the exceptions to 25-year declassification: specify "25X1-human", "25X1", "25X2", ..., "25X9". If more than one exception applies, use a space-delimited list. If "25X1-human" applies, it should be first in a list.
            </xsd:documentation>
          </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute ref="icism:typeOfExemptedSource" use="optional">
          <xsd:annotation>
            <xsd:documentation>
              One or more tokens indicating that a source that is exempted from automatic declassification applies. Specify "OADR", "X1", "X2", ..., "X8". If more than one applies, use a space-delimited list.
            </xsd:documentation>
          </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute ref="icism:dateOfExemptedSource" use="optional">
          <xsd:annotation>
            <xsd:documentation>
              A specific date, in the format YYYY-MM-DD. Used in conjunction with attribute "typeOfExemptedSource." If there are multiple exempted sources, specify the date of the exempted source that has the most recent date.
            </xsd:documentation>
          </xsd:annotation>
        </xsd:attribute>
        <xsd:attribute ref="icism:declassManualReview" use="optional">
          <xsd:annotation>
            <xsd:documentation>
              A true/false indication that manual review is required for declassification. Use this attribute to force the appearance of "//MR" in the header and footer marking titles. Use this attribute ONLY when it is necessary to override the business logic applied to classification and control markings in the document to determine whether manual review is required.
            </xsd:documentation>
          </xsd:annotation>
        </xsd:attribute>
      </xsd:extension>
    </xsd:complexContent>
  </xsd:complexType>

  <xsd:element name="ICISMMetadata" type="icismmd:ICISMMetadataType"/>

</xsd:schema>
