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
317 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
installing and using WTP plugin eclipse MARS 3 82
Path of Workbook 3 44
XSLT list item selection criteria not working 12 20
c# code 19 56
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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. 
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 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

6 Experts available now in Live!

Get 1:1 Help Now