Subversion Repositories eFlore/Archives.eflore-consultation-v1

Rev

Go to most recent revision | Details | 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">
3
<xsl:output method="html" version="1.0" standalone="yes" indent="yes" encoding="iso-8859-1"/>
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">
10
    <tr class="titlePage">
11
        <td >
12
            Liste des noms vernaculaires trouvés
13
        </td>
14
    </tr>
15
    <xsl:if test="not(LISTE_NOMS_VERNACULAIRES/ASSOCIATION_NOM_VERNACULAIRE_TAXON)">
16
        <tr>
17
            <td>
18
                <br/>
19
            </td>
20
        </tr>
21
        <tr class="eflore_avertissement">
22
            <td align="center">
23
                Il n'existe aucun nom vernaculaire correspondant au radical recherch&#233;.
24
            </td>
25
        </tr>
26
        <tr>
27
            <td>
28
                <br/>
29
            </td>
30
        </tr>
31
        <tr class="eflore_avertissement">
32
            <td align="center">
33
                <!--Lien vers le site de test de Tela-Botanica-->
34
                <!--Cliquer <a href="http://test.tela-botanica.org/eflore" target="_top">ICI</a> pour retourner au formulaire principal de l'Index.-->
35
                <!--Lien vers le site officiel de Tela-Botanica-->
36
                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.
37
            </td>
38
        </tr>
39
        <tr>
40
            <td>
41
                <br/>
42
                <br/>
43
            </td>
44
        </tr>
45
    </xsl:if>
46
    <xsl:if test="boolean(LISTE_NOMS_VERNACULAIRES/ASSOCIATION_NOM_VERNACULAIRE_TAXON)">
47
        <xsl:apply-templates select="LISTE_NOMS_VERNACULAIRES"/>
48
    </xsl:if>
49
</xsl:template>
50
 
51
<xsl:template match="LISTE_NOMS_VERNACULAIRES">
52
    <tr class="insTitle1">
53
        <td>
54
            Cliquer sur un des noms vernaculaires pour afficher la fiche du taxon correspondante.
55
        </td>
56
    </tr>
57
    <tr>
58
        <td>
59
            &#032;
60
        </td>
61
    </tr>
62
    <tr class="texte_tb">
63
        <td>
64
            <table border="0" width="*" cellpading="0" cellspacing="0">
65
                <tr class="eflore_commentaire" >
66
                    <td width="70" align="left">
67
                        Langue / Pays
68
                    </td>
69
                    <td align="center" width="130">
70
                        Nom vernaculaire
71
                    </td>
72
                    <td align="left" width="*">
73
                        Nom latin du taxon correspondant
74
                    </td>
75
                </tr>
76
                <xsl:apply-templates select="ASSOCIATION_NOM_VERNACULAIRE_TAXON"/>
77
            </table>
78
        </td>
79
    </tr>
80
</xsl:template>
81
 
82
<xsl:template match="ASSOCIATION_NOM_VERNACULAIRE_TAXON">
83
    <tr class="texte_tb" >
84
        <td width="70">
85
            <xsl:attribute name="style">text-align : left;</xsl:attribute>
86
                <li>
87
                    <xsl:value-of select="NOM_VERNACULAIRE/@langue"/>
88
                    <xsl:text> / </xsl:text>
89
                    <xsl:value-of select="NOM_VERNACULAIRE/@pays"/>
90
                    <xsl:text> : </xsl:text>
91
                </li>
92
        </td>
93
        <td width="130" align="left" >
94
            <xsl:choose>
95
            <xsl:when test="boolean(NOM_TAXON_VALIDE/NOM_TAXON)">
96
                <a>
97
                <xsl:attribute name="style">text-decoration: none; font-weight: bolder;</xsl:attribute>
98
                <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>
99
                    <xsl:apply-templates select="NOM_VERNACULAIRE"/>
100
                </a>
101
            </xsl:when>
102
            <xsl:when test="not(boolean(NOM_TAXON_VALIDE/NOM_TAXON))">
103
                <xsl:apply-templates select="NOM_VERNACULAIRE"/>
104
            </xsl:when>
105
            </xsl:choose>
106
        </td>
107
        <td width="*">
108
            <xsl:attribute name="style">text-align : left;</xsl:attribute>
109
                <xsl:apply-templates select="./NOM_TAXON_VALIDE"/>
110
        </td>
111
    </tr>
112
</xsl:template>
113
 
114
<xsl:template match="NOM_VERNACULAIRE">
115
    <xsl:value-of select="."/>
116
</xsl:template>
117
 
118
<xsl:template match="NOM_TAXON_VALIDE">
119
    <xsl:apply-templates select="NOM_TAXON" />
120
</xsl:template>
121
 
122
<xsl:template match="NOM_TAXON">
123
    <xsl:apply-templates select="NOM" />
124
</xsl:template>
125
 
126
<xsl:template match="NOM">
127
    <b>
128
        <xsl:value-of select="@type"/>
129
    </b>
130
    <i>
131
        <xsl:value-of select="."/>
132
    </i>
133
 
134
    <xsl:if test="position() = last()">
135
        &#160;
136
        <xsl:value-of select="@auteur"/>
137
    </xsl:if>
138
</xsl:template>
139
 
140
</xsl:stylesheet>