Subversion Repositories eFlore/Archives.eflore-consultation-v1

Rev

Go to most recent revision | 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="html" 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">
    <tr class="titlePage">
        <td >
            Liste des noms vernaculaires trouvés
        </td>
    </tr>
    <xsl:if test="not(LISTE_NOMS_VERNACULAIRES/ASSOCIATION_NOM_VERNACULAIRE_TAXON)">
        <tr>
            <td>
                <br/>
            </td>
        </tr>
        <tr class="eflore_avertissement">
            <td align="center">
                Il n'existe aucun nom vernaculaire correspondant au radical recherch&#233;.
            </td>
        </tr>
        <tr>
            <td>
                <br/>
            </td>
        </tr>
        <tr class="eflore_avertissement">
            <td align="center">
                <!--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" target="_top" onclick="history.back();return false;">ICI</a> pour retourner au formulaire principal de l'Index.
            </td>
        </tr>
        <tr>
            <td>
                <br/>
                <br/>
            </td>
        </tr>
    </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">
    <tr class="insTitle1">
        <td>
            Cliquer sur un des noms vernaculaires pour afficher la fiche du taxon correspondante. 
        </td>
    </tr>
    <tr>
        <td>
            &#032;
        </td>
    </tr>
    <tr class="texte_tb">
        <td>
            <table border="0" width="*" cellpading="0" cellspacing="0">
                <tr class="eflore_commentaire" >
                    <td width="70" align="left">
                        Langue / Pays
                    </td>
                    <td align="center" width="130">
                        Nom vernaculaire
                    </td>
                    <td align="left" width="*">
                        Nom latin du taxon correspondant
                    </td>
                </tr>
                <xsl:apply-templates select="ASSOCIATION_NOM_VERNACULAIRE_TAXON"/>
            </table>
        </td>
    </tr>
</xsl:template> 

<xsl:template match="ASSOCIATION_NOM_VERNACULAIRE_TAXON">
    <tr class="texte_tb" >
        <td width="70">
            <xsl:attribute name="style">text-align : left;</xsl:attribute>
                <li>
                    <xsl:value-of select="NOM_VERNACULAIRE/@langue"/>
                    <xsl:text> / </xsl:text>
                    <xsl:value-of select="NOM_VERNACULAIRE/@pays"/>
                    <xsl:text> : </xsl:text>
                </li>
        </td>
        <td width="130" align="left" >
            <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 width="*">
            <xsl:attribute name="style">text-align : left;</xsl:attribute>
                <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">
    <b>
        <xsl:value-of select="@type"/>
    </b>
    <i>
        <xsl:value-of select="."/>
    </i>
    
    <xsl:if test="position() = last()">
        &#160;
        <xsl:value-of select="@auteur"/>
    </xsl:if>
</xsl:template>

</xsl:stylesheet>