I have invalid HTML that I am trying to transform into valid HTML using an XSLT transformation. For example, I want to turn some attributes into inline CSS. Consider the following:
<table border="1" id="t01" width="100%">
.
.
.
</table>
The border and width attributes on the table element are obsolete. So I want to use inline CSS instead, like this:
<table style="border:1;width:100%;" id="t01">
.
.
.
</table>
How can I do this with XSLT?