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
<!-- Mettre méthode "xml" pour faire du xhtml -->
4
<xsl:output method="xml" version="1.0" standalone="yes" indent="yes" encoding="ISO-8859-1"/>
2 jpm 5
 
6
<xsl:template match="/">
5 jpm 7
    <h1>Liste des noms scientifiques trouvés</h1>
2 jpm 8
    <xsl:if test="not(/FICHE_LISTE_TAXONS/LISTE_TAXONS/NOM_TAXON)">
5 jpm 9
        <p class="eflore_avertissement">Il n'existe aucun nom scientifique correspondant au radical recherch&#233;.</p>
10
        <p class="eflore_avertissement">
11
            <!--Lien vers le site de test de Tela-Botanica-->
12
            <!--Cliquer <a href="http://test.tela-botanica.org/eflore" target="_top">ICI</a> pour retourner au formulaire principal de l'Index.-->
13
            <!--Lien vers le site officiel de Tela-Botanica-->
14
            Cliquer <a href="http://www.tela-botanica.org/eflore" onclick="history.back();return false;">ICI</a> pour retourner au formulaire principal de l'Index.
15
        </p>
2 jpm 16
    </xsl:if>
17
    <xsl:if test="boolean(/FICHE_LISTE_TAXONS/LISTE_TAXONS/NOM_TAXON)">
18
        <xsl:apply-templates select="FICHE_LISTE_TAXONS" />
19
    </xsl:if>
20
</xsl:template>
21
 
22
<xsl:template match="//FICHE_LISTE_TAXONS">
23
    <xsl:apply-templates select="//LISTE_TAXONS" />
24
</xsl:template>
25
 
26
<xsl:template match="LISTE_TAXONS">
5 jpm 27
    <h2 class="eflore_titre2">Cliquer sur un des noms pour afficher la fiche du nom retenu (correct) correspondante.</h2>
28
    <p><strong>Note :</strong> les noms retenus (corrects) apparaissent en gras dans cette liste.</p>
29
    <ul>
30
        <xsl:apply-templates select="NOM_TAXON" />
31
    </ul>
2 jpm 32
</xsl:template>
33
 
34
<xsl:template match="NOM_TAXON">
35
    <xsl:choose>
36
        <xsl:when test="@statut='1'">
37
            <li>
5 jpm 38
                <strong>
39
                <a>
2 jpm 40
                    <xsl:attribute name="style">text-decoration: none;</xsl:attribute>
41
                    <xsl:attribute name="href">transformer.php?xslt=identitetaxon.xsl&amp;servicexml=donneidentitestaxons.php&amp;numclass=1&amp;numnom=<xsl:value-of select="@numnom" /></xsl:attribute>
42
                    <xsl:apply-templates select="NOM" />
5 jpm 43
                </a>
44
                </strong>
2 jpm 45
            </li>
46
        </xsl:when>
47
        <xsl:otherwise>
48
            <li>
49
                <a>
50
                    <xsl:attribute name="style">text-decoration: none;</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="@numnom" /></xsl:attribute>
52
                    <xsl:apply-templates select="NOM" />
53
                </a>
54
            </li>
55
        </xsl:otherwise>
56
    </xsl:choose>
5 jpm 57
</xsl:template>
2 jpm 58
 
59
<xsl:template match="NOM">
60
        <xsl:value-of select="@type"/>
61
    &#160;
5 jpm 62
    <em>
2 jpm 63
        <xsl:value-of select="."/>
5 jpm 64
    </em>
2 jpm 65
    &#160;
66
    <xsl:value-of select="@auteur"/>
67
    &#160;
68
</xsl:template>
69
 
5 jpm 70
</xsl:stylesheet>