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" encoding="iso-8859-1" version="1.0" standalone="yes" indent="yes" />
4
 
5
<!-- DECLARATION DE VARIABLES-->
6
<!-- Variable "nom_url" récupérant le numéro nomenclatural du nom recherché.-->
7
<!-- Ce numéro est présent dans l'url appelant le service XML "donneidentitestaxons".-->
8
<xsl:variable name="nom_url" select="/FICHE_IDENTITES_TAXONS/@numnom" />
9
 
10
<!-- Variable "taxo_url" récupérant le numéro taxonomique du nom recherché,-->
11
<!-- donc présent dans l'url appelant le service XML "donneidentitestaxons".-->
12
<!-- Utilisé pour récupérer le nom vernaculaire séléctionné.-->
13
<xsl:variable name="taxo_url" select="/FICHE_IDENTITES_TAXONS/@numtaxo" />
14
 
15
<xsl:template match="/">
16
    <tr class="titlePage">
17
        <td>
18
            Identit&#233; du taxon
19
        </td>
20
    </tr>
21
 
22
    <xsl:apply-templates/>
23
</xsl:template>
24
 
25
<xsl:template match="FICHE_IDENTITES_TAXONS">
26
    <xsl:if test="not(boolean(/FICHE_IDENTITES_TAXONS/NOM_VALIDE)) and not(boolean(/FICHE_IDENTITES_TAXONS/LISTE_NOMS_VALIDES))">
27
        <tr class="insTitle1">
28
            <td>
29
                Nom retenu (correct)
30
            </td>
31
        </tr>
32
        <tr class="eflore_avertissement">
33
            <td align="center">
34
                Il n'existe aucun nom retenu (correct) pour ce taxon relativement à la classification courante.
35
            </td>
36
        </tr>
37
    </xsl:if>
38
    <xsl:if test="not(boolean($taxo_url))">
39
        <xsl:apply-templates select ="LISTE_SYNONYMES" mode="nom_url"/>
40
    </xsl:if>
41
    <xsl:apply-templates select ="NOM_VALIDE"/>
42
    <xsl:apply-templates select ="LISTE_NOMS_VALIDES"/>
43
    <xsl:apply-templates select ="LISTE_NOMS_TAXONS_PARENTS"/>
44
    <xsl:apply-templates select ="LISTE_SYNONYMES"/>
45
    <xsl:apply-templates select ="LISTE_NOMS_VERNACULAIRES"/>
46
</xsl:template>
47
 
48
<!-- Le template suivant permet de récupérer dans la liste des synonymes le nom sélectionné dans "listetaxons.xls"-->
49
<!-- car dans "listetaxons.xsl", l'url permettant d'obtenir la fiche d'identité du taxon utilise le n° nomenclatural-->
50
<!-- Ce n° nomenclatural apparait dans dans la balise "FICHE_IDENTITES_TAXONS" sous forme de l'attribut "numnom"-->
51
<xsl:template match="LISTE_SYNONYMES" mode="nom_url">
52
    <tr class="insTitle1">
53
        <td>
54
            Nom s&#233;lectionn&#233; pr&#233;c&#233;demment
55
            <xsl:text>  </xsl:text>
56
        </td>
57
    </tr>
58
    <tr class="texte_tb">
59
        <td>
60
            <li>
61
                <xsl:if test="/FICHE_IDENTITES_TAXONS/NOM_VALIDE/NOM_TAXON/@numnom = $nom_url">
62
                    <xsl:apply-templates select="/FICHE_IDENTITES_TAXONS/NOM_VALIDE/NOM_TAXON[@numnom]" />
63
                </xsl:if>
64
                <xsl:if test="NOM_TAXON/@numnom = $nom_url">
65
                    <xsl:apply-templates select="NOM_TAXON[@numnom = $nom_url]" />
66
                </xsl:if>
67
                <xsl:text>  </xsl:text>
68
                <xsl:text> [ </xsl:text>
69
                <span>
70
                    <xsl:attribute name="class">eflore_num_nomen</xsl:attribute>
71
                        <xsl:value-of select="$nom_url"/>
72
                </span>
73
                <xsl:text> - </xsl:text>
74
                <span>
75
                    <xsl:attribute name="class">eflore_num_taxo</xsl:attribute>
76
                        <xsl:value-of select="@numtaxo"/>
77
                </span>
78
                <xsl:text> ] </xsl:text>
