Source de acteurs2html.xsl
<?xml version="1.0" ?>
<xsl:stylesheet version="1.0">
<xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="DTD/xhtml1-strict.dtd" indent="yes" />
<xsl:template match="/liste_acteurs">
<html>
</xsl:template><head>
<title>Les acteurs</title>
<meta name="robots" content="noindex" />
<link rel="stylesheet" href="acteurs.css" />
</head><body>
</html><div class="pagelarge">
</body><h1>Les meilleurs acteurs au monde</h1>
<p>
Cette page est produite dans le cadre d'exercices sur XSLT. Son contenu n'est peut-être pas pertinent.
</p><ul>
<li>
retour aux <a href="https://fabien-torre.fr/Enseignement/tp/XML/Corrections/#xsltacteurs">solutions des exercices XML</a>
</li><li>
retour aux <a href="https://fabien-torre.fr/Enseignement/tp/XML/XSLT/">exercices XSLT</a>
</li><li>
</ul>retour à la page de <a href="https://fabien-torre.fr/">Fabien Torre</a>
</li><fieldset class="sommaire">
<legend>Index des acteurs</legend>
<ul>
</fieldset><xsl:apply-templates select="acteur" mode="sommaire" />
</ul><hr />
<xsl:apply-templates select="child::acteur" mode="tout" />
</div><xsl:template match="acteur" mode="sommaire">
<li>
</xsl:template><a href="#{@id}">
</li><xsl:value-of select="prenom" />
<xsl:value-of select="nom" />
</a><xsl:template match="liste_acteurs/acteur" mode="tout">
<h2>
<a name="{@id}">
</h2><xsl:value-of select="prenom" />
<xsl:value-of select="nom" />
</a><h3>Informations</h3>
<xsl:apply-templates select="photo" />
<table>
<tr>
<th>Prénom</th>
<td>
</tr><xsl:value-of select="prenom" />
</td><tr>
<th>Nom</th>
<td>
</tr><xsl:value-of select="nom" />
</td><tr>
<th>Date de naissance</th>
<td>
</tr><xsl:value-of select="naissance" />
</td><tr>
<th>Nationalité</th>
<td>
</tr><xsl:value-of select="nationalite" />
</td><xsl:apply-templates select="site" />
</table><hr />
<h3>Biographie</h3>
<xsl:apply-templates select="biographie" />
</xsl:template><xsl:template match="biographie">
<xsl:apply-templates />
</xsl:template><xsl:template match="photo">
<img src="{@source}" alt="{@alt}" />
</xsl:template><xsl:template match="site">
<tr>
</xsl:template><th>Site web</th>
<td>
</tr><a href="{@url}">
</td><xsl:value-of select="@url" />
</a><xsl:template match="p">
<p>
</xsl:template><xsl:apply-templates />
</p><xsl:template match="refacteur">
<a href="#{@code}">
</xsl:template><xsl:value-of select="." />
</a><xsl:template match="annee">
<em>
</xsl:template><xsl:value-of select="." />
</em><xsl:template match="realisateur">
<strong>
</xsl:template><xsl:value-of select="." />
</strong><xsl:template match="film">
</xsl:stylesheet><strong>
</xsl:template><em>
</strong><xsl:value-of select="." />
</em>