﻿<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
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">
	<fo:layout-master-set>
		<fo:simple-page-master master-name="all-pages" page-width="8in" page-height="11in">
			<fo:region-body padding="6pt" margin="0.7in" region-name="xsl-region-body" column-gap="0.25in"/>
			<fo:region-before padding="6pt 0.7in" region-name="xsl-region-before" display-align="after" extent="0.7in"/>
			<fo:region-after padding="6pt 0.7in" region-name="xsl-region-after" display-align="before" extent="1in"/>
		</fo:simple-page-master>
		<fo:page-sequence-master master-name="default-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">
		<fo:static-content border-bottom-width="1pt" border-bottom-style="solid" border-bottom-color="rgb(192,192,192)" flow-name="xsl-region-before" font-size="10pt" font-family="Helvetica">
			<fo:block color="rgb(105,105,105)" text-align-last="justify">
				XSL-FO Test Suite
				<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 border-top-width="1pt" border-top-style="solid" border-top-color="rgb(192,192,192)" padding-top="2pt" flow-name="xsl-region-after" 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 xmlns:xlink="http://www.w3.org/1999/xlink" id="linearGradient1314" xlink:href="#linearGradient1308" gradientUnits="userSpaceOnUse" x1="102.857" x2="112.857" y1="126.648" y2="172.362"/>
											<svg:linearGradient xmlns:xlink="http://www.w3.org/1999/xlink" id="linearGradient2064" xlink:href="#linearGradient1308" gradientUnits="userSpaceOnUse" x1="94.2857" x2="112.857" y1="143.791" y2="172.362"/>
											<svg:linearGradient xmlns:xlink="http://www.w3.org/1999/xlink" id="linearGradient2068" xlink:href="#linearGradient1308" gradientUnits="userSpaceOnUse" x1="102.857" x2="112.857" y1="126.648" y2="172.362"/>
											<svg:linearGradient xmlns:xlink="http://www.w3.org/1999/xlink" id="linearGradient2072" xlink:href="#linearGradient1308" gradientUnits="userSpaceOnUse" x1="102.857" x2="112.857" y1="126.648" y2="172.362"/>
											<svg:linearGradient xmlns:xlink="http://www.w3.org/1999/xlink" id="linearGradient2076" xlink:href="#linearGradient1308" gradientUnits="userSpaceOnUse" x1="102.857" x2="112.857" y1="126.648" y2="172.362"/>
											<svg:linearGradient xmlns:xlink="http://www.w3.org/1999/xlink" id="linearGradient2080" 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-size="10pt" font-family="Helvetica">
			<fo:block>
			<fo:block color="rgb(0,128,0)" text-align="center" margin-bottom="10pt" font-size="18pt" font-family="Helvetica"> <fo:block/>Graphics Examples<fo:block/> </fo:block>
					<fo:block padding-top="3pt" margin-top="15pt" color="rgb(0,0,0)" text-align="justify" font-size="12pt" font-style="normal" font-family="Helvetica" font-weight="normal" font-variant="normal" line-height="normal"><fo:inline font-weight="bold">XSL-FO</fo:inline> provides the means to display images and vectorial graphics through two elements: 
					<fo:list-block>
<fo:list-item>
<fo:list-item-label margin-left="20pt" end-indent="label-end()">
<fo:block>
									•
								</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block text-indent="20pt"><fo:inline font-style="italic" font-weight="bold">fo:instream-foreign-object</fo:inline> when you have the content embedded in the XSL-FO 
									document
								</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label margin-left="20pt" end-indent="label-end()">
