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"> 
<!-- Mettre méthode "xml" pour faire du xhtml -->
<xsl:output method="xml" version="1.0" standalone="yes" indent="yes" encoding="ISO-8859-1"/> 

<xsl:template match="/"> 
    <h1>Liste des noms scientifiques trouvés</h1>
    <xsl:if test="not(/FICHE_LISTE_TAXONS/LISTE_TAXONS/NOM_TAXON)">
        <p class="eflore_avertissement">Il n'existe aucun nom scientifique correspondant au radical recherch&#233;.</p>
        <p class="eflore_avertissement">
            <!--Lien vers le site de test de Tela-Botanica-->
            <!--Cliquer <a href="http://test.tela-botanica.org/eflore" target="_top">ICI</a> pour retourner au formulaire principal de l'Index.-->
            <!--Lien vers le site officiel de Tela-Botanica-->
            Cliquer <a href="http://www.tela-botanica.org/eflore" onclick="history.back();return false;">ICI</a> pour retourner au formulaire principal de l'Index.
        </p>
    </xsl:if>
    <xsl:if test="boolean(/FICHE_LISTE_TAXONS/LISTE_TAXONS/NOM_TAXON)">
        <xsl:apply-templates select="FICHE_LISTE_TAXONS" />
    </xsl:if>
</xsl:template> 

<xsl:template match="//FICHE_LISTE_TAXONS">  
    <xsl:apply-templates select="//LISTE_TAXONS" />
</xsl:template> 

<xsl:template match="LISTE_TAXONS">
    <h2 class="eflore_titre2">Cliquer sur un des noms pour afficher la fiche du nom retenu (correct) correspondante.</h2>
    <p><strong>Note :</strong> les noms retenus (corrects) apparaissent en gras dans cette liste.</p>
    <ul>
        <xsl:apply-templates select="NOM_TAXON" />
    </ul>
</xsl:template> 

<xsl:template match="NOM_TAXON">
    <xsl:choose>
        <xsl:when test="@statut='1'">
            <li>
                <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>
            </li>
        </xsl:when>
        <xsl:otherwise>
            <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>
                    <xsl:apply-templates select="NOM" />
                </a>
            </li>
        </xsl:otherwise>
    </xsl:choose>
</xsl:template>

<xsl:template match="NOM">
        <xsl:value-of select="@type"/>
    &#160;
    <em>
        <xsl:value-of select="."/>
    </em>
    &#160; 
    <xsl:value-of select="@auteur"/>
    &#160;
</xsl:template> 

</xsl:stylesheet>