79
            </li>
80
            <!--<xsl:if test="boolean($taxo_url)">
81
                <xsl:apply-templates select="/FICHE_IDENTITES_TAXONS/LISTE_NOMS_VERNACULAIRES/NOM_VERNACULAIRE[@numtaxo = $taxo_url]" />
82
            </xsl:if>-->
83
            <br />
84
        </td>
85
    </tr>
86
</xsl:template>
87
 
88
<xsl:template match="NOM_VALIDE">
89
    <xsl:apply-templates select="NOM_TAXON"  mode="nomRetenu"/>
90
    <tr class="insTitle1">
91
        <td>
92
            En image
93
        </td>
94
    </tr>
95
    <tr class="eflore_commentaire">
96
        <td>
97
            Cliquer sur le bouton "Recherche Google" pour afficher des images du taxon (résultat non garanti...).
98
        </td>
99
    </tr>
100
    <tr>
101
        <td class="texte_tb">
102
            <form method="get">
103
                <xsl:attribute name="action">http://images.google.com/images</xsl:attribute>
104
                <xsl:attribute name="target">_blank</xsl:attribute>
105
                <a>
106
                    <img>
107
                        <xsl:attribute name="src">http://www.google.com/logos/Logo_25wht.gif</xsl:attribute>
108
                        <xsl:attribute name="border">0</xsl:attribute>
109
                        <xsl:attribute name="alt">Google</xsl:attribute>
110
                        <xsl:attribute name="align">absmiddle</xsl:attribute>
111
                    </img>
112
                </a>
113
                <input>
114
                    <xsl:attribute name="type">text</xsl:attribute>
115
                    <xsl:attribute name="name">q</xsl:attribute>
116
                    <xsl:attribute name="size">25</xsl:attribute>
117
                    <xsl:attribute name="maxlength">255</xsl:attribute>
118
                    <xsl:attribute name="value">
119
                        <xsl:value-of  select="NOM_TAXON/NOM"/>
120
                    </xsl:attribute>
121
                </input>
122
                <input>
123
                    <xsl:attribute name="class">texte_tb</xsl:attribute>
124
                    <xsl:attribute name="type">submit</xsl:attribute>
125
                    <xsl:attribute name="name">btnG</xsl:attribute>
126
                    <xsl:attribute name="value">Recherche Google</xsl:attribute>
127
                </input>
128
                <input>
129
                    <xsl:attribute name="type">hidden</xsl:attribute>
130
                    <xsl:attribute name="name">ie</xsl:attribute>
131
                    <xsl:attribute name="value">ISO-8859-1</xsl:attribute>
132
                </input>
133
                <input>
134
                    <xsl:attribute name="type">hidden</xsl:attribute>
135
                    <xsl:attribute name="name">oe</xsl:attribute>
136
                    <xsl:attribute name="value">ISO-8859-1</xsl:attribute>
137
                </input>
138
                <input>
139
                    <xsl:attribute name="type">hidden</xsl:attribute>
140
                    <xsl:attribute name="name">hl</xsl:attribute>
141
                    <xsl:attribute name="value">fr</xsl:attribute>
142
                </input>
143
            </form>
144
        </td>
145
    </tr>
146
</xsl:template>
147
 
148
<xsl:template match="LISTE_NOMS_VALIDES">
149
    <tr class="insTitle1">
150
        <td>
151
            Noms valides
152
        </td>
153
    </tr>
154
    <tr class="texte_tb">
155
        <td>
156
            <ul>
157
                <xsl:apply-templates select="NOM_TAXON" />
158
            </ul>
159
        </td>
160
    </tr>
161
</xsl:template>
162
 
163
<xsl:template match="LISTE_NOMS_TAXONS_PARENTS">
164
    <tr class="insTitle1">
165
        <td>
166
            Niveaux taxinomiques supérieurs
167
        </td>
168
    </tr>
169
    <tr class="eflore_commentaire">
170
        <td>
171
            En cliquant sur (...)  situé aprés le niveau taxinomique vous obtiendrez la liste des taxons retenus (corrects) qu'il contient.
