<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<!-- Created: December 2012 -->
	<!-- Version: 9.0 -->
	<xsl:include href="pbdmi-common-9.xsl"/>
	<xsl:output indent="yes" method="xml"/>
	<xsl:template match="*">
		<!-- HEADER -->
		<xsl:element name="FILETRANSMISSION">
			<xsl:attribute name="FILELAYOUTTYPE"><xsl:value-of select="FileLayoutType"/></xsl:attribute>
			<xsl:attribute name="FILEID"><xsl:value-of select="FileId"/></xsl:attribute>
			<xsl:attribute name="SCHOOLYEAR"><xsl:value-of select="SchoolYear"/></xsl:attribute>
			<xsl:variable name="fips" select="FipsStateCode"/>
			<!--loop through agency elements-->
			<xsl:for-each select="Agency">
				<!--<AGENCY FIPSSTATECODE="01" STATEAGENCYIDNUMBER="01" STATELEAIDNUMBER="001000-0000001" STATESCHOOLIDNUMBER="001000-001">-->
				<xsl:for-each select="NorDProgramOutcomes1">
					<!--<TABLETYPE TYPEABBRV="SEANDINPROG" TOTALINDICATOR="N">-->
					<xsl:element name="TABLETYPE">
						<xsl:attribute name="TYPEABBRV">SEANDINPROG</xsl:attribute>
						<xsl:attribute name="TOTALINDICATOR"><xsl:value-of select="TotalIndicator"/></xsl:attribute>
						<!--<CATEGORY TYPE="NEGDELPROGTYPE" VALUE="JUVDET"/>-->
						<xsl:apply-templates select="NorDProgramSubpart1">
							<xsl:with-param name="value">
								<xsl:value-of select="NorDProgramSubpart1"/>
							</xsl:with-param>
						</xsl:apply-templates>
						<!--<CATEGORY TYPE="ACADVOCOUTCOME" VALUE="EARNDIPL"/>-->
						<xsl:apply-templates select="AcademicVocationalOutcome">
							<xsl:with-param name="value">
								<xsl:value-of select="AcademicVocationalOutcome"/>
							</xsl:with-param>
						</xsl:apply-templates>
						<!--<AMOUNT>500</AMOUNT>-->
						<xsl:apply-templates select="Amount">
							<xsl:with-param name="value">
								<xsl:value-of select="Amount"/>
							</xsl:with-param>
						</xsl:apply-templates>
						<!--<EXPLANATION></EXPLANATION>-->
						<xsl:apply-templates select="Explanation">
							<xsl:with-param name="value">
								<xsl:value-of select="Explanation"/>
							</xsl:with-param>
						</xsl:apply-templates>
					</xsl:element>
				</xsl:for-each>
				<xsl:for-each select="NorDProgramOutcomes2">
					<!--<TABLETYPE TYPEABBRV="LEANDINPROG" TOTALINDICATOR="N">-->
					<xsl:element name="TABLETYPE">
						<xsl:attribute name="TYPEABBRV">LEANDINPROG</xsl:attribute>
						<xsl:attribute name="TOTALINDICATOR"><xsl:value-of select="TotalIndicator"/></xsl:attribute>
						<!--<CATEGORY TYPE="NEGDELPROGTYPE2" VALUE="JUVDET"/>-->
						<xsl:apply-templates select="NorDProgramSubpart2">
							<xsl:with-param name="value">
								<xsl:value-of select="NorDProgramSubpart2"/>
							</xsl:with-param>
						</xsl:apply-templates>
						<!--<CATEGORY TYPE="ACADVOCOUTCOME" VALUE="EARNDIPL"/>-->
						<xsl:apply-templates select="AcademicVocationalOutcome">
							<xsl:with-param name="value">
								<xsl:value-of select="AcademicVocationalOutcome"/>
							</xsl:with-param>
						</xsl:apply-templates>
						<!--<AMOUNT>500</AMOUNT>-->
						<xsl:apply-templates select="Amount">
							<xsl:with-param name="value">
								<xsl:value-of select="Amount"/>
							</xsl:with-param>
						</xsl:apply-templates>
						<!--<EXPLANATION></EXPLANATION>-->
						<xsl:apply-templates select="Explanation">
							<xsl:with-param name="value">
								<xsl:value-of select="Explanation"/>
							</xsl:with-param>
						</xsl:apply-templates>
					</xsl:element>
				</xsl:for-each>
			</xsl:for-each>
		</xsl:element>
	</xsl:template>
</xsl:stylesheet>