<fo:block>
									•    
								</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block text-indent="20pt"><fo:inline font-style="italic" font-weight="bold">fo:external-graphic</fo:inline> when the image resides in an external file.
								</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>					  
				</fo:block>
				<fo:block margin-top="20pt">
					<fo:block margin-bottom="10pt" color="rgb(0,0,0)" font-size="14pt" font-style="normal" font-family="Helvetica" font-weight="bold" font-variant="normal" line-height="normal">
						SVG
					</fo:block>
					<fo:block>
						One of the supported formats for <fo:inline font-weight="bold">fo:instream-foreign-object</fo:inline> is SVG (Scalable Vector Graphics):
					</fo:block>
					<fo:block margin-top="5pt" text-align="center" font-size="13pt" font-weight="bold">
					  Gradients				  
					</fo:block>
					<fo:block text-align="center">
						<fo:instream-foreign-object>
							<svg xmlns="http://www.w3.org/2000/svg" width="480" height="280">
								<linearGradient id="Grad1" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="1">
									<stop stop-color="rgb(238,130,238)" offset="0"/>
									<stop stop-color="blue" offset="0.2"/>
									<stop stop-color="lime" offset="0.4"/>
									<stop stop-color="yellow" offset="0.6"/>
									<stop stop-color="rgb(255,165,0)" offset="0.8"/>
									<stop stop-color="red" offset="1"/>
								</linearGradient>
<!-- Linear gradient on the stroke of a rectangle -->
								<rect x="20" y="20" width="440" height="80" fill="url(#Grad1)"/>
								<text font-family="Helvetica" font-size="14" x="20" y="130">
									Multi-color linear gradient.
								</text>