172
        </td>
173
    </tr>
174
    <tr class="texte_tb">
175
        <td>
176
            <ul>
177
                <xsl:apply-templates select="NOM_TAXON_PARENTS/NOM_TAXON" mode="parent" />
178
            </ul>
179
        </td>
180
    </tr>
181
</xsl:template>
182
 
183
<xsl:template match="LISTE_SYNONYMES">
184
    <tr class="insTitle1">
185
        <td>
186
            Synonymes
187
        </td>
188
    </tr>
189
    <tr class="eflore_commentaire">
190
        <td>
191
            Le symbole
192
            <img>
193
                <xsl:attribute name="name">imEx</xsl:attribute>
194
                <xsl:attribute name="src">Local/icons/openclose-plus.gif</xsl:attribute>
195
                <xsl:attribute name="border">0</xsl:attribute>
196
                <xsl:attribute name="width">9</xsl:attribute>
197
                <xsl:attribute name="height">9</xsl:attribute>
198
            </img>
199
            indique la présence d'une source bibliographique et/ou d'information sur la combinaison.
200
            <br/>
201
            Cliquer sur le symbole
202
            <img>
203
                <xsl:attribute name="name">imEx</xsl:attribute>
204
                <xsl:attribute name="src">Local/icons/openclose-plus.gif</xsl:attribute>
205
                <xsl:attribute name="border">0</xsl:attribute>
206
                <xsl:attribute name="width">9</xsl:attribute>
207
                <xsl:attribute name="height">9</xsl:attribute>
208
            </img>
209
            pour afficher ces informations complémentaires.
210
        </td>
211
    </tr>
212
 
213
    <!-- Affiches les synonymes nomenclaturaux s'il y en a.-->
214
    <xsl:if test="NOM_TAXON/@tsyn = 1 or NOM_TAXON/@tsyn = 'n'">
215
        <tr class="texte_tb">
216
            <td>
217
                <b>Synonymes nomenclaturaux</b>
218
            </td>
219
        </tr>
220
        <tr class="texte_tb">
221
            <td>
222
                <table border="0" width="100%" cellpading="0" cellspacing="0">
223
                    <xsl:apply-templates select="NOM_TAXON[@tsyn = 1 or @tsyn = 'n']" mode="biblio_tsyn"/>
224
                </table>
225
            </td>
226
        </tr>
227
    </xsl:if>
228
 
229
    <!-- Affiches les synonymes taxinomiques s'il y en a.-->
230
    <xsl:if test="NOM_TAXON/@tsyn = 2 or NOM_TAXON/@tsyn = 't'">
231
        <tr class="texte_tb">
232
            <td>
233
                <b>Synonymes taxinomiques</b>
234
            </td>
235
        </tr>
236
        <tr class="texte_tb">
237
            <td>
238
                <table border="0" width="100%" cellpading="0" cellspacing="0">
239
                    <xsl:apply-templates select="NOM_TAXON[@tsyn = 2 or @tsyn = 't']" mode="biblio_tsyn"/>
240
                </table>
241
            </td>
242
        </tr>
243
    </xsl:if>
244
 
245
    <!-- Affiches les synonymes de type inconnu s'il y en a.-->
246
    <xsl:if test="NOM_TAXON/@tsyn = 3 or NOM_TAXON/@tsyn = 'o'">
247
        <tr class="texte_tb">
248
            <td>
249
                <b>Synonymes de type inconnu</b>
250
            </td>
251
        </tr>
252
        <tr class="texte_tb">
253
            <td>
254
                <table border="0" width="100%" cellpading="0" cellspacing="0">
255
                    <xsl:apply-templates select="NOM_TAXON[@tsyn = 3 or @tsyn = 'o']" mode="biblio_tsyn"/>
256
                </table>
257
            </td>
258
        </tr>
259
    </xsl:if>
260
 
261
    <!-- Affiches les synonymes de type "inclus dans" s'il y en a.-->
262
    <xsl:if test="NOM_TAXON/@tsyn = 4 or NOM_TAXON/@tsyn = 'i'">
263
        <tr class="texte_tb">
264
            <td>
265
                <b>Synonymes de type "inclus dans"</b>
266
            </td>
267
        </tr>
268
        <tr class="texte_tb">
