Click to See Complete Forum and Search --> : Problem with xsl attribute


Mr R
09-08-2003, 12:01 PM
I have the fallowing xml code:
<table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td width="300" bgcolor="#ffffff">
<p> </p>
</td>
<td width="33" bgcolor="#ffffff">
<p></p>
</td>
<td width="135" bgcolor="#ffffff" >
<p></p>
</td>
</tr>

I need the width of the table but i've only the with of the td.
Someone have an idea how can i get the width of each td, to add their value and passing the result to the table attribute?

Khalid Ali
09-08-2003, 07:10 PM
if I understand you correctly ,youwill need to run a template that will call it recursively and add the width and get total and then return it.

search the google for XSLT recursive template

am sure you will get an example or 2