Solved

XSLT set <td> height from variable

Posted on 2011-03-19
3
171 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
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 arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now