<xsl:stylesheet
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	version="1.0" >
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
	
	<xsl:template name="dvt_1.body">
		<div class="srch-results" style="width: 600px; height: 350px; overflow: scroll;">
			<style type="text/css">
			#showResultTable
			{
				border: solid 1px silver;
				font-family: arial; 
				font-size: 9pt;
				padding: 2px;
			}
			
			#showResultTable th
			{
				background-color: steelblue;
				color: white;
				padding: 2px;
			}
			
			#showResultTable tr
			{
				border-bottom: solid 1px silver;
			}
			</style>
		
			<table id="showResultTable">

			<xsl:call-template name="DisplayColumnHeaders" />
			<xsl:apply-templates />
			
			</table>
		</div>
	</xsl:template>
	
	<xsl:template match="Result">
		<tr>
			<xsl:for-each select="*">
			<td><xsl:value-of select="."/> </td>
			</xsl:for-each>
		</tr>
	</xsl:template>

	<!-- display column headers for the results -->
	<xsl:template name="DisplayColumnHeaders">
		<tr>
			<xsl:for-each select="//Result[last()]/*">
			<th><xsl:value-of select="name()"/> </th>
			</xsl:for-each>
		</tr>
	</xsl:template>

	<!-- XSL transformation starts here -->
	<xsl:template match="/">
		<xsl:call-template name="dvt_1.body" />
	</xsl:template>

	<!-- End of Stylesheet -->
</xsl:stylesheet>