-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
- <xsl:template match="/">
- <html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
- <head>
- <title>
- yopYop
- </title>
- </head>
- @import url(../ccs/yopyop.css);
- <body>
- <h1>yopYop</h1>
- <table>
- <tr>
- <th>Titre</th>
- <th>Année</th>
- </tr>
- <xsl:for-each select="filmographie/film">
- <xsl:sort select="titre"/>
- <tr>
- <td><xsl:value-of select="titre"/></td>
- <td><xsl:value-of select="annee"/></td>
- </tr>
- </xsl:for-each>
- </table>
- </body>
- </html>
- </xsl:template>
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">\r
+ <xsl:template match="filmographie">
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
+ <head>
+ <title>DivX</title>\r
+ <link rel="stylesheet" href="../css/yopyop.css" type="text/css" />\r
+ <script type="text/javascript" src="../js/yopyop.js" ></script>
+ </head>
+ <body>
+ <h1>DivX</h1><form><input type="text" onkeyup="doRecherche()" id="recherche" /></form>
+ <table id="liste">
+ <tr>
+ <th class="titre">Titre</th>
+ <th class="annee">Année</th>\r
+ <th class="duree">Durée</th>\r
+ <th class="lien">Lien</th>\r
+ <th class="fichier">Fichier</th>
+ </tr>\r
+
+ <xsl:for-each select="film">
+ <xsl:sort select="annee" order="descending" />\r
+ <xsl:sort select="titre" />
+ <tr id="ligne{@id}">
+ <td onclick="detailFilm('{@id}')" class="titre" id="titre{@id}"><xsl:value-of select="titre"/></td>
+ <td class="annee"><xsl:value-of select="annee"/></td>\r
+ <td class="duree"><xsl:value-of select="duree"/> min</td>\r
+ <td class="lien"><a href="{url}">GO</a></td>\r
+ <td class="fichier"><a href="divx:///{fichier}">GO</a></td>
+ </tr>\r
+ <tr>\r
+ <td colspan="5" class="detail">\r
+ <table class="detail" id="detail{@id}">\r
+ <tr><td class="titreDetail">Genre<xsl:if test="count(genres/genre) > 1">s</xsl:if></td><td><xsl:for-each select="genres/genre"><xsl:value-of select="."/><xsl:if test="not(position() = last())">, </xsl:if></xsl:for-each></td></tr>\r
+ <tr><td class="titreDetail">Réalisateur<xsl:if test="count(realisateurs/realisateur) > 1">s</xsl:if></td><td><xsl:for-each select="realisateurs/realisateur"><xsl:value-of select="."/><xsl:if test="not(position() = last())">, </xsl:if></xsl:for-each></td></tr>\r
+ <tr><td class="titreDetail">Acteur<xsl:if test="count(acteurs/acteur) > 1">s</xsl:if></td><td><xsl:for-each select="acteurs/acteur"><xsl:value-of select="."/><xsl:if test="not(position() = last())">, </xsl:if></xsl:for-each></td></tr>\r
+ <tr><td class="titreDetail">Pays</td><td><xsl:for-each select="lespays/pays"><xsl:value-of select="."/><xsl:if test="not(position() = last())">, </xsl:if></xsl:for-each></td></tr>\r
+ <tr><td class="titreDetail">Synopsis</td><td><xsl:value-of select="synopsis"/></td></tr>\r
+ </table>\r
+ </td>\r
+ </tr>
+ </xsl:for-each>
+ </table>
+ </body>
+ </html>
+ </xsl:template>
</xsl:stylesheet>
\ No newline at end of file