<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright (c) Ecrion Software Inc. 2002-2010. All Rights Reserved.
Permission to use, copy, modify, distribute and sell this sample document for any purpose and without fee is hereby granted, 
provided that the above copyright notice appears in all copies and that both those copyright notice and this permission notice 
appear in supporting documentation, and that the name of Ecrion Software Inc. not be used in advertising or publicity pertaining 
to distribution of the software without specific, written prior permission. Ecrion Software Inc. make no representations about 
the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
-->
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xf="http://www.ecrion.com/xf/1.0">
	<fo:layout-master-set>
		<fo:simple-page-master master-name="first-page"  page-width="8.5in" page-height="11in">
			<fo:region-body region-name="xsl-region-body" margin="0.7in" column-gap="0.6in" padding="6pt"/>
			<fo:region-before region-name="xsl-region-before" extent="0.7in" display-align="after" padding="6pt 0.7in" />
			<fo:region-after region-name="xsl-region-after" extent="0.7in" display-align="before" padding="6pt 0.7in" />
		</fo:simple-page-master>
		<fo:simple-page-master master-name="all-pages" page-width="11in" page-height="8.5in">
			<fo:region-body region-name="xsl-region-body" margin="0.1in 0.35in" column-count="4" column-gap="0.6in"/>
		</fo:simple-page-master>
		<fo:page-sequence-master master-name="default-sequence">
		<fo:single-page-master-reference master-reference="first-page"/>
			<fo:repeatable-page-master-reference master-reference="all-pages" />
		</fo:page-sequence-master>
		<fo:page-sequence-master master-name="custom-sequence">
			<fo:repeatable-page-master-reference master-reference="all-pages" />
		</fo:page-sequence-master>
	</fo:layout-master-set>
	<fo:page-sequence master-reference="default-sequence" font-family="Helvetica">
		<fo:static-content flow-name="xsl-region-before" border-bottom-style="solid" border-bottom-width="1pt" border-bottom-color="rgb(192,192,192)" font-size="10pt" font-family="Helvetica">
			<fo:block color="rgb(105,105,105)" text-align-last="justify">
				XSL-FO Sample Document
				<fo:leader/>
				<fo:inline font-size="10pt" font-weight="normal">
				Page <fo:page-number/> of <fo:page-number-citation ref-id="theEnd"/>
				</fo:inline>
			</fo:block>
		</fo:static-content>
		<fo:static-content flow-name="xsl-region-after" padding-top="2pt" border-top-style="solid" border-top-width="1pt" border-top-color="rgb(192,192,192)" font-size="10pt" font-family="Helvetica">
			<fo:table table-layout="fixed" width="100%">
				<fo:table-column column-width="proportional-column-width(4)"/>
				<fo:table-column column-width="proportional-column-width(1)"/>
				<fo:table-body>
					<fo:table-row>
						<fo:table-cell>
							<fo:block color="rgb(105,105,105)">
								Copyright © 2002-2009 Ecrion Software Inc. All Rights Reserved.
							</fo:block>
						</fo:table-cell>
						<fo:table-cell>
							<fo:block text-align="right" color="rgb(105,105,105)">
								<fo:instream-foreign-object>
									<svg:svg xmlns:svg="http://www.w3.org/2000/svg" width="64" height="46" viewBox="0 0 744 514" scaling="non-uniform">
										<svg:defs id="defs4">
											<svg:linearGradient id="linearGradient1308" x1="0%" x2="100%" y1="0%" y2="0%">
												<svg:stop id="stop1310" style="stop-color:#24ff2c;stop-opacity:1.0000000;" offset="0"/>
												<svg:stop id="stop1312" style="stop-color:#228f1e;stop-opacity:1.0000000;" offset="1"/>
											</svg:linearGradient>
											<svg:linearGradient id="linearGradient1314" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#linearGradient1308" gradientUnits="userSpaceOnUse" x1="102.857" x2="112.857" y1="126.648" y2="172.362"/>
											<svg:linearGradient id="linearGradient2064" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#linearGradient1308" gradientUnits="userSpaceOnUse" x1="94.2857" x2="112.857" y1="143.791" y2="172.362"/>
											<svg:linearGradient id="linearGradient2068" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#linearGradient1308" gradientUnits="userSpaceOnUse" x1="102.857" x2="112.857" y1="126.648" y2="172.362"/>
											<svg:linearGradient id="linearGradient2072" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#linearGradient1308" gradientUnits="userSpaceOnUse" x1="102.857" x2="112.857" y1="126.648" y2="172.362"/>
											<svg:linearGradient id="linearGradient2076" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#linearGradient1308" gradientUnits="userSpaceOnUse" x1="102.857" x2="112.857" y1="126.648" y2="172.362"/>
											<svg:linearGradient id="linearGradient2080" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#linearGradient1308" gradientUnits="userSpaceOnUse" x1="102.857" x2="112.857" y1="126.648" y2="172.362"/>
										</svg:defs>
										<svg:g id="layer1" transform="translate(0,-130)">
											<svg:path id="path2824" style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#17cf0d;stroke-width:10.489111;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000" d="M385.118,348.54 C646.31,435.042 646.31,435.042 646.31,435.042 "/>
											<svg:path id="path2822" style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#17cf0d;stroke-width:7.9545941;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000" d="M536.667,267.948 C374.762,348.205 374.762,348.205 374.762,348.205 "/>
											<svg:path id="path2818" style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#17cf0d;stroke-width:9.5815039;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000" d="M91.7553,282.151 C376.816,348.287 376.816,348.287 376.816,348.287 "/>
											<svg:path id="path2826" style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#17cf0d;stroke-width:6.1257629;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000" d="M380.774,344.069 C325.511,483.512 325.511,483.512 325.511,483.512 "/>
											<svg:path id="path2090" style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#17cf0d;stroke-width:8.0982771;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000" d="M279.788,198.404 C374.497,340.606 374.497,340.606 374.497,340.606 "/>
											<svg:path id="path1306" transform="translate(176.571,56.8571) " style="fill:url(#linearGradient1314);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" d="M142.857,156.648 A30,30 0 1,1 82.8571,156.648 A30,30 0 1,1 142.857,156.648 z "/>
											<svg:path id="path2062" transform="translate(426.857,110.857) " style="fill:url(#linearGradient2064);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" d="M142.857,156.648 A30,30 0 1,1 82.8571,156.648 A30,30 0 1,1 142.857,156.648 z "/>
											<svg:path id="path2066" transform="translate(264.286,187.143) " style="fill:url(#linearGradient2068);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" d="M142.857,156.648 A30,30 0 1,1 82.8571,156.648 A30,30 0 1,1 142.857,156.648 z "/>
											<svg:path id="path2070" transform="translate(535.429,277.143) " style="fill:url(#linearGradient2072);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" d="M142.857,156.648 A30,30 0 1,1 82.8571,156.648 A30,30 0 1,1 142.857,156.648 z "/>
											<svg:path id="path2074" transform="matrix(1.90909,0,0,1.8,107.818,222.967) " style="fill:url(#linearGradient2076);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" d="M142.857,156.648 A30,30 0 1,1 82.8571,156.648 A30,30 0 1,1 142.857,156.648 z "/>
											<svg:path id="path2078" transform="translate(-27.1429,126.857) " style="fill:url(#linearGradient2080);fill-opacity:1.0000000;fill-rule:evenodd;stroke:none;stroke-width:1.0000000px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000" d="M142.857,156.648 A30,30 0 1,1 82.8571,156.648 A30,30 0 1,1 142.857,156.648 z "/>
										</svg:g>
									</svg:svg>
								</fo:instream-foreign-object>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
		</fo:static-content>
		<fo:flow flow-name="xsl-region-body" font-family="Helvetica" font-size="10pt">
		<fo:block color="rgb(0,128,0)" text-align="center" margin-bottom="10pt" font-size="18pt" font-family="Helvetica"> <fo:block/>Borders<fo:block/> </fo:block>							
				<fo:block space-before="20pt" space-after="20pt"  >
					The border properties specify the width, color, and style of the borders a object. These properties apply to all XSL-FO elements:
					<fo:list-block space-before="15pt">
						<fo:list-item>
							<fo:list-item-label end-indent="label-end()" margin-left="20pt">
								<fo:block>
									•
								</fo:block>
							</fo:list-item-label>
							<fo:list-item-body start-indent="body-start()">
								<fo:block text-indent="10pt">
									Border widths are set using <fo:inline font-style="italic" font-weight="bold">border-top-width</fo:inline>, <fo:inline font-style="italic" font-weight="bold">border-right-width</fo:inline>, <fo:inline font-style="italic" font-weight="bold">border-bottom-width</fo:inline>, <fo:inline font-style="italic" font-weight="bold">border-left-width</fo:inline> attributes. The value can be specified as a length (1pt, 0.5cm, etc). To set all four widths at once you can use <fo:inline font-style="italic" font-weight="bold">border-width</fo:inline> shorthand. For example, to set all borders to 0.1 inches thick, you use <fo:inline font-style="italic" font-weight="bold">border-width="0.1in"</fo:inline>.
								</fo:block>
							</fo:list-item-body>
						</fo:list-item>
						<fo:list-item>
							<fo:list-item-label end-indent="label-end()" margin-left="20pt">
								<fo:block>
									•
								</fo:block>
							</fo:list-item-label>
							<fo:list-item-body start-indent="body-start()">
								<fo:block text-indent="10pt">
									The border color properties are <fo:inline font-style="italic" font-weight="bold">border-top-color, border-right-color, border-bottom-color, border-left-color</fo:inline>. The shorthand for setting the color for all four borders at once is <fo:inline font-style="italic" font-weight="bold">border-color</fo:inline>.
								</fo:block>
							</fo:list-item-body>
						</fo:list-item>
						<fo:list-item>
							<fo:list-item-label end-indent="label-end()" margin-left="20pt">
								<fo:block>
									•
								</fo:block>
							</fo:list-item-label>
							<fo:list-item-body start-indent="body-start()">
								<fo:block text-indent="10pt">
									The border style properties are <fo:inline font-style="italic" font-weight="bold">border-style</fo:inline> and specify the line style of a box's border (solid, double, dashed, etc.).
								</fo:block>
							</fo:list-item-body>
						</fo:list-item>
					</fo:list-block>
				</fo:block>
				<fo:block font-family="Times" font-size="36pt" text-align="center"  keep-together="always">
					<fo:block background="yellow" border="1pt solid red" border-radius="10pt">Hello World</fo:block>
						<fo:block space-before="10pt" background="lime" border="1pt dashed blue" border-radius="10pt 20pt">Hello World</fo:block>
						<fo:block space-before="10pt" background="yellow" box-shadow="5pt 5pt black">Hello World</fo:block>
						<fo:block space-before="10pt" background="yellow">H<fo:inline background="lime"  
						border-radius="5pt"
						box-shadow="5pt 5pt black">ell</fo:inline>o World</fo:block>
						
					<fo:table space-before="10pt">
						<fo:table-column background="pink" border-radius="5pt" border="1pt solid red" box-shadow="5pt 5pt red"/>
						<fo:table-body>
							<fo:table-row>
								<fo:table-cell>
									<fo:block>
										text text
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</fo:table-body>
					</fo:table>			
				</fo:block>
				<fo:block id="theEnd"/>
			</fo:flow>
	</fo:page-sequence>			
</fo:root>