<?xml version="1.0" encoding="UTF-8"?>
<!-- Note : enregistrer ce fichier avec l'encodage UTF-8 cookie. -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
  
  <xsl:template match="/groupemacroelement">
    <html>
      <head>
        <link rel="stylesheet" type="text/css" href="css/html.css"/>
      </head>
      <body>
        <h1><xsl:value-of select="@nom"/></h1>
        <b>Version:</b> <xsl:value-of select="@version"/>
        <br />
        <b>Auteur:</b> <xsl:value-of select="@auteur"/>
        <h3>Description:</h3>
        <xsl:value-of select="description"/>
        <h3>Paramètre(s):</h3>
        <xsl:apply-templates select="parametres" />
        <h3>Macro-élément(s):</h3>
        <ul>
          <xsl:apply-templates select="macroelement" />
        </ul>
        <hr />
        <button label="Editer">Editer</button>
      </body>
    </html>
  </xsl:template>
  
  <xsl:template match="parametres" >
    <table class="parametres">
      <tr class="parametres">
        <td class="paramtitre">Nom</td><td class="paramtitre">Légende</td><td class="paramtitre">Valeur par defaut</td>
      </tr>
      <xsl:apply-templates select="parametre" />
    </table>
  </xsl:template>
  
  <xsl:template match="parametre" >
    <tr class="parametres">
      <td><xsl:value-of select="@nom"/></td>
      <td><xsl:value-of select="@legende"/></td>
      <td><xsl:value-of select="@value"/></td>
    </tr>
  </xsl:template>
  
  <xsl:template match="macroelement" >
    <li><xsl:value-of select="@nom"/></li>
    <ul>
      <xsl:apply-templates select="macroelement" />
    </ul>
  </xsl:template>
  
</xsl:stylesheet>