Latest web development tutorials

XSL-FO output

XSL-FO in <fo: flow> element defined within output.

XSL-FO page (Page), flow (Flow) and a block (Block)

Content "block" will "flow" into the "page", and then output to the media.

XSL-FO output is usually nested within <fo: block> element inside, <fo: block> nested <fo: flow> element inside, <fo: flow> nested <fo: page-sequence> element within :

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

XSL-FO instances

Now let's look at a real XSL-FO instances:

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

<fo:root xmlns:fo="">

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

<fo:page-sequence master-reference="A4">
<fo:flow flow-name="xsl-region-body">
<fo:block>Hello W3CSchool</fo:block>


The output of the code above is as follows:

Hello W3CSchool