<table border="1" id="table1">
<tr>
<th>Data</th>
<th>Numero</th>
<th>Cliente</th>
<th>P_iva Cliente</th>
<th>Imponibile</th>
<th>Iva</th>
</tr>
<tr>
</tr>
<xsl:for-each select="fatture/fattura">
<tr>
<td><xsl:value-of select="data"/></td>
<td><xsl:value-of select="numero"/></td>
<td><xsl:value-of select="cliente"/></td>
<td>....</td>
<td><xsl:value-of select="imponibile"/></td>
<td><xsl:value-of select="iva"/></td>
</tr>
</xsl:for-each>
</table>
<script type="text/javascript">
<![CDATA[
var table = document.getElementById('table1');
var Imponibile = document.getElementById('TotImp');
var Iva = document.getElementById('TotIva');
var Totale = document.getElementById('Tot');
var valueImp, valueIva;
var totalImp = 0;
var totalIva = 0;
var Tot = 0;
var i;
for(i=1; i<table.rows.length; i++){
valueImp = table.rows[i].cells[4].innerHTML;
alert(valueImp);
}
]]>
</script>
What is the function for read the table tag fill in with xsl...?
not .innerHTML and not .value...
Thanks!