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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

929 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

10 Experts available now in Live!

Get 1:1 Help Now