|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: table td width
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








