<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xml:space="preserve">
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>

<xsl:template match="/">
<table cellpadding="3" cellspacing="0" border="1" width="600">
<tbody>
<tr>
	<th colspan="2" bgcolor="#eeeeee"><xsl:value-of select="//FormName"/></th>
</tr>
<tr>
	<td><strong>Date:</strong></td>
	<td><xsl:value-of select="//@Date"/></td>
</tr>
<tr>
	<td><strong>Project:</strong></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">PROJECT</xsl:with-param></xsl:call-template></td>
</tr>
<tr>
	<td><strong>Location:</strong></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">LOCATION</xsl:with-param></xsl:call-template></td>
</tr>
<tr>
	<td><strong>Weather:</strong></td>
	<td><xsl:value-of select="//WEATHER"/><br/>(TEMP AM: <xsl:call-template name="GetAnswer"><xsl:with-param name="Question">TEMP AM</xsl:with-param></xsl:call-template> -- TEMP PM: <xsl:call-template name="GetAnswer"><xsl:with-param name="Question">TEMP PM</xsl:with-param></xsl:call-template>)</td>
</tr>
<tr>
	<td><strong>GC:</strong></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">GC</xsl:with-param></xsl:call-template></td>
</tr>

<tr>
	<td><strong>Supervisor:</strong></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">SUPERVISOR</xsl:with-param></xsl:call-template></td>
</tr>
<tr>
	<td><strong>Total Manhours Bid:</strong></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">TOTAL MANHOURS BID</xsl:with-param></xsl:call-template></td>
</tr>
<tr>
	<td><strong>Total Manhours To Date:</strong></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">TOTAL MANHOURS TO DATE</xsl:with-param></xsl:call-template></td>
</tr>
</tbody>
</table>

<table cellpadding="3" cellspacing="0" border="1" width="600">
<tbody>
<tr>
	<th colspan="5" bgcolor="#eeeeee"><HR/></th>
</tr>
<tr>
	<td align="center"><strong>EMPLOYEE</strong></td>
	<td align="center"><strong>WORK PERFORMED</strong></td>
	<td align="center"><strong>BEGAN</strong></td>
	<td align="center"><strong>FINISHED</strong></td>
	<td align="center"><strong>TOTAL</strong></td>
</tr>

<tr>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">EMPLOYEE 1</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">WORK PERFORMED 1</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">BEGAN 1</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">FINISHED 1</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">TOTAL 1</xsl:with-param></xsl:call-template></td>
</tr>
<tr>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">EMPLOYEE 2</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">WORK PERFORMED 2</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">BEGAN 2</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">FINISHED 2</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">TOTAL 2</xsl:with-param></xsl:call-template></td>
</tr>
<tr>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">EMPLOYEE 3</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">WORK PERFORMED 3</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">BEGAN 3</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">FINISHED 3</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">TOTAL 3</xsl:with-param></xsl:call-template></td>
</tr>
<tr>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">EMPLOYEE 4</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">WORK PERFORMED 4</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">BEGAN 4</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">FINISHED 4</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">TOTAL 4</xsl:with-param></xsl:call-template></td>
</tr>
<tr>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">EMPLOYEE 5</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">WORK PERFORMED 5</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">BEGAN 5</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">FINISHED 5</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">TOTAL 5</xsl:with-param></xsl:call-template></td>
</tr>
<tr>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">EMPLOYEE 6</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">WORK PERFORMED 6</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">BEGAN 6</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">FINISHED 6</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">TOTAL 6</xsl:with-param></xsl:call-template></td>
</tr>
<tr>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">EMPLOYEE 7</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">WORK PERFORMED 7</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">BEGAN 7</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">FINISHED 7</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">TOTAL 7</xsl:with-param></xsl:call-template></td>
</tr>
<tr>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">EMPLOYEE 8</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">WORK PERFORMED 8</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">BEGAN 8</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">FINISHED 8</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">TOTAL 8</xsl:with-param></xsl:call-template></td>
</tr>
<tr>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">EMPLOYEE 9</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">WORK PERFORMED 9</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">BEGAN 9</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">FINISHED 2</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">TOTAL 9</xsl:with-param></xsl:call-template></td>
</tr>
<tr>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">EMPLOYEE 10</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">WORK PERFORMED 10</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">BEGAN 10</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">FINISHED 10</xsl:with-param></xsl:call-template></td>
	<td><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">TOTAL 10</xsl:with-param></xsl:call-template></td>
</tr>
<tr>
	<td><strong>GENERAL<br/>COMMENTS:</strong></td>
	<td colspan="4"><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">GENERAL COMMENTS  injuries broken equipment etc</xsl:with-param></xsl:call-template></td>
</tr>
<tr>
	<td><strong>EXTRA WORK<BR/>PERFORMED:</strong></td>
	<td colspan="4"><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">EXTRA WORK PERFORMED</xsl:with-param></xsl:call-template></td>
</tr>
<tr>
	<td><strong>EW HOURS:</strong></td>
	<td colspan="4"><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">EXTRA WORK PERFORMED HOURS</xsl:with-param></xsl:call-template></td>
</tr>
<tr>
	<td><strong>ANTICIPATED<br/>ITEMS FOR<br/>TOMORROW:</strong></td>
	<td colspan="4"><xsl:call-template name="GetAnswer"><xsl:with-param name="Question">ANTICIPATED ITEMS FOR TOMORROW</xsl:with-param></xsl:call-template></td>
</tr>

</tbody>
</table>

MSDS SHEETS - SAFETY BRIEF: <xsl:call-template name="GetAnswer"><xsl:with-param name="Question">MSDS SHEETS SAFETY BRIEF</xsl:with-param></xsl:call-template>
CREW LEADER: <xsl:call-template name="GetAnswer"><xsl:with-param name="Question">CREW LEADER</xsl:with-param></xsl:call-template>

</xsl:template>

<xsl:template name="GetAnswer">
	<xsl:param name="Question"/>
	<xsl:value-of select="/*/Field[Question=$Question]/Answers/Answer"/>
</xsl:template>
</xsl:stylesheet>

