Solved

XSLT set <td> height from variable

Posted on 2011-03-19
3
175 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

737 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