<?xml version="1.0" ?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xml:lang="en">
  <fo:layout-master-set>
    <fo:simple-page-master page-height="279mm" page-width="216mm" margin-top="10mm" margin-left="20mm" margin-right="20mm" margin-bottom="10mm" master-name="main">
      <fo:region-body margin-top="20mm" margin-bottom="10mm" /><fo:region-before border-style="none" border-width="thin" extent="15mm"/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-reference="main">
    <fo:static-content flow-name="xsl-region-before">
			<fo:block font-size="9pt">
				<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:flow flow-name="xsl-region-body" font-size="12pt" end-indent="0cm">
 <fo:block start-indent="0mm" text-indent="1em" font-family="sans-serif" font-size="20pt" font-weight="bold" background-color="#EEEEEE" line-height="16mm">

			Layout by side float</fo:block>
     <fo:block  start-indent="7cm" space-before="0.5em" space-after="0.5em">
The left indent in the text is 7cm. Side float is placed inside the right indent of the text.
</fo:block>
<fo:block space-before="0.5em" space-after="0.5em"><fo:float float="start">
        <fo:block border=".1pt solid red" color="blue">
        <fo:external-graphic src="url('img/dtp-xsl.emf')"  width="6cm" height="5cm"  content-width="5.5cm" content-height="4.5cm" display-align="center" text-align="center" />
<fo:block />     Image 1: image inside the side float</fo:block>
      </fo:float>
<fo:block  start-indent="7cm">An image is inserted at the beginning of the paragraph as fo:float. Set 0cm as the indent of fo:float.
</fo:block></fo:block>
            <fo:block start-indent="7cm" space-before="0.5em" space-after="0.5em">
Since DTP requires a person to compose layout page by page, work load increases proportionate of number of pages contained in a given document. In contrast, XSL formatting processes the prepared XML document as a batch.
</fo:block>
<fo:block start-indent="7cm" space-before="0.5em" space-after="0.5em">To format XML using XSL requires development of a stylesheet. Work load is proportionate to the number of tag sets and the complexity of layout, not the number of pages.
 </fo:block>
<fo:block start-indent="7cm" space-before="0.5em" space-after="0.5em">This means that XML-to-XSL formatting offers an overwhelming advantage over DTP when you need to format a massive document or a document with repetitive layout -- on the other hand, DTP will be more appropriate for processing a small volume with highly-varied layout.

 </fo:block>

<fo:block start-indent="0mm" text-indent="1em" font-family="sans-serif" font-size="16pt" font-weight="bold" background-color="#EEEEEE" line-height="12mm">
			Head</fo:block>
<fo:block  start-indent="7cm" space-before="0.5em" space-after="0.5em">
An image is inserted to the next line as fo:float.
</fo:block>

      <fo:block space-before="0.5em" space-after="0.5em"><fo:float float="start">
        <fo:block border=".1pt solid red" color="blue"><fo:external-graphic src="url('img/dtp-xsl.emf')"  width="6cm" height="5cm"  content-width="5.5cm" content-height="4.5cm" display-align="center" text-align="center" />
<fo:block />
      Image 2: image inside the side float   </fo:block>
      </fo:float>
<fo:block start-indent="7cm">Since DTP requires a person to compose layout page by page, work load increases proportionate of number of pages contained in a given document. In contrast, XSL formatting processes the prepared XML document as a batch.
</fo:block></fo:block><fo:block  start-indent="7cm" space-before="0.5em" space-after="0.5em">To format XML using XSL requires development of a stylesheet. Work load is proportionate to the number of tag sets and the complexity of layout, not the number of pages.
 </fo:block>
<fo:block  start-indent="7cm" space-before="0.5em" space-after="0.5em">This means that XML-to-XSL formatting offers an overwhelming advantage over DTP when you need to format a massive document or a document with repetitive layout -- on the other hand, DTP will be more appropriate for processing a small volume with highly-varied layout.

 </fo:block>


      </fo:flow>
  </fo:page-sequence>
</fo:root>
