<?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="150mm" page-width="210mm" margin-top="10mm" margin-left="10mm" margin-right="20mm" margin-bottom="10mm" master-name="OddPage">
			<fo:region-before region-name="OddPageHeader" border-style="none" border-width="medium" extent="15mm"/>
			<fo:region-after region-name="OddPageFooter" border-style="none" border-width="medium" extent="15mm"/>
			<fo:region-start border-style="none" border-width="thin" extent="8mm"/>
			<fo:region-end border-style="none" border-width="thin" extent="8mm"/>
			<fo:region-body border-style="none" border-width="thick" margin-top="20mm" margin-left="10mm" margin-right="10mm" margin-bottom="20mm"/>
		</fo:simple-page-master>
		<fo:simple-page-master page-height="150mm" page-width="210mm" margin-top="10mm" margin-left="20mm" margin-right="10mm" margin-bottom="10mm" master-name="EvenPage">
			<fo:region-before region-name="EvenPageHeader" border-style="none" border-width="medium" extent="15mm"/>
			<fo:region-after region-name="EvenPageFooter" border-style="none" border-width="medium" extent="15mm"/>
			<fo:region-start border-style="none" border-width="thin" extent="8mm"/>
			<fo:region-end border-style="none" border-width="thin" extent="8mm"/>
			<fo:region-body border-style="none" border-width="thick" margin-top="20mm" margin-left="10mm" margin-right="10mm" margin-bottom="20mm"/>
		</fo:simple-page-master>
		<fo:page-sequence-master master-name="main">
			<fo:repeatable-page-master-alternatives>
				<fo:conditional-page-master-reference master-reference="OddPage" odd-or-even="odd" />
				<fo:conditional-page-master-reference master-reference="EvenPage" odd-or-even="even" />
			</fo:repeatable-page-master-alternatives>
		</fo:page-sequence-master>
	</fo:layout-master-set>

	<fo:page-sequence initial-page-number="1" master-reference="main">
		<fo:static-content flow-name="OddPageHeader">
			<fo:block font-size="9pt">
				<fo:external-graphic src="url('img/antenna-en.png')" content-height="12mm"/>
				XSL FO Sample Copyright &#xA9; 2002-2005 Antenna House, Inc. All rights reserved.
			</fo:block>
		</fo:static-content>
		<fo:static-content flow-name="OddPageFooter">
			<fo:block text-align="left" font-family="sans-serif" font-size="15pt">-<fo:page-number />- AntennaHouse</fo:block>
		</fo:static-content>
		<fo:static-content flow-name="EvenPageHeader">
			<fo:block text-align="right" font-size="9pt">
				XSL FO Sample Copyright &#xA9; 2002-2005 Antenna House, Inc. All rights reserved.
	<fo:external-graphic src="url('img/antenna-en2.png')" content-height="12mm"/>
</fo:block>
		</fo:static-content>
		<fo:static-content flow-name="EvenPageFooter">
			<fo:block text-align="right" font-family="sans-serif" font-size="15pt">XSL-FO sample -<fo:page-number />-</fo:block>
		</fo:static-content>

		<fo:flow flow-name="xsl-region-body">
			<fo:block text-indent="1em" font-family="sans-serif" font-size="19pt" font-weight="bold" background-color="#EEEEEE" line-height="20mm">
Auto-switching of layout on right/left pages
			</fo:block>

			<fo:block space-before="1em" text-indent="1em" line-height="1.5em" padding-start="3mm" padding-end="3mm">
				<fo:block>This sample shows the auto-switching of layout on odd pages and even pages. Here we explain the case of making different contents in the footer and header on right-hand pages and left-hand pages.</fo:block>
								<fo:block  space-before="1em" >
The text and the image in the header are left justified on the left page, and right justified on the right page. Different images are placed on the right and left pages. In the same way, page numbers and the text are right/left justified. Put the space widely on the right side of the left page, while on the right page it is placed widely on the left side.</fo:block>
								<fo:block  space-before="1em" text-indent="1em" line-height="1.5em" font-size="11pt">
<fo:block space-after="1em">
Another area in which we expect to see a strong need for XSL is layout and PDF conversion of XML data.
</fo:block>
				<fo:block space-after="1em">XML format is being adopted by corporations at an increasing rate as the preferred format for data, including order data, exchanged within an organization, as well as between corporations.</fo:block>
<fo:block space-after="1em">
While XML is appropriate for computers to exchange data, for people to see and use the data, it must be presented in a clear and understandable format. In this area, many dedicated form-printing tools have been available for years.</fo:block>
<fo:block space-after="1em">By combining XSL and XSLT, however, it is now possible to output your XML data in any way you want, and in various layouts. By using the XSL technology, you can present data from a single source in a wide variety of forms and easily.</fo:block>
</fo:block>
			</fo:block>
		</fo:flow>

	</fo:page-sequence>
</fo:root>
