I have an XML file like the following :
<?xml version="1.0" encoding="ISO-8859-1" ?>
<mylist name="test">
<title>--$title$- not found</title>
<table>
<header>
<col name="firstname" title="--$firstname$- not found"/>
<col name="lastname" title="--$lastname$- not found"/>
<col name="country" title="--$country$- not found"/>
</header>
<body>
<row>
<col name="firstname">John</col>
<col name="lastname">Smith</col>
<col name="country">ENGLAND</col>
</row>
<row>
<col name="firstname">Peter</col>
<col name="lastname">Scott</col>
<col name="country">USA</col>
</row>
</body>
</table>
</mylist>
and I need to show the result as a HTML table like the following :

Could anyone help please? I’m not into XML/XSL and I just need this once
Try this:
It will actually put a style attribute on each
<td>or<th>which means the output’s a little verbose, but it keeps the XSLT nice & simple.