<?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">
	<xsd:annotation>
		<xsd:documentation>
			<Description>IRS e-file Schema - Form 8975</Description>
			<TaxYear>2018</TaxYear>
			<MaturityLevel>Final Release</MaturityLevel>
			<ReleaseDate>October 17, 2018</ReleaseDate>
		</xsd:documentation>
	</xsd:annotation>
	<xsd:include schemaLocation="../../../Common/efileTypes.xsd"/>


	<!-- ==================================================================== -->
	<!-- ======================  IRS Form 8975 ============================== -->
	<!-- ==================================================================== -->


	<xsd:element name="IRS8975">
		<xsd:annotation>
			<xsd:documentation>IRS Form 8975</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="IRS8975Type">
					<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="IRS8975">
						<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:attribute name="referenceDocumentId" type="IdListType">
						<xsd:annotation>
							<xsd:documentation>List of document ID's of forms, schedules, supporting info. etc. attached to this form</xsd:documentation>
						</xsd:annotation>
					</xsd:attribute>


				</xsd:extension>
			</xsd:complexContent>
		</xsd:complexType>
	</xsd:element>

	<xsd:complexType name="IRS8975Type">
		<xsd:annotation>
			<xsd:documentation>Content model for Form 8975</xsd:documentation>
		</xsd:annotation>
		
		<xsd:sequence>	
			<!-- If This is an Amended Report, Check Here -->
			<xsd:element name="AmendReportInd" type="CheckboxType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>If this is an amended report, check here</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Enter the Number of Schedules A -->
			<xsd:element name="Form8975ScheduleAAttachCnt" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Enter the number of Schedules A</Description>
					</xsd:documentation>
				</xsd:annotation>
				<xsd:complexType>
					<xsd:simpleContent>
						<xsd:extension base="IntegerNNType">
							<xsd:attribute name="referenceDocumentId" type="IdListType"/>
							<xsd:attribute name="referenceDocumentName" type="StringType" fixed="IRS8975ScheduleA"/>
						</xsd:extension>
					</xsd:simpleContent>
				</xsd:complexType>
			</xsd:element>

			<!-- Reporting Role Code -->
			<xsd:element name="EntityReportingRoleCd">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Reporting role code</Description>
						<LineNumber>Line 1b</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
					<xsd:simpleType>
						<xsd:restriction base="TextType">
							<xsd:enumeration value="ULT"/>
							<xsd:enumeration value="SUR"/>
						</xsd:restriction>
					</xsd:simpleType>
			</xsd:element>
			
			<!-- Additional Information -->
			<xsd:element name="AdditionalInformationTxt" minOccurs="0" maxOccurs="999">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Additional information</Description>
					</xsd:documentation>
				</xsd:annotation>
				<xsd:simpleType>
					<xsd:restriction base="TextType">
						<xsd:maxLength value="4000"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			
		</xsd:sequence>
	</xsd:complexType>
	
</xsd:schema>
