<?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 - Itemized Net Operating Loss Deductions Schedule</Description>
			<TaxYear>2018</TaxYear>
			<MaturityLevel>Final Release</MaturityLevel>
			<ReleaseDate>October 15, 2019</ReleaseDate>
		</xsd:documentation>
	</xsd:annotation>

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


	<!-- ============================================================== -->
	<!-- ======  Itemized Net Operating Loss Deductions Schedule ====== -->
	<!-- ============================================================== -->


	<xsd:element name="ItemizedNOLDeductionsSchedule">
		<xsd:annotation>
			<xsd:documentation>Net Operating Loss deductions schedule</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="ItemizedNOLDeductionsType">
					<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="ItemizedNetOperatingLossDeductionsSchedule">
						<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="ItemizedNOLDeductionsType">
		<xsd:annotation>
			<xsd:documentation>Content model for NOL deductions schedule</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="ItemizedNOLDeduction" type="ItemizedNOLDeductionType" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:complexType name="ItemizedNOLDeductionType">
		<xsd:annotation>
			<xsd:documentation>Content model for NOL deduction</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>			

			<!-- Choice between Corporation EIN, or Missing EIN Reason -->
			<xsd:choice minOccurs="0">
			
				<!-- Corporation EIN -->
				<xsd:element name="CorporationEIN" type="EINType" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Description>Corporation EIN</Description>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				
				<!-- Missing EIN Reason -->
				<xsd:element name="MissingEINReasonCd">
					<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:restriction>
					</xsd:simpleType>
				</xsd:element>
			</xsd:choice>	

			<!-- Sum of all Loss Years Amounts -->
			<xsd:element name="TotalNOLDeductionAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Sum of all Loss years amounts</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<!-- Net Operating Loss Year Detail -->
			<xsd:element name="NetOperatingLossYearDetail" type="NetOperatingLossYearDetailType" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Net operating loss year detail</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

		</xsd:sequence>

	</xsd:complexType>

	<xsd:complexType name="NetOperatingLossYearDetailType">
		<xsd:annotation>
			<xsd:documentation>Content model for Net operating loss year detail</xsd:documentation>
		</xsd:annotation>

		<xsd:sequence>
		
			<!-- Original NOL Year -->
			<xsd:element name="OriginalDt" type="YearMonthType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Original NOL Year</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<!-- Original NOL Amount -->
			<xsd:element name="OriginalAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Original NOL Amount</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<!-- Type of Net Operating Loss Being Claimed -->
			<xsd:element name="Desc" type="MediumExplanationType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Type of Net Operating Loss being claimed</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<!-- Remaining NOL Available for the Current Year -->
			<xsd:element name="CYNOLAvailableAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Remaining NOL Available for the current year</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<!-- NOL Carryback Year and Amount Detail -->
			<xsd:element name="NOLCarrybackYrAndAmtDetail" type="CarryOverYearAndAmtType" minOccurs="0" maxOccurs="10">
				<xsd:annotation>
					<xsd:documentation>
						<Description>NOL Carryback year and amount detail</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<!-- NOL Carryforward Year and Amount Detail -->
			<xsd:element name="NOLCarryforwardYrAndAmtDetail" type="CarryOverYearAndAmtType" minOccurs="0" maxOccurs="20">
				<xsd:annotation>
					<xsd:documentation>
						<Description>NOL Carryforward year and amount detail</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

		</xsd:sequence>

	</xsd:complexType>
	
	<xsd:complexType name="CarryOverYearAndAmtType">
		<xsd:annotation>
			<xsd:documentation>Content model for NOL carryback year and amount detail and NOL carryforward year and amount detail</xsd:documentation>
		</xsd:annotation>

		<xsd:sequence>
		
			<!-- Carryover Year -->
			<xsd:element name="CarryoverDt" type="YearMonthType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Carryover Year</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
			<!-- NOL Amount Used -->
			<xsd:element name="CarryoverAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>NOL Amount used</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			
		</xsd:sequence>

	</xsd:complexType>

</xsd:schema>
