<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="LIST">

	<xsl:call-template name="MODULE-CSS"/>

	<xsl:apply-templates select="CATEGORY-DESCRIPTION"/>

	<xsl:apply-templates select="CONTENT/POST"/>
	
	<xsl:apply-templates select="PAGING"/>
<!--
	<table cellpadding="0" cellspacing="0" border="0" width="100%" class="mod" style="margin: 10px 0;">
	<tr>
		<td style="padding: 5px 0;">10 items total</td>
		<td align="right" style="padding: 5px 0;">
			<a href="#" class="mod-a">&lt; &lt; First</a> |
			<a href="#" class="mod-a">&lt; Previous</a> |
			<a href="#" class="mod-a">1</a>
			<a href="#" class="mod-a">2</a>
			<b>3</b>
			<a href="#" class="mod-a">4</a>
			<a href="#" class="mod-a">5</a> |
			<a href="#" class="mod-a">Next &gt;</a> |
			<a href="#" class="mod-a">Last &gt; &gt;</a>
		</td>
	</tr>
</table>
-->

</xsl:template>

<xsl:template match="CATEGORY-DESCRIPTION">
	<div class="mod-category-body" style="padding: 10px; margin: 0 0 10px 0;">
		<xsl:apply-templates select="*|text()"/>
	</div>
</xsl:template>

<xsl:template match="CATEGORY-DESCRIPTION//@*|CATEGORY-DESCRIPTION//comment()|CATEGORY-DESCRIPTION//text()">
<xsl:copy>
	<xsl:apply-templates select="*|@*|comment()|text()"/>
</xsl:copy>
</xsl:template>

<xsl:template match="CATEGORY-DESCRIPTION//*">
<xsl:copy>
	<xsl:apply-templates select="*|@*|comment()|text()"/>
</xsl:copy>
</xsl:template>


<xsl:template match="CONTENT/POST">
	<table cellpadding="0" cellspacing="0" border="0" width="100%" style="border-collapse: collapse; margin-bottom: 10px;">
		<tr>
			<td class="mod-item-header" style="padding: 5px 10px;">
				<div style="float:left;"><b><xsl:value-of select="@NAME"/></b></div>
				<div style="float:right;"><xsl:value-of select="@CREATED"/></div>
			</td>
		</tr>
		<tr>
			<td class="mod-item-body-alter" style="padding: 5px 10px;">
				<xsl:apply-templates select="*|text()"/>
				<div align="right">
					<a class="mod-item-body-a-strong">
						<xsl:attribute name="href"><xsl:value-of select="@COMMENT-LINK"/></xsl:attribute>
						<xsl:value-of select="@COMMENT-COUNT"/>&#160;<xsl:value-of select="../../@COMMENTS-WORD"/>
					</a>
				</div>
			</td>
		</tr>
	</table>
</xsl:template>


<xsl:template match="CONTENT/POST//@*|CONTENT/POST//comment()|CONTENT/POST//text()">
<xsl:copy>
	<xsl:apply-templates select="*|@*|comment()|text()"/>
</xsl:copy>
</xsl:template>

<xsl:template match="CONTENT/POST//*">
<xsl:copy>
	<xsl:apply-templates select="*|@*|comment()|text()"/>
</xsl:copy>
</xsl:template>

</xsl:stylesheet>