269
            <td>
270
                <table border="0" width="100%" cellpading="0" cellspacing="0">
271
                    <xsl:apply-templates select="NOM_TAXON[@tsyn = 4 or @tsyn = 'i']" mode="biblio_tsyn"/>
272
                </table>
273
            </td>
274
        </tr>
275
    </xsl:if>
276
 
277
    <!-- Affiches les synonymes de type "inclus dans" s'il y en a.-->
278
    <xsl:if test="NOM_TAXON/@tsyn = 5 or NOM_TAXON/@tsyn = 's'">
279
        <tr class="texte_tb">
280
            <td>
281
                <b>Synonymes de type "au sens de (sensu)"</b>
282
            </td>
283
        </tr>
284
        <tr class="texte_tb">
285
            <td>
286
                <table border="0" width="100%" cellpading="0" cellspacing="0">
287
                    <xsl:apply-templates select="NOM_TAXON[@tsyn = 5 or @tsyn = 's']" mode="biblio_tsyn"/>
288
                </table>
289
            </td>
290
        </tr>
291
    </xsl:if>
292
 
293
<!-- Affiches les synonymes de type "autonyme" s'il y en a.-->
294
    <xsl:if test="NOM_TAXON/@tsyn = 6 or NOM_TAXON/@tsyn = 'a'">
295
        <tr class="texte_tb">
296
            <td>
297
                <b>Synonymes de type "autonyme"</b>
298
            </td>
299
        </tr>
300
        <tr class="texte_tb">
301
            <td>
302
                <table border="0" width="100%" cellpading="0" cellspacing="0">
303
                    <xsl:apply-templates select="NOM_TAXON[@tsyn = 6 or @tsyn = 'a']" mode="biblio_tsyn"/>
304
                </table>
305
            </td>
306
        </tr>
307
    </xsl:if>
308
 
309
<!-- Affiches les synonymes de type "antonyme" s'il y en a.-->
310
    <xsl:if test="NOM_TAXON/@tsyn = 7 or NOM_TAXON/@tsyn = 'an'">
311
        <tr class="texte_tb">
312
            <td>
313
                <b>Synonymes de type "antonyme"</b>
314
            </td>
315
        </tr>
316
        <tr class="texte_tb">
317
            <td>
318
                <table border="0" width="100%" cellpading="0" cellspacing="0">
319
                    <xsl:apply-templates select="NOM_TAXON[@tsyn = 7 or @tsyn = 'an']" mode="biblio_tsyn"/>
320
                </table>
321
            </td>
322
        </tr>
323
    </xsl:if>
324
 
325
<!-- Affiches les synonymes de type "pseudonyme" s'il y en a.-->
326
    <xsl:if test="NOM_TAXON/@tsyn = 8 or NOM_TAXON/@tsyn = 'p'">
327
        <tr class="texte_tb">
328
            <td>
329
                <b>Synonymes de type "pseudonyme"</b>
330
            </td>
331
        </tr>
332
        <tr class="texte_tb">
333
            <td>
334
                <table border="0" width="100%" cellpading="0" cellspacing="0">
335
                    <xsl:apply-templates select="NOM_TAXON[@tsyn = 8 or @tsyn = 'p']" mode="biblio_tsyn"/>
336
                </table>
337
            </td>
338
        </tr>
339
    </xsl:if>
340
 
341
<!-- Affiches les synonymes de type "variant orthographique" s'il y en a.-->
342
    <xsl:if test="NOM_TAXON/@tsyn = 9 or NOM_TAXON/@tsyn = 'vo'">
343
        <tr class="texte_tb">
344
            <td>
345
                <b>Synonymes de type "variant orthographique"</b>
346
            </td>
347
        </tr>
348
        <tr class="texte_tb">
349
            <td>
350
                <table border="0" width="100%" cellpading="0" cellspacing="0">
351
                    <xsl:apply-templates select="NOM_TAXON[@tsyn = 9 or @tsyn = 'vo']" mode="biblio_tsyn"/>
352
                </table>
353
            </td>
354
        </tr>
355
    </xsl:if>
356
 
357
<!-- Affiches les synonymes de type "isonyme" s'il y en a.-->
358
    <xsl:if test="NOM_TAXON/@tsyn = 10 or NOM_TAXON/@tsyn = 'is'">
