Solved

xsl:fo (how to fix the fo:block height irrespective of the font size for the content in that block?)

Posted on 2004-03-22
5
326 Views
Last Modified: 2013-12-03
how to fix the fo:block height irrespective of the font size for the content in that block?

i am using xsl-fo formatter from antenna house.

for example,

<fo:block height="2.3cm"  font-size="7pt">
hello
</fo:block>
<fo:block height="1.3cm"  font-size="10pt">
world
</fo:block>


displays as

hello
world

instead of

hello


world.

i am unable to fix the block height.



thats for your reply.


regards
0
Comment
Question by:vihar123
5 Comments
 

Author Comment

by:vihar123
ID: 10647973
the problem is
its not showing any empty space after the first fo:block as the font size is very small...

i am trying to fix the block height to a specific height.
0
 
LVL 15

Expert Comment

by:dualsoul
ID: 10648449
hm...can't check it right now, but try <fo:block space-before.optimum="1pt" space-after.optimum="1pt">
0
 
LVL 11

Accepted Solution

by:
petiex earned 100 total points
ID: 10693555
The fo:block object does not have a "height" property. It does, however have a "line-height" property.
So, change your code to:

<fo:block line-height="2.3cm"  font-size="7pt">
hello
</fo:block>
<fo:block line-height="1.3cm"  font-size="10pt">
world
</fo:block>
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.NET XML Processing a XMLNodeList with Namespace 16 70
RSS Feed Enclosure URL 1 120
XML response optional elements 12 37
what are list of ebay api errors 1 17
The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
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. 
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

813 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

11 Experts available now in Live!

Get 1:1 Help Now