﻿<xsl:stylesheet version="1.0" 
	xmlns:date="http://exslt.org/dates-and-times"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="date">

<xsl:output omit-xml-declaration="yes" />

<xsl:param name="IsBlogOwner" />
<xsl:param name="RelativeUrl" />

<xsl:template match="/">

	<div class="blogCommentContainer" >
		<h3 class="comments">Comments</h3>
		<xsl:apply-templates select="rows/row"/>
	</div>
</xsl:template>

<xsl:template match="row">
	
	<div><br/>
		<span class="commentDate">
			<a href="{CommentUrl}"><xsl:value-of select="Title"/></a> commented on <xsl:variable name="publishedDate" select="date:parseDate(Created, 'yyyy-MM-dd HH:mm:ss')"/>
			<xsl:value-of select="date:format-date($publishedDate, 'EEEE, d-MMM-yyyy')"/>
		</span>
	
		<div class="commentText">
			<xsl:value-of select="Body" disable-output-escaping="yes" />
		</div>
	
		<hr class="commentSep" />
	</div>

</xsl:template>
  
</xsl:stylesheet>
