MOD modification du css pour faire un truc qui ressemble à qque chose
[pompage.git] / xsl / yopyop.xsl
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">\r
3  <xsl:template match="/">
4   <html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
5    <head>
6     <title>yopYop</title>\r
7     <link rel="stylesheet" href="../css/yopyop.css" type="text/css" />\r
8     <script type="text/javascript" src="../js/yopyop.js" ></script>
9     </head>
10     <body>
11     <h1>DivX</h1>
12     <table id="liste">
13      <tr>
14       <th>Titre</th>
15       <th>Année</th>\r
16       <th>Durée</th>\r
17       <th>Lien</th>\r
18       <th>Fichier</th>
19      </tr>\r
20      
21      <xsl:for-each select="filmographie/film">
22       <xsl:sort select="annee"/>
23       <tr>
24        <td onclick="detailFilm('{@id}')" class="titre"><xsl:value-of select="titre"/></td>
25        <td><xsl:value-of select="annee"/></td>\r
26        <td><xsl:value-of select="duree"/> min</td>\r
27        <td></td>\r
28        <td><xsl:value-of select="fichier"/> </td>
29       </tr>\r
30       <tr>\r
31        <td colspan="5" class="detail">\r
32         <table class="detail" id="{@id}">\r
33          <tr><td class="titreDetail">Genre(s)</td><td><xsl:for-each select="genres/genre"><xsl:value-of select="."/>, </xsl:for-each></td></tr>\r
34          <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
35          <tr><td class="titreDetail">Acteurs(s)</td><td><xsl:for-each select="acteurs/acteur"><xsl:value-of select="."/>, </xsl:for-each></td></tr>\r
36          <tr><td class="titreDetail">Pays</td><td><xsl:for-each select="lespays/pays"><xsl:value-of select="."/>, </xsl:for-each></td></tr>\r
37          <tr><td class="titreDetail">Synopsis</td><td><xsl:value-of select="synopsis"/></td></tr>\r
38         </table>\r
39        </td>\r
40       </tr>
41      </xsl:for-each>
42     </table>
43    </body>
44   </html>
45  </xsl:template>
46 </xsl:stylesheet>