<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:Stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
<xsl:stylesheet 
	version="1.0" 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
	xmlns:msxml="urn:schemas-microsoft-com:xslt"
	xmlns:umbraco.library="urn:umbraco.library"
	exclude-result-prefixes="msxml umbraco.library">


<xsl:output method="xml" omit-xml-declaration="yes" />

<xsl:param name="currentPage"/>

<xsl:template match="/">

<h3 id="comments"> 
  <xsl:value-of select="count($currentPage/node)"/> comment(s)  for  &#8220;<xsl:value-of select="$currentPage/@nodeName"/>&#8221;</h3> 

	<ol class="commentlist">
<xsl:for-each select="$currentPage/node">
<xsl:sort select="@updateDate" order="ascending"/>
  <li class="alt" id="comment-{@id}"> 
    <cite> 
    <a rel='external nofollow'>
<xsl:attribute name="href">
<xsl:choose>
<xsl:when test="contains(data [@alias = 'website'],'http://')">
<xsl:value-of select="data [@alias='website']"/>
</xsl:when>
<xsl:otherwise>
http://<xsl:value-of select="data [@alias='website']"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:value-of select="./data [@alias = 'name']"/></a>    </cite> Says: 
        <br />

			<small class="commentmetadata"><a href="#comment-{@id}" title=""><xsl:value-of select="umbraco.library:LongDate(@createDate)"/></a> </small>
<xsl:choose>
<xsl:when test="string(data [@alias = 'hide']) != '1' or umbraco.library:Request('showHidden') != ''">
<xsl:value-of select="umbraco.library:ReplaceLineBreaks(./data [@alias = 'comment'])" disable-output-escaping="yes"/>
</xsl:when>
<xsl:otherwise>
This comment has been hidden by the blog owner.<br/>Reason: <xsl:value-of select="data [@alias = 'hideReason']"/>.<br/><a href="?showHidden=true#comment-{@id}">Show hidden comment</a>
</xsl:otherwise>
</xsl:choose>
		</li>
</xsl:for-each>
</ol>

</xsl:template>

</xsl:stylesheet>