Hi,
How can i put the value of width of td from the value of the xml file.
I can put width=22.
Use <td width="{value}" />.
An example would be:
Your XML:
<bar>
<label>Valor2</label>
<value>22</value>
</bar>
My XSL:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"/>
<xsl:template match="/bar">
<table border="1">
<tr>
<td width="{value}">xxx</td>
</tr>
</table>
</xsl:template>
</xsl:stylesheet>
The OUTPUT:
<table border="1">
<tr>
<td width="22">xxx</td>
</tr>
</table>
Cheers, Pieter
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list