XSL-FO Output

« Previous Chapter Next Chapter »

XSL-FO defines output inside <fo:flow> elements.

XSL-FO Page, Flow, and Block

"Blocks" of content "Flows" into "Pages" and then to the output media.

XSL-FO output is normally nested inside <fo:block> elements, nested inside <fo:flow> elements, nested inside <fo:page-sequence> elements:

  <fo:flow flow-name="xsl-region-body">
      <!-- Output goes here -->

XSL-FO Example

It is time to look at a real XSL-FO example:

<?xml version="1.0" encoding="ISO-8859-1"?>

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

  <fo:simple-page-master master-name="PaperSize">
    <fo:region-body />

<fo:page-sequence master-reference="PaperSize">
  <fo:flow flow-name="xsl-region-body">
    <fo:block>NewFile. QcTutorials</fo:block>


The output from this code would be something like this:

NewFile. QcTutorials

« Previous Chapter Next Chapter »

Have Any Suggestion? We Are Waiting To Hear from YOU!

Your Query was successfully sent!