<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="http://www.irs.gov/efile" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 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 - Foreign Source Qualify Dividends Capital Gains Loss</Description>
			<TaxYear>2018</TaxYear>
			<MaturityLevel>Final Release</MaturityLevel>
			<ReleaseDate>October 17, 2018</ReleaseDate>
		</xsd:documentation>
	</xsd:annotation>

	<xsd:include schemaLocation="../../../Common/efileTypes.xsd"/>


	<!-- ================================================================================= -->
	<!-- ============== Foreign Source Qualify Dividends Capital Gains Loss ============== -->
	<!-- ================================================================================= -->


	<xsd:element name="ForeignSrceQlfyDivsCapGains">
		<xsd:annotation>
			<xsd:documentation>Foreign Source Qualify Dividends Capital Gains Loss</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="ForeignSrceQlfyDivsCapGainsType">
					<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="FrgnSourceQlfyDivCapGainsLoss">
						<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="ForeignSrceQlfyDivsCapGainsType">
		<xsd:annotation>
			<xsd:documentation>Content model for Foreign Source Qualify Dividends Capital Gains Loss</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>

			<!-- Passive Foreign Source Qualified Dividends -->
			<xsd:element name="PassiveFrgnSourceQlfyDivGrp" type="ForeignSourceIncomeExplnType" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Passive foreign source qualified dividends</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Passive Foreign Source Capital Gains (Losses) -->
			<xsd:element name="PassiveFrgnSourceCGLsGrp" type="ForeignSourceIncomeExplnType" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Passive foreign source capital gains (losses)</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- General Foreign Source Qualified Dividends -->
			<xsd:element name="GeneralFrgnSourceQlfyDivGrp" type="ForeignSourceIncomeExplnType" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						<Description>General foreign source qualified dividends</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- General Foreign Source Capital Gains (Losses) -->
			<xsd:element name="GeneralFrgnSourceCGLsGrp" type="ForeignSourceIncomeExplnType" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						<Description>General foreign source capital gains (losses)</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Section 901(j) Foreign Source Qualified Dividends -->
			<xsd:element name="Sect901jFrgnSourceQlfyDivGrp" type="ForeignSourceIncomeExplnType" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Section 901(j) foreign source qualified dividends</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Section 901(j) Foreign Source Capital Gains (Losses) -->
			<xsd:element name="Sect901jFrgnSourceCGLsGrp" type="ForeignSourceIncomeExplnType" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Section 901(j) foreign source capital gains (losses)</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Treaty Re-Sourced Foreign Source Qualified Dividends -->
			<xsd:element name="TreatyFrgnSourceQlfyDivGrp" type="ForeignSourceIncomeExplnType" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Treaty re-sourced foreign source qualified dividends</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Treaty Re-Sourced Foreign Source Capital Gains (Losses) -->
			<xsd:element name="TreatyFrgnSourceCGLsGrp" type="ForeignSourceIncomeExplnType" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Treaty re-sourced foreign source capital gains (losses)</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Lump Sum Distribution Special Averaging Treatment Foreign Source Qualified Dividends -->
			<xsd:element name="LumpSumFrgnSourceQlfyDivGrp" type="ForeignSourceIncomeExplnType" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Lump sum distribution special averaging treatment foreign source qualified dividends</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Lump Sum Distribution Special Averaging Treatment Foreign Source Capital Gains (Losses) -->
			<xsd:element name="LumpSumFrgnSourceCGLsGrp" type="ForeignSourceIncomeExplnType" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Lump sum distribution special averaging treatment foreign source capital gains (losses)</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

		</xsd:sequence>
	</xsd:complexType>
	
	<!-- ============ Type of Repeating Group of Foreign Source Income Explanation ==============-->
	
	<xsd:complexType name="ForeignSourceIncomeExplnType">
		<xsd:sequence>
		
			<!-- Explanation of Foreign Source Income -->
			<xsd:element name="ShortExplanationTxt" type="ShortExplanationType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Explanation of foreign source income</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<!-- Foreign Source Income Amount -->
			<xsd:element name="ForeignSourceIncomeAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Foreign source income amount</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

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