<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v4.2 U (http://www.xmlspy.com) by TOM (PROCON) -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:msxsl="urn:schemas-microsoft-com:xslt">
	<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>


<!-- *****************************************************************************************
REP_LTER_: 
***************************************************************************************** -->

<!-- deutsches Zahlenformat -->
<xsl:decimal-format name="FGERMAN" decimal-separator="," grouping-separator="." />


<!-- _________________________________________
HEADER-Aufbau jeder Seite  background-color="silver"
____________________________________________-->
<xsl:template name="SEITE_HEADER">
	<xsl:param name="pSEITEN_ID" />				
	<fo:block-container border="solid black 1px" height="15mm">						
		<fo:block position="relative">
				<fo:table table-layout="fixed" space-after="0mm" start-indent="0mm" end-indent="0mm">
					<!-- 3 Spalten über die gesamte Tabellenlänge -->
					<fo:table-column column-number="1" column-width="33%"/>
					<fo:table-column column-number="2" column-width="33%"/>
					<fo:table-column column-number="3" column-width="33%"/>
					<fo:table-body start-indent="0pt" end-indent="0pt">								
						<fo:table-row>
							<fo:table-cell  number-columns-spanned="3"><fo:block><xsl:value-of select="'   '"/></fo:block></fo:table-cell>
						</fo:table-row>
						<fo:table-row line-height="14mm">
							<fo:table-cell text-align="left">
								<fo:block text-align="left">
									<fo:inline font-family="'Times New Roman'" font-size="14pt" font-weight="bold" padding-left="5mm">ALTER-Net Infobase</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell text-align="center">
								<fo:block text-align="center">
									<fo:inline font-family="'Times New Roman'" font-size="14pt" font-weight="bold"><xsl:value-of select="/DataTableResult/Header/Title/text()"/></fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell text-align="right">
								<fo:block text-align="right">
									<fo:inline font-family="'Times New Roman'" font-size="10pt" padding-right="5mm">
										<xsl:value-of select="'Page '"/><fo:page-number/>
										<xsl:value-of select="'  of '"/>
										<fo:page-number-citation ref-id="{generate-id()}"/>										
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
					</fo:table-body>			
				</fo:table>							
		</fo:block>							
	</fo:block-container>	
</xsl:template>



<xsl:template name="SITE">
	<xsl:param name="pLANGUAGE" />				

	<!--_________________
 Identifikation
______________________-->
	
	<fo:block-container  position="relative" left="20.00mm">
		<fo:block position="relative" >
				<fo:table table-layout="fixed" space-before="0mm" space-after="0mm" start-indent="0mm" end-indent="0mm">
					<!-- 4 Spalten über die gesamte Tabellenlänge -->
					<fo:table-column column-number="1" column-width="5mm"/>
					<fo:table-column column-number="2" column-width="20mm"/>
					<fo:table-column column-number="3" column-width="70mm"/>
					<fo:table-column column-number="4" column-width="70mm"/>
					<fo:table-body start-indent="0pt" end-indent="0pt">								
					
						<fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell  number-columns-spanned="3"><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt" text-decoration="underline" font-weight="bold">
								<xsl:value-of select="'IDENTIFICATION:'"/></fo:inline></fo:block></fo:table-cell>
						</fo:table-row>															
						<fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt">Identifier:</fo:inline></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt"><xsl:value-of select="IDENTIFIER/text()"/></fo:inline></fo:block></fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt">Name:</fo:inline></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt"><xsl:value-of select="LONG_NAME/text()"/></fo:inline></fo:block></fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt">Description:</fo:inline></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt"><xsl:value-of select="DESCRIPTION/text()"/></fo:inline></fo:block></fo:table-cell>
						</fo:table-row>

						<fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt">Location (x/y/z):</fo:inline></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left">
								<fo:inline font-family="'Times New Roman'" font-size="10pt">
								<xsl:value-of select="X_GEO_ETRS89/text()"/> / <xsl:value-of select="Y_GEO_ETRS89/text()"/> /
								<!-- Höhe nur anzeigen, wenn versorgt -->
								<xsl:choose>
									<xsl:when test="ALTITUDE_AVG/text() &lt;0"><xsl:value-of select="' - '"/></xsl:when>
									<xsl:otherwise>
										 <xsl:value-of select="ALTITUDE_AVG/text()"/>
									</xsl:otherwise>
								</xsl:choose>
								</fo:inline></fo:block></fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt">Country:</fo:inline></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt"><xsl:value-of select="COUNTRY/text()"/></fo:inline></fo:block></fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt">Size:</fo:inline></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt"><xsl:value-of select="SIZE_HA/text()"/> ha</fo:inline></fo:block></fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt">Biogeographical unit:</fo:inline></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt"><xsl:value-of select="BIOGEOGREGION/text()"/></fo:inline></fo:block></fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt">Type:</fo:inline></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt"><xsl:value-of select="SITETYPE/text()"/></fo:inline></fo:block></fo:table-cell>
						</fo:table-row>
					</fo:table-body>							
				</fo:table>							
		</fo:block>
	</fo:block-container>		

	<xsl:variable name="vENTRYREFERENCE">
		<xsl:choose>
			<xsl:when test="ENTRYREFERENCE/text() = 'null'"><xsl:value-of select="' '"/></xsl:when>
			<xsl:otherwise>
				 <xsl:value-of select="ENTRYREFERENCE/text()"/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:variable>
	
	
<!-- _____________________
WEBSITE
________________________ -->	
	<fo:block-container  position="relative" left="20.00mm" space-before="5mm">
		<fo:block position="relative" >
				<fo:table table-layout="fixed" space-before="0mm" space-after="0mm" start-indent="0mm" end-indent="0mm">
					<!-- 4 Spalten über die gesamte Tabellenlänge -->
					<fo:table-column column-number="1" column-width="5mm"/>
					<fo:table-column column-number="2" column-width="20mm"/>
					<fo:table-column column-number="3" column-width="70mm"/>
					<fo:table-column column-number="4" column-width="70mm"/>
					<fo:table-body start-indent="0pt" end-indent="0pt">		
						<fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell  number-columns-spanned="2"><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt" font-weight="bold">
								<xsl:value-of select="'Website:'"/></fo:inline></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt"><xsl:value-of select="WEBSITE"/></fo:inline></fo:block></fo:table-cell>
						</fo:table-row>			
																							
					</fo:table-body>							
				</fo:table>							
		</fo:block>
	</fo:block-container>		

	
<!-- __________________________
Geography
______________________________ -->	
		<fo:block-container  position="relative" left="20.00mm" space-before="5mm">
		<fo:block position="relative" >
				<fo:table table-layout="fixed" space-before="0mm" space-after="0mm" start-indent="0mm" end-indent="0mm">
					<!-- 4 Spalten über die gesamte Tabellenlänge -->
					<fo:table-column column-number="1" column-width="5mm"/>
					<fo:table-column column-number="2" column-width="20mm"/>
					<fo:table-column column-number="3" column-width="70mm"/>
					<fo:table-column column-number="4" column-width="70mm"/>
					<fo:table-body start-indent="0pt" end-indent="0pt">		
						<fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell  number-columns-spanned="2"><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt" font-weight="bold">
								<xsl:value-of select="'Geography:'"/></fo:inline></fo:block></fo:table-cell>
						</fo:table-row>	
							<fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt">Altitude  (min/avg/max):</fo:inline></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left">
								<fo:inline font-family="'Times New Roman'" font-size="10pt">
								<xsl:choose>
									<xsl:when test="ALTITUDE_MIN/text() &lt;0"><xsl:value-of select="'- / '"/></xsl:when>
									<xsl:otherwise>
										 <xsl:value-of select="ALTITUDE_MIN/text()"  /> /
									</xsl:otherwise>
								</xsl:choose>
								<xsl:choose>
									<xsl:when test="ALTITUDE_AVG/text() &lt;0"><xsl:value-of select="' - / '"/></xsl:when>
									<xsl:otherwise>
										 <xsl:value-of select="ALTITUDE_AVG/text()" /> /
									</xsl:otherwise>
								</xsl:choose>
								<xsl:choose>
									<xsl:when test="ALTITUDE_MAX/text() &lt;0"><xsl:value-of select="' - '"/></xsl:when>
									<xsl:otherwise>
										 <xsl:value-of select="ALTITUDE_MAX/text()" /> 
									</xsl:otherwise>
								</xsl:choose>
								</fo:inline></fo:block></fo:table-cell>
						</fo:table-row>
								
						<fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt">Position DBMS WGS84 (Long/Lat) :</fo:inline></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt"><xsl:value-of select="LONGITUDE_DBMS_WGS84/text()"/> / <xsl:value-of select="LATITUDE_DBMS_WGS84/text()"/>
							</fo:inline></fo:block></fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt">Position GEO ETRS89 (X/Y):</fo:inline></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt"><xsl:value-of select="X_GEO_ETRS89/text()"/> / <xsl:value-of select="Y_GEO_ETRS89/text()"/>
							</fo:inline></fo:block></fo:table-cell>
						</fo:table-row>
							<fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt">Coordinate Type:</fo:inline></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt"><xsl:value-of select="COORDINATE_TYPE/text()"/></fo:inline></fo:block></fo:table-cell>
						</fo:table-row>
																					
					</fo:table-body>							
				</fo:table>							
		</fo:block>
	</fo:block-container>		

	
<!-- ___________________________
SATUS
_______________________________ -->	
	
		<fo:block-container  position="relative" left="20.00mm" space-before="5mm">
		<fo:block position="relative" >
				<fo:table table-layout="fixed" space-before="0mm" space-after="0mm" start-indent="0mm" end-indent="0mm">
					<!-- 4 Spalten über die gesamte Tabellenlänge -->
					<fo:table-column column-number="1" column-width="5mm"/>
					<fo:table-column column-number="2" column-width="20mm"/>
					<fo:table-column column-number="3" column-width="70mm"/>
					<fo:table-column column-number="4" column-width="70mm"/>
					<fo:table-body start-indent="0pt" end-indent="0pt">		
						<fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell  number-columns-spanned="2"><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt" font-weight="bold">
								<xsl:value-of select="'Status:'"/></fo:inline></fo:block></fo:table-cell>
						</fo:table-row>			
						 <fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt">Declaration Status:</fo:inline></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt"><xsl:value-of select="DECLARATION_STATUS/text()"/></fo:inline></fo:block></fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt">Documentation Status:</fo:inline></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt"><xsl:value-of select="DOCUMENTATION_STATUS/text()"/></fo:inline></fo:block></fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt">Site Status:</fo:inline></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt"><xsl:value-of select="SITE_STATUS/text()"/></fo:inline></fo:block></fo:table-cell>
						</fo:table-row>
																					
					</fo:table-body>							
				</fo:table>							
		</fo:block>
	</fo:block-container>		
	
	
	<!-- _____________________
References
_______________________ -->

	<fo:block-container  position="relative" left="20.00mm" space-before="5mm">
		<fo:block position="relative" >
				<fo:table table-layout="fixed" space-before="0mm" space-after="0mm" start-indent="0mm" end-indent="0mm">
					<!-- 4 Spalten über die gesamte Tabellenlänge -->
					<fo:table-column column-number="1" column-width="5mm"/>
					<fo:table-column column-number="2" column-width="20mm"/>
					<fo:table-column column-number="3" column-width="70mm"/>
					<fo:table-column column-number="4" column-width="70mm"/>
					<fo:table-body start-indent="0pt" end-indent="0pt">		
						<fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell  number-columns-spanned="2"><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt" font-weight="bold">
								<xsl:value-of select="'References:'"/></fo:inline></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt"><xsl:value-of select="$vENTRYREFERENCE"/></fo:inline></fo:block></fo:table-cell>
						</fo:table-row>			
						 <fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt">Date of Entry:</fo:inline></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt"><xsl:value-of select="DATEOFENTRY/text()"/></fo:inline></fo:block></fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt">Entered by:</fo:inline></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt"><xsl:value-of select="ENTEREDBY/text()"/></fo:inline></fo:block></fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt">Entry Nr:</fo:inline></fo:block></fo:table-cell>
							<fo:table-cell><fo:block text-align="left"><fo:inline font-family="'Times New Roman'" font-size="10pt"><xsl:value-of select="ENTRYNR/text()"/></fo:inline></fo:block></fo:table-cell>
						</fo:table-row>
																						
					</fo:table-body>							
				</fo:table>							
		</fo:block>
	</fo:block-container>		
	
	
</xsl:template>



<!-- Selektionsdaten anzeigen -->
<xsl:template name="DATEN">	
	<xsl:param name="pLANGUAGE" />				
	<xsl:param name="pSELEKTION_ID" />				

	<!--************************************************************************************************************** -->
	<!-- Pro Site ein Seitenwechsel  -->
	<xsl:for-each select="/DataTableResult/Row">
		<xsl:sort select="./LONG_NAME" data-type="text" order="ascending"/>
		<xsl:variable name="vSITE" select="./LONG_NAME/text()"/>
		<!-- stellt Gruppenwechsel fest -->
		<xsl:if test="not(preceding-sibling::Row[LONG_NAME=$vSITE])">

				<fo:block break-before="page"/>
				
				<xsl:call-template name="SITE">
					<xsl:with-param name="pLANGUAGE" select="$pLANGUAGE"/>
				</xsl:call-template>		
				
		</xsl:if>
	</xsl:for-each>		

	<fo:block break-before="page"/>

			
</xsl:template>



<!-- *****************************************************************************************
	REP_SELEKION: Aufruf  pro Selektion>
	***************************************************************************************** -->
<xsl:template name="REP_SELEKTION">
	<xsl:param name="pLANGUAGE" />
					
	<!-- initial-page-number="1" ist ganz nett => Seitencounter pro Faktura ab 1 (sonst fortlaufend) allerdings wird dann eine Leerseite produziert ?? -->
	<!--Yahoo Message 734 no-force notwendig, da sonst bei ungeraden Seiten noch eine leere Seite angehängt wird !!	 force-page-count="no-force"  initial-page-number="1"-->

	<xsl:variable name="gSELEKTION_ID">4711</xsl:variable>

		<!-- Daten ************************************************************************** -->
		<fo:page-sequence master-reference="Daten">
			<fo:static-content flow-name="REGION_BEFORE">
				<xsl:call-template name="SEITE_HEADER">
					<xsl:with-param name="pSEITEN_ID" select="$gSELEKTION_ID"/>
				</xsl:call-template>								
			</fo:static-content>
	
			<!-- Seitenangaben im Footer -->		
			
			<fo:flow flow-name="xsl-region-body">

				<xsl:call-template name="DATEN">
					<xsl:with-param name="pLANGUAGE" select="$pLANGUAGE"/>
					<xsl:with-param name="pSELEKTION_ID" select="$gSELEKTION_ID"/>
				</xsl:call-template>						
				<fo:block id="{generate-id()}"/>												
			</fo:flow>
		</fo:page-sequence>

</xsl:template>


<!-- *****************************************************************************************
	PAGEMASTER Selektionen (SimpleSelektion,PowerSelektion)  margin-bottom="10mm" 
***************************************************************************************** -->
<xsl:template name="PAGEMASTER_SELEKTION">
	<fo:layout-master-set>

		<fo:simple-page-master master-name="Deckblatt" page-height="297mm" page-width="210mm">
			<fo:region-body  margin-left="26.0mm" margin-right="4.20mm" margin-top="95mm" margin-bottom="25mm"/> 
			<fo:region-before region-name="REGION_BEFORE"/>
			<fo:region-after region-name="REGION_AFTER"  extent="15mm"/>				
		</fo:simple-page-master>
		
			<fo:simple-page-master master-name="Daten" page-height="29.7cm" page-width="21cm" margin-left="1.5cm" margin-top="0.5cm" margin-right="1.5cm" margin-bottom="0.5cm">
				<fo:region-body margin-top="3.7cm" margin-bottom="2.5cm"/>
				<fo:region-before region-name="REGION_BEFORE" extent="3cm"/>
				<fo:region-after region-name="REGION_AFTER" extent="2.5cm"/>
			</fo:simple-page-master>
		
		<fo:simple-page-master master-name="Bild" page-height="297mm" page-width="210mm">
			<fo:region-body margin-left="2cm" margin-right="1cm" margin-top="1cm" margin-bottom="1cm"/>
			<fo:region-before region-name="REGION_BEFORE"/>
			<fo:region-after region-name="REGION_AFTER"  extent="15mm"/>				
		</fo:simple-page-master>
					
	</fo:layout-master-set>
</xsl:template>


<!-- *****************************************************************************************
	ROOT		
***************************************************************************************** -->
<xsl:template match="/">
	<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
		
		<xsl:variable name="gLANGUAGE"><xsl:value-of select="'DEUTSCH'"/></xsl:variable>

		<!-- Aufruf FO PAGEMASTER-Deklarationen => dort wird pro Report deklariert-->
		<xsl:call-template name="PAGEMASTER_SELEKTION"/>
		
		<!-- Selektion -->
		<xsl:call-template name="REP_SELEKTION">
			<xsl:with-param name="pLANGUAGE" select="$gLANGUAGE"/>
		</xsl:call-template>
		
	</fo:root>
</xsl:template>



</xsl:stylesheet>
<!-- Stylus Studio meta-information - (c) 2004-2008. Progress Software Corporation. All rights reserved.

<metaInformation>
	<scenarios>
		<scenario default="yes" name="Scenario1" userelativepaths="yes" externalpreview="no" url="" htmlbaseurl="" outputurl="" processortype="saxon8" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline=""
		          additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator="">
			<advancedProp name="sInitialMode" value=""/>
			<advancedProp name="bXsltOneIsOkay" value="true"/>
			<advancedProp name="bSchemaAware" value="true"/>
			<advancedProp name="bXml11" value="false"/>
			<advancedProp name="iValidation" value="0"/>
			<advancedProp name="bExtensions" value="true"/>
			<advancedProp name="iWhitespace" value="0"/>
			<advancedProp name="sInitialTemplate" value=""/>
			<advancedProp name="bTinyTree" value="true"/>
			<advancedProp name="bWarnings" value="true"/>
			<advancedProp name="bUseDTD" value="false"/>
			<advancedProp name="iErrorHandling" value="fatal"/>
		</scenario>
	</scenarios>
	<MapperMetaTag>
		<MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/>
		<MapperBlockPosition>
			<template name="SEITE_HEADER"></template>
			<template name="SITE"></template>
		</MapperBlockPosition>
		<TemplateContext></TemplateContext>
		<MapperFilter side="source"></MapperFilter>
	</MapperMetaTag>
</metaInformation>
-->