-<?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="/">
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
+ <head>
+ <title>yopYop</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>
+ <table id="liste">
+ <tr>
+ <th>Titre</th>
+ <th>Année</th>\r
+ <th>Durée</th>\r
+ <th>Lien</th>\r
+ <th>Fichier</th>
+ </tr>\r
+
+ <xsl:for-each select="filmographie/film">
+ <xsl:sort select="annee"/>
+ <tr>
+ <td onclick="detailFilm('{@id}')" class="titre"><xsl:value-of select="titre"/></td>
+ <td><xsl:value-of select="annee"/></td>\r
+ <td><xsl:value-of select="duree"/> min</td>\r
+ <td></td>\r
+ <td><xsl:value-of select="fichier"/> </td>
+ </tr>\r
+ <tr>\r
+ <td colspan="5" class="detail">\r
+ <table class="detail" id="{@id}">\r
+ <tr><td class="titreDetail">Genre(s)</td><td><xsl:for-each select="genres/genre"><xsl:value-of select="."/>, </xsl:for-each></td></tr>\r
+ <tr><td class="titreDetail">Réalisateur(s)</td><td><xsl:for-each select="realisateurs/realisateur"><xsl:value-of select="."/>, </xsl:for-each></td></tr>\r
+ <tr><td class="titreDetail">Acteurs(s)</td><td><xsl:for-each select="acteurs/acteur"><xsl:value-of select="."/>, </xsl:for-each></td></tr>\r
+ <tr><td class="titreDetail">Pays</td><td><xsl:for-each select="lespays/pays"><xsl:value-of select="."/>, </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>