<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="arg1"/>
<xsl:param name="arg2"/>
<xsl:output method="html"/>
<xsl:template match="/response">
        <table id="{$arg1}ArticlesTable{$arg2}" class="articlesTable">
		  <thead  class="articlesHead">
            <tr>
              <th class="articleTitle">Title</th>
           	  <th class="articleSubject">Subject</th>
              <th class="articleAuthors">Author(s)</th>
              <th class="articleIssue">Issue</th>
            </tr>
          </thead>
		  <tbody class="articlesBody">
  <xsl:for-each select="articles/article">
            <tr class="articleRow">
              <td class="articleTitle">
				  <a href="javascript:void(0);" onclick="showArticle({@id})" title="Click to see Details..."><xsl:value-of select="title" /></a>
              </td>
              <td class="articleSubject">
				  <!--a href="javascript:void(0);" onclick="gotoSubject({subject/@id})" title="Click to see more from this Subject"--><xsl:value-of select="subject/description" /><!--/a-->
              </td>
              <td class="articleAuthors">
                <xsl:for-each select="authors/author">
				  <!--a href="javascript:void(0);"  onclick="gotoAuthor({@id})" title="Click to see more from this Author"--><xsl:value-of select="name" /><!--/a-->
                </xsl:for-each>
              </td>
              <td class="articleIssue">
				  <!--a href="javascript:void(0);" onclick="gotoIssue({issue/@id})" title="Click to see more from this Issue"-->
                    <span><xsl:value-of select="issue/enumeration" /></span>
                    <span id="{$arg1}ArticleIssueDate{$arg2}_{@index}"><xsl:value-of select="issue/issue_date"/></span>
                  <!--/a-->
              </td>
            </tr>
</xsl:for-each>
          </tbody>
        </table>
</xsl:template>
</xsl:stylesheet>