<?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-Customer 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-Customer 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>
											
						<!--<top table report information>-->
						<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" border="thin solid 0.1 Gray">
								<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 border="0" padding="6pt">												
										<fo:block>Surveys Completed</fo:block>												
									   </fo:table-cell>

   									   <fo:table-cell border="0" padding="6pt">												
										<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 border="0" padding="6pt">
										<fo:block>Customers(s) #:</fo:block>												
									   </fo:table-cell>
 
									  <fo:table-cell border="0" padding="6pt">												
										<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 border="0" padding="6pt">												
										<fo:block>Service Type:</fo:block>												
									  </fo:table-cell>

									  <fo:table-cell border="0" padding="6pt">												
										<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"
							 text-align="center"
							 font-size="10.00pt"							 
							 left="-0.10mm"
							 top="20.01mm"
							 width="150.00mm"
							 space-before="5mm">
								<fo:table table-layout="fixed" width="150.00mm">
									<fo:table-column column-width="80.00mm"/>
									<fo:table-column column-width="35.00mm" number-columns-repeated="2"/>								
									  <fo:table-header start-indent="0pt">
 										 <fo:table-row height="12.70mm">
    											<fo:table-cell display-align="center">
      											 <fo:block text-align="center">
      											  <fo:block start-indent="0pt"> </fo:block>
     											 </fo:block>
   											</fo:table-cell>

											<fo:table-cell display-align="center">
      											 <fo:block text-align="center" font-weight="bold">
      											  <fo:block start-indent="0pt"># of Respondents *</fo:block>
     											 </fo:block>
   											</fo:table-cell>											

											<fo:table-cell display-align="center">
      											 <fo:block text-align="center" font-weight="bold">
      											  <fo:block start-indent="0pt">Percentage Satisfied</fo:block>
     											 </fo:block>
   											</fo:table-cell>
																				
										</fo:table-row>
									      </fo:table-header>

									 <fo:table-body start-indent="0pt">
									   <xsl:for-each select="datasettablename">
										<fo:table-row>
											<fo:table-cell display-align="center">
											 <fo:block text-align="left" font-weight="bold" overflow="condense">
											  <fo:block start-indent="0pt">
											    <xsl:choose>
												<xsl:when test="preceding-sibling::datasettablename[1]/section_title = section_title"></xsl:when>
												<xsl:otherwise>
												<xsl:value-of select="section_title"/>
												 <xsl:text>&quot;</xsl:text>
												</xsl:otherwise>
												</xsl:choose>
											  </fo:block>
											 </fo:block>
											</fo:table-cell>																					
										</fo:table-row>																								
															
										<fo:table-row>									
											<fo:table-cell display-align="center">
											 <fo:block text-align="left">
											  <fo:block start-indent="0pt">
											    <xsl:value-of select="question"/>
											  </fo:block>
											 </fo:block>
											</fo:table-cell>

											<fo:table-cell display-align="center">
											 <fo:block text-align="center">
											  <fo:block start-indent="0pt">
											    <xsl:value-of select="respondents"/>
											  </fo:block>
											 </fo:block>
											</fo:table-cell>
											
											<fo:table-cell display-align="center">
											 <fo:block text-align="center">
											  <fo:block start-indent="0pt">
											    <xsl:value-of select="format-number(satisfied,'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="Scenario1" userelativepaths="yes" externalpreview="no" url="sat&#x2D;customer.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>
-->