359
        <tr class="texte_tb">
360
            <td>
361
                <b>Synonymes de type "isonyme"</b>
362
            </td>
363
        </tr>
364
        <tr class="texte_tb">
365
            <td>
366
                <table border="0" width="100%" cellpading="0" cellspacing="0">
367
                    <xsl:apply-templates select="NOM_TAXON[@tsyn = 10 or @tsyn = 'is']" mode="biblio_tsyn"/>
368
                </table>
369
            </td>
370
        </tr>
371
    </xsl:if>
372
</xsl:template>
373
 
374
<xsl:template match="LISTE_NOMS_VERNACULAIRES">
375
    <tr class="insTitle1">
376
        <td>
377
            Noms vernaculaires
378
        </td>
379
    </tr>
380
    <tr class="texte_tb">
381
        <td>
382
            <table border="0" width="*" cellpading="0" cellspacing="0">
383
                <tr class="eflore_commentaire" >
384
                    <td width="50" align="left">
385
                        Langue
386
                    </td>
387
                    <td width="30" align="left">
388
                        Pays
389
                    </td>
390
                    <td width="220" align="left">
391
                        Nom
392
                    </td>
393
                    <td width="150">
394
                        Emploi
395
                    </td>
396
                    <td width="50">
397
                        Genre
398
                    </td>
399
                    <td width="50">
400
                        Nombre
401
                    </td>
402
                </tr>
403
                <xsl:apply-templates select="NOM_VERNACULAIRE" />
404
            </table>
405
        </td>
406
    </tr>
407
</xsl:template>
408
 
409
<xsl:template match="NOM_TAXON">
410
    <xsl:apply-templates select="NOM" />
411
</xsl:template>
412
 
413
<xsl:template match="NOM_TAXON" mode="nomRetenu">
414
    <tr class="insTitle1">
415
        <td>
416
            Nom retenu (correct) correspondant
417
            <xsl:text>  </xsl:text>
418
            <!--<a href="http://test.tela-botanica.org/tmp/pdf.php" target="_blank"><img src="Local/icons/pdf.gif" border="0"></img></a>-->
419
        </td>
420
    </tr>
421
    <tr class="texte_tb">
422
        <td>
423
            <li>
424
                <b>
425
                    <xsl:apply-templates select="NOM" />
426
                </b>
427
                <xsl:apply-templates select="BIBLIOGRAPHIE" />
428
                <xsl:apply-templates select="INFO_COMBINAISON" />
429
                <xsl:text>  </xsl:text>
430
                <xsl:text> [ </xsl:text>
431
                <span>
432
                    <xsl:attribute name="class">eflore_num_nomen</xsl:attribute>
433
                        <xsl:value-of select="@numnom"/>
434
                </span>
435
                <xsl:text> - </xsl:text>
436
                <span>
437
                    <xsl:attribute name="class">eflore_num_taxo</xsl:attribute>
438
                        <xsl:value-of select="/FICHE_IDENTITES_TAXONS/NOM_VALIDE/@numtaxo"/>
439
                 </span>
440
                 <xsl:text> ] </xsl:text>
441
            </li>
442
            <br />
443
        </td>
444
    </tr>
445
</xsl:template>
446
 
447
<xsl:template match="NOM_TAXON" mode="biblio_tsyn">
448
    <tr class="texte_tb">
449
    <td width="20" height="15" >
450
        <br/>
451
    </td>
452
    <td align="left">
453
    <div>
454
        <xsl:attribute name="id">el<xsl:value-of select="position()"/>
455
            <xsl:if test="@tsyn = 1 or @tsyn = 'n'">TS1Parent</xsl:if>
456
            <xsl:if test="@tsyn = 2 or @tsyn = 't'">TS2Parent</xsl:if>
457
            <xsl:if test="@tsyn = 3 or @tsyn = 'o'">TS3Parent</xsl:if>
458
            <xsl:if test="@tsyn = 4 or @tsyn = 'i'">TS4Parent</xsl:if>
459
            <xsl:if test="@tsyn = 5 or @tsyn = 's'">TS5Parent</xsl:if>
460
            <xsl:if test="@tsyn = 6 or @tsyn = 'a'">TS6Parent</xsl:if>
