<?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 Schema - Form 5713 Schedule A</Description>
			<TaxYear>2015</TaxYear>
			<MaturityLevel>Final Release</MaturityLevel>
			<ReleaseDate>September 8, 2015</ReleaseDate>
		</xsd:documentation>
	</xsd:annotation>

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


	<!-- ======================================================================= -->
	<!-- ======================  IRS Form 5713 Schedule A ====================== -->
	<!-- ======================================================================= -->


	<xsd:element name="IRS5713ScheduleA">
		<xsd:annotation>
			<xsd:documentation>IRS Form 5713 Schedule A</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:complexContent>
				<xsd:extension base="IRS5713ScheduleAType">
					<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="IRS5713ScheduleA">
						<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="IRS5713ScheduleAType">
		<xsd:annotation>
			<xsd:documentation>Content model for Form 5713 Schedule A</xsd:documentation>
		</xsd:annotation>

		<xsd:sequence>

			<!-- Choice between Business Name or Name -->
			<xsd:choice minOccurs="0">

				<!-- Business Name -->
				<xsd:element name="BusinessName" type="BusinessNameType">
					<xsd:annotation>
						<xsd:documentation>
							<Description>Name of business</Description>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>

				<!-- Name -->
				<xsd:element name="NameLine1Txt" type="NameLine1Type">
					<xsd:annotation>
						<xsd:documentation>
							<Description>Name</Description>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>

			</xsd:choice>

			<!-- Choice between EIN, SSN or Missing EIN Reason -->
			<xsd:choice minOccurs="0">

				<!-- EIN -->
				<xsd:element name="EIN" type="EINType" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Description>EIN</Description>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>

				<!-- SSN -->
				<xsd:element name="SSN" type="SSNType" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Description>SSN</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:enumeration value="FOREIGNUS"/>
						</xsd:restriction>
					</xsd:simpleType>
				</xsd:element>

			</xsd:choice>

			<!-- Name of Country Being Boycotted -->
			<xsd:choice>

				<!-- Boycotting Israel -->
				<xsd:element name="IsraelBoycottedInd" type="CheckboxType" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Description>Boycotting Israel</Description>
						</xsd:documentation>
					</xsd:annotation>
				</xsd:element>

				<!-- Boycotting Other -->
				<xsd:element name="OtherInd" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation>
							<Description>Boycotting Other</Description>
						</xsd:documentation>
					</xsd:annotation>
					<xsd:complexType>
						<xsd:simpleContent>
							<xsd:extension base="CheckboxType">
								<xsd:attribute name="countryCd" type="CountryType">
									<xsd:annotation>
										<xsd:documentation>
											<Description>Name of Other Country</Description>
										</xsd:documentation>
									</xsd:annotation>
								</xsd:attribute>
							</xsd:extension>
						</xsd:simpleContent>
					</xsd:complexType>
				</xsd:element>

			</xsd:choice>

			<!-- Boycott Information for Each Country -->
			<xsd:element name="BoycottInfoForEachCountry" type="BoycottInfoForEachCountryType" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Boycott information for each country.</Description>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Total - Boycott Purchases -->
			<xsd:element name="TotalBoycottPurchasesAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Total - Boycott Purchases</Description>
						<LineNumber>Schedule A Column 2</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Total - Boycott Sales -->
			<xsd:element name="TotalBoycottSalesAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Total - Boycott Sales</Description>
						<LineNumber>Schedule A Column 3</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Total - Boycott Payroll -->
			<xsd:element name="TotalBoycottPayrollAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Total - Boycott Payroll</Description>
						<LineNumber>Schedule A Column 4</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Numerator of Boycott Factor -->
			<xsd:element name="NumeratorBoycottFactorAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Numerator of Boycott Factor (add totals of columns (2), (3), and (4))</Description>
						<LineNumber>Schedule A Line 1</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Total Purchases From Countries Other than United States -->
			<xsd:element name="TotalPurchasesOtherThanUSAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Total purchases from countries other than United States</Description>
						<LineNumber>Schedule A Line 2a</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Total Sales to or From Countries Other than United States -->
			<xsd:element name="TotalSalesOtherThanUSAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Total sales to or from countries other than United States</Description>
						<LineNumber>Schedule A Line 2b</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Total Payroll Paid or Accrued for Services Performed in Countries Other than United States -->
			<xsd:element name="TotalPayrollPaidOtherThanUSAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Total payroll paid or accrued for services performed in countries other than United States</Description>
						<LineNumber>Schedule A Line 2c</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Total of Lines 2a, b, and c -->
			<xsd:element name="TotalDenominatorBoycottFctrAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Total of lines 2a, b, and c</Description>
						<LineNumber>Schedule A Line 2d</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- International Boycott Factor -->
			<xsd:element name="InternationalBoycottFactorRt" type="RatioType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>International boycott factor (divide line 1 by line 2d).</Description>
						<LineNumber>Schedule A Line 3</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

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


	<!-- Type for Repeating Table Rows in Boycott Info For Each Country -->
	<xsd:complexType name="BoycottInfoForEachCountryType">

		<xsd:sequence>

			<!-- Name of Country -->
			<xsd:element name="CountryCd" type="CountryType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Name of Country</Description>
						<LineNumber>Schedule A Column 1</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Boycott Purchases -->
			<xsd:element name="BoycottPurchasesAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Purchases attributable to boycotting operations</Description>
						<LineNumber>Schedule A Column 2</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Boycott Sales -->
			<xsd:element name="BoycottSalesAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Sales attributable to boycotting operations</Description>
						<LineNumber>Schedule A Column 3</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

			<!-- Boycott Payroll -->
			<xsd:element name="BoycottPayrollAmt" type="USAmountType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>
						<Description>Payroll attributable to boycotting operations</Description>
						<LineNumber>Schedule A Column 4</LineNumber>
					</xsd:documentation>
				</xsd:annotation>
			</xsd:element>

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

</xsd:schema>
