Subversion Repositories eFlore/Archives.eflore-consultation-v1

Rev

Rev 2 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?xml version="1.0" encoding="iso-8859-1"?> 

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 
    <xsl:output method="xml" encoding="iso-8859-1" version="1.0" standalone="yes" indent="yes" /> 

    <xsl:param name="param"/>

    <xsl:template match="/"> 
        <h1 class="eflore_titre1">Liste des taxons de rang inf&#233;rieur</h1>
        <xsl:apply-templates select="FICHE_CLASSIFICATION_TAXONS" />
    </xsl:template> 

    <xsl:template match="FICHE_CLASSIFICATION_TAXONS">  
        <xsl:apply-templates select="CLASSIFICATION_TAXON" />
    </xsl:template> 

    <xsl:template match="CLASSIFICATION_TAXON">
        <xsl:apply-templates select="NOM_TAXON" mode="titre"/>
        <ul>
            <xsl:apply-templates select="LISTE_CLASSIFICATIONS_FILLES/CLASSIFICATION_TAXON/NOM_TAXON" />
        </ul>
    </xsl:template> 

    <xsl:template match="NOM_TAXON" mode="titre">
        <h2 class="eflore_titre2">Niveau taxinomique s&#233;lectionn&#233;</h2>
        <p class="eflore_commentaire">Cliquer sur le nom du taxon pour obtenir la fiche d'identit&#233; du taxon.</p>
        <p>
            <strong><a>
                <xsl:attribute name="style">text-decoration: none;</xsl:attribute>
                <xsl:attribute name="href">transformer.php?xslt=identitetaxon.xsl&amp;servicexml=donneidentitestaxons.php&amp;numclass=1&amp;numnom=<xsl:value-of select="@numnom" /></xsl:attribute>
                <xsl:apply-templates select="NOM" />
            </a></strong>
        </p>
        <h2 class="eflore_titre2">Niveaux taxonomiques inférieurs</h2>
        <p class="eflore_commentaire">
            Cliquer sur le nom du taxon pour obtenir la fiche d'identit&#233; du taxon.<br/>
            Cliquer sur (...) pour obtenir la liste des taxons de rang inf&#233;rieur.
        </p>
    </xsl:template> 

    <xsl:template match="NOM_TAXON">
                    <li>
                        <a>
                            <xsl:attribute name="style">text-decoration: none;</xsl:attribute>
                            <xsl:attribute name="href">transformer.php?xslt=identitetaxon.xsl&amp;servicexml=donneidentitestaxons.php&amp;numclass=1&amp;numnom=<xsl:value-of select="@numnom" /></xsl:attribute>
                            <strong>
                                <xsl:apply-templates select="NOM" />
                            </strong>
                        </a>
                        <a>
                            <xsl:attribute name="style">text-decoration: none;</xsl:attribute>
                            <xsl:attribute name="href">transformer.php?xslt=classificationtaxons.xsl&amp;paramxslt=<xsl:value-of select="$param+1"/>&amp;servicexml=donneclassificationtaxons.php&amp;profondeur=<xsl:value-of select="$param+1"/>&amp;numclass=1&amp;numnom=<xsl:value-of select="@numnom" /></xsl:attribute>
                            (...)
                        </a>
                    </li>
    </xsl:template> 

    <xsl:template match="NOM">
        &#160;
        <xsl:if test="not(contains(@type, ''))">
            <strong><xsl:value-of select="@type"/></strong>
        </xsl:if>
        <em><xsl:value-of select="."/></em>
        &#160;
        <xsl:value-of select="@auteur"/>
    </xsl:template> 

</xsl:stylesheet>