Hi,
I have to generate an HTML table based on an XML that looks like this:
Code:
<table>
<tablerow>
<field name="CONTENT"><value>Some text</value></field>
<field name="TYPE"><value>NORMAL</value></field>
</tablerow>
<tablerow>
<field name="CONTENT"><value>Other text</value></field>
<field name="TYPE"><value>ERROR</value></field>
</tablerow>
</table>
I have no idea of how to use XSL to transform it to this output:
Code:
<table>
<tr>
<td><font color="BLUE">Some text</font></td>
</tr>
<tr>
<td><font color="RED">Other text</font></td>
</tr>
</table>
The problem is that all the nodes in the input are called the same way ('field'), and the meaning of the node is based on the attribute 'name'.
Any help will be appreciated
Thanks in advance,
Cristina.