<?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
	<xsl:param name="showSummary" select='true()' />
    <!--
        This is an XSLT template file. Fill in this area with the
        XSL elements which will transform your XML to XHTML.
	<table width="684" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td width="15">.</td>
			<td width="669">
				<table width="669" border="1" cellspacing="0" cellpadding="0" bgcolor="grey" bordercolor="black">
    -->
					<xsl:apply-templates select="//Csr">
						<xsl:sort select="csrSortableDate" 
							data-type="text"
							order="ascending"/>
						<xsl:with-param name="showSummary" select="$showSummary" />
					</xsl:apply-templates>
<!--
					<tr valign="top" style="padding-bottom:10">
						<td colspan="10"><a href="#top">Back to Top</a></td>
					</tr>

				</table>
			</td>
		</tr>
	</table>
-->
</xsl:template>
	
	<xsl:template match="Csr">
		<xsl:param name="showSummary" />
		<tr align="left" valign="top" style="padding-bottom:10">
			<td width="20" align="right">&#160;</td>
			<td width="60" align="left"><xsl:value-of select="@csrDate"/></td>
			<td width="20" align="right">&#160;</td>
			<td width="100">
				<xsl:value-of select="@csrSubj"/>
			</td>
			<td width="20">&#160;</td>
			<td width="289"><b><xsl:value-of select="@csrRuling"/></b>
				<xsl:if test="$showSummary = true()">
					<br /><xsl:value-of select="csrRulingSummary"/>
				</xsl:if>
			</td>
			<td width="20">&#160;</td>
			<td width="60" align="left">
				<a>
					<xsl:attribute name="href">
						<xsl:value-of select="@csrNbr"/>.htm
					</xsl:attribute>
					<xsl:value-of select="@csrNbr"/>
				</a>
			</td>
			<td width="20">&#160;</td>
			<td width="60">
				<a>
					<xsl:attribute name="href">../DMM300/<xsl:value-of select="@csrDmmUrl"/></xsl:attribute>
					<xsl:value-of select="@csrDmm"/>
				</a>
			</td>
		</tr>
	</xsl:template>

</xsl:stylesheet> 


