Solved

XSLT set <td> height from variable

Posted on 2011-03-19
3
173 Views
Last Modified: 2013-12-10
XSLT: How can I set height ?

<xsl:variable name="height" select="number(((substring-before(finish_time,':')) - (substring-before(start_time,':'))) * 60 + (substring-after(finish_time,':')) - (substring-after(start_time,':'))) div 30"/>
<xsl:variable name="row_height" select="ceiling($height)"/>
<tr><td height=" ??$row_height??" bgcolor="#E3E5EE">

What should I put in there to set td height to variable rows ?
0
Comment
Question by:ZAPASCO
3 Comments
 
LVL 18

Accepted Solution

by:
zc2 earned 200 total points
ID: 35173703
There is a special syntax:

<td height="{$row_height}" bgcolor="#E3E5EE">
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Removing information on Duplicate XML Nodes 24 78
JQuery tracking event. 3 67
XSLT Help 12 33
Adjust the position 3 60
Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question