<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:as="urn:us:net:exchangenetwork:AirQuality:AirQualityReports:1:0">
	<xsl:output method="html"/>
	<xsl:template match="/">
		<html>
			<head>
				<title>Annual Summary Report</title>

<!-- #EndEditable -->

<STYLE TYPE="text/css">
     P.breakhere {page-break-before: always}
</STYLE>
			</head>
			<center>
				<hr/>
				<h2>Annual Summary Report</h2>
				<hr/>
			</center>
			<body>
				<xsl:apply-templates/>
			</body>
		</html>
	</xsl:template>
	<xsl:template match="as:AirQualitySummaryReport" name="tempAnnualSummary">
		<table width="100%">
			<tr>
				<td>
					<b>
						<font size="1">Tribe Code</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">State Code</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">County Code</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Site</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Region</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Area Name</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">County</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">City</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Address</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Latitude</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Longitude</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">UTM Zone</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">UTM Easting</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">UTM Northing</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">AQCR</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">UAR Name</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">MSA Name</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Land Use</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Location</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Vertical Measure</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Parameter Code</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Parameter Description</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Unit Code</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Unit Description</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">POC</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Year</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Report Org</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Duration Code</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Duration Desc</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Primary Standard</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Secondary Standard</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Exceptional Data Type</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Excluded Observation Count</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Observation Percent</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Observation Count</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Primary Violation Count</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Secondary Violation Count</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Min Observation Value</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Arithmetic Mean</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Arithmetic Standard Dev</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Geometric Mean</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Geometric Standard Dev</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Weighted Arithmetic Mean</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Valid Day Count</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Required Day Count</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Est Days Above Std Count</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Missing Days Below Std Count</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Certification Ind</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Hourly Observation</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Collection Frequency Code</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Direct Entry Indication</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Exceptional Data Count</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Null Data Count</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Below MDL count</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Values Above Alert Level Count</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">NonOverlapping Violation Count</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Method Count</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">First Maximum Value</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">First Maximum DateTime</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Second Maximum Value</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Second Maximum DateTime</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Third Maximum Value</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Third Maximum DateTime</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Fourth Maximum Value</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">Fourth Maximum DateTime</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">50 %</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">75%</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">90 %</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">95 %</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">98 %</font>
					</b>
				</td>
				<td>
					<b>
						<font size="1">99 %</font>
					</b>
				</td>
			</tr>
			<xsl:for-each select="as:SummarySiteDetails">
				<xsl:variable name="varTribal" select="as:SiteIdentifierOptionalDetails/as:TribalCode"/>
				<xsl:variable name="varState" select="as:SiteIdentifierOptionalDetails/as:StateCode"/>
				<xsl:variable name="varCounty" select="as:SiteIdentifierOptionalDetails/as:CountyCode"/>
				<xsl:variable name="varSite" select="as:SiteIdentifierOptionalDetails/as:SiteNumber"/>
				<xsl:variable name="varRegion" select="as:EPARegionNumber"/>
				<xsl:variable name="varAreaName" select="as:AreaNameText"/>
				<xsl:variable name="varCountyName" select="as:CountyNameText"/>
				<xsl:variable name="varCityName" select="as:CityNameText"/>
				<xsl:variable name="varAddress" select="as:StreetAddressText"/>
				<xsl:variable name="varLatitude" select="as:CoordinatesReportDetails/as:LatitudeMeasure"/>
				<xsl:variable name="varLongitude" select="as:CoordinatesReportDetails/as:LongitudeMeasure"/>
				<xsl:variable name="varUTMZone" select="as:CoordinatesReportDetails/as:UTMZoneCode"/>
				<xsl:variable name="varUTMEasting" select="as:CoordinatesReportDetails/as:UTMEastingMeasure"/>
				<xsl:variable name="varUTMNorthing" select="as:CoordinatesReportDetails/as:UTMNorthingMeasure"/>
				<xsl:variable name="varAQCR" select="as:AQCRNameText"/>
				<xsl:variable name="varURAN" select="as:UARNameText"/>
				<xsl:variable name="varMSAN" select="as:MSANameText"/>
				<xsl:variable name="varLand" select="as:LandUseIdentifier"/>
				<xsl:variable name="varLocation" select="as:LocationSettingIdentifier"/>
				<xsl:variable name="varVertical" select="as:VerticalMeasure"/>
				<xsl:for-each select="as:SummaryMonitorDetails">
					<xsl:variable name="varParameter" select="as:ParameterCode"/>
					<xsl:variable name="varParameterDesc" select="as:ParameterDescriptionText"/>
					<xsl:variable name="varUnitCode" select="as:UnitCode"/>
					<xsl:variable name="varUnitDescription" select="as:UnitDescriptionText"/>
					<xsl:variable name="varPOC" select="as:ParameterOccurrenceCode"/>
					<xsl:for-each select="as:SummaryYearDetails">
						<xsl:variable name="varYear" select="as:SummaryYear"/>
						<xsl:variable name="varReportingOrg" select="as:ReportingOrganizationCode"/>
						<xsl:for-each select="as:SummaryDurationDetails">
							<xsl:variable name="varDurationCode" select="as:DurationCode"/>
							<xsl:variable name="varDurationDesc" select="as:DurationDescriptionText"/>
							<xsl:variable name="varStandardValue" select="as:PrimaryStandardValue"/>
							<xsl:variable name="varSecondStandardValue" select="as:SecondaryStandardValue"/>
							<xsl:for-each select="as:SummaryDataDetails">
								<tr>
									<xsl:choose>
										<xsl:when test="$varTribal">
											<td>
												<font size="1">
													<xsl:value-of select="$varTribal"/>
												</font>
											</td>
										</xsl:when>
										<xsl:otherwise>
											<td>
												<font size="1">-</font>
											</td>
										</xsl:otherwise>
									</xsl:choose>
									<xsl:choose>
										<xsl:when test="$varState">
											<td>
												<font size="1">
													<xsl:value-of select="$varState"/>
												</font>
											</td>
										</xsl:when>
										<xsl:otherwise>
											<td>
												<font size="1">-</font>
											</td>
										</xsl:otherwise>
									</xsl:choose>
									<td>
										<font size="1">
											<xsl:value-of select="$varCounty"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varSite"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varRegion"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varAreaName"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varCountyName"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varCityName"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varAddress"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varLatitude"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varLongitude"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varUTMZone"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varUTMEasting"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varUTMNorthing"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varAQCR"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varURAN"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varMSAN"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varLand"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varLocation"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varVertical"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varParameter"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varParameterDesc"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varUnitCode"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varUnitDescription"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varPOC"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varYear"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varReportingOrg"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varDurationCode"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varDurationDesc"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varStandardValue"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="$varSecondStandardValue"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:ExceptionalDataTypeCode"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:ExcludedObservationsCount"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:ObservationPercentValue"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:ObservationCount"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:PrimaryViolationCount"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:SecondaryViolationCount"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:MinimumObservationValue"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:ArithmeticMeanValue"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:ArithmeticStandardDevValue"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:GeometricMeanValue"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:GeometricStandardDevValue"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:WeightedArithmeticMeanValue"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:ValidDayCount"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:RequiredDayCount"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:EstDaysAboveStandardCount"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:MissingDaysBelowStandardCount"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:CertificationIndicator"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:HourlyObservationCount"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:CollectionFrequencyCode"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:DirectEntryIndicator"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:ExceptionalDataCount"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:NullDataCount"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:BelowMDLCount"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:ValuesAboveAlertLevelCount"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:NonOverlappingViolationCount"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:MethodCount"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:FirstMaximumValue"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:FirstMaximumDatetime"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:SecondMaximumValue"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:SecondMaximumDatetime"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:ThirdMaximumValue"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:ThirdMaximumDatetime"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:FourthMaximumValue"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:FourthMaximumDatetime"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:FiftiethPercentileValue"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:SeventyFifthPercentileValue"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:NinetiethPercentileValue"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:NinetyFifthPercentileValue"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:NinetyEighthPercentileValue"/>
										</font>
									</td>
									<td>
										<font size="1">
											<xsl:value-of select="as:NinetyNinthPercentileValue"/>
										</font>
									</td>
								</tr>
							</xsl:for-each>
						</xsl:for-each>
					</xsl:for-each>
				</xsl:for-each>
			</xsl:for-each>
		</table>
		<hr/>
		<P CLASS="breakhere"/>
	</xsl:template>
</xsl:stylesheet>
