Bonjour,

voilà le xml :
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
 
<?xml version="1.0" encoding="utf-8"?>
<zoom>
	<image src="lien_vad.swf" x="390" y="320" scale="90" zoomable="false" ontop="true" />
	<image src="acheter_en_ligne.swf" x="280" y="280" scale="90" zoomable="false" ontop="true" />
	<image src="zoom_08_01_01.jpg" x="260" y="98" scale="80" zoomable="false" ontop="true" />
	<image src="hd_ready.jpg" x="567" y="116" scale="80" zoomable="false" ontop="true" />
	<image src="jecommande.swf" x="385" y="423" scale="100" zoomable="false" ontop="true" />
	<image src="prix_bombe.swf" x="568" y="23" scale="100" zoomable="false" ontop="false" param1="1290" />
	<image src="zoom_08_01.jpg" x="0" y="0" scale="50" zoomable="true" ontop="false" />
	<text x="255" y="52" width="310" height="45" style="texte" borderColor="" backgroundColor=""><![CDATA[Résolution 1366 x 768, puissance du son 2 x 15W,<br>entrées : HDMI, S-vidéo, RCA, 2 péritel, progressive Scan, Dolby Surround.]]></text>
	<text x="255" y="16" width="310" height="36" style="titre" borderColor="" backgroundColor=""><![CDATA[LCD PHILIPS 37PF3321]]></text>
	<text x="360" y="243" width="190" height="20" style="rouge_jaune" color="#EC008C" border="true" borderColor="#EC008C" backgroundColor="#FFFFFF"><![CDATA[* GRAND ÉCRAN : 94 CM ! *]]></text>
	<text x="300" y="200" width="311" height="36" style="rouge_jaune" color="#EC008C" border="true" borderColor="#EC008C" backgroundColor="#FFFFFF"><![CDATA[* OFFRE SPÉCIALE TV PAYEZ VOS ACHATS<br>EN 10 FOIS SANS FRAIS ! *]]></text>
</zoom>

j'ai déjà fais ça et comme je débute un peu je ne suis pas sûr que ce soit la meilleure notation :

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
 
<?xml version="1.0" encoding="ISO-8859-1"?><!-- DWXMLSource="zoom.xml" -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" encoding="ISO-8859-1"/>
    <xsl:template match="/">
        <html>
            <head><title>zoom</title></head>
            <body>
                <xsl:apply-templates/>
            </body>
        </html>
    </xsl:template>    
       <xsl:template match="zoom">
	<xsl:for-each select="image">
	         	<xsl:choose> 
                        		<xsl:when test="substring-after(@src,'.') = 'swf'"> 
                        		<div style="position: absolute; left:{@x}; top: {@y};">
                        		<object type="application/x-shockwave-flash" data="{@src}" height="{@scale}%" width="{@scale}%">
			<PARAM NAME="movie" VALUE="{@src}" />
			</object>	            
			</div>
			</xsl:when>
			<xsl:otherwise>
        			<div style="position: absolute; left:{@x}; top: {@y};">
			<img src="{@src}"></img>
			</div>
			</xsl:otherwise>
		</xsl:choose>				
	</xsl:for-each>		
    </xsl:template>
</xsl:stylesheet>

mon problème est d'appliquer à la volée le paramètre scale...
pour les swf c'est possible mais pour les images je ne vois pas comment faire.


Merci d'avance pour vos réponses .