<?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html"/>
  
  <xsl:template match="/newslist">
    
      <table width="100%" class="table table-striped">
        <tr>
          <td>STT</td>
          <td>Tiêu đề</td>
          <td>Xem</td>
          <td>Sửa</td>
        </tr>
        <xsl:apply-templates select="news"></xsl:apply-templates>
      </table>
    <!--</div>-->
  </xsl:template>

  <xsl:template match="news">
    <tr>
      <td align="center">
        <xsl:value-of select="STT"/>
      </td>
      <td>
        <a>
          <xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute>
          <xsl:value-of select="Headline"/>
        </a>
      </td>
      <td align="center">
        <xsl:value-of select="TotalView"/>
      </td>
      <td align="center">
        <a>
          <xsl:attribute name="href"><xsl:value-of select="link_edit"/></xsl:attribute>
          Sửa
        </a>
      </td>
    </tr>
  </xsl:template>
</xsl:stylesheet> 

