<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:template match="/">
    <table width="100%" cellpadding="4" cellspacing="2">
      <xsl:apply-templates select="/memberlist/row"></xsl:apply-templates>
    </table>
  </xsl:template>

  <xsl:template match="row">
    <tr>
      <xsl:apply-templates select="member"></xsl:apply-templates>
    </tr>
  </xsl:template>

  <xsl:template match="member">
    <td>
      <table width="100%" style="border:1px solid;">
        <tr>
          <td style="width:1%;">
            <a>
              <xsl:attribute name="href">
                <xsl:value-of select="link"/>
              </xsl:attribute>
              <img border="0" width="80">
                <xsl:attribute name="src">
                  <xsl:value-of select="ImageUrl"/>
                </xsl:attribute>
              </img>
            </a>
            <xsl:if test="link_edit!=''">
              <a>
                <xsl:attribute name="href">
                  <xsl:value-of select="link_edit"/>
                </xsl:attribute>
                Sửa
              </a>
            </xsl:if>
          </td>
          <td>
            <table width="100%" cellspacing="2" cellpadding="2">

              <tr>
                <td style="width:1%">UserName</td>
                <td>
                  <a>
                    <xsl:attribute name="href">
                      <xsl:value-of select="link"/>
                    </xsl:attribute>
                    <xsl:value-of select="UserName"/>
                  </a>
                </td>
              </tr>
              <tr>
                <td>FullName</td>
                <td>
                  <xsl:value-of select="FullName"/>
                </td>
              </tr>
              <tr>
                <td>Email</td>
                <td>
                  <xsl:value-of select="Email"/>
                </td>
              </tr>
              <tr>
                <td>RegistedDate</td>
                <td>
                  <xsl:value-of select="RegistedDate"/>
                </td>
              </tr>
              <tr>
                <td>Posts</td>
                <td>
                  <xsl:value-of select="Posts"/>
                </td>
              </tr>
              <tr>
                <td>Slogan</td>
                <td>
                  <xsl:value-of select="Slogan"/>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </xsl:template>
</xsl:stylesheet>

