<?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%">-->
      <xsl:apply-templates select="news"></xsl:apply-templates>
      <xsl:apply-templates select="Category"></xsl:apply-templates>
    <!--</table>-->
  </xsl:template>
  <xsl:template match="Category">
    <div class="list-group-item" align="right">
      <a>
        <xsl:attribute name="href">
          <xsl:value-of select="CategoryUrl"/>
        </xsl:attribute>
        Xem tất cả <i class="fa fa-arrow-circle-right fa-lg"></i>
      </a>
    </div>
  </xsl:template>
  <xsl:template match="news">   
        <div class="list-group-item">
          <article class="clearfix m_bottom_15 m_xs_bottom_20">
            <div class="views-field views-field-created">
              <span class="field-content-day">
                <xsl:value-of select="Day"/>
              </span>
              <span class="field-content-month">
                <xsl:value-of select="MonthYear"/>
              </span>
            </div>
            <a>
              <xsl:attribute name="href">
                <xsl:value-of select="link"/>
              </xsl:attribute>
              <xsl:value-of select="Headline"/>
            </a>
          </article>

        </div>    
  </xsl:template>
</xsl:stylesheet> 

