<?xml version="1.0" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" encoding="ISO-8859-1"
        doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="DTD/xhtml1-strict.dtd"
        indent="yes"/>

    <xsl:template match="/liste_acteurs">
        <html xmlns="http://www.w3.org/1999/xhtml">
            <head>
                <title>Les acteurs</title>
                <meta name="robots" content="noindex" />
                <link rel="stylesheet" href="acteurs.css"/>
            </head>
            <body>
                <div class="pagelarge">
                    <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="http://www.grappa.univ-lille3.fr/~torre/Enseignement/TPs/XML/Corrections/#xsltacteurs">solutions des exercices XML</a></li>
		      <li>retour aux <a href="http://www.grappa.univ-lille3.fr/~torre/Enseignement/TPs/XML/XSLT/">exercices XSLT</a></li>
		      <li>retour à la page de <a href="http://www.grappa.univ-lille3.fr/~torre/">Fabien Torre</a></li>
		    </ul>

		    <fieldset class="sommaire">
                    <legend>Index des acteurs</legend>
                    <ul>
		      <xsl:apply-templates select="acteur" mode="sommaire" />
                    </ul>
                    </fieldset>
		    <hr />
		    <xsl:apply-templates select="child::acteur" mode="tout" />

                </div>
            </body>
        </html>
    </xsl:template>



    <xsl:template match="acteur" mode="sommaire">

        <li><a href="#{@id}">
            <xsl:value-of select="prenom"/> <xsl:value-of select="nom"/>
        </a></li>

    </xsl:template>






    <xsl:template match="liste_acteurs/acteur" mode="tout">

        <h2>
	<a name="{@id}">
	<xsl:value-of select="prenom"/>
	<xsl:value-of select="nom"/>
	</a>
	</h2>

        <h3>Informations</h3>

	<xsl:apply-templates select="photo" />

	<table>
	<tr><th>Prénom</th><td><xsl:value-of select="prenom" /></td></tr>
	<tr><th>Nom</th><td><xsl:value-of select="nom" /></td></tr>
	<tr><th>Date de naissance</th><td><xsl:value-of select="naissance" /></td></tr>
	<tr><th>Nationalité</th><td><xsl:value-of select="nationalite" /></td></tr>
	<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><th>Site web</th><td><a href="{@url}"><xsl:value-of select="@url" /></a></td></tr>
    </xsl:template>

    <xsl:template match="p">
	<p><xsl:apply-templates /></p>
    </xsl:template>

    <xsl:template match="refacteur">
	<a href="#{@code}"><xsl:value-of select="." /></a>
    </xsl:template>

    <xsl:template match="annee">
	<em><xsl:value-of select="." /></em>
    </xsl:template>

    <xsl:template match="realisateur">
	<strong><xsl:value-of select="." /></strong>
    </xsl:template>

    <xsl:template match="film">
	<strong><em><xsl:value-of select="." /></em></strong>
    </xsl:template>


</xsl:stylesheet>

