w3schools
Search W3Schools :  
  
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About

Free Website Templates
Free Website Templates

XSLFO Tutorial

XSLFO HOME
XSLFO Intro
XSLFO Documents
XSLFO Areas
XSLFO Output
XSLFO Flow
XSLFO Pages
XSLFO Blocks
XSLFO Lists
XSLFO Tables
XSLFO & XSLT
XSLFO Software

XSLFO Reference

XSLFO Objects

 

XSL-FO block Object

Back

Definition and Usage

The <fo:block> object defines a block of output. Blocks are sequences of output in rectangular boxes.

The <fo:block> object is used to format paragraphs, titles, headlines, etc.


Syntax

<fo:block>
  <!--
    Contents:(#PCDATA|bidi-override|character|
    external-graphic|instream-foreign-object|
    inline|inline-container|leader|page-number|
    page-number-citation|basic-link|multi-toggle|
    block|block-container|table-and-caption|
    table|list-block)*
  -->
</fo:block>

Properties

Property [A-J] Property [K-Z]
azimuth keep-together
background-attachment keep-with-next
background-color keep-with-previous
background-image language
background-repeat last-line-end-indent
background-position-horizontal left
background-position-vertical linefeed-treatment
border-after-color line-height
border-after-style line-height-shift-adjustment
border-after-width line-stacking-strategy
border-before-color margin-bottom
border-before-style margin-left
border-before-width margin-right
border-bottom-color margin-top
border-bottom-style orphans
border-bottom-width padding-after
border-end-color padding-before
border-end-style padding-bottom
border-end-width padding-end
border-left-color padding-left
border-left-style padding-right
border-left-width padding-start
border-right-color padding-top
border-right-style pause-after
border-right-width pause-before
border-start-color pitch
border-start-style pitch-range
border-start-width play-during
border-top-color relative-position
border-top-style richness
border-top-width right
bottom role
break-after script
break-before source-document
color space-after
country space-before
cue-after span
cue-before speak
elevation speak-header
end-indent speak-numeral
font-family speak-punctuation
font-selection-strategy speech-rate
font-size start-indent
font-size-adjust stress
font-stretch text-align
font-style text-align-last
font-variant text-altitude
font-weight text-depth
hyphenate text-indent
hyphenation-character top
hyphenation-keep visibility
hyphenation-ladder-count voice-family
hyphenation-push-character-count volume
hyphenation-remain-character-count white-space-collapse
id white-space-treatment
intrusion-displace widows
  wrap-option

Example 1

Blocks are sequences of output in rectangular boxes:

<fo:block
  border-width="1mm">
This block of output will have a one millimeter border around it.
</fo:block>

Example 2

Blocks are sequences of output that can be styled individually:

<fo:block
  font-size="12pt"
  font-family="sans-serif">
This block of output will be written in a 12pt sans-serif font.
</fo:block>

Example 3

<fo:block
  font-size="14pt" font-family="verdana" color="red"
  space-before="5mm" space-after="5mm">
W3Schools
</fo:block>

<fo:block
  text-indent="5mm"
  font-family="verdana" font-size="12pt"
  space-before="5mm" space-after="5mm">
At W3Schools you will find all the Web-building tutorials you
need, from basic HTML and XHTML to advanced XML, XSL, Multimedia
and WAP.
</fo:block>

Result:


W3Schools

   At W3Schools you will find all the Web-building tutorials you need, from basic HTML and XHTML to advanced XML, XSL, Multimedia and WAP.




Back


Altova® MissionKit® - Integrated Suite of XML tools

Altova MissionKit

The Altova MissionKit, recent winner of the Jolt Product Excellence and Productivity Award for Best Development Environment, is an integrated suite of tools ideal for:

  • XML development
  • Web & Web services development
  • Data mapping & integration
  • Rendering & publishing XML & database data
  • XBRL validation, taxonomy editing, transformation & rendering

The MissionKit for XML Developers includes XMLSpy®, MapForce®, and StyleVision® plus 3 additional tools for less than the price of 2.

Try all 6 products free for 30 days!

Download a fully-functional free trial

  Altova Missionkit


 
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
FREE Web Hosting
WEB BUILDING
Website Templates
Flash Templates
Website Builder
Internet Business Opportunity
Get a Freelancer
Download XML editor
FREE Flash Website
FREE Web Templates
FLIGHT TICKETS
Find the cheapest flight
to any destination now!
EDUCATION
US Web Design Schools
HTML Certification
JavaScript Certification
XML Certification
PHP Certification
ASP Certification
STATISTICS
Browser Statistics
Browser OS
Browser Display
W3Schools.com HOME | TOP | PRINT | FORUM | ABOUT
W3Schools is for training only. We do not warrant the correctness of its content. The risk from using it lies entirely with the user.
While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright 1999-2009 by Refsnes Data. All Rights Reserved.