461
            <xsl:if test="@tsyn = 7 or @tsyn = 'an'">TS7Parent</xsl:if>
462
            <xsl:if test="@tsyn = 8 or @tsyn = 'p'">TS8Parent</xsl:if>
463
            <xsl:if test="@tsyn = 9 or @tsyn = 'vo'">TS9Parent</xsl:if>
464
            <xsl:if test="@tsyn = 10 or @tsyn = 'is'">TS10Parent</xsl:if>
465
        </xsl:attribute>
466
        <xsl:attribute name="class">parent</xsl:attribute>
467
        <xsl:if test="@tsyn = 1 or @tsyn = 'n'">&#8801;</xsl:if>
468
        <xsl:if test="@tsyn = 2 or @tsyn = 't'">&#061;</xsl:if>
469
        &#160;
470
        <a>
471
            <xsl:attribute name="class">texte_tb</xsl:attribute>
472
            <xsl:attribute name="href">#</xsl:attribute>
473
            <xsl:attribute name="onclick">
474
                <xsl:text>expandBase('el</xsl:text>
475
                <xsl:value-of select="position()"/>
476
                <xsl:if test="@tsyn = 1 or @tsyn = 'n'"><xsl:text>TS1</xsl:text></xsl:if>
477
                <xsl:if test="@tsyn = 2 or @tsyn = 't'"><xsl:text>TS2</xsl:text></xsl:if>
478
                <xsl:if test="@tsyn = 3 or @tsyn = 'o'"><xsl:text>TS3</xsl:text></xsl:if>
479
                <xsl:if test="@tsyn = 4 or @tsyn = 'i'"><xsl:text>TS4</xsl:text></xsl:if>
480
                <xsl:if test="@tsyn = 5 or @tsyn = 's'"><xsl:text>TS5</xsl:text></xsl:if>
481
                <xsl:if test="@tsyn = 6 or @tsyn = 'a'"><xsl:text>TS6</xsl:text></xsl:if>
482
                <xsl:if test="@tsyn = 7 or @tsyn = 'an'"><xsl:text>TS7</xsl:text></xsl:if>
483
                <xsl:if test="@tsyn = 8 or @tsyn = 'p'"><xsl:text>TS8</xsl:text></xsl:if>
484
                <xsl:if test="@tsyn = 9 or @tsyn = 'vo'"><xsl:text>TS9</xsl:text></xsl:if>
485
                <xsl:if test="@tsyn = 10 or @tsyn = 'is'"><xsl:text>TS10</xsl:text></xsl:if>
486
                <xsl:text>',true); return false;</xsl:text>
487
            </xsl:attribute>
488
            <img>
489
                <xsl:attribute name="name">imEx</xsl:attribute>
490
                <xsl:attribute name="id">
491
                    <xsl:text>el</xsl:text>
492
                    <xsl:value-of select="position()"/>
493
                    <xsl:if test="@tsyn = 1 or @tsyn = 'n'"><xsl:text>TS1</xsl:text></xsl:if>
494
                    <xsl:if test="@tsyn = 2 or @tsyn = 't'"><xsl:text>TS2</xsl:text></xsl:if>
495
                    <xsl:if test="@tsyn = 3 or @tsyn = 'o'"><xsl:text>TS3</xsl:text></xsl:if>
496
                    <xsl:if test="@tsyn = 4 or @tsyn = 'i'"><xsl:text>TS4</xsl:text></xsl:if>
497
                    <xsl:if test="@tsyn = 5 or @tsyn = 's'"><xsl:text>TS5</xsl:text></xsl:if>
498
                    <xsl:if test="@tsyn = 6 or @tsyn = 'a'"><xsl:text>TS6</xsl:text></xsl:if>
499
                    <xsl:if test="@tsyn = 7 or @tsyn = 'an'"><xsl:text>TS7</xsl:text></xsl:if>
500
                    <xsl:if test="@tsyn = 8 or @tsyn = 'p'"><xsl:text>TS8</xsl:text></xsl:if>
501
                    <xsl:if test="@tsyn = 9 or @tsyn = 'vo'"><xsl:text>TS9</xsl:text></xsl:if>
502
                    <xsl:if test="@tsyn = 10 or @tsyn = 'is'"><xsl:text>TS10</xsl:text></xsl:if>
503
                    <xsl:text>Img</xsl:text>
504
                </xsl:attribute>
505
                <xsl:attribute name="src">Local/icons/openclose-plus.gif</xsl:attribute>
506
                <xsl:attribute name="border">0</xsl:attribute>
507
                <xsl:attribute name="width">9</xsl:attribute>
508
                <xsl:attribute name="height">9</xsl:attribute>
509
                <xsl:attribute name="alt">Voir informations complémentaires</xsl:attribute>
510
                <xsl:attribute name="title">Voir informations complémentaires</xsl:attribute>
511
            </img>
512
                <!-- Utilisation des plier-déplier. Élément parent.-->
513
        </a>
514
        <xsl:apply-templates select="NOM" />
515
    </div>
516
    <!-- Utilisation des plier-déplier. Élément enfant.-->
517
    <div>
518
        <xsl:attribute name="id">
519
            <xsl:text>el</xsl:text>
520
            <xsl:value-of select="position()"/>
521
            <xsl:if test="@tsyn = 1 or @tsyn = 'n'"><xsl:text>TS1</xsl:text></xsl:if>
522
            <xsl:if test="@tsyn = 2 or @tsyn = 't'"><xsl:text>TS2</xsl:text></xsl:if>
523
            <xsl:if test="@tsyn = 3 or @tsyn = 'o'"><xsl:text>TS3</xsl:text></xsl:if>
524
            <xsl:if test="@tsyn = 4 or @tsyn = 'i'"><xsl:text>TS4</xsl:text></xsl:if>
525
            <xsl:if test="@tsyn = 5 or @tsyn = 's'"><xsl:text>TS5</xsl:text></xsl:if>
526
            <xsl:if test="@tsyn = 6 or @tsyn = 'a'"><xsl:text>TS6</xsl:text></xsl:if>
527
            <xsl:if test="@tsyn = 7 or @tsyn = 'an'"><xsl:text>TS7</xsl:text></xsl:if>
528
            <xsl:if test="@tsyn = 8 or @tsyn = 'p'"><xsl:text>TS8</xsl:text></xsl:if>
529
            <xsl:if test="@tsyn = 9 or @tsyn = 'vo'"><xsl:text>TS9</xsl:text></xsl:if>
530
            <xsl:if test="@tsyn = 10 or @tsyn = 'is'"><xsl:text>TS10</xsl:text></xsl:if>
531
            <xsl:text>Child</xsl:text>
532
        </xsl:attribute>
533
        <xsl:attribute name="class">child</xsl:attribute>
534
        <xsl:attribute name="style">margin-bottom: 5px;</xsl:attribute>
535
 
536
    <!-- Cas où le nom comporte des infos de biblio ou sur la combinaison -->
537
    <xsl:if test="boolean(BIBLIOGRAPHIE) or boolean(INFO_COMBINAISON)">
538
        <xsl:apply-templates select="BIBLIOGRAPHIE" />
539
        <xsl:apply-templates select="INFO_COMBINAISON" />
540
        <xsl:text>  </xsl:text>
541
        <xsl:text> [ </xsl:text>
542
        <span>
543
            <xsl:attribute name="class">eflore_num_nomen</xsl:attribute>
544
                <xsl:value-of select="@numnom"/>
545
        </span>
546
        <xsl:text> - </xsl:text>
547
        <span>
548
            <xsl:attribute name="class">eflore_num_taxo</xsl:attribute>
549
                <xsl:value-of select="../@numtaxo"/>
550
        </span>
551
        <xsl:text> ] </xsl:text>
552
    </xsl:if>
553
 
554
    <!-- Cas où le nom comporte aucune info de biblio ou sur la combinaison -->
555
    <xsl:if test="not(BIBLIOGRAPHIE) and not (INFO_COMBINAISON)">
556
            <xsl:text>  </xsl:text>
557
            <xsl:text> [ </xsl:text>
558
            <span>
559
                <xsl:attribute name="class">eflore_num_nomen</xsl:attribute>
560
                    <xsl:value-of select="@numnom"/>
561
            </span>
562
            <xsl:text> - </xsl:text>
563
            <span>
564
                <xsl:attribute name="class">eflore_num_taxo</xsl:attribute>
565
                    <xsl:value-of select="../@numtaxo"/>
566
            </span>
567
            <xsl:text> ] </xsl:text>
568
    </xsl:if>
569
 
570
    </div>
571
    </td>
572
    </tr>
573
</xsl:template>
574
 
575
<xsl:template match="NOM_TAXON" mode="parent">
576
    <li>
577
        <b>
578
            <xsl:apply-templates select="NOM" />
579
        </b>
580
        <a>
581
            <xsl:attribute name="style">text-decoration: none;</xsl:attribute>
582
            <xsl:attribute name="href">transformer.php?xslt=classificationtaxons.xsl&amp;paramxslt=<xsl:value-of select="position()+2"/>&amp;servicexml=donneclassificationtaxons.php&amp;profondeur=<xsl:value-of select="position()+2"/>&amp;numclass=1&amp;numnom=<xsl:value-of select="@numnom" /></xsl:attribute>
583
            (...)
584
        </a>
585
    </li>
586
</xsl:template>
587
 
588
<xsl:template match="NOM">
589
    &#160;
590
    <b>
591
        <xsl:value-of select="@type"/>
592
    </b>
593
    <i>
594
        <xsl:value-of select="."/>
595
    </i>
596
    &#160;
597
    <xsl:value-of select="@auteur"/>
598
</xsl:template>
599
 
600
<xsl:template match="BIBLIOGRAPHIE ">
601
    &#160;
602
    <xsl:value-of select="@annee"/>
603
    &#160;
604
    <xsl:value-of select="."/>
605
</xsl:template>
606
 
607
<xsl:template match="INFO_COMBINAISON ">
608
    &#160;
609
    <xsl:value-of select="."/>
610
</xsl:template>
611
 
612
<xsl:template match="NOM_VERNACULAIRE">
613
    <tr class="texte_tb" >
614
        <td width="50" align="left">
615
            <li>
616
                <xsl:value-of select="@langue"/>
617
            </li>
618
        </td>
619
        <td width="30" align="left">
620
            <xsl:value-of select="@pays"/>
621
        </td>
622
        <td width="220" >
623
        <xsl:if test="@emploi='1'">
624
            <b>
625
                <xsl:value-of select="."/>
626
            </b>
627
        </xsl:if>
628
        <xsl:if test="@emploi='0' or @emploi='2' or @emploi='3'">
629
            <xsl:value-of select="."/>
630
        </xsl:if>
631
        </td>
632
        <td width="150" >
633
                <xsl:choose>
634
                    <xsl:when test="@emploi='0'">
635
                        &#032;
636
                    </xsl:when>
637
                    <xsl:when test="@emploi='1'">
638
                        recommandé ou typique
639
                    </xsl:when>
640
                    <xsl:when test="@emploi='2'">
641
                        secondaire ou régional
642
                    </xsl:when>
643
                    <xsl:when test="@emploi='3'">
644
                        peu usité et à éviter
645
                    </xsl:when>
646
                </xsl:choose>
647
        </td>
648
        <td width="50" align="center">
649
            <xsl:choose>
650
                <xsl:when test="@genre='0'">
651
                    &#032;
652
                </xsl:when>
653
                <xsl:when test="@genre='1'">
654
                    masculin
655
                </xsl:when>
656
                <xsl:when test="@genre='2'">
657
                    féminin
658
                </xsl:when>
659
                <xsl:when test="@genre='3'">
660
                    neutre
661
                </xsl:when>
662
                <xsl:when test="@genre='4'">
663
                    duel
664
                </xsl:when>
665
            </xsl:choose>
666
        </td>
667
        <td width="50" align="center">
668
            <xsl:choose>
669
                <xsl:when test="@nombre='0'">
670
                    &#032;
671
                </xsl:when>
672
                <xsl:when test="@nombre='1'">
673
                    singulier
674
                </xsl:when>
675
                <xsl:when test="@nombre='2'">
676
                    pluriel
677
                </xsl:when>
678
                <xsl:when test="@nombre='3'">
679
                    duel
680
                </xsl:when>
681
            </xsl:choose>
682
        </td>
683
    </tr>
684
</xsl:template>
685
 
686
</xsl:stylesheet>