Salut,

Je suis en train d'ecrire un fichier xsl avec des fonctions svg et j'ai besoin de décrémenter une variable.
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
 
<xsl:template match="Boitierdepart">
		<svg xmlns="http://www.w3.org/2000/svg">
			<xsl:variable name="xcon">415 </xsl:variable> 
			<xsl:variable name="ycon">250 </xsl:variable>
			<xsl:for-each select="//Connecteurout">
				<rect x="{$xcon}"  y="{$ycon}" height="5" width="5" style="stroke: black; fill: white"/>
				<text x="{$xcon+20}"  y="{$ycon+6}" style=" fill:black; stroke:none;font-size:8pt"  text-anchor="middle">
					<xsl:value-of select="@nom"/>
				</text>
			<xsl:variable name="ycon" select="{$ycon-10}"/>
			</xsl:for-each>
 
		</svg>
</xsl:template>
mais ça marche pas.

Quelqu'un pourrait il m'aider?

Merci.

PS: c koi la différence entre un <xsl:param et <xsl:variable??