<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.irs.gov/efile" targetNamespace="http://www.irs.gov/efile" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
  <xsd:annotation>
    <xsd:documentation>
      <Description>IRS e-file Corporate Income Tax Schema - Tonnage Tax Regime Election</Description>
      <TaxYear>2012</TaxYear>
      <MaturityLevel>Draft Release</MaturityLevel>
      <ReleaseDate>September 5, 2012</ReleaseDate>
    </xsd:documentation>
  </xsd:annotation>
  <xsd:include schemaLocation="../../../Common/efileTypes.xsd"/>
  <!-- ============================================================== -->
  <!-- ============= Tonnage Tax Regime Election ================ -->
  <!-- ============================================================== -->
  <xsd:element name="TonnageTaxRegimeElection">
    <xsd:annotation>
      <xsd:documentation>Tonnage tax regime election</xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:complexContent>
        <xsd:extension base="TonnageTaxRegimeElectionType">
          <xsd:attributeGroup ref="DocumentAttributes">
            <xsd:annotation>
              <xsd:documentation>Common return document attributes</xsd:documentation>
            </xsd:annotation>
          </xsd:attributeGroup>
          <xsd:attribute name="documentName" type="xsd:string" fixed="TonnageTaxRegimeElection">
            <xsd:annotation>
              <xsd:documentation>IRS internal use only. To avoid error in the return, do not include the attribute name or value.</xsd:documentation>
            </xsd:annotation>
          </xsd:attribute>
        </xsd:extension>
      </xsd:complexContent>
    </xsd:complexType>
  </xsd:element>
  <!-- Type for Tonnage Tax Regime -->
  <xsd:complexType name="TonnageTaxRegimeElectionType">
    <xsd:annotation>
      <xsd:documentation>Content model for Tonnage Tax Regime Election</xsd:documentation>
    </xsd:annotation>
    <xsd:sequence>

      <!-- Corporation Name -->
      <xsd:element name="CorporationName" type="BusinessNameType" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>
            <Description>Corporation Name</Description>
          </xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      <xsd:choice minOccurs="0">

        <!-- Electing Corporation U.S. Address -->
        <xsd:element name="CorporationUSAddress" type="USAddressType">
          <xsd:annotation>
            <xsd:documentation>
              <Description>Electing Corporation U.S. address</Description>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>

        <!-- Electing Corporation Foreign Address -->
        <xsd:element name="CorporationForeignAddress" type="ForeignAddressType">
          <xsd:annotation>
            <xsd:documentation>
              <Description>Electing Corporation foreign address</Description>
            </xsd:documentation>
          </xsd:annotation>
        </xsd:element>
      </xsd:choice>

      <!-- Choice between Corporation EIN, or Missing EIN Reason -->
      <xsd:choice minOccurs="0">
      
	      <!-- Corporation EIN -->
	      <xsd:element name="CorporationEIN" type="EINType">
		<xsd:annotation>
		  <xsd:documentation>
		    <Description>Electing Corporation EIN</Description>
		  </xsd:documentation>
		</xsd:annotation>
	      </xsd:element>
	      
	      <!-- Missing EIN Reason -->
              <xsd:element name="MissingEINReason">
		<xsd:annotation>
  		  <xsd:documentation>
		    <Description>Missing EIN reason</Description>
		  </xsd:documentation>
		</xsd:annotation>
		<xsd:simpleType>
		    <xsd:restriction base="StringType">
			<xsd:enumeration value="APPLD FOR"/>
			<xsd:enumeration value="FOREIGNUS"/>						
		    </xsd:restriction>
		</xsd:simpleType>
	      </xsd:element>
				
      </xsd:choice>		      

      <!-- Taxable Year -->
      <xsd:element name="TaxableYear" type="YearType" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>
            <Description>Taxable Year Which Election is Being Made</Description>
          </xsd:documentation>
        </xsd:annotation>
      </xsd:element>

    </xsd:sequence>
  </xsd:complexType>
</xsd:schema>
