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
329 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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 …
The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

831 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