<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="html" />
<xsl:template match="//NewDataSet">
		<fo:root>

			<fo:layout-master-set>
				<fo:simple-page-master master-name="SAT-Response Rate Report" page-height="297.00mm" page-width="210.00mm">
					<fo:region-body margin-bottom="30.00mm" margin-top="30.00mm" margin-left="30.00mm" margin-right="30.00mm"/>
					<fo:region-before display-align="after"/>
					<fo:region-after display-align="before"/>
				</fo:simple-page-master>
			</fo:layout-master-set>
			
				<fo:page-sequence master-reference="SAT-Response Rate Report" force-page-count="no-force">
					<fo:flow flow-name="xsl-region-body">						
						<fo:block font-size="16pt" 
							font-weight="bold"
                					font-family="arial sans-serif" 
                					line-height="24pt"
                					space-after.optimum="15pt"
                					color="black"
                					text-align="center"
                					padding-top="3pt">
            						<xsl:value-of select="header/report"/>
          					</fo:block>

						<!--</fo:block-container>-->
						<fo:block absolute-position="absolute" 
							font-family="Arial" 
							font-size="12.00pt" 
							height="23.64mm" 
							left="-0.10mm" 
							top="20.01mm" 
							width="150.28mm">
							   <fo:table width="150.28mm" table-layout="fixed">
								<fo:table-column column-width="62.18mm"/>
								<fo:table-column column-width="88.11mm"/>
								<fo:table-body start-indent="0pt">							
									<fo:table-row height="7.85mm">
								 	    <fo:table-cell>												
										<fo:block>Surveys Completed:</fo:block>												
									   </fo:table-cell>

   									   <fo:table-cell>												
										<fo:block><xsl:value-of select="header/daterange"/></fo:block>												
									   </fo:table-cell>
									</fo:table-row>								

									<fo:table-row height="7.85mm">
									   <fo:table-cell>
										<fo:block>Customers(s) #:</fo:block>												
									   </fo:table-cell>
 
									  <fo:table-cell>												
										<fo:block><xsl:value-of select="header/customers"/></fo:block>																								
									  </fo:table-cell>
									</fo:table-row>

									<fo:table-row height="7.94mm">
									  <fo:table-cell>												
										<fo:block>Service Type:</fo:block>												
									  </fo:table-cell>

									  <fo:table-cell>												
										<fo:block><xsl:value-of select="header/servicetype"/></fo:block>																					
									  </fo:table-cell>
									</fo:table-row>										
								</fo:table-body>
							</fo:table>					
						</fo:block>				
						<fo:block absolute-position="absolute"
							 font-family="Arial"
							 font-size="12.00pt"
							 height="15.08mm" 
							 left="1.22mm" 
							 top="1.49mm" 
							 width="150.81mm" 
							 overflow="condense"
							 start-indent="0pt">							 
								The table below reports the number of surveys sent,
								the number of responses, and the response rates
						</fo:block>	
																
						<fo:block absolute-position="absolute" 
							 font-family="Arial"
							 text-align="center"
							 font-size="12.00pt"
							 height="23.64mm"
							 left="-0.10mm"
							 top="20.01mm"
							 width="150.00mm"
							 space-before="5mm">
								<fo:table table-layout="fixed" width="150.00mm" border="0.2 solid thin black">
									<fo:table-column column-width="21.42mm" number-columns-repeated="5"/>								
									  <fo:table-header start-indent="0pt" border-right="solid 1.50pt Black" border-left="solid 1.50pt Black" border-top="solid 1.50pt Black">
 										 <fo:table-row border-bottom="solid 1.50pt Black" height="12.70mm">
    											<fo:table-cell display-align="center" border-right="solid 1.00pt Black">
      											 <fo:block text-align="center">
      											  <fo:block start-indent="0pt">Year</fo:block>
     											 </fo:block>
   											</fo:table-cell>

											<fo:table-cell display-align="center" border-right="solid 1.00pt Black">
      											 <fo:block text-align="center">
      											  <fo:block start-indent="0pt">Month</fo:block>
     											 </fo:block>
   											</fo:table-cell>

											<fo:table-cell display-align="center" border-right="solid 1.00pt Black">
      											 <fo:block text-align="center">
      											  <fo:block start-indent="0pt">Number Surveyed</fo:block>
     											 </fo:block>
   											</fo:table-cell>

											<fo:table-cell display-align="center" border-right="solid 1.00pt Black">
      											 <fo:block text-align="center">
      											  <fo:block start-indent="0pt">Number Responses</fo:block>
     											 </fo:block>
   											</fo:table-cell>

											<fo:table-cell display-align="center" border-right="solid 1.00pt Black">
      											 <fo:block text-align="center">
      											  <fo:block start-indent="0pt">Response Rate</fo:block>
     											 </fo:block>
   											</fo:table-cell>										
										</fo:table-row>
									      </fo:table-header>

									 <fo:table-body start-indent="0pt" border-right="solid 1.50pt Black" border-left="solid 1.50pt Black">
									   <xsl:for-each select="datasettablename">
										<fo:table-row border-right="solid 1.50pt Black" border-left="solid 1.50pt Black" border-top="solid 1.50pt Black">
											<fo:table-cell display-align="center" border="solid 1.00pt Black">
											 <fo:block text-align="center" overflow="condense">
											  <fo:block start-indent="0pt">
											    <xsl:value-of select="out_year"/>
											  </fo:block>
											 </fo:block>
											</fo:table-cell>
											
											<fo:table-cell display-align="center" border="solid 1.00pt Black">
											 <fo:block text-align="center">
											  <fo:block start-indent="0pt">
											    <xsl:value-of select="out_month"/>
											  </fo:block>
											 </fo:block>
											</fo:table-cell>

											<fo:table-cell display-align="center" border="solid 1.00pt Black">
											 <fo:block text-align="center">
											  <fo:block start-indent="0pt">
											    <xsl:value-of select="format-number(response_rate,'0')"/>
											  </fo:block>
											 </fo:block>
											</fo:table-cell>
											
											<fo:table-cell display-align="center" border="solid 1.00pt Black">
											 <fo:block text-align="center">
											  <fo:block start-indent="0pt">
											    <xsl:value-of select="format-number(response_rate,'0')"/>
											  </fo:block>
											 </fo:block>
											</fo:table-cell>
											<fo:table-cell display-align="center" border="solid 1.00pt Black">>
											 <fo:block text-align="center">
											  <fo:block start-indent="0pt">
											    <xsl:value-of select="format-number(response_rate,'0.0%')"/>
											  </fo:block>
											 </fo:block>
											</fo:table-cell>
													
										</fo:table-row>
									  </xsl:for-each>																								
								     </fo:table-body>
							</fo:table>
						</fo:block>		
									
																				
					</fo:flow>
				</fo:page-sequence>						
		</fo:root>
</xsl:template>
</xsl:stylesheet>

<!-- Stylus Studio meta-information - (c) 2004-2005. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="SAT&#x2D;fo&#x2D;resonse rate report" userelativepaths="yes" externalpreview="no" url="NewXml\sat&#x2D;responserate.xml" htmlbaseurl="" outputurl="" processortype="internal" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->