[XSLT] Incrementer une variable
Bonjour,
J'aimerai incrementer une variable XSL que j'ai inserer dans un lien ...
mon XML :
Code:
1 2 3 4
| <rs:data>
<z:row ows_Attachments="0" ows_LinkTitle="client1" ows_variable1="125.512212" ows_variable2="259.000000000000" />
<z:row ows_Attachments="0" ows_LinkTitle="client2" ows_variable1="258.000000000000" ows_variable2="256.000000000000" />
</rs:data> |
mon XSL :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| <xsl:template match="/">
<xsl:variable name="ID" select="1"/>
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<h2>Client</h2>
<table border="1">
<xsl:for-each select="//rs:data/z:row">
<tr>
<td><input type="button" onClick="window.location='http://mySite/XLSParam/DispForm.aspx?ID=$ID'" value="Modifier"/></td>
<td WIDTH="70">
<b><xsl:value-of select="@ows_LinkTitle" /></b>
</td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template> |
J'aimerai incrementer l'ID du lien.
Merci