<?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 Partnership Income Return - AMT Adjusted Gain or Loss Statement</Description>
      <TaxYear>2018</TaxYear>
      <MaturityLevel>Final Release</MaturityLevel>
      <ReleaseDate>November 28, 2018</ReleaseDate>
    </xsd:documentation>
  </xsd:annotation>
  
  <xsd:include schemaLocation="../../../Common/efileTypes.xsd"/>
  
  
  <!-- ================================================================ -->
  <!-- ============  AMT Adjusted Gain or Loss Statement  ============= -->
  <!-- ================================================================ -->
  
  
  <xsd:element name="AMTAdjustedGainOrLossStatement">
    <xsd:annotation>
      <xsd:documentation>AMT adjusted gain or loss statement</xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
      <xsd:complexContent>
        <xsd:extension base="AMTAdjustedGainOrLossStmtType">
          <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="AMTAdjustedGainOrLossStatement">
            <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>
  
  <xsd:complexType name="AMTAdjustedGainOrLossStmtType">
    <xsd:annotation>
      <xsd:documentation>Content model for AMT adjusted gain or loss statement</xsd:documentation>
    </xsd:annotation>
    
    <xsd:sequence>
          
      <!-- Net Short Term Capital Gain/Loss -->    
      <xsd:element name="NetSTCapitalGainLossTxt" type="LineExplanationType" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>
            <Description>Net short term capital gain/loss</Description>
          </xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      
      <!-- Net Short Term Capital Gain/Loss Amount -->      
      <xsd:element name="NetSTCapitalGainLossAmt" type="USAmountType" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>
            <Description>Net short term capital gain/loss amount</Description>
          </xsd:documentation>
        </xsd:annotation>
      </xsd:element> 
         
      <!-- Net Long Term Capital Gail/Loss -->    
      <xsd:element name="NetLTCapitalGainLossTxt" type="LineExplanationType" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>
            <Description>Net long term capital gain/loss</Description>
          </xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      
      <!-- Net Long Term Capital Gail/Loss Amount -->    
      <xsd:element name="NetLTCapitalGainLossAmt" type="USAmountType" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>
            <Description>Net long term capital gain/loss amount</Description>
          </xsd:documentation>
        </xsd:annotation>
      </xsd:element>      
      
      <!-- Collectables 28% Gain/Loss -->      
      <xsd:element name="CollectiblesGainLossTxt" type="LineExplanationType" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>
            <Description>Collectables 28% gain/loss</Description>
          </xsd:documentation>
        </xsd:annotation>
      </xsd:element>
    
      <!-- Collectables 28% Gain/Loss Amount -->    
      <xsd:element name="Collectibles28PctGainLossAmt" type="USAmountType" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>
            <Description>Collectables 28% gain/loss amount</Description>
          </xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      
      <!-- Net Section 1231 Gain/Loss -->      
      <xsd:element name="NetGainLossTxt" type="LineExplanationType" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>
            <Description>Net section 1231 gain/loss</Description>
          </xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      
      <!-- Net Section 1231 Gain/Loss Amount -->      
      <xsd:element name="NetSection1231GainLossAmt" type="USAmountType" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>
            <Description>Net section 1231 gain/loss amount</Description>
          </xsd:documentation>
        </xsd:annotation>
      </xsd:element>      
    
      <!-- Unrecaptured Section 1250 Gain -->    
      <xsd:element name="UnrecapturedSectionGainTxt" type="LineExplanationType" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>
            <Description>Unrecaptured section 1250 gain</Description>
          </xsd:documentation>
        </xsd:annotation>
      </xsd:element>
      
      <!-- Unrecaptured Section 1250 Gain Amount -->      
      <xsd:element name="UnrecapturedSection1250GainAmt" type="USAmountType" minOccurs="0">
        <xsd:annotation>
          <xsd:documentation>
            <Description>Unrecaptured section 1250 gain amount</Description>
          </xsd:documentation>
        </xsd:annotation>
      </xsd:element> 

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