Subversion Repositories eFlore/Archives.eflore-consultation-v1

Rev

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

Rev Author Line No. Line
2 jpm 1
<?xml version="1.0" encoding="iso-8859-1"?>
2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
5 jpm 3
<xsl:output method="xml" version="1.0" standalone="yes" indent="yes" encoding="iso-8859-1"/>
2 jpm 4
 
5
<xsl:template match="/">
6
    <xsl:apply-templates select="FICHE_LISTE_NOMS_VERNACULAIRES"/>
7
</xsl:template>
8
 
9
<xsl:template match="FICHE_LISTE_NOMS_VERNACULAIRES">
5 jpm 10
    <h1 class="eflore_titre1">Liste des noms vernaculaires trouvés</h1>
2 jpm 11
    <xsl:if test="not(LISTE_NOMS_VERNACULAIRES/ASSOCIATION_NOM_VERNACULAIRE_TAXON)">
5 jpm 12
        <p class="eflore_avertissement">Il n'existe aucun nom vernaculaire correspondant au radical recherch&#233;.</p>
13
        <p class="eflore_avertissement">
14
            <!--Lien vers le site de test de Tela-Botanica-->
15
            <!--Cliquer <a href="http://test.tela-botanica.org/eflore" target="_top">ICI</a> pour retourner au formulaire principal de l'Index.-->
16
            <!--Lien vers le site officiel de Tela-Botanica-->
17
            Cliquer <a href="http://www.tela-botanica.org/eflore" onclick="history.back();return false;">ICI</a> pour retourner au formulaire principal de l'Index.
18
        </p>
2 jpm 19
    </xsl:if>
20
    <xsl:if test="boolean(LISTE_NOMS_VERNACULAIRES/ASSOCIATION_NOM_VERNACULAIRE_TAXON)">
21
        <xsl:apply-templates select="LISTE_NOMS_VERNACULAIRES"/>
22
    </xsl:if>
23
</xsl:template>
24
 
25
<xsl:template match="LISTE_NOMS_VERNACULAIRES">
5 jpm 26
    <h2 class="eflore_titre2">Cliquer sur un des noms vernaculaires pour afficher la fiche du taxon correspondante.</h2>
27
    <table class="eflore_table_nom_verna">
28
        <thead>
29
            <tr>
30
                <th>Langue</th>
31
                <th>Pays</th>
32
                <th>Nom vernaculaire</th>
33
                <th>Nom latin du taxon correspondant</th>
34
            </tr>
35
        </thead>
36
        <tbody>
37
            <xsl:apply-templates select="ASSOCIATION_NOM_VERNACULAIRE_TAXON"/>
38
        </tbody>
39
    </table>
2 jpm 40
</xsl:template>
41
 
42
<xsl:template match="ASSOCIATION_NOM_VERNACULAIRE_TAXON">
5 jpm 43
    <tr>
44
        <td><xsl:value-of select="NOM_VERNACULAIRE/@langue"/></td>
45
        <td><xsl:value-of select="NOM_VERNACULAIRE/@pays"/></td>
46
        <td>
2 jpm 47
            <xsl:choose>
48
            <xsl:when test="boolean(NOM_TAXON_VALIDE/NOM_TAXON)">
49
                <a>
50
                <xsl:attribute name="style">text-decoration: none; font-weight: bolder;</xsl:attribute>
51
                <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>
52
                    <xsl:apply-templates select="NOM_VERNACULAIRE"/>
53
                </a>
54
            </xsl:when>
55
            <xsl:when test="not(boolean(NOM_TAXON_VALIDE/NOM_TAXON))">
56
                <xsl:apply-templates select="NOM_VERNACULAIRE"/>
57
            </xsl:when>
58
            </xsl:choose>
59
        </td>
5 jpm 60
        <td><xsl:apply-templates select="./NOM_TAXON_VALIDE"/></td>
2 jpm 61
    </tr>
62
</xsl:template>
63
 
64
<xsl:template match="NOM_VERNACULAIRE">
65
    <xsl:value-of select="."/>
66
</xsl:template>
67
 
68
<xsl:template match="NOM_TAXON_VALIDE">
69
    <xsl:apply-templates select="NOM_TAXON" />
70
</xsl:template>
71
 
72
<xsl:template match="NOM_TAXON">
73
    <xsl:apply-templates select="NOM" />
74
</xsl:template>
75
 
76
<xsl:template match="NOM">
5 jpm 77
    <xsl:if test="not(contains(@type, ''))">
78
        <strong><xsl:value-of select="@type"/></strong>
79
    </xsl:if>
80
    <em><xsl:value-of select="."/></em>
2 jpm 81
    <xsl:if test="position() = last()">
82
        &#160;
83
        <xsl:value-of select="@auteur"/>
84
    </xsl:if>
85
</xsl:template>
86
 
5 jpm 87
</xsl:stylesheet>