Proponuję inny zapis
<xsl:for-each select="bestMovies/movie">
<tr style="background-color: {@type}">
<td><xsl:value-of select="title"/></td>
<td><xsl:value-of select="year"/></td>
<td><xsl:value-of select="filmDirector"/></td>
<td><xsl:value-of select="country"/></td>
<td><xsl:value-of select="filmweb_rating"/></td>
<td><img src="{photo}" alt="brak zdjęcia" width="100px" height="100px"/></td>
</tr>
</xsl:for-each>
lub
<xsl:for-each select="bestMovies/movie">
<tr class="{@type}">
<td><xsl:value-of select="title"/></td>
<td><xsl:value-of select="year"/></td>
<td><xsl:value-of select="filmDirector"/></td>
<td><xsl:value-of select="country"/></td>
<td><xsl:value-of select="filmweb_rating"/></td>
<td><img src="{photo}" alt="brak zdjęcia" width="100px" height="100px"/></td>
</tr>
</xsl:for-each>
cały proponowany zapis
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<table border="1">
<caption><h2>The best movies</h2></caption>
<thead>
<tr style="background-color: green">
<th>Title</th>
<th>Year</th>
<th>Director</th>
<th>Country</th>
<th>Rating</th>
<th>Photo</th>
</tr>
</thead>
<tbody>
<xsl:for-each select="bestMovies/movie">
<tr style="background-color: {@type}">
<td><xsl:value-of select="title"/></td>
<td><xsl:value-of select="year"/></td>
<td><xsl:value-of select="filmDirector"/></td>
<td><xsl:value-of select="country"/></td>
<td><xsl:value-of select="filmweb_rating"/></td>
<td><img src="{photo}" alt="brak zdjecia" width="100px" height="100px"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
BTW, proponuje taki zapis bez tych spacji (odstęp uzyskasz z poziomu css, np. za pomocą: padding-a)
<movie type="green" genre="drama" time="142min">
<title>The Shawshank Redemption</title>
<year>1994</year>
<filmDirector>Frank Darabont</filmDirector>
<country>USA</country>
<filmweb_rating>8.76</filmweb_rating>
<photo>https://upload.wikimedia.org/wikipedia/en/8/81/ShawshankRedemptionMoviePoster.jpg</photo>
</movie>
do testowania np. on-line