<?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="/">
	<html>
	<head>
    <link rel="stylesheet" type="text/css" href="{movie/settings/data}style.css"/>
  </head>
	<body style="padding:0; border:0">
    <table >
      <xsl:apply-templates select="movie/entry"/>
    </table>

  </body>
	</html>
</xsl:template>

<xsl:template match="entry[(position()-1) mod 4 = 0]" >
  <tr>
    <td>
     <img width="128" src="{file}" border="0" ></img>
    </td>

    <xsl:for-each select="following-sibling::node()[position() &lt; 4]">
      <xsl:if test="file">
        <td>
          <img width="128" src="{file}" border="0" ></img>
        </td>
      </xsl:if>
    </xsl:for-each>
  </tr>
</xsl:template>

<xsl:template match="entry/file" >
</xsl:template>

<xsl:template match="entry/source" >
</xsl:template>

<xsl:template match="entry/time" >
</xsl:template>

<xsl:template match="entry/frame" >
</xsl:template>

</xsl:stylesheet>


