I am converting following html to xml
Code:
<html>
<body>
something in body
<table>
<thead>
<tr>
<th>Heading 1</th>
</tr>
<tr>
<th>Heading 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>content starts<b>bold <i>start italic in bold ends here </i>bold continue</b>plain text here</td>
</tr>
<tr>
<td>content 2<p>para here</p>continue</td>
</tr>
</tbody>
</table>
</body>
</htm
> I would like it to convert to following xml
Code:
<topic>
<table>
<row>
<cell>cel<b>bold <i>start italic in bold ends</i>here</b>1 is here</cell></row>
<row>
<cell>content 2<p>para here</p>continue</cell>
</row>
</topic>
Basically I want to copy everything that comes in TD to the cell element i XML. However when I apply XSLT, the <b> and <i> tags are supressed. How can I copy all the contents of TD to cell element of XML?
thanks
Kapil