<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:variable name="Space"><xsl:text>&amp;nbsp;</xsl:text></xsl:variable>
<xsl:output method="html"/>

<xsl:template match="/">
	<html>
		<head>
			<link rel="STYLESHEET" href="css/main.css" type="text/css"/>
			<script type="text/javascript">

			</script>
		</head>
		<body>
			<xsl:apply-templates select="main_page"/>
		</body>
	</html>
        
        
</xsl:template>


<!-- ======================================================================= -->
	<xsl:template match="main_page">
		<h1>LiSTAsset Itemised Report</h1>
		<table class="report">
			<tr class="report_lines">
				<td class="report_house_name" colspan="5"><xsl:value-of select="@hc_name"/></td>
				<td class="report_house_value"><xsl:value-of select="@hc_currency_symbol"/><xsl:value-of select="@hc_value"/></td>
			</tr>
			<xsl:apply-templates select="_rl"/>
		</table>
		<div class = "footer_note">Report compiled using LiSTAsset by exeCConnect on <xsl:value-of select="@report_date"/></div>
	</xsl:template>

	<xsl:template match="_rl">
		<tr class="report_lines_rl">
			<td><xsl:value-of select="$Space" disable-output-escaping="yes"/></td>
			<td class="report_rl_name" colspan="3"><xsl:value-of select="@rl_name"/></td>
			<td class="report_rl_value"><xsl:value-of select="/main_page/@hc_currency_symbol"/><xsl:value-of select="@rl_value"/></td>
			<td><xsl:value-of select="$Space" disable-output-escaping="yes"/></td>
		</tr>
		<xsl:apply-templates select="_item"/>
	</xsl:template>

	<xsl:template match="_item">
		<tr class="report_lines_item">
			<td class="report_before_checkbox"><xsl:value-of select="$Space" disable-output-escaping="yes"/></td>
			<td class="report_qty"><xsl:value-of select="@item_qty"/></td>
			<td class="report_item_name"><xsl:value-of select="@item_name"/></td>
			<td class="report_item_value"><xsl:value-of select="/main_page/@hc_currency_symbol"/><xsl:value-of select="@item_value"/></td>
			<td><xsl:value-of select="$Space" disable-output-escaping="yes"/></td>
			<td><xsl:value-of select="$Space" disable-output-escaping="yes"/></td>
		</tr>
	</xsl:template>

</xsl:stylesheet>