<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="UTF-8" indent="no"/>
  <xsl:template match="/top">
  		<top>
    <html>
    <body class="wcmBody">
    <center>
      <table width = '100%' border = '0' cellpadding = '0' cellspacing = '0'>
        <tr>
          <td colspan = '2' class = 'wcmTreeView'></td>
          <td class = 'wcmTabBar'><table height = '18' cellspacing = '0' cellpadding = '0' border = '0'>
              <tr>
                <td nowrap="nowrap" class = 'wcmTabBarSelected'><span class = 'wcmTabBarLink'> View Comments </span></td>
              </tr>
            </table>
            <table width="100%" border="0">
            <!-- Render table titles -->
            <tr class="wcmListViewHeader" height="18" >
                <td width="13%"><b>Date</b></td>
                <td width="20%"><b>User</b></td>
                <td><b>Comments</b></td>
				</tr>
				<!-- Render details -->
				
              <xsl:for-each select="annotation">
              <tr>
					<td> <xsl:value-of select="date"/> </td>
					<td> <xsl:value-of select="user"/> </td>
					<td>
						<xsl:for-each select="comment">
						<xsl:copy>
							<xsl:copy-of select="@*"/>
							<xsl:apply-templates mode="copy"/>
						</xsl:copy>
						</xsl:for-each>
					</td>
					</tr>
              </xsl:for-each>
              
            </table>
            <br/>
            <table width="100%">
              <tr align="right">
                <td>
                <input type = "button" value = "Ok" title = "Click Ok to exit" onClick = "history.go(-1);return false;"/>
                </td>
              </tr>
            </table></td>
        </tr>
      </table>
    </center>
    </body>
    </html>
    </top>
 	</xsl:template>
	<xsl:template match="@*|node()" mode="copy">
		<xsl:copy>
			<xsl:copy-of select="@*"/>
			<xsl:apply-templates mode="copy"/>
		</xsl:copy>
	</xsl:template>
</xsl:stylesheet>
