Bonjour,

Voici Mon code :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
 
<xsl:when test="$PARAM=1">
            <xsl:if test="LabelType=0 or LabelType=1 or LabelType=2 or LabelType=3 or LabelType=4 or LabelType=5 or LabelType=9 or LabelType=11 or LabelType=99 or LabelType=98 or LabelType=15 or LabelType=14" >
              <div class="sst">
                <table style="font-size: 12px">
                  <tr>
                    <td>
                      <xsl:choose>
                        <xsl:when test="LabelType=1">
                          <img src="Images/Atcd/stethoscope-icon.png" alt="Consultation" />
                          Consultation
                        </xsl:when>
                        <xsl:when test="LabelType=2">
                          <img src="Images/Atcd/Pen-icon.png" alt="Certificat" />
                          Certificat
                        </xsl:when>
                        <xsl:when test="LabelType=3">
                          <img src="Images/Atcd/Pen-3-icon.png" alt="Demande" />
                          Demande
                        </xsl:when>
                        <xsl:when test="LabelType=4">
                          <img src="Images/Atcd/pill-icon.png" alt="Prescription" />
                          Prescription
                        </xsl:when>
                        <xsl:when test="LabelType=5">
                          <img src="Images/options-icon2.png" alt="Formulaire" />
                          Formulaire
                        </xsl:when>
                        <xsl:when test="LabelType=8">
                          <img src="Images/Atcd/Bio-hazard-icon.png" alt="Vaccin" />
                          Vaccin
                        </xsl:when>
                        <xsl:when test="LabelType=9">
                          <img src="Images/Atcd/Coins-icon.png" alt="Reglement" />
                          Reglement
                        </xsl:when>
                        <xsl:when test="LabelType=10">
                          <img src="Images/Atcd/Paper-Clip-icon.png" alt="Binary" />
                          Binary
                        </xsl:when>
                        <xsl:when test="LabelType=11">
                          <img src="Images/Atcd/BPink.png" alt="Grossesse" />
                          Grossesse
                        </xsl:when>
                        <xsl:when test="LabelType=15">
                          <img src="Images/Atcd/stethoscope-icon.png" alt="Planche" />
                          Planche
                        </xsl:when>
                        <xsl:when test="LabelType=14">
                          <img src="Images/Atcd/stethoscope-icon.png" alt="Audio" />
                          Audio
                        </xsl:when>
                        <xsl:when test="LabelType=99">
                          <img src="Images/Atcd/twitter-bulb-icon.png" alt="Conclusion" />
                          Conclusion
                        </xsl:when>
                        <xsl:when test="LabelType=98">
                          <img src="Images/Atcd/You-make-me-hurt-icon.png" alt="A.T." />
                          A.T.
                        </xsl:when>
                        <xsl:otherwise>
                          <xsl:if test="LabelType != 0">
                            <img src="Images/Atcd/Medical-invoice-information-icon.png" alt="Inconnu" />
                            Inconnu <xsl:value-of select="LabelType"/>
                          </xsl:if>
                        </xsl:otherwise>
                      </xsl:choose>
                    </td>
                  </tr>
                </table>
              </div>
              <xsl:if test="Texte1">
                <xsl:if test="Title1">
                  <div class="sst2">
                    <xsl:value-of disable-output-escaping="yes"  select="Title1"/>
                  </div>
                </xsl:if>
                <div class="stx">
                  <xsl:value-of disable-output-escaping="yes"  select="Texte1"/>
                </div>
              </xsl:if>
              <xsl:if test="LabelType!=5 and LabelType!=15 and LabelType!=14">
                <xsl:if test="Texte2">
                  <xsl:if test="Title2">
                    <div class="sst2">
                      <xsl:value-of disable-output-escaping="yes"  select="Title2"/>
                    </div>
                  </xsl:if>
                  <div class="stx">
                    <xsl:value-of disable-output-escaping="yes"  select="Texte2"/>
                  </div>
                </xsl:if>
                </xsl:if>
              <xsl:if test="LabelType!=15 and LabelType!=14">
                <xsl:if test="Texte3">
                  <xsl:if test="Title3">
                    <div class="sst2">
                      <xsl:value-of disable-output-escaping="yes"  select="Title3"/>
                    </div>
                  </xsl:if>
                  <div class="stx">
                    <xsl:value-of disable-output-escaping="yes"  select="Texte3"/>
                  </div>
                </xsl:if>
                </xsl:if>
              <xsl:if test="LabelType!=15 and LabelType!=14">
                <xsl:if test="Texte4">
                  <xsl:if test="Title4">
                    <div class="sst2">
                      <xsl:value-of disable-output-escaping="yes"  select="Title4"/>
                    </div>
                  </xsl:if>
                  <div class="stx">
                    <xsl:value-of disable-output-escaping="yes"  select="Texte4"/>
                  </div>
                </xsl:if>
                </xsl:if>
              <xsl:apply-templates select="Suivis">
                <xsl:with-param name="viewtype" select="$viewtype" />
              </xsl:apply-templates>
            </xsl:if>
          </xsl:when>
Je parcours cette boucle plusieurs fois ce qui génère beaucoup de div suivant le nombre d'infos que j'ai dans mon xml or (comme je l'avais déjà posté dans un autre topic) tout ce qui est contenu dans les class "stx" est du contenu HTML qui n'est pas interprété par Firefox alors que ça marche sur les autres navigateurs (disable output escaping ne marche pas sur ce navigateur donc). Pouvez vous m'aider à trouver une solution en javascript ? avec InnerHTML ça peut marcher mais je n'ai réussi à le faire marcher que sur la première div et non sur toutes les div je ne vois pas comment je peux faire pour que ça le fasse sur tout le fichier (sachant que je trouvais les div avec document.getElementById et que je ne peux pas trouver plusieurs fois la même id dans des div différentes). Aidez moi svp j'ai plus que ce problème pour finaliser un projet je suis sur ça depuis une semaine au moins merci d'avance