﻿<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" >
		<h1 class="title">Comments</h1>
		<xsl:apply-templates select="rows/row"/>
	</div>
</xsl:template>

<xsl:template match="row">
	
	<div class="commentContainer">
		<span class="commentDate">
			<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 hh:mm')"/>
			by <a href="{CommentUrl}"><xsl:value-of select="Title"/></a>
		</span>
		<div class="commentText">
			<xsl:value-of select="Body" disable-output-escaping="no" />
		</div>
	
		<hr class="commentSep" />
	</div>

</xsl:template>
  

  
</xsl:stylesheet>
