<?xml version="1.0" encoding="UTF-8" ?>

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xml:lang="en">
	<fo:layout-master-set>
		<fo:simple-page-master page-height="180mm" page-width="210mm" margin-top="10mm" margin-left="20mm" margin-right="00mm" margin-bottom="5mm" master-name="PageMaster">
			<fo:region-before extent="16mm"/>
			<fo:region-after extent="8mm"/>
			<fo:region-start extent="8mm"/>
			<fo:region-end extent="20mm"/>
			<fo:region-body border-style="none" border-width="0.2mm" margin-top="20mm" margin-left="10mm" margin-right="20mm" margin-bottom="5mm"/>
		</fo:simple-page-master>
	</fo:layout-master-set>
	<fo:page-sequence initial-page-number="1" master-reference="PageMaster">
				<fo:static-content flow-name="xsl-region-before">
			<fo:block font-size="8pt">
				<fo:external-graphic src="url('img/antenna-en.png')" content-height="12mm"/>
				XSL FO Sample Copyright &#xA9; 1996-2005 Antenna House, Inc. All rights reserved.
			</fo:block>
		</fo:static-content>
		<fo:static-content flow-name="xsl-region-after">
		</fo:static-content>
		<fo:flow flow-name="xsl-region-body">
			<fo:block space-after="1em" text-indent="1em" font-family="sans-serif" font-size="18pt" font-weight="bold" background-color="#EEEEEE" line-height="20mm">

			Printing program source code</fo:block>
			<fo:block>
				<fo:block space-after="1em">

Generally, monospace font is used when printing the source code written by C or Java. Also, as white space code has an important meaning, we cannot discard it when printing the source code.
</fo:block>
				<fo:block space-after="1em">

In such case, by setting the property of font-family="monospace" white-space="pre" to fo:block, white space in the code can be printed easily in monospace mode, without ignored.
</fo:block>
				<fo:block space-after="1em">

The following example is made only by pasting the program code to fo:block with no change.

</fo:block>
				<fo:block font-family="monospace" white-space="pre">

void main(void)
{
    printf("Hello, XML world!");
}

				</fo:block>
			</fo:block>

		</fo:flow>
	</fo:page-sequence>
</fo:root>




