Solved

How to add a blank line in xsl-fo

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

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

Suggested Solutions

Title # Comments Views Activity
Adding a hidden div to each row in a table 6 95
XML to Excel using XSL - formatting 3 42
XML Removal- Powershell 4 33
Problem to copy file 14 43
Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
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…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

685 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