<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h1>LOCC Lines of Code Counter</h1>
<p>
<b><xsl:value-of select="LineCount/FileStatistics/Files" /> Files</b>
<br/><b><xsl:value-of select="LineCount/FileStatistics/Bytes" /> Bytes</b>
</p>
<table border="1">
<tr bgcolor="#9acd32" align="left">
<th>Filename</th>
<th>Code</th>
<th>Comment</th>
<th>Empty</th>
<th>Total</th>
</tr>
<xsl:for-each select = "LineCount/CodeStatistics">
	<tr>
	<td><xsl:apply-templates select="@Filename" /></td>
	<td align="right"><xsl:value-of select="Code" /></td>
	<td align="right"><xsl:value-of select="Comments" /></td>
	<td align="right"><xsl:value-of select="Empty" /></td>
	<td align="right"><xsl:value-of select="Total" /></td>
	</tr>
</xsl:for-each>
<tr>
<td>TOTAL</td>
<td align="right"><xsl:value-of select="LineCount/CodeStatisticsTotal/Code" /></td>
<td align="right"><xsl:value-of select="LineCount/CodeStatisticsTotal/Comments" /></td>
<td align="right"><xsl:value-of select="LineCount/CodeStatisticsTotal/Empty" /></td>
<td align="right"><xsl:value-of select="LineCount/CodeStatisticsTotal/Total" /></td>
</tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>