Subversion Repositories eFlore/Archives.eflore-consultation-v1

Rev

Rev 2 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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