xsl-list
[Top] [All Lists]

[xsl] How count the Table cell (Cals Table) using XSL

2006-06-24 04:12:18
Dear All,

I have one xml file. I want count cell and divide percentage in between cell
(through XSL). Please any one help me.

XML File
-------------

<table border="0" cellspacing="0" cellpadding="1" width="90%">
<thead>
<tr>
<th valign="top" colspan="3">Table 1.1 802.11b Channels</b></th>
</tr>
<tr>
<th>Channel Number</th>
<th>Center Frequency (in GHz)</th>
<th>USA</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>2.412</td>
<td>&#x2713;</td>
</tr>
</tbody>
</table>

I want OutPut
-----------------

<table>
<table.html frame="void" width="100%" rules="groups" align="left">
<colgroup>
<col width="50%"/>
<col width="30%"/>
<col width="20%"/>
</colgroup>
<!-- Rest of the taging as it is -->
<thead>
<tr>
<th valign="top" colspan="3">Table 1.1 802.11b Channels</b></th>
</tr>
<tr>
<th>Channel Number</th>
<th>Center Frequency (in GHz)</th>
<th>USA</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>2.412</td>
<td>&#x2713;</td>
</tr>
</tbody>
</table>

Regards,

Byomkesh




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--