<!-- Radial gradient on the stroke of a rectangle -->
								<radialGradient id="Grad2" gradientUnits="userSpaceOnUse" cx="240" cy="210" r="220" fx="240" fy="210">
									<stop stop-color="black" offset="0"/>
									<stop stop-color="yellow" offset="0.2"/>
									<stop stop-color="red" offset="0.4"/>
									<stop stop-color="blue" offset="0.6"/>
									<stop stop-color="white" offset="0.8"/>
									<stop stop-color="green" offset="1"/>
								</radialGradient>
								<rect x="20" y="150" width="440" height="80" fill="url(#Grad2)" stroke-width="40"/>
								<text font-family="Helvetica" font-size="14" x="20" y="260">
									Multi-color radial gradient.
								</text>
							</svg>
						</fo:instream-foreign-object>
					</fo:block>
					<fo:block text-align="center" font-size="13pt" font-weight="bold">
						Path
					</fo:block>
					<fo:block text-align="center">
						<fo:instream-foreign-object>
							<svg:svg xmlns:svg="http://www.w3.org/2000/svg" style="overflow:visible;enable-background:new 0 0 228.967 156.011" width="228.967" height="156.011" viewBox="0 0 228.967 156.011">
								<svg:radialGradient id="XMLID_12_" gradientTransform="matrix(1,0,0,2.2083,0,-399.072) " gradientUnits="userSpaceOnUse" cx="114.654" cy="216.937" r="83.6052">
									<svg:stop style="stop-color:#FAEF00" offset="0.0037"/>
									<svg:stop style="stop-color:#EDA501" offset="0.354"/>
									<svg:stop style="stop-color:#D2280E" offset="1"/>
								</svg:radialGradient>
								<svg:path style="fill:url(#XMLID_12_)" d="M5.336,155.511 h221.051 c0,0 0.966,-54.074 -3.86,-75.984 c-4.826,-21.91 -4.344,-57.208 5.309,-66.945 c-6.757,4.867 -14.961,23.124 -11.583,69.381 c3.379,46.251 -8.567,38.246 -7.722,22.121 c0.361,-7.609 0.965,-11.166 3.377,-16.036 c0,1.217 -7.446,0.392 -8.688,26.989 c-0.965,20.691 -14.72,3.441 -5.791,-20.295 c8.469,-22.514 13.031,-37.125 6.274,-63.902 c0,1.216 6.612,29.231 -7.964,52.341 c-8.445,13.387 -6.033,29.727 -10.377,29.42 c-3.562,-0.25 -4.163,-7.363 -0.482,-21.51 c5.068,-19.474 -2.414,-27.997 -4.585,-29.824 c0.241,0 6.491,11.979 2.171,24.041 c-6.756,18.869 -4.344,22.121 -7.842,29.728 c-2.984,6.486 -11.588,7.969 -9.412,-22.426 c1.568,-21.908 6.786,-31.127 11.824,-40.773 c6.517,-12.478 3.5,-35.604 -3.137,-39.866 c0,0.305 6.516,19.172 -0.241,32.258 s-14.117,19.169 -16.41,44.125 c-1.89,20.567 -19.185,10.04 -6.757,-20.694 c0,0 7.844,-20.388 -2.413,-31.954 c0,0 8.688,21.303 -3.982,31.344 c-4.223,2.437 -9.572,-11.055 -4.907,-22.009 c-0.16,0.404 -6.756,7.303 -1.286,28.807 c5.47,21.503 6.112,36.472 1.126,41.189 c-7.723,7.303 -29.119,-60.666 1.77,-102.048 c0.161,-0.406 -24.292,20.283 -22.362,74.651 c0.161,7.305 -3.861,19.479 -7.239,7.711 c-1.77,-4.865 2.413,-23.127 -6.275,-35.299 c0,0.408 7.723,18.063 -1.609,42.811 c-2.574,6.898 -8.28,4.795 -6.113,-12.377 c2.252,-17.855 0.321,-28.405 -0.805,-40.579 c-2.038,-22.029 -0.16,-38.541 3.057,-43.818 c0,0 -6.918,7.307 -6.436,33.679 c0.483,26.372 0,47.272 -6.274,60.662 c0,0 -11.101,9.121 -6.113,-23.334 c4.826,-23.938 1.609,-34.489 -2.091,-39.356 c2.252,7.707 3.218,11.766 0.965,21.503 c-2.252,9.738 -8.848,21.308 -4.665,49.709 c3.057,24.75 -18.663,24.344 -13.836,-8.926 c4.827,-33.269 19.628,-58.634 8.527,-95.557 c0,0.811 6.757,42.194 -11.905,75.06 c-4.505,6.086 -13.192,-16.636 -2.896,-31.241 c0.322,0.405 -10.619,0.811 -8.527,29.619 c2.736,16.635 5.471,23.741 1.288,32.262 c-2.766,5.633 -20.915,-3.859 -6.275,-55.796 c9.814,-30.025 5.631,-43.82 1.931,-48.688 c0.161,0 5.198,15.913 -1.931,33.271 c-4.666,11.359 -7.239,17.447 -8.366,26.778 c-2.108,17.467 -3.989,33.919 -9.009,27.591 c-6.757,-8.522 5.47,-28.81 1.287,-46.662 c0,-0.406 0.965,11.768 -3.056,19.478 c-4.022,7.708 -8.044,18.871 -2.735,41.188 c1.608,13.795 -2.828,18.35 -4.495,19.18 c-4.144,2.063 -9.517,-6.643 -5.158,-40.487 c3.218,-22.317 10.458,-53.152 1.449,-79.118 c0.16,0 6.113,28.399 -3.378,62.483 C-1.743,103.464 1.314,141.55 5.336,155.511 z "/>
							</svg:svg>
						</fo:instream-foreign-object>
						<fo:instream-foreign-object>
							<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/" width="179.798" height="169.073" viewBox="0 0 179.798 169.073" style="overflow:visible;enable-background:new 0 0 179.798 169.073" xml:space="preserve">
								<radialGradient id="XMLID_26_" cx="1327.4038" cy="331.8586" r="9.1017" fx="1327.4038" fy="331.8586" gradientTransform="matrix(5.6896 0 0 5.6896 -7460.7568 -1799.2605)" gradientUnits="userSpaceOnUse">
									<stop offset="0.19" style="stop-color:#F7FB02"/>
									<stop offset="0.4782" style="stop-color:#FACE0D"/>
									<stop offset="1" style="stop-color:#FE7313"/>
								</radialGradient>
								<path style="fill:url(#XMLID_26_);stroke:#000000;" d="M78.456,133.887c-5.185-8.652,6.928-29.432-3.462-32.894          c-13.841-3.461-29.421-6.923-36.345-12.118c10.38-19.034,38.078-12.111,50.196-32.886c0-6.918,0-10.38,1.729-12.113          c15.575,13.847,34.616,5.195,53.668,5.195c5.19,19.042-22.503,27.693-17.318,50.201c5.19,8.644,12.118,10.383,12.118,19.034          c-12.118,3.462-25.964-13.852-36.344-1.733C90.574,120.035,88.845,133.887,78.456,133.887z"/>
							</svg>
						</fo:instream-foreign-object>
					</fo:block>
				</fo:block>
			</fo:block>				
			<fo:block id="theEnd"/>
		</fo:flow>
	</fo:page-sequence>
</fo:root>
