Solved

How to add a blank line in xsl-fo

Posted on 2004-09-02
1
3,304 Views
Last Modified: 2013-11-18
How to add a blank line in xsl-fo? and how do i draw a line
0
Comment
Question by:sunilramu
1 Comment
 
LVL 15

Accepted Solution

by:
dualsoul earned 125 total points
ID: 11970659
i'll show you one simple sample with both answers:
.............................................................................
<?xml version="1.0" encoding="UTF-8"?>
 <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
 
   <fo:layout-master-set>
     <fo:simple-page-master master-name="simple"
                   page-height="29.7cm"
                   page-width="21cm"
                   margin-top="1cm"
                   margin-bottom="2cm"
                   margin-left="2.5cm"
                   margin-right="2.5cm">
       <fo:region-body margin-top="3cm"/>
       <fo:region-before extent="3cm"/>
       <fo:region-after extent="1.5cm"/>
     </fo:simple-page-master>
   </fo:layout-master-set>
 
 
   <fo:page-sequence master-reference="simple">
        <fo:flow flow-name="xsl-region-body">

                          <fo:block>Some text on the first line</fo:block>

                          <!-- draw empty line here -->
                          <fo:block><fo:leader leader-pattern="space" /></fo:block>

                          <!-- draw horizontal line -->
                          <fo:block><fo:leader leader-length="100%" leader-pattern="rule" rule-style="dashed" rule-thickness="2px" /></fo:block>

                          <fo:block>Some text on the 3rd line</fo:block>
                  
          </fo:flow>
   </fo:page-sequence>

  </fo:root>

.............................................................................

you can play with rule-style and rule-thickness to achive better effect you need.
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

I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

895 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