<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="UTF-8"/>

<xsl:template match="/">
	<html><head>
	    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	    <title>Untitled Document</title>
	    <style type="text/css">
				&lt;!--
				.header {
				        font-family: Arial, Helvetica, sans-serif;
				        font-size: 10pt;
				        font-weight: bold;
				        background-color: #006699;
				        text-align: center;
				        vertical-align: middle;
				        color: #FFFFFF;
				        width: 100%;
								border-color: #006699;
				}
				.event_name {
				        font-family: Arial, Helvetica, sans-serif;
				        font-size: 10pt;
				        font-weight: bold;
				        color: #317AA6;
				        text-align: left;
				        vertical-align: middle;
				}
				.event_property {
				        font-family: Arial, Helvetica, sans-serif;
				        font-size: 10pt;
				        font-weight: bold;
				        color: #000000;
				        text-align: left;
				        vertical-align: middle;
								width: 15%;
				}
				.event_prop_data {
				        font-family: Arial, Helvetica, sans-serif;
				        font-size: 10pt;
				        font-weight: normal;
				        text-align: left;
				        vertical-align: middle;
				}
				.r0 {
				        background-color: #A8C6E3;
				}
				.r1 {
				        background-color: #E7EFF1;
				}
				--&gt;
			</style>
	  </head>
		<body>
			<xsl:apply-templates select="EventList"/>
		</body>
	</html>
</xsl:template>


<xsl:template match="EventList">
	<table cellPadding="3" width="100%" style="border-color: #006699; border-width: 1px;">
		<tbody>
			<tr>
				<td class="header">After Action Report for Inject 
					<xsl:value-of select="name"/>
				</td>
			</tr>
			<tr>
				<td width="100%" style="border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid">
					<xsl:apply-templates select="ListEvents"/>
				</td>
			</tr>
		</tbody>
	</table>
</xsl:template>


<xsl:template match="ListEvents">
	<table cellPadding="3" width="100%" border="1" style="border-color:#FFFFFF; border-width: 1px;">
		<tbody>
			<xsl:for-each select="anyType">
				<xsl:apply-templates select="."/>
			</xsl:for-each>
		</tbody>
	</table>
</xsl:template>


<xsl:template match="anyType">
	<tr>
		<td class="event_name" colSpan="2">
			<a name="{OwnedEAR/EventWWID/wwid}">
				<img height="19" width="19"/> Event: 
			</a>
			<xsl:value-of select="name"/>
		</td>
	</tr>
	<tr class="r1">
		<td class="event_property">Type of Event: 
		</td>
		<td class="event_prop_data">
			<xsl:value-of select="TypeOfEvent"/>
		</td>
	</tr>
	<tr class="r1">
		<td class="event_property">Entered DTTM: 
		</td>
		<td class="event_prop_data">
			<xsl:value-of select="EntryDTTM"/>
		</td>
	</tr>
	<tr class="r1">
		<td class="event_property">Event Occurrred On: 
		</td>
		<td class="event_prop_data">
			<xsl:value-of select="HappenedDTTM"/>
		</td>
	</tr>
	<tr class="r1">
		<td class="event_property">Classification:</td>
		<td class="event_prop_data">
			<xsl:value-of select="Classification"/>
		</td>
	</tr>
	<xsl:apply-templates select="OwnedEAR"/>
	<tr class="r1">
		<td class="event_property">Event Location:"</td>
		<td class="event_prop_data">
			<xsl:value-of select="EventLocation/Lon"/>°, 
			<xsl:value-of select="EventLocation/Lat"/>°, 
			<xsl:value-of select="EventLocation/Alt"/>
		</td>
	</tr>
	<tr class="r1">
		<td class="event_property">Location Name:"</td>
		<td class="event_prop_data">
			<xsl:value-of select="LocationName"/>
		</td>
	</tr>
	<xsl:apply-templates select="ChildEvents"/>
</xsl:template>


<xsl:template match="EnteredBy">
	
</xsl:template>


<xsl:template match="OwnedEAR">
	<tr class="r1">
		<td class="event_property">Event WWID:</td>
		<td class="event_prop_data">
			<xsl:value-of select="EventWWID/wwid"/>
		</td>
	</tr>
	<tr class="r1">
		<td class="event_property">EAR Name:</td>
		<td class="event_prop_data">
			<xsl:value-of select="EarNm"/>
		</td>
	</tr>
	<tr class="r1">
		<td class="event_property">Sweep ID:</td>
		<td class="event_prop_data">
			<xsl:value-of select="SweepID/SweepWWID"/>
		</td>
	</tr>
	<tr class="r1">
		<td class="event_property">Unit ID:</td>
		<td class="event_prop_data">
			<xsl:value-of select="UnitID"/>
		</td>
	</tr>
	<tr class="r1">
		<td class="event_property">Site Type ID:</td>
		<td class="event_prop_data">
			<xsl:value-of select="SiteTypeId"/>
		</td>
	</tr>
	<tr class="r1">
		<td class="event_property">Crash Grid Location:</td>
		<td class="event_prop_data">
			<xsl:value-of select="GridX"/>, 
			<xsl:value-of select="GridY"/>
		</td>
	</tr>
	<tr class="r1">
		<td class="event_property">Reported:</td>
		<td class="event_prop_data">
			<xsl:value-of select="Reported"/>
		</td>
	</tr>
	<tr class="r1">
		<td class="event_property">Is Real:</td>
		<td class="event_prop_data">
			<xsl:value-of select="IsReal"/>
		</td>
	</tr>
	<tr class="r1">
		<td class="event_property">Reporting Organization:</td>
		<td class="event_prop_data">
			<xsl:value-of select="ReportingOrg/Name"/>
		</td>
	</tr>
	<tr class="r1">
		<td class="event_property">Reporting Location:</td>
		<td class="event_prop_data">
			<xsl:value-of select="ReportingLoc"/>
		</td>
	</tr>
	<tr class="r1">
		<td class="event_property">Reporter's Phone Number:</td>
		<td class="event_prop_data">
			<xsl:value-of select="ReportingPhone/Number"/>
		</td>
	</tr>
	<tr class="r1">
		<td class="event_property">Reported By:</td>
		<td class="event_prop_data">
			<xsl:value-of select="ReportedBy"/>
		</td>
	</tr>
</xsl:template>


<xsl:template match="ChildEvents">
	<tr class="r0">
		<td class="event_property" colSpan="2">Child Events for 
			<xsl:value-of select="../name"/>: 
		</td>
	</tr>
	<tr>
		<td colSpan="2">
			<xsl:apply-templates select="ListEvents"/>
		</td>
	</tr>
</xsl:template>



<xsl:template match="Body">
	<xsl:param name="evtType"/>

</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2005. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="Scenario1" userelativepaths="yes" externalpreview="no" url="attack2.xml" htmlbaseurl="" outputurl="" processortype="internal" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition></MapperBlockPosition></MapperMetaTag>
</metaInformation>
-->