﻿<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:template match="/">
    <html>
      <head>
        <title><xsl:value-of select="*/@titre" /></title>
      </head>
      <body>
        <h1><xsl:value-of select="*/@titre" /></h1>
        <h2>Nombre de contacts:
          <xsl:value-of select="count(*/nom)" /></h2>
        <ol><xsl:apply-templates select="*/nom" /></ol>
      </body>
    </html>
  </xsl:template>

  <xsl:template match="nom">
    <li><xsl:value-of select="." /></li>
  </xsl:template>

</xsl:stylesheet>
