<?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="400" cellpadding="4" cellspacing="0">
      <xsl:apply-templates select="/galery/row"></xsl:apply-templates>
    </table>
  </xsl:template>

  <xsl:template match="row">
    <tr>
      <xsl:apply-templates select="img"></xsl:apply-templates>
    </tr>
  </xsl:template>

  <xsl:template match="img">
    <td>
      <a>
        <xsl:attribute name="href">
          <xsl:value-of select="js"/>
        </xsl:attribute>
        <img border="0" width="80" height="50">
          <xsl:attribute name="src">
            <xsl:value-of select="imgpath"/>  
          </xsl:attribute>
        </img>
        <br/>
        <xsl:value-of select="imgname"/>
      </a>
      <a>
        <xsl:attribute name="href">
          <xsl:value-of select="del_url"/>
        </xsl:attribute>
        [del]
      </a>
    </td>
  </xsl:template>
</xsl:stylesheet>

