Solved

XSLT set <td> height from variable

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
removing hyperlinks from end-notes in a PDF to HTML conversion 8 79
Problem to echo 6 83
Form submit issue 11 80
Where do I learn ES6? 3 51
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

863 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

23 Experts available now in Live!

Get 1:1 Help Now