[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: table td width

Subject: RE: table td width
From: Pieter Reint Siegers Kort <pieter.siegers@xxxxxxxxxxx>
Date: Wed, 17 Mar 2004 11:23:10 -0600
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


Current Thread
  • table td width
    • aroso - Wed, 17 Mar 2004 11:50:37 -0500 (EST)
      • <Possible follow-ups>
      • Pieter Reint Siegers Kort - Wed, 17 Mar 2004 12:22:20 -0500 (EST) <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.