XSL-FO output goes into blocks.
"Blocks" of content "Flow" into "Pages" of the output media.
XSL-FO output is normally nested inside <fo:block> elements, nested inside <fo:flow>
elements, nested inside <fo:page-sequence> elements:
Blocks are sequences of output in rectangular boxes:
Since block areas are rectangular boxes, they share many common area properties:
The space before and space after is the empty space separating the block from the
The margin is the empty area on the outside of the block.
The border is the rectangle drawn around the external edge of the area. It can have
different widths on all four sides. It can also be filled with different colors and background
The padding is the area between the border and the content area.
The content area contains the actual content like text, pictures, graphics, or whatever.
Border style attributes:
Border color attributes:
Border width attributes:
Blocks are sequences of output that can be styled individually:
Output Will Be :
At QcTutorials you can find most of the
tutorials you need, from basic HTML and XHTML to advanced PHP, XML, and JAVA.
When you look at the example above, you can see that it will take a lot of code to produce a
document with many headers and paragraphs.
Normally XSL-FO document do not combine formatting information and content like we have done
With a little help from XSLT we can put the formatting information into templates and write a
You will learn more about how to combine XSL-FO with XSLT templates in a later chapter in this
Your Query was successfully sent!