bonjour,
j'ai un problème avec mon script, il fonctionne trés bien ave Firefox chrome opera Safari, mai avec IE j'ai un message disant qu'un objet n'est pas trouvé.
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
<xsl:variable name="docu" select="concat('./doc/',root/program/name,'_doc.xml')"></xsl:variable> 
<xsl:variable name="vide" select="'./doc/vide.xml'"></xsl:variable> 
<xsl:variable name="present" select="boolean(document($docu))" />
<xsl:variable name="cmt" >
    <xsl:choose> 
       <xsl:when test="$present" >  
           <xsl:value-of select="$docu"/>
       </xsl:when>
       <xsl:otherwise>
           <xsl:value-of select="$vide"/>
       </xsl:otherwise>
   </xsl:choose>
</xsl:variable>
 
 
<div class="floatBoxes">
<h2><xsl:text>Commentaires : </xsl:text></h2>
<xsl:apply-templates select="document($cmt)/comment"/>
</div>
 
</div>
</body>
</html>
</xsl:template>
 
 
<xsl:template match="comment" >
<pre>
    <xsl:apply-templates select="doc"/>
</pre>
</xsl:template>
 
 
</xsl:stylesheet>
merci pour votre aide.