Skip to content
Chris Zieba edited this page Jan 17, 2016 · 1 revision
<?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<fo:layout-master-set>

		<fo:simple-page-master master-name="first" page-width="8.5in" page-height="11in" margin-top="0.75in" margin-bottom="0.5in" margin-left="1in" margin-right="1in">
				
			<% if (isAnswered('q2_1_street')) { %>
				<fo:region-body margin-top="1in" margin-bottom="0.25in"/>
			<% } else { %>
				<fo:region-body margin-top="0.75in" margin-bottom="0.25in"/>
			<% } %>

			<fo:region-before region-name="header-first" extent="0.75in"/>
			<fo:region-after region-name="footer-first" extent="0.25in"/>
			<fo:region-start extent="0in"/>
			<fo:region-end extent="0in"/>
		</fo:simple-page-master>

		<fo:simple-page-master master-name="rest" page-width="8.5in" page-height="11in" margin-top="0.5in" margin-bottom="0.5in" margin-left="1in" margin-right="1in">
			<fo:region-body margin-top="1in" margin-bottom="0.25in"/>
			<fo:region-before region-name="header-rest" extent="1in"/>
			<fo:region-after region-name="footer-rest" extent="0.25in"/>
			<fo:region-start extent="0in"/>
			<fo:region-end extent="0in"/>
		</fo:simple-page-master>

		<fo:page-sequence-master master-name="document">
		  	<fo:repeatable-page-master-alternatives>
				<fo:conditional-page-master-reference page-position="first" master-reference="first"/>
				<fo:conditional-page-master-reference page-position="rest" master-reference="rest"/>
			</fo:repeatable-page-master-alternatives>
		</fo:page-sequence-master>

	</fo:layout-master-set>

	<fo:page-sequence master-reference="document" initial-page-number="1" force-page-count="no-force">
		<fo:static-content flow-name="header-first">
			<fo:block font-size="15pt" font-weight="bold" text-align="center">ghj</fo:block>
			<fo:block font-size="12pt" text-align="center">j</fo:block>
			<fo:block font-size="11pt" text-align="center">k</fo:block>
		</fo:static-content>
		<fo:static-content flow-name="header-rest">
			<fo:block font-size="10pt" font-weight="bold" text-align="right">j</fo:block>
			<fo:block font-size="10pt" text-align="right">j</fo:block>
			<fo:block font-size="10pt" text-align="right">jg</fo:block>
		</fo:static-content>
		<fo:static-content flow-name="footer-first">
			<fo:block font-size="9pt" text-align="center">Page <fo:page-number/> of <fo:page-number-citation ref-id="last-page"/></fo:block>
		</fo:static-content>
		<fo:static-content flow-name="footer-rest">
			<fo:block font-size="9pt" text-align="center">Page <fo:page-number/> of <fo:page-number-citation ref-id="last-page"/></fo:block>
		</fo:static-content>

		<!-- BODY -->

		<fo:flow flow-name="xsl-region-body" font-size="9pt">

			<fo:block margin-bottom="1mm">______________________________________________________________________________________________</fo:block>
			<fo:block>
				<fo:inline font-weight="bold" font-size="10pt">PROFILE</fo:inline>
			</fo:block>

			<!-- BREAK --><fo:block><fo:leader /></fo:block>

			<fo:block id="last-page"/>
		</fo:flow>
	</fo:page-sequence>
</fo:root>

Clone this wiki locally