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" version="1.0" standalone="yes" indent="yes" encoding="iso-8859-1"/> 

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

<xsl:template match="FICHE_LISTE_NOMS_VERNACULAIRES">
    <h1 class="eflore_titre1">Liste des noms vernaculaires trouvés</h1>
    <xsl:if test="not(LISTE_NOMS_VERNACULAIRES/ASSOCIATION_NOM_VERNACULAIRE_TAXON)">
        <p class="eflore_avertissement">Il n'existe aucun nom vernaculaire 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(LISTE_NOMS_VERNACULAIRES/ASSOCIATION_NOM_VERNACULAIRE_TAXON)">
        <xsl:apply-templates select="LISTE_NOMS_VERNACULAIRES"/>
    </xsl:if>
</xsl:template> 

<xsl:template match="LISTE_NOMS_VERNACULAIRES">
    <h2 class="eflore_titre2">Cliquer sur un des noms vernaculaires pour afficher la fiche du taxon correspondante.</h2>
    <table class="eflore_table_nom_verna">
        <thead>
            <tr>
                <th>Langue</th>
                <th>Pays</th>
                <th>Nom vernaculaire</th>
                <th>Nom latin du taxon correspondant</th>
            </tr>
        </thead>
        <tbody>
            <xsl:apply-templates select="ASSOCIATION_NOM_VERNACULAIRE_TAXON"/>
        </tbody>
    </table>
</xsl:template> 

<xsl:template match="ASSOCIATION_NOM_VERNACULAIRE_TAXON">
    <tr>
        <td><xsl:value-of select="NOM_VERNACULAIRE/@langue"/></td>
        <td><xsl:value-of select="NOM_VERNACULAIRE/@pays"/></td>
        <td>
            <xsl:choose>
            <xsl:when test="boolean(NOM_TAXON_VALIDE/NOM_TAXON)">
                <a>
                <xsl:attribute name="style">text-decoration: none; font-weight: bolder;</xsl:attribute>
                <xsl:attribute name="href">transformer.php?xslt=identitetaxon.xsl&amp;servicexml=donneidentitestaxons.php&amp;numclass=1&amp;numnom=<xsl:value-of select="./NOM_TAXON_VALIDE/NOM_TAXON/@numnom" /></xsl:attribute>
                    <xsl:apply-templates select="NOM_VERNACULAIRE"/>
                </a>
            </xsl:when>
            <xsl:when test="not(boolean(NOM_TAXON_VALIDE/NOM_TAXON))">
                <xsl:apply-templates select="NOM_VERNACULAIRE"/>
            </xsl:when>
            </xsl:choose>
        </td>
        <td><xsl:apply-templates select="./NOM_TAXON_VALIDE"/></td>
    </tr>
</xsl:template> 

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

<xsl:template match="NOM_TAXON_VALIDE">
    <xsl:apply-templates select="NOM_TAXON" />
</xsl:template>

<xsl:template match="NOM_TAXON">
    <xsl:apply-templates select="NOM" />
</xsl:template>

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

</xsl:stylesheet>