Solved

How to add a blank line in xsl-fo

Posted on 2004-09-02
1
3,238 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

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

19 Experts available now in Live!

Get 1:1 Help Now