<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > 
<xsl:key name="id" match="results/details/detail" use="ACDealerID"/>

<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
	<body class="body">
		<table>
			<xsl:for-each select="results/details">
				<tr>
					<td>
						<table width="100%" cellspacing="1" cellpadding="5" border="0" bgcolor="#2C5376">
							<tr>
								<td class="charthead" bgcolor="#2C5376">
									<font color="white">
										<b>AC Dealer ID</b>
									</font>
								</td>
								<td class="charthead" bgcolor="#2C5376">
									<font color="white">
										<b>Dealership Name</b>
									</font>
								</td>
								<td class="charthead" bgcolor="#2C5376">
									<font color="white">
										<b>Status</b>
									</font>
								</td>
								<td class="charthead" bgcolor="#2C5376">
									<font color="white">
										<b>Comments</b>
									</font>
								</td>
							</tr>
							<xsl:for-each select="detail[ generate-id(.) = generate-id(key('id', ACDealerID)[1]) ]">
								<tr>
									<td class="chart" bgcolor="#f0f0f0">
										<xsl:value-of select="ACDealerID"/>
									</td>
									<td class="chart" bgcolor="#f0f0f0">
										<xsl:value-of select="DealershipName"/>
									</td>
									<td class="chart" bgcolor="#f0f0f0">
										<xsl:value-of select="Status"/>
									</td>
									<td class="chart" bgcolor="#f0f0f0">
										<xsl:value-of select="Comments"/>
									</td>
								</tr>
							</xsl:for-each>
						</table>
					</td>
				</tr>
			</xsl:for-each>
		</table>
	</body>
</html>
</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2006. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="acdealer.xml" userelativepaths="yes" externalpreview="no" url="acdealer.xml" htmlbaseurl="" outputurl="" processortype="msxml4" useresolver="no" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->