<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0" xsi:schemaLocation="http://www.w3.org/1999/XSL/Transform xslt.xsd" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<!-- 
******************************************************************************
* XSL FORMATTING STYLESHEET: FEE-SHEET                                       *
* DTD Version       : v1.9   01-04-2019                                      *
* Stylesheet Version: v                                                      *
*		2.06                                                      			 *
*		28/02/2026                                              			 *
******************************************************************************
*  contacts:                                                                 *
*  WIPO:  Tadanori MORIGUCHI; tadanori.moriguchi@wipo.int                    *
*  Special thanks to John Dunning                                            *
******************************************************************************
	-->  
   
	<xsl:output method="xml" version="1.0" indent="no" encoding="UTF-8"></xsl:output>   
	<xsl:strip-space elements="*"></xsl:strip-space> 
	<!-- ****************************************************************
	*  PARAMETER original                                               *
	*  Set at run-time via XSL Processor; sets                          *
	*  'Paper Copy' or 'Original (for Submission)' in top margin        *
	********************************************************************* -->
	<xsl:param name="original"></xsl:param>
	<!-- ****************************************************************
	*  PARAMETER ia_number                                              *
	*  Set at run-time via XSL Processor; sets                          *
	*  International Application Number                                 *
	********************************************************************* -->
	<xsl:param name="ia_number"></xsl:param>    
	<!-- ***************************************************************
    * PARAMETER: mode                                                  * 
    * Set at run time or will be read from 'dtd-version' attribute.    *
    * specifies modal templates to use for different DTD versions      *
    ******************************************************************** -->
	<xsl:param name="mode">    
		<xsl:if test="//fee-sheet/@dtd-version">    
			<xsl:value-of select="concat('v',//fee-sheet/@dtd-version)"></xsl:value-of>    
		</xsl:if>    
	</xsl:param>
	<!-- ************************************************************************
	 * PARAMETER 'rrri': if a RO-request-receiving-info document has been created, *
     * supply that filename and path as a parameter to the XSL processor as     *
     * argument at runtime                                                      *
     ****************************************************************************-->
	<xsl:param name="rrri"></xsl:param>

	<!--*********************************************************************
     * PARAMETER: XXX_font
	 * Note: It seems that FOP0.2X does not work well for font-family lists.
	 *       FOP0.2X always uses the first font so long as it is defined.
	 *        (even if it fails to render some characters)
     *********************************************************************-->
	<xsl:param name="helvetica_font">
		<xsl:choose>
			<xsl:when test="$lang = 'ar' ">Arialuni, Helvetica, WIPOUni</xsl:when>
			<xsl:when test="$lang = 'ja' ">IPAMincho-P, Helvetica, WIPOUni</xsl:when>
			<xsl:when test="$lang = 'ru' ">WIPOUni, Arialuni, Helvetica</xsl:when>
			<xsl:when test="$lang = 'zh' ">FZSongS-SIP, FZSongS, Simsun, WIPOUni, Helvetica</xsl:when>
			<xsl:otherwise>Arialuni, Helvetica, WIPOUni</xsl:otherwise>
		</xsl:choose>
	</xsl:param><xsl:param name="courier_font">
		<xsl:choose>
			<xsl:when test="$lang = 'ar' ">Arialuni, Courier, WIPOUni</xsl:when>
			<xsl:when test="$lang = 'ja' ">IPAGothic, Courier, WIPOUni</xsl:when>
			<xsl:when test="$lang = 'ru' ">WIPOUni, Courier, Arialuni</xsl:when>
			<xsl:when test="$lang = 'zh' ">FZSongS-SIP, FZSongS, Simhei, Courier, WIPOUni</xsl:when>
			<xsl:otherwise>Arialuni, Courier, WIPOUni</xsl:otherwise>
		</xsl:choose>
	</xsl:param>

	<!-- **********************************************************************
	 * PARAMETER 'request': if a request document has been created based      *
	 * on request.dtd, supply that filename and path as a parameter to the    *
	 * XSL processor as argument at run-time to render <dtext> remarks        *
     **************************************************************************-->
	<xsl:param name="request"></xsl:param>  
	<!-- VARIABLE 'package_doc': adds 'file:/' to path of 'package' parameter 
     (if necessary), if supplied as prior argument.  -->
	<xsl:variable name="request_doc">    
		<xsl:if test="$request != ''">      
			<xsl:choose>        
				<xsl:when test="contains($request,':')">          
					<xsl:choose>            
						<xsl:when test="contains($request,'file:/')">              
							<xsl:value-of select="$request"></xsl:value-of>            
						</xsl:when>            
						<xsl:otherwise>              
							<xsl:value-of select="concat('file:/',$request)"></xsl:value-of>            
						</xsl:otherwise>          
					</xsl:choose>        
				</xsl:when>        
				<xsl:otherwise>          
					<xsl:value-of select="$request"></xsl:value-of>        
				</xsl:otherwise>      
			</xsl:choose>    
		</xsl:if>  
	</xsl:variable>  
	<!-- VARIABLE 'software_name': finds this PI, whether in doc prolog or doc -->
	<xsl:variable name="software_name">
		<xsl:value-of select="processing-instruction('software_name')"></xsl:value-of>
	</xsl:variable>
	<!-- VARIABLE 'software_version': finds this PI, whether in doc prolog or doc -->
	<xsl:variable name="software_version">
		<xsl:value-of select="processing-instruction('software_version')"></xsl:value-of>
	</xsl:variable>
	<!-- *****************************************************************************
    * VARIABLE: EASY                                                                 * 
    * Set from $software_name.  Specifies EASY mode $software_name contains [EASY].  *
    ********************************************************************************** -->
	<xsl:variable name="EASY">
		<xsl:choose>
			<xsl:when test="contains($software_name,'EASY') or contains($software_name,'EFS-Web')">1</xsl:when>
			<xsl:otherwise></xsl:otherwise>
		</xsl:choose>
	</xsl:variable>    
	<!-- VARIABLE 'rrri_doc'" adds 'file:/' to path of 'rrri' parameter (if necessary)
     if supplied as argument -->
	<xsl:variable name="rrri_doc">    
		<xsl:if test="$rrri != ''">      
			<xsl:choose>        
				<xsl:when test="contains($rrri,':')">          
					<xsl:choose>            
						<xsl:when test="contains($rrri,'file:')">              
							<xsl:value-of select="$rrri"></xsl:value-of>            
						</xsl:when>            
						<xsl:otherwise>              
							<xsl:value-of select="concat('file:///',$rrri)"></xsl:value-of>            
						</xsl:otherwise>          
					</xsl:choose>        
				</xsl:when>        
				<xsl:otherwise>          
					<xsl:value-of select="$rrri"></xsl:value-of>        
				</xsl:otherwise>      
			</xsl:choose>    
		</xsl:if>  
	</xsl:variable>  
	<!-- ********************************************************************
	*  PARAMETER fee_reduction                                              *
	*  Set at run-time via XSL Processor; sets  text of fee-sheet box 12-12,*
        * in DTDs prior to 1.2.  Default "PCT-SAFE fee reduction"           *
	************************************************************************* -->
	<xsl:param name="fee_reduction">
		<xsl:choose>
			<xsl:when test="$lang='en'">PCT-SAFE fee reduction</xsl:when>
			<xsl:when test="$lang='ja'">PCT-SAFE による料金の減額</xsl:when>
			<xsl:otherwise>PCT-SAFE fee reduction</xsl:otherwise>
		</xsl:choose>
	</xsl:param>
	<!-- PARAMETER 'lang': determines language of application and formats
       stylesheet-generated text accordingly -->
	   
	<xsl:param name="lang" select="substring(translate(//fee-sheet/@lang,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),1,2)"></xsl:param>
	<!-- default page size = A4 -->
	<xsl:param name="page_size" select="A4"></xsl:param>   
	<xsl:variable name="page_height">      
		<xsl:choose>         
			<xsl:when test="$page_size='A4' or $page_size='a4'">297</xsl:when>         
			<xsl:when test="$page_size='Letter' or $page_size='letter'">279</xsl:when>         
			<xsl:otherwise>297</xsl:otherwise>      
		</xsl:choose>   
	</xsl:variable>   
	<xsl:variable name="page_width">      
		<xsl:choose>         
			<xsl:when test="$page_size='A4' or $page_size='a4'">210</xsl:when>         
			<xsl:when test="$page_size='Letter' or $page_size='letter'">215</xsl:when>         
			<xsl:otherwise>210</xsl:otherwise>      
		</xsl:choose>   
	</xsl:variable>   
	<xsl:param name="fee_doc"></xsl:param>   
	<!-- parameter "baseDir":
     It holds a direct path to an image data referred from an input XML file.-->
	<xsl:param name="baseDir"></xsl:param>
	<!-- VARIABLE 'fop_version': finds this PI -->
	<xsl:variable name="fop_version">
		<xsl:value-of select="processing-instruction('fop_version')"></xsl:value-of>
	</xsl:variable>
	<xsl:template match="/">      
		<fo:root>         
			<fo:layout-master-set>
				<fo:simple-page-master master-name="page" page-width="{$page_width}mm" page-height="{$page_height}mm" margin-top="1.5cm" margin-bottom="4.5cm" margin-left="2cm" margin-right="2.3cm">  
					<fo:region-body margin-bottom="0mm" margin-right="0mm" margin-left="0mm" margin-top="25mm"></fo:region-body>  
					<fo:region-before extent="2.5cm"></fo:region-before>
				</fo:simple-page-master>            
				<fo:page-sequence-master master-name="fee-sheet">               
					<fo:repeatable-page-master-reference master-reference="page"></fo:repeatable-page-master-reference>            
				</fo:page-sequence-master>         
			</fo:layout-master-set>         
			<xsl:variable name="avail_width">            
				<xsl:value-of select="$page_width - 50"></xsl:value-of>         
			</xsl:variable>         
			<fo:page-sequence master-reference="fee-sheet" force-page-count="no-force">            
				<fo:static-content flow-name="xsl-region-before">               
					<fo:block width="{$avail_width}mm" font-family="{$helvetica_font}">                   
						<fo:table table-layout="fixed">                      
							<fo:table-column column-width="55mm"></fo:table-column>                     
							<fo:table-column column-width="55mm"></fo:table-column>                     
							<fo:table-column column-width="55mm"></fo:table-column>                     
							<fo:table-body>                        
								<fo:table-row>                  
									<fo:table-cell>                    
										<fo:block font-size="9pt">
											<xsl:value-of select=".//file-reference-id"></xsl:value-of>
										</fo:block>                  
									</fo:table-cell>                  
									<fo:table-cell>                    
										<fo:block></fo:block>                  
									</fo:table-cell>                  
									<fo:table-cell>                    
										<fo:block font-size="9pt" text-align="right">
											<xsl:value-of select="$ia_number"></xsl:value-of>
										</fo:block>       
									</fo:table-cell>                
								</fo:table-row>                
								<fo:table-row>                           
									<fo:table-cell>                              
										<fo:block> 
										</fo:block>                           
									</fo:table-cell>                           
									<fo:table-cell>                              
										<fo:block text-align="center" font-size="10pt" background-color="white">                                
											<fo:page-number></fo:page-number>/<fo:page-number-citation ref-id="endofdoc"></fo:page-number-citation>                              
										</fo:block>                           
									</fo:table-cell>                           
									<fo:table-cell>                              
										<fo:block> 
										</fo:block>                           
									</fo:table-cell>                        
								</fo:table-row>                        
								<fo:table-row>                           
									<fo:table-cell number-columns-spanned="2">                              
										<fo:block text-align="left" font-size="10pt" color="black" background-color="white">          
											<fo:inline font-weight="bold">                                 
												PCT (ANHANG - BLATT FÜR DIE GEBÜHRENBERECHNUNG)                                 
											</fo:inline>                              
										</fo:block>                           
									</fo:table-cell>                           
									<fo:table-cell>                              
										<fo:block text-align="right" font-size="8pt" color="black" background-color="white">           
										</fo:block>                           
									</fo:table-cell>                        
								</fo:table-row>                        
								<fo:table-row>                           
									<fo:table-cell number-columns-spanned="3">                              
										<fo:block text-align="center" font-size="8pt" background-color="white">                                 
											<xsl:choose>
												<xsl:when test="$original = '1' and $EASY = '1'">
													Original (für 
													<fo:inline font-weight="bold">
														EINREICHUNG
													</fo:inline>
													<xsl:text>)</xsl:text>
												</xsl:when>
												<xsl:when test="$original = '2' and $EASY = '1'">
													Zweitexemplar des Originals
												</xsl:when>
												<xsl:when test="$EASY = '1'">
													Papierkopie
													(NICHT
													 zur Einreichung)
												</xsl:when>
												<xsl:otherwise>
													(Original in elektronischem Format)
												</xsl:otherwise>
											</xsl:choose>
										</fo:block>                           
									</fo:table-cell>                        
								</fo:table-row>                        
								<fo:table-row>                           
									<fo:table-cell number-columns-spanned="3" text-align="center" font-size="8pt" vertical-align="top">                              
										<fo:block background-color="white">                                 
											 (Dieses Blatt zählt nicht als Blatt der internationalen Anmeldung und ist nicht Teil derselben)                               
										</fo:block>                           
									</fo:table-cell>                        
								</fo:table-row>                     
							</fo:table-body>                  
						</fo:table>               
					</fo:block>                
            
				</fo:static-content>            
				<fo:flow flow-name="xsl-region-body">               
					<xsl:element name="fo:block" use-attribute-sets="hyphenation">               
						<xsl:attribute name="font-family"><xsl:value-of select="$helvetica_font"></xsl:value-of></xsl:attribute>               	  
						<xsl:choose>               	  
							<xsl:when test=".//doc-page">               	  
								<xsl:apply-templates select=".//doc-page"></xsl:apply-templates>               	  	
               	  
							</xsl:when>               	  
							<xsl:otherwise>               	  
								<xsl:call-template name="fee_info"></xsl:call-template>               	  
							</xsl:otherwise>               	  
               	  
						</xsl:choose>               
					</xsl:element>               
					<fo:block id="endofdoc"></fo:block>            
				</fo:flow>         
			</fo:page-sequence>      
		</fo:root>   
	</xsl:template>
	<!-- INCLUDE COMPONENT TEMPLATES -->
	   
	<xsl:template name="uppercaser">      
		<xsl:param name="string"></xsl:param>      
		<xsl:value-of select="translate(normalize-space($string),                                      'abcdefghijklmnopqrstuvwxyzàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþабвгдежзийклмнопрстуфхцчшщъыьэюяčďľĺňŕřšůťž',  'ABCDEFGHIJKLMNOPQRSTUVWXYZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯČĎĽĹŇŔŘŠŮŤŽ')"></xsl:value-of>
	</xsl:template>   
	<xsl:template name="format_date">      
		<xsl:param name="lang"></xsl:param>      
		<xsl:param name="date"></xsl:param>      
		<xsl:param name="text"></xsl:param>      
		<xsl:param name="year_only"></xsl:param>      
		<xsl:param name="show_date"></xsl:param>      
		<xsl:param name="add_comma"></xsl:param>      
		<xsl:param name="date_too"></xsl:param>      
		<xsl:param name="nDate">         
			<xsl:value-of select="normalize-space(translate($date,'/\.,-',''))"></xsl:value-of>      
		</xsl:param>      
		<xsl:param name="y" select="substring($nDate, 1,4)"></xsl:param>      
		<xsl:param name="m" select="substring($nDate,5,2)"></xsl:param>      
		<xsl:param name="d" select="substring($nDate,7,2)"></xsl:param>  
		<xsl:choose>
		<xsl:when test="number($nDate) = $nDate"> <!-- 09.02.18 for ePCT use during the process and not intended to be anything for output -->
			<xsl:choose>             
			<xsl:when test="$lang='ja' or $lang='zh'">  
				<xsl:choose>        
					<xsl:when test="$year_only='1'">
						<xsl:value-of select="$y"></xsl:value-of> 
					</xsl:when> 
					<xsl:when test="$text != '1'"> 
						<!-- Y 年  M 月  D 日 -->
						<xsl:value-of select="$d"></xsl:value-of>.<xsl:value-of select="$m"></xsl:value-of>.<xsl:value-of select="$y"></xsl:value-of>
					</xsl:when> 
					<xsl:otherwise>
						<xsl:value-of select="$y"></xsl:value-of>
						<xsl:text>年</xsl:text>
						<xsl:choose>   
							<xsl:when test="$m='01'">
								 Januar    
							</xsl:when>   
							<xsl:when test="$m='02'"> 
								 Februar    
							</xsl:when>   
							<xsl:when test="$m='03'"> 
								 März    
							</xsl:when>   
							<xsl:when test="$m='04'"> 
								 April    
							</xsl:when>   
							<xsl:when test="$m='05'"> 
								 Mai    
							</xsl:when>   
							<xsl:when test="$m='06'"> 
								 Juni    
							</xsl:when>   
							<xsl:when test="$m='07'"> 
								 Juli    
							</xsl:when>   
							<xsl:when test="$m='08'"> 
								 August    
							</xsl:when>   
							<xsl:when test="$m='09'"> 
								 September    
							</xsl:when>   
							<xsl:when test="$m='10'"> 
								 Oktober    
							</xsl:when>   
							<xsl:when test="$m='11'"> 
								 November    
							</xsl:when>   
							<xsl:when test="$m='12'"> 
								 Dezember    
							</xsl:when>
							<!-- trap error (e.g., 1-digit month) -->
							   
							<xsl:otherwise>  
								<xsl:value-of select="$m"></xsl:value-of>
								<xsl:text>月</xsl:text> 					  
								<!--xsl:value-of select = "$d"/>
								<xsl:text>日</xsl:text-->   
							</xsl:otherwise>
						</xsl:choose>
						<xsl:if test="$add_comma='1'">   
							<xsl:text>, </xsl:text>
						</xsl:if>
						<xsl:if test="$show_date='1'">   
							<xsl:value-of select="$d"></xsl:value-of>
							<xsl:text>日</xsl:text>
						</xsl:if> 
						<xsl:if test="$date_too = '1'">
							<xsl:text>  
							</xsl:text>
							<xsl:value-of select="concat('(',$d,'.',$m,'.',$y,')')"></xsl:value-of>
							<xsl:text>  
							</xsl:text> 
						</xsl:if> 
					</xsl:otherwise>  
				</xsl:choose>  
			</xsl:when>  
			<xsl:when test="$lang='ko'">  
				<xsl:choose>        
					<xsl:when test="$year_only='1'">
						<xsl:value-of select="$y"></xsl:value-of> 
					</xsl:when> 
					<xsl:when test="$text != '1'"> 
						<!-- Y 年  M 月  D 日 -->
						<xsl:value-of select="$d"></xsl:value-of>.<xsl:value-of select="$m"></xsl:value-of>.<xsl:value-of select="$y"></xsl:value-of>
					</xsl:when> 
					<xsl:otherwise>
						<xsl:value-of select="$y"></xsl:value-of>
						<xsl:text>년</xsl:text>
						<xsl:choose>   
							<xsl:when test="$m='01'">
								 Januar    
							</xsl:when>   
							<xsl:when test="$m='02'"> 
								 Februar    
							</xsl:when>   
							<xsl:when test="$m='03'"> 
								 März    
							</xsl:when>   
							<xsl:when test="$m='04'"> 
								 April    
							</xsl:when>   
							<xsl:when test="$m='05'"> 
								 Mai    
							</xsl:when>   
							<xsl:when test="$m = '06'"> 
								 Juni    
							</xsl:when>   
							<xsl:when test="$m='07'"> 
								 Juli    
							</xsl:when>   
							<xsl:when test="$m='08'"> 
								 August    
							</xsl:when>   
							<xsl:when test="$m='09'"> 
								 September    
							</xsl:when>   
							<xsl:when test="$m='10'"> 
								 Oktober    
							</xsl:when>   
							<xsl:when test="$m='11'"> 
								 November    
							</xsl:when>   
							<xsl:when test="$m='12'"> 
								 Dezember    
							</xsl:when>
							<!-- trap error (e.g., 1-digit month) -->
							   
							<xsl:otherwise>  
								<xsl:value-of select="$m"></xsl:value-of>
								<xsl:text>월</xsl:text> 					  
								<!--xsl:value-of select = "$d"/>
								<xsl:text>일</xsl:text-->   
							</xsl:otherwise>
						</xsl:choose>
						<xsl:if test="$add_comma='1'">   
							<xsl:text>, </xsl:text>
						</xsl:if>
						<xsl:if test="$show_date='1'">   
							<xsl:value-of select="$d"></xsl:value-of>
							<xsl:text>일</xsl:text>
						</xsl:if> 
						<xsl:if test="$date_too = '1'">
							<xsl:text>  
							</xsl:text>
							<xsl:value-of select="concat('(',$d,'.',$m,'.',$y,')')"></xsl:value-of>
							<xsl:text>  
							</xsl:text> 
						</xsl:if> 
					</xsl:otherwise>  
				</xsl:choose>  
			</xsl:when>  
			<xsl:otherwise>  
				<xsl:choose>        
					<xsl:when test="$year_only='1'">
						<xsl:value-of select="$y"></xsl:value-of> 
					</xsl:when> 
					<xsl:when test="$text != '1'">
						<xsl:value-of select="$d"></xsl:value-of>.<xsl:value-of select="$m"></xsl:value-of>.<xsl:value-of select="$y"></xsl:value-of>
					</xsl:when> 
					<xsl:otherwise>
						<xsl:if test="$show_date='1'">   
							<xsl:text> 
							</xsl:text>   
							<xsl:value-of select="$d"></xsl:value-of>   
							<xsl:if test="$lang='de'">.</xsl:if>
							<xsl:text> 
							</xsl:text>
						</xsl:if>
						<xsl:choose>   
							<xsl:when test="$m='01'"> 
								 Januar    
							</xsl:when>   
							<xsl:when test="$m='02'"> 
								 Februar    
							</xsl:when>   
							<xsl:when test="$m='03'"> 
								 März    
							</xsl:when>   
							<xsl:when test="$m='04'"> 
								 April    
							</xsl:when>   
							<xsl:when test="$m='05'"> 
								 Mai    
							</xsl:when>   
							<xsl:when test="$m = '06'"> 
								 Juni    
							</xsl:when>   
							<xsl:when test="$m='07'"> 
								 Juli    
							</xsl:when>   
							<xsl:when test="$m='08'"> 
								 August    
							</xsl:when>   
							<xsl:when test="$m='09'"> 
								 September    
							</xsl:when>   
							<xsl:when test="$m='10'"> 
								 Oktober    
							</xsl:when>   
							<xsl:when test="$m='11'"> 
								 November    
							</xsl:when>   
							<xsl:when test="$m='12'"> 
								 Dezember    
							</xsl:when>
							<!-- trap error (e.g., 1-digit month) -->
							<xsl:otherwise>  
								<xsl:value-of select="$m"></xsl:value-of> 
								<xsl:value-of select="$d"></xsl:value-of>   
							</xsl:otherwise>
						</xsl:choose>
						<xsl:value-of select="$y"></xsl:value-of>
						<xsl:if test="$add_comma='1'">   
							<xsl:text>, </xsl:text>
						</xsl:if> 
						<xsl:if test="$date_too = '1'">
							<xsl:text>  
							</xsl:text>
							<xsl:value-of select="concat('(',$d,'.',$m,'.',$y,')')"></xsl:value-of>
							<xsl:text>  
							</xsl:text> 
						</xsl:if> 
					</xsl:otherwise>  
				</xsl:choose> 
			</xsl:otherwise>
		</xsl:choose>
		</xsl:when>
		<xsl:otherwise> 
			<xsl:value-of select="$nDate"></xsl:value-of>
		</xsl:otherwise>
		</xsl:choose>   
	</xsl:template>   
	<xsl:template name="format_name">      
		<xsl:param name="name_arg"></xsl:param>      
		<xsl:param name="showOf">0</xsl:param>      
		<!-- TODO: add prefix?  See EASY data and add accordingly -->
		      
		<xsl:choose>         
			<xsl:when test="$name_arg/name">
				<xsl:value-of select="$name_arg/name"></xsl:value-of>           
				<xsl:if test="$showOf='1'"> 
					 wohnhaft in            
				</xsl:if>         
			</xsl:when>         
			<xsl:when test="$name_arg/last-name">            
				<xsl:call-template name="uppercaser">               
					<xsl:with-param name="string" select="$name_arg/last-name"></xsl:with-param>            
				</xsl:call-template>    
				<xsl:if test="$name_arg/last-name/text()">
					<xsl:choose>
						<xsl:when test="$name_arg/@lang='zh'">
							<xsl:text> </xsl:text>            
						</xsl:when>
						<xsl:when test="$name_arg/@lang='ko'">
							<xsl:text></xsl:text>            
						</xsl:when>
						<xsl:when test="$name_arg/@lang='ja'">
							<xsl:text>　</xsl:text>            
						</xsl:when>
						<xsl:otherwise> 
							<xsl:text>, </xsl:text>            
						</xsl:otherwise>
					</xsl:choose>
				</xsl:if>        
				<xsl:value-of select="$name_arg/first-name"></xsl:value-of>            
				<xsl:if test="$name_arg/middle-name">            
					<xsl:text> 
					</xsl:text>            
					<xsl:value-of select="$name_arg/middle-name"></xsl:value-of>            
				</xsl:if>            
            
				<xsl:if test="$name_arg/suffix">            
					<xsl:text>, </xsl:text>            
					<xsl:value-of select="$name_arg/suffix"></xsl:value-of>            
				</xsl:if>                        
           
				<xsl:if test="$showOf='1'">            		 
					 wohnhaft in            
				</xsl:if>
			</xsl:when>         
			<xsl:otherwise>             
				<xsl:value-of select="."></xsl:value-of>         
			</xsl:otherwise>                  
		</xsl:choose>   
	</xsl:template>   
   
	<xsl:template name="nameType">
   	<xsl:param name="nam"></xsl:param>
   	      <xsl:choose>
	         <xsl:when test="$nam//name[@name-type='legal']">
	         	Name 
	         </xsl:when>
	         <xsl:otherwise>
	         	Name (FAMILIENNAME, Vorname)
	         </xsl:otherwise>
	      </xsl:choose>
   </xsl:template>   
	<xsl:template name="officeName_ChoiceText">
      <xsl:param name="office"></xsl:param>
      <xsl:param name="tOffice" select="translate($office,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:param>
      <xsl:choose>
         <xsl:when test="$tOffice='AE'">
	            Internationales Zentrum für die Eintragung von Patenten, Wirtschaftsministerium (Vereinigte Arabische Emirate)	
         </xsl:when>
         <xsl:when test="$tOffice='AG'">
	            Amt für geistiges Eigentum und Handel (Antigua und Barbuda) (ABIPCO)	
         </xsl:when>
         <xsl:when test="$tOffice='AL'">
	            Generaldirektorat für gewerbliches Eigentum (GDIP) (Albanien)	
         </xsl:when>
         <xsl:when test="$tOffice='AM'">
	            Amt für geistiges Eigentum der Republik Armenien	
         </xsl:when>
         <xsl:when test="$tOffice='AO'">
	            Angolanisches Institut für gewerblichen Rechtsschutz	
         </xsl:when>
         <xsl:when test="$tOffice='AP'">
	            Afrikanische regionale Organisation für geistiges Eigentum (ARIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='AT'">
	            Österreichisches Patentamt	
         </xsl:when>
         <xsl:when test="$tOffice='AU'">
	            Australisches Patentamt	
         </xsl:when>
         <xsl:when test="$tOffice='AZ'">
	            Agentur für geistiges Eigentum der Republik Aserbaidschan	
         </xsl:when>
         <xsl:when test="$tOffice='BA'">
	            Institut für geistiges Eigentum von Bosnien und Herzegowina	
         </xsl:when>
         <xsl:when test="$tOffice='BB'">
	            Amt für Körperschaftsangelegenheiten und geistiges Eigentum (Barbados)	
         </xsl:when>
         <xsl:when test="$tOffice='BE'">
	            Belgisches Amt für geistiges Eigentum (IPObel)	
         </xsl:when>
         <xsl:when test="$tOffice='BF'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='BG'">
	            Patentamt der Republik Bulgarien	
         </xsl:when>
         <xsl:when test="$tOffice='BH'">
	            Direktion für Außenhandel und gewerbliches Eigentum, Nationales Patentamt (Bahrain)	
         </xsl:when>
         <xsl:when test="$tOffice='BJ'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='BN'">
	            Amt für geistiges Eigentum (Brunei Darussalam) (BruIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='BR'">
	            Nationales Institut für gewerblichen Rechtsschutz (Brasilien)	
         </xsl:when>
         <xsl:when test="$tOffice='BW'">
	            Behörde für Firmenangelegenheiten und geistiges Eigentum (CIPA) (Botswana)	
         </xsl:when>
         <xsl:when test="$tOffice='BX'">
	            Benelux Office for Intellectual Property (BOIP)	
         </xsl:when>
         <xsl:when test="$tOffice='BY'">
	            Nationales Zentrum für geistiges Eigentum (Belarus)	
         </xsl:when>
         <xsl:when test="$tOffice='BZ'">
	            Amt für geistiges Eigentum (Belize)	
         </xsl:when>
         <xsl:when test="$tOffice='CA'">
	            Kanadisches Amt für geistiges Eigentum	
         </xsl:when>
         <xsl:when test="$tOffice='CF'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CG'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CH'">
	            Eidgenössisches Institut für Geistiges Eigentum	
         </xsl:when>
         <xsl:when test="$tOffice='CI'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CL'">
	            Nationales Institut für gewerblichen Rechtsschutz (Chile)	
         </xsl:when>
         <xsl:when test="$tOffice='CM'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CN'">
	            Chinesische Nationalbehörde für geistiges Eigentum (CNIPA)	
         </xsl:when>
         <xsl:when test="$tOffice='CO'">
	            Aufsichtsbehörde für Industrie und Handel (Kolumbien)	
         </xsl:when>
         <xsl:when test="$tOffice='CR'">
	            Registrieramt für geistiges Eigentum (Costa Rica)	
         </xsl:when>
         <xsl:when test="$tOffice='CS'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CU'">
	            Kubanisches Amt für gewerblichen Rechtsschutz	
         </xsl:when>
         <xsl:when test="$tOffice='CY'">
	            Zyprische Dienststelle zur Registrierung von Gesellschaften und amtliche Annahmestelle	
         </xsl:when>
         <xsl:when test="$tOffice='CV'">
	            Institut für Qualitätsmanagement und geistiges Eigentum (IGQPI) (Kap Verde)	
         </xsl:when>
         <xsl:when test="$tOffice='CZ'">
	            Amt für gewerbliches Eigentum der Tschechischen Republik	
         </xsl:when>
         <xsl:when test="$tOffice='DD'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='DE'">
	            Deutsches Patent- und Markenamt	
         </xsl:when>
         <xsl:when test="$tOffice='DJ'">
	            Amt für gewerbliches Eigentum und Handel von Dschibuti (ODPIC)	
         </xsl:when>
         <xsl:when test="$tOffice='DK'">
	            Dänisches Patent- und Markenamt	
         </xsl:when>
         <xsl:when test="$tOffice='DM'">
	            Register von Unternehmen und Amt für geistiges Eigentum (Dominica)	
         </xsl:when>
         <xsl:when test="$tOffice='DO'">
	            Nationales Amt für gewerblichen Rechtsschutz (Dominikanische Republik)	
         </xsl:when>
         <xsl:when test="$tOffice='DZ'">
	            Nationales algerisches Institut für gewerblichen Rechtsschutz	
         </xsl:when>
         <xsl:when test="$tOffice='EA'">
	            Eurasisches Patentamt (EAPO)	
         </xsl:when>
         <xsl:when test="$tOffice='EC'">
	            Nationaler Dienst für Rechte am geistigen Eigentum (SENADI) (Ecuador)	
         </xsl:when>
         <xsl:when test="$tOffice='EE'">
	            Estnisches Patentamt	
         </xsl:when>
         <xsl:when test="$tOffice='EG'">
	            Ägyptisches Patentamt	
         </xsl:when>
         <xsl:when test="$tOffice='EM'">
	            Amt der Europäischen Union für geistiges Eigentum	
         </xsl:when>
         <xsl:when test="$tOffice='EP'">
	            Europäisches Patentamt (EPA)	
         </xsl:when>
         <xsl:when test="$tOffice='ES'">
	            Spanisches Patent- und Markenamt	
         </xsl:when>
         <xsl:when test="$tOffice='FI'">
	            Finnisches Patent- und Registrieramt (PRH)	
         </xsl:when>
         <xsl:when test="$tOffice='FR'">
	            Nationales Institut für gewerbliches Eigentum (INPI) (Frankreich)	
         </xsl:when>
         <xsl:when test="$tOffice='GA'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='GB'">
	            Amt für geistiges Eigentum (Vereinigtes Königreich)	
         </xsl:when>
         <xsl:when test="$tOffice='GC'">
	            Patent Office of the Gulf Cooperation Council (GCC)	
         </xsl:when>
         <xsl:when test="$tOffice='GD'">
	            Register des Obersten Gerichtshofs (Grenada)	
         </xsl:when>
         <xsl:when test="$tOffice='GE'">
	            Nationales Zentrum für geistiges Eigentum Georgiens (SAKPATENTI)	
         </xsl:when>
         <xsl:when test="$tOffice='GH'">
	            Registrierabteilung (Ghana)	
         </xsl:when>
         <xsl:when test="$tOffice='GM'">
	            Registrierabteilung, Justizministerium (Gambia)	
         </xsl:when>
         <xsl:when test="$tOffice='GN'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='GQ'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='GR'">
	            Organisation für gewerblichen Rechtsschutz (OBI) (Griechenland)	
         </xsl:when>
         <xsl:when test="$tOffice='GT'">
	            Registrieramt für geistiges Eigentum (Guatemala)	
         </xsl:when>
         <xsl:when test="$tOffice='GW'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='HK'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='HN'">
	            Generaldirektion für geistiges Eigentum (Honduras)	
         </xsl:when>
         <xsl:when test="$tOffice='HR'">
	            Amt für geistiges Eigentum (Kroatien)	
         </xsl:when>
         <xsl:when test="$tOffice='HU'">
	            Ungarisches Amt für geistiges Eigentum (HIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='IB'">
	            Internationales Büro der WIPO	
         </xsl:when>
         <xsl:when test="$tOffice='ID'">
	            Generaldirektion für geistiges Eigentum (Indonesien)	
         </xsl:when>
         <xsl:when test="$tOffice='IE'">
	            Amt für geistiges Eigentum (Irland)	
         </xsl:when>
         <xsl:when test="$tOffice='IL'">
	            Israelisches Patentamt	
         </xsl:when>
         <xsl:when test="$tOffice='IR'">
	            Zentrum für geistiges Eigentum (Islamische Republik Iran)	
         </xsl:when>
         <xsl:when test="$tOffice='IN'">
	            Indisches Patentamt	
         </xsl:when>
         <xsl:when test="$tOffice='IQ'">
	            Irakisches Patentamt (IQPO)	
         </xsl:when>
         <xsl:when test="$tOffice='IS'">
	            Isländisches Amt für geistiges Eigentum (ISIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='IT'">
	            Italienisches Patent- und Markenamt	
         </xsl:when>
         <xsl:when test="$tOffice='JM'">
               Jamaikanisches Amt für geistiges Eigentum (JIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='JO'">
	            Abteilung für gewerblichen Rechtsschutz, Ministerium für Industrie, Handel und Versorgung (Jordanien)	
         </xsl:when>
         <xsl:when test="$tOffice='JP'">
	            Japanisches Patentamt (JPO)	
         </xsl:when>
         <xsl:when test="$tOffice='KE'">
	            Amt für gewerblichen Rechtsschutz (Kenia)	
         </xsl:when>
         <xsl:when test="$tOffice='KG'">
	            Ministerium für Wissenschaft, Höhere Bildung und Innovation der Kirgisischen Republik	
         </xsl:when>
         <xsl:when test="$tOffice='KH'">
	            Abteilung für gewerbliches Eigentum, Ministerium für Industrie, Wissenschaft, Technologie und Innovation (Kambodscha)	
         </xsl:when>
         <xsl:when test="$tOffice='KM'">
	            Amt für geistiges Eigentum (Komoren)	
         </xsl:when>
         <xsl:when test="$tOffice='KN'">
	            Amt für geistiges Eigentum von St. Kitts und Nevis	
         </xsl:when>
         <xsl:when test="$tOffice='KP'">
	            Behörde für geistiges Eigentum (IPA) der Demokratischen Volksrepublik Korea	
         </xsl:when>
         <xsl:when test="$tOffice='KR'">
	            Ministerium für geistiges Eigentum (MOIP) (Republik Korea)	
         </xsl:when>
         <xsl:when test="$tOffice='KW'">
	            Handels- und Industrieministerium, Marken- und Patentabteilung (Kuwait)	
         </xsl:when>
         <xsl:when test="$tOffice='KZ'">
	            Nationales Institut für geistiges Eigentum (NIIP) (Kasachstan)	
         </xsl:when>
         <xsl:when test="$tOffice='LA'">
	            Abteilung für geistiges Eigentum, Ministerium für Wissenschaft und Technologie (Demokratische Volksrepublik Laos)	
         </xsl:when>
         <xsl:when test="$tOffice='LC'">
	            Registrieramt für Gesellschaften und geistiges Eigentum (Saint Lucia)	
         </xsl:when>
         <xsl:when test="$tOffice='LK'">
	            Nationales Amt für geistiges Eigentum (Sri Lanka)	
         </xsl:when>
         <xsl:when test="$tOffice='LR'">
	            Liberianisches Amt für geistiges Eigentum (LIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='LS'">
	            Registrierabteilung (Lesotho)	
         </xsl:when>
         <xsl:when test="$tOffice='LT'">
	            Staatliches Patentamt der Republik Litauen	
         </xsl:when>
         <xsl:when test="$tOffice='LU'">
	            Amt für geistiges Eigentum (Luxemburg)	
         </xsl:when>
         <xsl:when test="$tOffice='LV'">
	            Patentamt der Republik Lettland	
         </xsl:when>
         <xsl:when test="$tOffice='LY'">
	            Amt für gewerblichen Rechtsschutz (Libyen)	
         </xsl:when>
         <xsl:when test="$tOffice='MA'">
	            Marokkanisches Amt für gewerblichen Rechtsschutz (OMPIC)	
         </xsl:when>
         <xsl:when test="$tOffice='MC'">
	            Amt für gewerblichen Rechtsschutz von Monaco (MCIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='MD'">
	            Staatliche Behörde für geistiges Eigentum (Republik Moldau)	
         </xsl:when>
         <xsl:when test="$tOffice='ME'">
	            Ministerium für wirtschaftliche Entwicklung (Montenegro)	
         </xsl:when>
         <xsl:when test="$tOffice='MG'">
	            Madagassisches Amt für gewerblichen Rechtsschutz	
         </xsl:when>
         <xsl:when test="$tOffice='MK'">
	            Amt für gewerbliches Eigentum (Nordmazedonien)	
         </xsl:when>
         <xsl:when test="$tOffice='ML'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='MN'">
	            Amt für geistiges Eigentum (Mongolei)	
         </xsl:when>
         <xsl:when test="$tOffice='MR'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='MT'">
	            Direktion für die Registrierung gewerblicher Schutzrechte, Handelsabteilung (Malta)	
         </xsl:when>
         <xsl:when test="$tOffice='MU'">
	            Amt für gewerblichen Rechtsschutz von Mauritius (IPOM)	
         </xsl:when>
         <xsl:when test="$tOffice='MW'">
	            Justizministerium, Registrierabteilung (Malawi)	
         </xsl:when>
         <xsl:when test="$tOffice='MX'">
	            Mexikanisches Institut für gewerblichen Rechtsschutz	
         </xsl:when>
         <xsl:when test="$tOffice='MY'">
	            Gesellschaft für geistiges Eigentum von Malaysia	
         </xsl:when>
         <xsl:when test="$tOffice='MZ'">
	            Institut für gewerbliches Eigentum (IPI) (Mosambik)	
         </xsl:when>
         <xsl:when test="$tOffice='NA'">
	            Behörde für Firmenregistrierung und geistiges Eigentum (BIPA) (Namibia)	
         </xsl:when>
         <xsl:when test="$tOffice='NE'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='NG'">
	            Registrierstelle für Patente und Designs, Abteilung für Handelsrecht (Nigeria)	
         </xsl:when>
         <xsl:when test="$tOffice='NI'">
	            Registrieramt für geistiges Eigentum (Nicaragua)	
         </xsl:when>
         <xsl:when test="$tOffice='NL'">
	            Niederländisches Patentamt	
         </xsl:when>
         <xsl:when test="$tOffice='NO'">
	            Norwegisches Amt für gewerblichen Rechtsschutz	
         </xsl:when>
         <xsl:when test="$tOffice='NZ'">
	            Neuseeländisches Amt für geistiges Eigentum (IPONZ)	
         </xsl:when>
         <xsl:when test="$tOffice='OA'">
	            Afrikanische Organisation für geistiges Eigentum (OAPI)	
         </xsl:when>
         <xsl:when test="$tOffice='OM'">
	            Nationales Amt für geistiges Eigentum (Ministerium für die Förderung von Handel, Industrie und Investment) (Oman)	
         </xsl:when>
         <xsl:when test="$tOffice='PA'">
	            Generaldirektorat des Registrieramts für gewerblichen Rechtsschutz (DIGERPI) (Panama)	
         </xsl:when>
         <xsl:when test="$tOffice='PE'">
	            Nationales Institut für Wettbewerbsschutz und Schutz des geistigen Eigentums (Peru)	
         </xsl:when>
         <xsl:when test="$tOffice='PG'">
	            Amt für geistiges Eigentum (Papua-Neuguinea)	
         </xsl:when>
         <xsl:when test="$tOffice='PH'">
	            Amt für geistiges Eigentum der Philippinen	
         </xsl:when>
         <xsl:when test="$tOffice='PL'">
	            Patentamt der Republik Polen	
         </xsl:when>
         <xsl:when test="$tOffice='PT'">
	            Nationales Institut für gewerblichen Rechtsschutz (Portugal)	
         </xsl:when>
         <xsl:when test="$tOffice='QA'">
	            Abteilung für geistiges Eigentum (Katar)	
         </xsl:when>
         <xsl:when test="$tOffice='RO'">
	            Staatliches Amt für Erfindungen und Marken (Rumänien)	
         </xsl:when>
         <xsl:when test="$tOffice='RS'">
	            Amt für geistiges Eigentum (Serbien)	
         </xsl:when>
         <xsl:when test="$tOffice='RU'">
	            Föderaler Dienst für geistiges Eigentum (Rospatent) (Russische Föderation)	
         </xsl:when>
         <xsl:when test="$tOffice='RW'">
	            Registrieramt (Ruanda)	
         </xsl:when>
         <xsl:when test="$tOffice='SA'">
	            Saudisches Amt für geistiges Eigentum (SAIP)	
         </xsl:when>
         <xsl:when test="$tOffice='SC'">
	            Registrierungsstelle, Abteilung für Rechtsangelegenheiten (Seychellen)	
         </xsl:when>
         <xsl:when test="$tOffice='SD'">
	            Generalregisterführer der Abteilung für geistiges Eigentum (Sudan) 
         </xsl:when>
         <xsl:when test="$tOffice='SE'">
	            Schwedisches Amt für geistiges Eigentum (PRV)	
         </xsl:when>
         <xsl:when test="$tOffice='SG'">
	            Amt  für geistiges Eigentum (Singapur)	
         </xsl:when>
         <xsl:when test="$tOffice='SI'">
	            Slowenisches Amt für geistiges Eigentum	
         </xsl:when>
         <xsl:when test="$tOffice='SK'">
	            Amt für gewerbliches Eigentum der Slowakischen Republik	
         </xsl:when>
         <xsl:when test="$tOffice='SL'">
	            Registrieramt (Sierra Leone)	
         </xsl:when>
         <xsl:when test="$tOffice='SM'">
	            Patent- und Markenamt (San Marino)	
         </xsl:when>
         <xsl:when test="$tOffice='SN'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='ST'">
	            Nationaler Dienst für gewerblichen Rechtsschutz (SENAPI) (São Tomé und Príncipe)	
         </xsl:when>
         <xsl:when test="$tOffice='SU'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='SV'">
	            Nationales Zentrum für Registrierungen (CNR) (El Salvador)	
         </xsl:when>
         <xsl:when test="$tOffice='SY'">
	            Ministerium für Innenhandel und Konsumentenschutz, Direktorat für gewerblichen Rechtsschutz (Arabische Republik Syrien)	
         </xsl:when>
         <xsl:when test="$tOffice='SZ'">
	            Ministry of Justice
Registrar General's Office	
         </xsl:when>
         <xsl:when test="$tOffice='TD'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='TG'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='TH'">
	            Abteilung für geistiges Eigentum (DIP) (Thailand)	
         </xsl:when>
         <xsl:when test="$tOffice='TJ'">
	            Nationales Zentrum für Patente und Informationen des Ministeriums für Wirtschaftsentwicklung und Handel der Republik Tadschikistan	
         </xsl:when>
         <xsl:when test="$tOffice='TM'">
	            Staatliches Amt für geistiges Eigentum des Ministeriums für Finanzen und Wirtschaft (Turkmenistan)	
         </xsl:when>
         <xsl:when test="$tOffice='TN'">
	            Nationales Institut für Standardisierung und gewerblichen Rechtsschutz (INNORPI) (Tunesien)	
         </xsl:when>
         <xsl:when test="$tOffice='TR'">
	            Türkisches Patent- und Markenamt (Turkpatent)	
         </xsl:when>
         <xsl:when test="$tOffice='TT'">
	            Amt für geistiges Eigentum, Ministerium für Land und Rechtsangelegenheiten (Trinidad und Tobago)	
         </xsl:when>
         <xsl:when test="$tOffice='TZ'">
	            Dienststelle für Gewerberegistrierung und Konzessionserteilung, Wirtschaftsministerium (Vereinigte Republik Tansania)	
         </xsl:when>
         <xsl:when test="$tOffice='UA'">
	            Ukrainisches Nationales Amt für geistiges Eigentum und Innovationen (UANIPIO)	
         </xsl:when>
         <xsl:when test="$tOffice='UG'">
	            Eintragungsdienstebüro von Uganda (URSB)	
         </xsl:when>
         <xsl:when test="$tOffice='US'">
	            US Patent- und Markenamt (USPTO)	
         </xsl:when>
         <xsl:when test="$tOffice='UY'">
	            Nationales Direktorat für gewerbliches Eigentum (DNPI)	
         </xsl:when>
         <xsl:when test="$tOffice='UZ'">
	            Agentur für geistiges Eigentum unter dem Justizministerium der Republik Usbekistan	
         </xsl:when>
         <xsl:when test="$tOffice='VC'">
	            Amt für Handel und geistiges Eigentum (CIPO) (St. Vincent und die Grenadinen)	
         </xsl:when>
         <xsl:when test="$tOffice='VN'">
	            Vietnamesisches Amt für geistiges Eigentum (IP Viet Nam)	
         </xsl:when>
         <xsl:when test="$tOffice='WO'">
	            Weltorganisation für geistiges Eigentum	
         </xsl:when>
         <xsl:when test="$tOffice='WS'">
	            Ministerium für Handel, Industrie und Arbeit (MCIL) (Samoa)	
         </xsl:when>
         <xsl:when test="$tOffice='XN'">
	            Nordisches Patentinstitut	
         </xsl:when>
		 <xsl:when test="$tOffice='XV'">
	            Visegrad-Patentinstitut (VPI)	
         </xsl:when>
         <xsl:when test="$tOffice='YU'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='ZA'">
	            Kommission für Firmen und geistiges Eigentum (CIPC) (Republik Südafrika)	
         </xsl:when>
         <xsl:when test="$tOffice='ZM'">
	            Registrieramt für Patente und Unternehmen (PACRA) (Sambia)	
         </xsl:when>
         <xsl:when test="$tOffice='ZR'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='ZW'">
	            Amt für geistiges Eigentum (Simbabwe)	
         </xsl:when>
         <xsl:otherwise>
            <xsl:value-of select="$tOffice"></xsl:value-of>
         </xsl:otherwise>
      </xsl:choose>
   </xsl:template>   
	<xsl:variable name="adjustedFontSize" xmlns:fox="http://xml.apache.org/fop/extensions">10pt</xsl:variable><xsl:attribute-set name="tdTL" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table, top left column -->
		<xsl:attribute name="border-top">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="font-size">8pt</xsl:attribute>
		<xsl:attribute name="vertical-align">top</xsl:attribute>
		<xsl:attribute name="padding">1pt</xsl:attribute>
		<xsl:attribute name="text-align">left</xsl:attribute>
		<xsl:attribute name="letter-spacing">
			<xsl:choose>
				<xsl:when test="$lang='ja'">			
					-0.1mm
				</xsl:when>		
				<xsl:otherwise>			
					0mm
				</xsl:otherwise>		
			</xsl:choose>	
		</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdTC" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table, top center column -->
		<xsl:attribute name="border-top">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="border-left">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="border-right">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="font-size">8pt</xsl:attribute>
		<xsl:attribute name="vertical-align">top</xsl:attribute> 
		<xsl:attribute name="padding">1pt</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdTR" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table, top right column, with data -->
		<xsl:attribute name="border-top">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="font-size">
			<xsl:choose>
				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
					<xsl:value-of select="$adjustedFontSize"></xsl:value-of>
				</xsl:when>
				<xsl:otherwise>12pt</xsl:otherwise>
			</xsl:choose>
		</xsl:attribute>
		<xsl:attribute name="font-family"><xsl:value-of select="$courier_font"></xsl:value-of></xsl:attribute>
		<xsl:attribute name="padding">1pt</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdBL" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table, left column, border bottom -->
		<xsl:attribute name="border-bottom">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="font-size">8pt</xsl:attribute>
		<xsl:attribute name="vertical-align">top</xsl:attribute>
		<xsl:attribute name="padding">1pt</xsl:attribute>
		<xsl:attribute name="letter-spacing">
			<xsl:choose>
				<xsl:when test="$lang='ja'">			
					-0.1mm
				</xsl:when>		
				<xsl:otherwise>			
					0mm
				</xsl:otherwise>		
			</xsl:choose>	
		</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdBC" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table, center column, border bottom -->
		<xsl:attribute name="border-bottom">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="border-left">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="border-right">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="font-size">8pt</xsl:attribute>
		<xsl:attribute name="vertical-align">top</xsl:attribute>
		<xsl:attribute name="padding">1pt</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdBR" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table, right column, border bottom -->
		<xsl:attribute name="border-bottom">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="font-size">
			<xsl:choose>
				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
					<xsl:value-of select="$adjustedFontSize"></xsl:value-of>
				</xsl:when>
				<xsl:otherwise>12pt</xsl:otherwise>
			</xsl:choose>
		</xsl:attribute>
		<xsl:attribute name="font-family"><xsl:value-of select="$courier_font"></xsl:value-of></xsl:attribute>
		<xsl:attribute name="padding-left">1pt</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdL" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table, left column -->
		<xsl:attribute name="font-size">8pt</xsl:attribute>
		<xsl:attribute name="vertical-align">top</xsl:attribute>
		<xsl:attribute name="padding">1pt</xsl:attribute>
		<xsl:attribute name="letter-spacing">
			<xsl:choose>
				<xsl:when test="$lang='ja'">			
					-0.1mm
				</xsl:when>		
				<xsl:otherwise>			
					0mm
				</xsl:otherwise>		
			</xsl:choose>	
		</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdC" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table, center column -->
		<xsl:attribute name="border-left">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="border-right">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="font-size">8pt</xsl:attribute>
		<xsl:attribute name="vertical-align">top</xsl:attribute>
		<xsl:attribute name="padding">1pt</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdR" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table, right column -->
		<xsl:attribute name="font-size">
			<xsl:choose>
				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
					<xsl:value-of select="$adjustedFontSize"></xsl:value-of>
				</xsl:when>
				<xsl:otherwise>12pt</xsl:otherwise>
			</xsl:choose>
		</xsl:attribute>
		<xsl:attribute name="font-family"><xsl:value-of select="$courier_font"></xsl:value-of></xsl:attribute>
		<xsl:attribute name="padding">1pt</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdTB" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table cell, top and bottom borders -->
		<xsl:attribute name="border-top">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="border-bottom">solid black 0.5pt</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdTBL" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table, left column, top and bottom borders -->
		<xsl:attribute name="border-top">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="border-bottom">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="font-size">8pt</xsl:attribute>
		<xsl:attribute name="vertical-align">top</xsl:attribute>
		<xsl:attribute name="padding">1pt</xsl:attribute>
		<xsl:attribute name="letter-spacing">
			<xsl:choose>
				<xsl:when test="$lang='ja'">			
					-0.1mm
				</xsl:when>		
				<xsl:otherwise>			
					0mm
				</xsl:otherwise>		
			</xsl:choose>	
		</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdTBC" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table, center column, all borders -->
		<xsl:attribute name="border">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="font-size">8pt</xsl:attribute>
		<xsl:attribute name="vertical-align">top</xsl:attribute>
		<xsl:attribute name="padding">1pt</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdTBC_hyp" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table, center column, all borders -->
		<xsl:attribute name="border">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="font-size">8pt</xsl:attribute>
		<xsl:attribute name="vertical-align">top</xsl:attribute>
		<xsl:attribute name="padding">1pt</xsl:attribute>
		<xsl:attribute name="hyphenate">
			<xsl:choose>
				<xsl:when test="not($lang='ja' or $lang='zh')">true</xsl:when>
				<xsl:otherwise>false</xsl:otherwise>
			</xsl:choose>
		</xsl:attribute>
		<xsl:attribute name="hyphenation-push-character-count">6</xsl:attribute>
		<xsl:attribute name="hyphenation-remain-character-count">6</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdTBR" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table, right column, top and bottom borders -->
		<xsl:attribute name="border-top">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="border-bottom">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="font-size">
			<xsl:choose>
				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
					<xsl:value-of select="$adjustedFontSize"></xsl:value-of>
				</xsl:when>
				<xsl:otherwise>12pt</xsl:otherwise>
			</xsl:choose>
		</xsl:attribute>
		<xsl:attribute name="font-family"><xsl:value-of select="$courier_font"></xsl:value-of></xsl:attribute>
		<xsl:attribute name="padding">1.5pt</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdBorderTop" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table cell, top border -->
		<xsl:attribute name="border-top">solid black 0.5pt</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdBorderBottom" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table cell, bottom border -->
		<xsl:attribute name="border-bottom">solid black 0.5pt</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdBorderBottomLeft" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table cell, bottom and left border -->
		<xsl:attribute name="border-bottom">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="border-left">solid black 0.5pt</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdBorderLeft" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table cell, left border -->
		<xsl:attribute name="border-left">solid black 0.5pt</xsl:attribute> 
		<xsl:attribute name="font-size">8pt</xsl:attribute>
		<xsl:attribute name="vertical-align">top</xsl:attribute> 
		<xsl:attribute name="padding">1pt</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdBorderRight" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table cell, right border -->
		<xsl:attribute name="border-right">solid black 0.5pt</xsl:attribute> 
		<xsl:attribute name="font-size">8pt</xsl:attribute>
		<xsl:attribute name="vertical-align">top</xsl:attribute> 
		<xsl:attribute name="padding">1pt</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdBorderTopLeft" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table cell, top border -->
		<xsl:attribute name="border-top">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="border-left">solid black 0.5pt</xsl:attribute> 
		<xsl:attribute name="font-size">8pt</xsl:attribute>
		<xsl:attribute name="vertical-align">top</xsl:attribute> 
		<xsl:attribute name="padding">1pt</xsl:attribute>
		<xsl:attribute name="text-align">center</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdBorderTopLeftData" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table cell, top border -->
		<xsl:attribute name="border-top">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="border-left">solid black 0.5pt</xsl:attribute> 
		<xsl:attribute name="font-size">
			<xsl:choose>
				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
					<xsl:value-of select="$adjustedFontSize"></xsl:value-of>
				</xsl:when>
				<xsl:otherwise>12pt</xsl:otherwise>
			</xsl:choose>
		</xsl:attribute>
		<xsl:attribute name="font-family"><xsl:value-of select="$courier_font"></xsl:value-of></xsl:attribute>
		<xsl:attribute name="padding">1pt</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdBorderTopBottomLeftData" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table cell, top border -->
		<xsl:attribute name="border-top">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="border-bottom">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="border-left">solid black 0.5pt</xsl:attribute> 
		<xsl:attribute name="font-size">
			<xsl:choose>
				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
					<xsl:value-of select="$adjustedFontSize"></xsl:value-of>
				</xsl:when>
				<xsl:otherwise>12pt</xsl:otherwise>
			</xsl:choose>
		</xsl:attribute>
		<xsl:attribute name="font-family"><xsl:value-of select="$courier_font"></xsl:value-of></xsl:attribute>
		<xsl:attribute name="padding">1pt</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdBorderTopRight" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table cell, top border -->
		<xsl:attribute name="border-top">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="border-right">solid black 0.5pt</xsl:attribute> 
		<xsl:attribute name="font-size">8pt</xsl:attribute>
		<xsl:attribute name="vertical-align">top</xsl:attribute> 
		<xsl:attribute name="padding">1pt</xsl:attribute>
		<xsl:attribute name="text-align">center</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdBorderTopRightData" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table cell, top border -->
		<xsl:attribute name="border-top">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="border-right">solid black 0.5pt</xsl:attribute> 
		<xsl:attribute name="font-size">
			<xsl:choose>
				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
					<xsl:value-of select="$adjustedFontSize"></xsl:value-of>
				</xsl:when>
				<xsl:otherwise>12pt</xsl:otherwise>
			</xsl:choose>
		</xsl:attribute>
		<xsl:attribute name="font-family"><xsl:value-of select="$courier_font"></xsl:value-of></xsl:attribute>
		<xsl:attribute name="padding">1pt</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="hyphenation" xmlns:fox="http://xml.apache.org/fop/extensions">
		<xsl:attribute name="language">
			<xsl:value-of select="$lang"></xsl:value-of>
		</xsl:attribute>
		<xsl:attribute name="font-size">12pt</xsl:attribute>
		<xsl:attribute name="hyphenate">
			<xsl:choose>
				<xsl:when test="not($lang='ja' or $lang='zh')">true</xsl:when>
				<xsl:otherwise>false</xsl:otherwise>
			</xsl:choose>
		</xsl:attribute>
		<xsl:attribute name="hyphenation-push-character-count">6</xsl:attribute>
		<xsl:attribute name="hyphenation-remain-character-count">6</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdBorderTopLeftNoCenter" xmlns:fox="http://xml.apache.org/fop/extensions">
		<!-- table cell, top left -->
		<xsl:attribute name="border-top">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="border-left">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="font-size">8pt</xsl:attribute>
		<xsl:attribute name="vertical-align">top</xsl:attribute> 
		<xsl:attribute name="padding">1pt</xsl:attribute>
	</xsl:attribute-set>   
	<xsl:key name="allCharge" match="//charge" use="."></xsl:key><xsl:key name="allPostal" match="//postal-order" use="."></xsl:key><xsl:key name="allCash" match="//cash" use="."></xsl:key><xsl:key name="allCoupons" match="//coupons" use="."></xsl:key><xsl:key name="allCheque" match="//cheque" use="."></xsl:key><xsl:key name="allBank" match="//bank-draft" use="."></xsl:key><xsl:key name="allStamps" match="//stamps" use="."></xsl:key><xsl:key name="allOther" match="//other" use="."></xsl:key><xsl:key name="allCur" match="//*/@currency" use="."></xsl:key><xsl:key name="fee-currency" match="prescribed-fees/* | amount-grand-total" use="@currency"></xsl:key><xsl:template name="fee_info">      
		<xsl:choose>         
			<xsl:when test="$fee_doc != ''">         
				<xsl:for-each select="document($fee_doc)/*">
					<xsl:choose>   
						<xsl:when test="document($fee_doc)//doc-page">  
							<xsl:for-each select="document($fee_doc)//doc-page"> 
								<xsl:apply-templates select="."></xsl:apply-templates>  
							</xsl:for-each>   
						</xsl:when>   
						<xsl:otherwise>  
							<xsl:call-template name="process_fee_info"></xsl:call-template>   
						</xsl:otherwise>
					</xsl:choose>
				</xsl:for-each>  
			</xsl:when>      
			<!-- when no fee parameter (e.g., fee-sheet document) -->
			<xsl:otherwise>            
				<xsl:choose>               
					<xsl:when test="./doc-page">                  
						<xsl:for-each select="./doc-page">                     
							<xsl:apply-templates select="doc-page"></xsl:apply-templates>                  
						</xsl:for-each>               
					</xsl:when>               
					<xsl:otherwise>
						<xsl:call-template name="process_fee_info"></xsl:call-template>        
					</xsl:otherwise>            
				</xsl:choose>         
			</xsl:otherwise>      
		</xsl:choose>   
		<xsl:call-template name="remarks"></xsl:call-template>       
	</xsl:template><xsl:template name="process_fee_info">    
		<!-- get the currencies used -->
		<xsl:variable name="uCharge" select="//charge[generate-id(.)=generate-id(key('allCharge',.))]"></xsl:variable>   
		<xsl:variable name="uPostal" select="//postal-order[generate-id(.)=generate-id(key('allPostal',.))]"></xsl:variable>   
		<xsl:variable name="uCash" select="//cash[generate-id(.)=generate-id(key('allCash',.))]"></xsl:variable>   
		<xsl:variable name="uCoupons" select="//coupons[generate-id(.)=generate-id(key('allCoupons',.))]"></xsl:variable>   
		<xsl:variable name="uCheque" select="//cheque[generate-id(.)=generate-id(key('allCheque',.))]"></xsl:variable>   
		<xsl:variable name="uBank" select="//bank-draft[generate-id(.)=generate-id(key('allBank',.))]"></xsl:variable>   
		<xsl:variable name="uStamps" select="//stamps[generate-id(.)=generate-id(key('allStamps',.))]"></xsl:variable>   
		<xsl:variable name="uOther" select="//other[generate-id(.)=generate-id(key('allOther',.))]"></xsl:variable>   
		<!-- variable to store the number of different payment modes; used in box 12-19 -->
		<xsl:variable name="pModes" select="count($uCharge) + count($uPostal) + count($uCash) + count($uCoupons) + count($uCheque) + count($uBank) + count($uStamps) + count($uOther)"></xsl:variable>
		<xsl:variable name="curCount" select="count(.//*/@currency[generate-id(.)=generate-id(key('allCur',.))])"></xsl:variable>      
		<xsl:variable name="unique-currencies" select=".//prescribed-fees/*[count( . | key('fee-currency', @currency)[1]) = 1] | .//amount-grand-total[count( . | key('fee-currency', @currency)[1]) = 1]"></xsl:variable>      
		<fo:table table-layout="fixed" border-collapse="separate" space-after="5mm">         
			<fo:table-column column-width="12mm"></fo:table-column>         
			<fo:table-column column-width="53mm"></fo:table-column>         
			<fo:table-column column-width="105mm"></fo:table-column>         
			<fo:table-body>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdTL">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>0</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTC">                  
						<fo:block space-after="1.5mm">                     
							<fo:inline font-weight="bold">                        
								Vom Anmeldeamt auszufüllen                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTL">                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdBL">                  
						<fo:block>                     
							<xsl:text>0-1</xsl:text>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBC">                  
						<fo:block>                     
							Internationales Aktenzeichen                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBR">
						<fo:block>
						<xsl:choose>
							<xsl:when test="document($rrri_doc)//doc-number">
									<xsl:value-of select="document($rrri_doc)//doc-number"></xsl:value-of>
							</xsl:when>
							<xsl:when test="$ia_number">
									<xsl:value-of select="$ia_number"></xsl:value-of>
							</xsl:when>
						</xsl:choose>
						</fo:block>    
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdBL">                  
						<fo:block space-after="2.5mm">                     
							<fo:inline font-weight="bold">                        
								<xsl:text>0-2</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBC">                  
						<fo:block>                     
							Eingangsstempel des Anmeldeamts                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderBottom">                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>         
			</fo:table-body>      
		</fo:table>      
		<fo:table table-layout="fixed" border-collapse="separate">         
			<fo:table-column column-width="12mm"></fo:table-column>         
			<fo:table-column column-width="48mm"></fo:table-column>         
			<fo:table-column column-width="5mm"></fo:table-column>         
			<fo:table-column column-width="31mm"></fo:table-column>         
			<fo:table-column column-width="41mm"></fo:table-column>         
			<fo:table-column column-width="33mm"></fo:table-column>         
			<fo:table-body>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdTL">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>0-4</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								Formular PCT/RO/101 (Anhang)                        
								<fo:block space-before=".5mm"></fo:block>                        
								PCT Blatt für die Gebührenberechnung                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTop" number-columns-spanned="3">                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdBL">                  
						<fo:block>                     
							<xsl:text>0-4-1</xsl:text>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBC" number-columns-spanned="2">                  
						<fo:block>                     
							Erstellt mit                  
						</fo:block>               
					</fo:table-cell>   
					<fo:table-cell xsl:use-attribute-sets="tdBR" number-columns-spanned="3">                  
						<fo:block>                  
							<fo:inline font-weight="bold"> 
								<xsl:value-of select="$software_name"></xsl:value-of> 
								<fo:block></fo:block>
								<xsl:value-of select="$software_version"></xsl:value-of> 
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>            
				</fo:table-row>   
            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdBL">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>0-9</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBC" number-columns-spanned="2">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								Aktenzeichen des Anmelders oder Anwalts                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBR" number-columns-spanned="3">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:value-of select=".//file-reference-id"></xsl:value-of>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>2</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdC" number-columns-spanned="2">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								Anmelder                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdR" number-columns-spanned="3">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:choose>                           
									<xsl:when test=".//applicant-name/name">                              
										<xsl:call-template name="uppercaser">                                 
											<xsl:with-param name="string" select=".//applicant-name/name"></xsl:with-param>                              
										</xsl:call-template>                           
									</xsl:when>                           
									<xsl:otherwise>                              
										<xsl:call-template name="uppercaser">                                 
											<xsl:with-param name="string" select=".//applicant-name/last-name"></xsl:with-param>                              
										</xsl:call-template>                                
                              
										<xsl:text>, </xsl:text>                              
										<xsl:value-of select=".//applicant-name/first-name"></xsl:value-of>                           
									</xsl:otherwise>                        
								</xsl:choose>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdTL" text-align="left">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>12</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								Berechnung der vorgeschriebenen Gebühren                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTL" text-align="center">                  
						<fo:block>                     
							Höhe der Gebühr/Multiplikator                  
						</fo:block>               
					</fo:table-cell>
					<xsl:for-each select=".//prescribed-fees/*">
						<xsl:sort select="@currency"></xsl:sort>
						<xsl:if test="not(@currency = preceding-sibling::*/@currency)"> 
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">   
							<!--202001 show equivalent amount !-->
								<xsl:choose>
									<xsl:when test="@currency = 'EQF'">
										<fo:block>
											Gesamtbeträge   
										</fo:block>
										<fo:block>
											(Gegenwert in 
											<xsl:choose>
												<xsl:when test="..//transmittal-fee/@currency != 'EQF'">
													<xsl:value-of select="..//transmittal-fee/@currency"></xsl:value-of>
												</xsl:when>
												<xsl:when test="..//search-fee/@currency != 'EQF'">
													<xsl:value-of select="..//search-fee/@currency"></xsl:value-of>															
												</xsl:when>
												<xsl:when test="..//international-fee/@currency != 'EQF'">
													<xsl:value-of select="..//international-fee/@currency"></xsl:value-of>															
												</xsl:when>
												<xsl:when test="..//pdoc-fee/@currency != 'EQF'">
													<xsl:value-of select="..//pdoc-fee/@currency"></xsl:value-of>
												</xsl:when>
												<xsl:when test="..//restoration-fee/@currency != 'EQF'">
													<xsl:value-of select="..//restoration-fee/@currency"></xsl:value-of>															
												</xsl:when>
												<xsl:when test="..//earlier-search-document-fee/@currency != 'EQF'">
													<xsl:value-of select="..//earlier-search-document-fee/@currency"></xsl:value-of>
												</xsl:when>
											</xsl:choose>
											 von CHF)
										</fo:block>	
									</xsl:when>
									<xsl:when test="@currency = 'EQU'">
										<fo:block>
											Gesamtbeträge   
										</fo:block>
										<fo:block>
											(Gegenwert in 
											<xsl:choose>
												<xsl:when test="..//transmittal-fee/@currency != 'EQU'">
													<xsl:value-of select="..//transmittal-fee/@currency"></xsl:value-of>
												</xsl:when>
												<xsl:when test="..//search-fee/@currency != 'EQU'">
													<xsl:value-of select="..//search-fee/@currency"></xsl:value-of>															
												</xsl:when>
												<xsl:when test="..//international-fee/@currency != 'EQU'">
													<xsl:value-of select="..//international-fee/@currency"></xsl:value-of>															
												</xsl:when>
												<xsl:when test="..//pdoc-fee/@currency != 'EQU'">
													<xsl:value-of select="..//pdoc-fee/@currency"></xsl:value-of>
												</xsl:when>
												<xsl:when test="..//restoration-fee/@currency != 'EQU'">
													<xsl:value-of select="..//restoration-fee/@currency"></xsl:value-of>															
												</xsl:when>
												<xsl:when test="..//earlier-search-document-fee/@currency != 'EQU'">
													<xsl:value-of select="..//earlier-search-document-fee/@currency"></xsl:value-of>
												</xsl:when>
											</xsl:choose>
											 von USD)
										</fo:block>	
									</xsl:when>
									<xsl:otherwise>	
										<fo:block>   
											Gesamtbeträge    (<xsl:value-of select="@currency"></xsl:value-of>)
										</fo:block>
									</xsl:otherwise>
								</xsl:choose>
							</fo:table-cell> 
						</xsl:if>
					</xsl:for-each> 
					<xsl:if test="$curCount = 1">
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
							<fo:block></fo:block>
						</fo:table-cell> 
					</xsl:if> 			 
            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL">                  
						<fo:block text-align="center">12-1</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
						<fo:block>                  
							Übermittlungsgebühr                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>T</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTL">                  
						<fo:block font-size="11pt" font-family="ZapfDingbats" text-align="center">➪</fo:block>               
					</fo:table-cell> 
					<xsl:for-each select=".//transmittal-fee"> 
						<xsl:variable name="this-fee" select="."></xsl:variable> 
						<xsl:for-each select="$unique-currencies"> 
							<xsl:sort select="@currency"></xsl:sort> 
							<!-- use with 'if' test below to trap NaN values -->
							 
							<xsl:variable name="fNum">
								<xsl:value-of select="$this-fee[@currency = current()/@currency]/amount-total"></xsl:value-of> 
							</xsl:variable>   
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="right">   
								<fo:block>   
									<xsl:if test="boolean(number($fNum))">
										<fo:inline font-weight="bold">   
											<xsl:if test="$fNum &gt; 0">
												<xsl:value-of select="$fNum"></xsl:value-of>   
											</xsl:if>
										</fo:inline>
									</xsl:if>
								</fo:block>   
							</fo:table-cell> 
						</xsl:for-each> 
					</xsl:for-each> 
					<xsl:if test="$curCount = 1">
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
							<fo:block></fo:block>
						</fo:table-cell> 
					</xsl:if>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                  
						<fo:block>12-2<xsl:if test=".//isa">-1</xsl:if>
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
						<fo:block>                  
							Recherchengebühr                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>S</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTL" text-align="center">                  
						<fo:block font-family="ZapfDingbats" font-size="11pt" padding="1pt">➪</fo:block>               
					</fo:table-cell> 
					<xsl:for-each select=".//search-fee"> 
						<xsl:variable name="this-fee" select="."></xsl:variable> 
						<xsl:for-each select="$unique-currencies"> 
							<xsl:sort select="@currency"></xsl:sort> 
							<!-- use with 'if' test below to trap NaN values -->
							 
							<xsl:variable name="fNum">
								<xsl:value-of select="$this-fee[@currency = current()/@currency]/amount-total"></xsl:value-of> 
							</xsl:variable> 
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="right">   
								<fo:block>   
									<xsl:if test="boolean(number($fNum))">
										<fo:inline font-weight="bold">   
											<xsl:if test="$fNum &gt; 0">
												<xsl:value-of select="$fNum"></xsl:value-of>   
											</xsl:if>
										</fo:inline>
									</xsl:if>
								</fo:block> 
							</fo:table-cell> 
						</xsl:for-each> 
					</xsl:for-each> 
					<xsl:if test="$curCount = 1">
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
							<fo:block></fo:block>
						</fo:table-cell> 
					</xsl:if>            
				</fo:table-row>            
				<xsl:if test=".//isa">
					<fo:table-row>   
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">  
							<fo:block>12-2-2</fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" border-right="solid black 0.5pt" text-align="left" number-columns-spanned="2">  
							<fo:block>
								Wahl der internationalen Recherchenbehörde (ISA)   
							</fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdTR">  
							<fo:block>  
								<fo:inline font-weight="bold">  
									<xsl:value-of select="translate(.//isa,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:value-of>
								</fo:inline>  
							</fo:block>   
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" number-columns-spanned="2">               
							<fo:block></fo:block>               
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<fo:table-row>   
					<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">  
						<fo:block>12-3</fo:block>   
					</fo:table-cell>   
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" border-right="solid black 0.5pt" text-align="left" number-columns-spanned="2">  
						<fo:block>
							Internationale Anmeldegebühr   
						</fo:block>   
					</fo:table-cell>   
					<!--
					<fo:table-cell xsl:use-attribute-sets = "tdBorderTopRight"> 
					-->
					<fo:table-cell xsl:use-attribute-sets="tdTR">  
						<fo:block></fo:block>   
					</fo:table-cell>               
					<xsl:choose>               
						<xsl:when test=".//isa">               
							<fo:table-cell number-columns-spanned="2" xsl:use-attribute-sets="tdBorderLeft"><fo:block></fo:block> </fo:table-cell>
						</xsl:when>               
						<xsl:otherwise>               
							<fo:table-cell number-columns-spanned="2" xsl:use-attribute-sets="tdBorderTopLeft"><fo:block></fo:block> </fo:table-cell> 
						</xsl:otherwise>               
					</xsl:choose>
				</fo:table-row>            
				<xsl:if test="($mode='v1.0' or $mode='v1.1')">
					<fo:table-row>               
						<fo:table-cell xsl:use-attribute-sets="tdL">                  
							<fo:block></fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
							<fo:block space-after="1mm" start-indent="3mm">
								<xsl:text>     
								</xsl:text>                     
								Grundgebühr                  
							</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderRight">                  
							<fo:block></fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdR">                  
							<fo:block></fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
							<fo:block></fo:block>               
						</fo:table-cell>               
						<fo:table-cell>                  
							<fo:block></fo:block>               
						</fo:table-cell>            
					</fo:table-row>            
				</xsl:if>
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL">                  
						<fo:block></fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
						<fo:block start-indent="5mm">                     
							(erste 30 Blätter)                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderRight" text-align="center">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:choose>
									<xsl:when test="not($mode='v1.0' or $mode='v1.1')">
										<xsl:text>i1</xsl:text>                     
									</xsl:when>
									<xsl:otherwise>
										<xsl:text>b1</xsl:text>                     
									</xsl:otherwise>
								</xsl:choose>
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdR" text-align="right">                  
						<fo:block>                     
							<fo:inline font-weight="bold">  
								<xsl:value-of select=".//basic-fee/amount-each"></xsl:value-of>  
								<xsl:if test="$curCount &gt; 1">  	 
									<!-- 202001	 
									<xsl:value-of select = ".//international-fee/@currency"/>  !-->
								</xsl:if>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
						<fo:block></fo:block>               
					</fo:table-cell>               
					<fo:table-cell>                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                  
						<fo:block>12-4</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
						<fo:block start-indent="5mm">                  
							Anzahl der Blätter über 30                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
						<fo:block></fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTR">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:choose>                           
									<xsl:when test=".//sheets-over-30">
										<xsl:value-of select=".//sheets-over-30"></xsl:value-of>                           
									</xsl:when>                           
									<xsl:otherwise>                              
										<xsl:text>0</xsl:text>                              
                           
									</xsl:otherwise>                        
								</xsl:choose>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                  
						<fo:block>12-5</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
						<fo:block start-indent="5mm">                  
							Zusatzblattgebühr                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
						<fo:block>                     
							<fo:inline font-weight="bold" font-size="7pt">                        
								<xsl:text>(X)</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTR">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:choose>                           
									<xsl:when test=".//additional-amount/amount-each">  
										<xsl:value-of select=".//additional-amount/amount-each"></xsl:value-of>                           
									</xsl:when>                           
									<xsl:otherwise>                              
										<xsl:text>0</xsl:text>                              
                           
									</xsl:otherwise>                        
								</xsl:choose>                        
								<xsl:if test="$curCount &gt; 1">                        
									<!-- 2020 equivalent                         
									<xsl:value-of select = ".//international-fee/@currency"/> !-->                   
								</xsl:if>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
						<fo:block></fo:block>               
					</fo:table-cell>               
					<fo:table-cell>                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                  
						<fo:block>12-6</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
						<fo:block start-indent="5mm">                  
							Gesamtbetrag der weiteren Gebühren                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:choose>
									<xsl:when test="not($mode='v1.0' or $mode='v1.1')">
										<xsl:text>i2</xsl:text>                     
									</xsl:when>
									<xsl:otherwise>
										<xsl:text>b2</xsl:text>                     
									</xsl:otherwise>
								</xsl:choose>
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="right">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:choose>                           
									<xsl:when test=".//total-additional-amount">  
										<xsl:value-of select=".//total-additional-amount"></xsl:value-of>                           
									</xsl:when>                           
									<xsl:otherwise>                              
										<xsl:text>0</xsl:text>                           
									</xsl:otherwise>                        
								</xsl:choose>                        
								<xsl:if test="$curCount &gt; 1">                        
									<!--
									<xsl:value-of select = ".//international-fee/@currency"/> !-->                       
								</xsl:if>                        
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
						<fo:block></fo:block>               
					</fo:table-cell>               
					<fo:table-cell>                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                  
						<fo:block>12-7</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
						<fo:block start-indent="5mm">
							<xsl:choose>
								<xsl:when test="not($mode='v1.0' or $mode='v1.1')">
									<xsl:text>i1 + i2 =</xsl:text>                     
								</xsl:when>
								<xsl:otherwise>
									<xsl:text>b1 + b2 =</xsl:text>                     
								</xsl:otherwise>
							</xsl:choose>
						</fo:block>
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:choose>
									<xsl:when test="not($mode='v1.0' or $mode='v1.1')">
										<xsl:text>i</xsl:text>                     
									</xsl:when>
									<xsl:otherwise>
										<xsl:text>B</xsl:text>                     
									</xsl:otherwise>
								</xsl:choose>
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="right">                  
						<fo:block>                  
							<fo:inline font-weight="bold">                        
								<xsl:choose>                           
									<xsl:when test=".//basic-fee/amount-total">  
										<xsl:value-of select=".//basic-fee/amount-total"></xsl:value-of>                           
									</xsl:when>                           
									<xsl:otherwise>  
										<xsl:value-of select="number(translate(.//basic-fee/amount-each,' .,:-','')) + number(.//total-additional-amount)"></xsl:value-of>
									</xsl:otherwise>                        
								</xsl:choose>                        
								<xsl:if test="$curCount &gt; 1">                        
									<!--
									<xsl:value-of select = ".//international-fee/@currency"/>   !-->                     
								</xsl:if>                      
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
						<fo:block></fo:block>               
					</fo:table-cell>               
					<fo:table-cell>                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<xsl:if test="(.//designation-fee) and ($mode='v1.0' or $mode='v1.1')">               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                     
							<fo:block>12-8</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                     
							<fo:block space-after="1mm" start-indent="3mm">                     
								Bestimmungsgebühren                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderTop">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell>                     
							<fo:block></fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row>                  
						<fo:table-cell>                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdC" number-columns-spanned="2">                     
							<fo:block start-indent="5mm">                     
								Anzahl der in der internationalen Anmeldung vorgenommenen Bestimmungen                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdR">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                           
									<xsl:value-of select=".//number-of-designation"></xsl:value-of>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell>                     
							<fo:block></fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                     
							<fo:block>12-9</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                     
							<fo:block start-indent="5mm">                     
								Nzahl der zu zahlenden Bestimmungsgebühren (höchstens 5)                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                           
									<xsl:value-of select=".//designation-fee-payable"></xsl:value-of>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell>                     
							<fo:block></fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                     
							<fo:block>12-10</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                     
							<fo:block start-indent="5mm">                     
								Bestimmungsgebühr                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                     
							<fo:block>                        
								<fo:inline font-weight="bold" font-size="7pt">                           
									<xsl:text>(X)</xsl:text>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="left">                     
							<fo:block>                        
								<fo:inline font-weight="bold">  
									<xsl:value-of select=".//designation-fee/amount-each"></xsl:value-of>  
									<xsl:if test="$curCount &gt; 1">                        
										<!-- 
										<xsl:value-of select = ".//international-fee/@currency"/>  !-->
									</xsl:if>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell>                     
							<fo:block></fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                     
							<fo:block>12-11</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                     
							<fo:block start-indent="5mm">                     
								Gesamtbetrag der Bestimmungsgebühren                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                           
									<xsl:text>D</xsl:text>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="right">                     
							<fo:block>                        
								<fo:inline font-weight="bold">
									<xsl:value-of select=".//designation-fee/amount-total"></xsl:value-of>
									<xsl:if test="$curCount &gt; 1">
										<!-- 
										<xsl:value-of select = ".//international-fee/@currency"/> !-->
									</xsl:if>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell>                     
							<fo:block></fo:block>                  
						</fo:table-cell>               
					</fo:table-row>            
				</xsl:if>            
				<xsl:for-each select=".//fee-reduction">
					<fo:table-row>               
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                  
							<fo:block>12-12</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
							<fo:block start-indent="3mm">                  
								<xsl:choose>
									<xsl:when test="$mode='v1.0' or $mode='v1.1'">
										<xsl:value-of select="$fee_reduction"></xsl:value-of>
									</xsl:when>
									<xsl:otherwise>
										<xsl:call-template name="reduction_type">
											<xsl:with-param name="reduction" select="@reduction-type"></xsl:with-param>
										</xsl:call-template>
									</xsl:otherwise>
								</xsl:choose>
							</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
							<fo:block>                     
								<fo:inline font-weight="bold">                        
									<xsl:text>R</xsl:text>                     
								</fo:inline>                  
							</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="right">                  
							<fo:block>                  
								<fo:inline font-weight="bold">
									<!--
									<xsl:if test = "$curCount > 1">
										<xsl:value-of select = "translate(parent::international-fee/@currency,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
									</xsl:if> !-->
									<xsl:value-of select="./amount-each"></xsl:value-of>
								</fo:inline>                                
							</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
							<fo:block></fo:block>               
						</fo:table-cell>               
						<fo:table-cell>                  
							<fo:block></fo:block>               
						</fo:table-cell>            
					</fo:table-row>         
				</xsl:for-each>   
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                  
						<fo:block>12-13</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
						<fo:block>                  
							<xsl:choose>
								<xsl:when test="not($mode='v1.0' or $mode='v1.1')">
									Gesamtbetrag der internationalen Gebühr (i-R)                  
								</xsl:when>
								<xsl:otherwise>
									Gesamtbetrag der internationalen Anmeldegebühr (B+D-R)                  
								</xsl:otherwise>
							</xsl:choose>
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>I</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTR">                  
						<fo:block font-size="11pt" font-family="ZapfDingbats" text-align="center">➪</fo:block>               
					</fo:table-cell> 
					<xsl:for-each select=".//international-fee"> 
						<xsl:variable name="this-fee" select="."></xsl:variable> 
						<xsl:for-each select="$unique-currencies"> 
							<xsl:sort select="@currency"></xsl:sort> 
							<!-- use with 'if' test below to trap NaN values -->
							<xsl:variable name="fNum">
								<xsl:value-of select="$this-fee[@currency = current()/@currency]/amount-total"></xsl:value-of> 
							</xsl:variable>   
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="right">   
								<fo:block>   
									<xsl:if test="boolean(number($fNum))">
										<fo:inline font-weight="bold">   
											<xsl:if test="$fNum &gt; 0"> 
												<xsl:value-of select="$fNum"></xsl:value-of>   
											</xsl:if>
										</fo:inline>
									</xsl:if>
								</fo:block>   
							</fo:table-cell> 
						</xsl:for-each> 
					</xsl:for-each> 
					<xsl:if test="$curCount = 1">
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
							<fo:block></fo:block>
						</fo:table-cell> 
					</xsl:if>            
				</fo:table-row>
				<xsl:if test=".//pdoc-fee">				
					<xsl:if test="not($lang='ja')">
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">
								<fo:block>12-14</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">
								<fo:block space-after="1mm">
									Gebühr für Prioritätsbeleg
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderTop">
								<fo:block></fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" number-columns-spanned="2">
								<fo:block></fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell>
								<fo:block></fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdC" number-columns-spanned="2">
								<fo:block start-indent="5mm">
									Anzahl der beantragten Prioritätsbelege
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block>
									<fo:inline font-weight="bold">
										<xsl:value-of select=".//pdoc-quantity"></xsl:value-of>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">
								<fo:block></fo:block>
							</fo:table-cell>
							<fo:table-cell>
								<fo:block></fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">
								<fo:block>12-15</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">
								<fo:block start-indent="5mm">
									Gebühr per Prioritätsbeleg
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">
								<fo:block>
									<fo:inline font-weight="bold">(X)</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTR">
								<fo:block>
									<fo:inline font-weight="bold">
										<xsl:value-of select=".//pdoc-fee/amount-each"></xsl:value-of>
										<xsl:if test="$curCount &gt; 1">
											<!--
											<xsl:value-of select = ".//pdoc-fee/@currency"/> !-->
										</xsl:if>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">
								<fo:block></fo:block>
							</fo:table-cell>
							<fo:table-cell>
								<fo:block></fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">
								<fo:block>12-16</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">
								<fo:block>
									Gesamtbetrag Gebühr für Prioritätsbeleg(e): 
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">
								<fo:block>
									<fo:inline font-weight="bold">P</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTL" text-align="center">
								<fo:block font-size="11pt" font-family="ZapfDingbats">➪</fo:block>
							</fo:table-cell> 
							<xsl:for-each select=".//pdoc-fee"> 
								<xsl:variable name="this-fee" select="."></xsl:variable> 
								<xsl:for-each select="$unique-currencies">     
									<xsl:sort select="@currency"></xsl:sort> 
									<!-- use with 'if' test below to trap NaN values -->
									<xsl:variable name="fNum">
										<xsl:value-of select="$this-fee[@currency = current()/@currency]/amount-total"></xsl:value-of> 
									</xsl:variable>   
									<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="right">   
										<fo:block>   	  
											<xsl:if test="boolean(number($fNum))">
												<fo:inline font-weight="bold">   
													<xsl:if test="$fNum &gt; 0">  
														<xsl:value-of select="$fNum"></xsl:value-of>   
													</xsl:if>
												</fo:inline>  
											</xsl:if>
										</fo:block>   
									</fo:table-cell> 
								</xsl:for-each> 
							</xsl:for-each> 
							<xsl:if test="$curCount = 1">
								<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
									<fo:block></fo:block>
								</fo:table-cell> 
							</xsl:if>
						</fo:table-row>
					</xsl:if>
				</xsl:if>
				<xsl:if test=".//restoration-fee">
					<fo:table-row>   
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">  
							<fo:block>12-17</fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">  
							<fo:block>
								Gebühr für die Wiederherstellung des Prioritätsrechts
							</fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight" border-right="solid black 0.5pt">
							<fo:block>
								<fo:inline font-weight="bold">RP</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTL">  
							<fo:block></fo:block>   
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
							<fo:block></fo:block>   
						</fo:table-cell> 
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
							<fo:block></fo:block>   
						</fo:table-cell> 
					</fo:table-row>
					<fo:table-row>   
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">  
							<fo:block></fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft" border-right="solid black 0.5pt" text-align="left" number-columns-spanned="2">  
							<fo:block padding-top="1pt" start-indent="5mm">
								Anzahl der Anträge auf Wiederherstellung des Prioritätsrechts
							</fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdR" text-align="left">                  
							<fo:block>                     
								<fo:inline font-weight="bold">                        
									<xsl:choose>                           
										<xsl:when test=".//restoration-quantity">
											<xsl:value-of select=".//restoration-quantity"></xsl:value-of>                           
										</xsl:when>                           
										<xsl:otherwise>                              
											<xsl:text></xsl:text>                              
										</xsl:otherwise>                        
									</xsl:choose>                     
								</fo:inline>                  
							</fo:block>                     
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
							<fo:block>                     
							</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">  
							<fo:block> 
							</fo:block>   
						</fo:table-cell>               
					</fo:table-row>
					<fo:table-row>   
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">  
							<fo:block></fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" border-right="solid black 0.5pt" text-align="left" number-columns-spanned="2">  
							<fo:block>
								Gesamtbetrag der Gebühren für die Wiederherstellung des Prioritätsrechts
							</fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdTL">  
							<fo:block> 
							</fo:block>   
						</fo:table-cell>               
						<xsl:for-each select=".//restoration-fee"> 
							<xsl:variable name="this-fee" select="."></xsl:variable> 
							<xsl:for-each select="$unique-currencies"> 
								<xsl:sort select="@currency"></xsl:sort> 
								<!-- use with 'if' test below to trap NaN values -->
								<xsl:variable name="fNum">
									<xsl:value-of select="$this-fee[@currency = current()/@currency]/amount-total"></xsl:value-of> 
								</xsl:variable>   
								<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="right">   
									<fo:block>   
										<xsl:if test="boolean(number($fNum))">
											<fo:inline font-weight="bold">   
												<xsl:if test="$fNum &gt; 0">
													<xsl:value-of select="$fNum"></xsl:value-of>   
												</xsl:if>
											</fo:inline>
										</xsl:if>
									</fo:block>   
								</fo:table-cell> 
							</xsl:for-each> 
						</xsl:for-each> 
						<xsl:if test="$curCount = 1">
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
								<fo:block></fo:block>
							</fo:table-cell> 
						</xsl:if>
					</fo:table-row>
				</xsl:if>
				<xsl:if test=".//earlier-search-document-fee">
					<fo:table-row>   
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">
							<fo:block>12-18</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">
							<fo:block>
								Gebühr für Unterlagen der früheren Recherche                     
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">
							<fo:block>
								<fo:inline font-weight="bold">ES</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="left">                  
							<fo:block>                     
								<fo:inline font-weight="bold">                        
									<xsl:choose>                           
										<xsl:when test=".//earlier-search-document-quantity">
											<xsl:value-of select=".//earlier-search-document-quantity"></xsl:value-of>                           
										</xsl:when>                           
										<xsl:otherwise>                              
											<xsl:text></xsl:text>                              
										</xsl:otherwise>                        
									</xsl:choose>                     
								</fo:inline>                  
							</fo:block>                     
						</fo:table-cell>               
						<xsl:for-each select=".//earlier-search-document-fee"> 
							<xsl:variable name="this-fee" select="."></xsl:variable> 
							<xsl:for-each select="$unique-currencies"> 
								<xsl:sort select="@currency"></xsl:sort> 
								<!-- use with 'if' test below to trap NaN values -->
								<xsl:variable name="fNum">
									<xsl:value-of select="$this-fee[@currency = current()/@currency]/amount-total"></xsl:value-of> 
								</xsl:variable>   
								<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="right">   
									<fo:block>   
										<xsl:if test="boolean(number($fNum))">
											<fo:inline font-weight="bold">   
												<xsl:if test="$fNum &gt; 0">
													<xsl:value-of select="$fNum"></xsl:value-of>   
												</xsl:if>
											</fo:inline>
										</xsl:if>
									</fo:block>   
								</fo:table-cell> 
							</xsl:for-each> 
						</xsl:for-each> 
						<xsl:if test="$curCount = 1">
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
								<fo:block></fo:block>
							</fo:table-cell> 
						</xsl:if>              
					</fo:table-row>
				</xsl:if>
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdTL">                  
						<fo:block>                     
							<fo:inline font-weight="bold">12-19</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                  
						<fo:block>
						<xsl:if test=".//restoration-fee">
							<xsl:if test=".//earlier-search-document-fee">
									<fo:inline font-weight="bold">                        
										Gesamtbetrag der zu zahlenden Gebühren (T+S+I+P+RP+ES)                     
									</fo:inline>                  
							</xsl:if>
							<xsl:if test="not(.//earlier-search-document-fee)">
									<fo:inline font-weight="bold">                        
										Gesamtbetrag der zu zahlenden Gebühren (T+S+I+P+RP)                     
									</fo:inline>                  
							</xsl:if>
						</xsl:if>
						<xsl:if test="not(.//restoration-fee)">
							<xsl:if test=".//earlier-search-document-fee">
									<fo:inline font-weight="bold">                        
										Gesamtbetrag der zu zahlenden Gebühren (T+S+I+P+ES)                     
									</fo:inline>                  
							</xsl:if>
							<xsl:if test="not(.//earlier-search-document-fee)">
									<fo:inline font-weight="bold">                        
										Gesamtbetrag der zu zahlenden Gebühren (T+S+I+P)                     
									</fo:inline>                  
							</xsl:if>
						</xsl:if>
						</fo:block>
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTL" text-align="center">                  
						<fo:block font-size="11pt" font-family="ZapfDingbats">➪</fo:block>               
					</fo:table-cell> 
					<xsl:for-each select=".//amount-grand-total">     
						<xsl:sort select="@currency"></xsl:sort> 
						<xsl:variable name="this-fee" select="."></xsl:variable> 
						<xsl:for-each select="$unique-currencies"> 
							<xsl:variable name="fNum">
								<xsl:value-of select="$this-fee[@currency = current()/@currency]/."></xsl:value-of> 
							</xsl:variable>   
							<xsl:if test="boolean(number($fNum))">   
								<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="right">   
									<fo:block>
										<fo:inline font-weight="bold">
											<xsl:value-of select="$fNum"></xsl:value-of>
										</fo:inline>
									</fo:block>   
								</fo:table-cell>   
							</xsl:if> 
						</xsl:for-each> 
					</xsl:for-each> 
					<xsl:if test="$curCount = 1">
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
							<fo:block></fo:block>
						</fo:table-cell> 
					</xsl:if>            
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell border-top="solid black 0.25pt" number-columns-spanned="6"><fo:block></fo:block></fo:table-cell>
				</fo:table-row>         
			</fo:table-body>       
		</fo:table>            
		<fo:table table-layout="fixed" border-collapse="separate">         
			<fo:table-column column-width="12mm"></fo:table-column>         
			<fo:table-column column-width="48mm"></fo:table-column>         
			<fo:table-column column-width="5mm"></fo:table-column>         
			<fo:table-column column-width="35mm"></fo:table-column>         
			<fo:table-column column-width="35mm"></fo:table-column>         
			<fo:table-column column-width="35mm"></fo:table-column>         
			<fo:table-body>            
			<!-- NOTE: not used after 2004 -->
				<!--xsl:if test = "not(.//designation-fee)">               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets = "tdTL">                     
							<fo:block>                        
								<fo:inline font-weight = "bold">12-20</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets = "tdTC" number-columns-spanned = "2">                     
							<fo:block>                        
								<fo:inline font-weight = "bold">                           
									<inc file = "commonText.xml" toTranslate = "desFeesNotPaid_Text"/>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets = "tdTL" number-columns-spanned = "3">                     
							<fo:block font-size = "11pt" font-family = "ZapfDingbats">✓</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>            
				</xsl:if-->            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdTBL">                  
						<fo:block>                     
							<fo:inline font-weight="bold">12-21</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTBC" number-columns-spanned="2">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								Zahlungsart                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTBR" number-columns-spanned="3">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                     
								<xsl:choose>
									<xsl:when test="$pModes &gt; 1">
										Übermittlungsgebühr:   <xsl:call-template name="paymentMode">
											<xsl:with-param name="pType" select=".//transmittal-fee/payment-mode"></xsl:with-param>   
										</xsl:call-template>
										<fo:block></fo:block>
										Recherchengebühr: <xsl:call-template name="paymentMode">
											<xsl:with-param name="pType" select=".//search-fee/payment-mode"></xsl:with-param>   
										</xsl:call-template>
										<fo:block></fo:block>
										Internationale Anmeldegebühr :   <xsl:call-template name="paymentMode">
											<xsl:with-param name="pType" select=".//international-fee/payment-mode"></xsl:with-param>   
										</xsl:call-template>
										<xsl:if test=".//pdoc-fee/amount-total &gt; 0">   
											<fo:block></fo:block>   
											Gebühr für Prioritätsbeleg:   <xsl:call-template name="paymentMode">
												<xsl:with-param name="pType" select=".//pdoc-fee/payment-mode"></xsl:with-param>   
											</xsl:call-template>
										</xsl:if>
									</xsl:when>
									<xsl:otherwise>
										<!-- otherwise, all payment types are the same; use any -->
										<xsl:call-template name="paymentMode">
											<xsl:with-param name="pType" select=".//transmittal-fee/payment-mode"></xsl:with-param>   
										</xsl:call-template>
									</xsl:otherwise>
								</xsl:choose>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<xsl:if test=".//deposit-account/account-no/text()">               
					<fo:table-row keep-with-next="always">                  
						<fo:table-cell xsl:use-attribute-sets="tdTL">                     
							<fo:block>                        
								<fo:inline font-weight="bold">12-22</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                     
							<fo:block space-after="2mm">                        
								<fo:inline font-weight="bold">                           
									Anweisungen betreffend laufendes Konto                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR" number-columns-spanned="3">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                           
									<!--inc file = "commonText.xml" toTranslate = "charge_Text"/-->									                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row keep-with-next="always">                  
						<fo:table-cell>                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdC" number-columns-spanned="2">                     
							<fo:block>                        
								Das Anmeldeamt:                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdR" number-columns-spanned="3">                     
							<fo:block>                        
								<fo:inline font-weight="bold">
									<xsl:choose>
										<xsl:when test="$lang='ar'">
											<fo:bidi-override unicode-bidi="embed" direction="rtl">
												<xsl:call-template name="officeName_ChoiceText">
													<xsl:with-param name="office" select=".//@ro"></xsl:with-param>
												</xsl:call-template>
											</fo:bidi-override>
										</xsl:when>
										<xsl:otherwise>
											<xsl:call-template name="officeName_ChoiceText">
												<xsl:with-param name="office" select=".//@ro"></xsl:with-param>
											</xsl:call-template>											
										</xsl:otherwise>
									</xsl:choose>
									<fo:inline keep-together.within-line="always">
										<xsl:text>(RO/</xsl:text>
										<xsl:value-of select="translate(.//@ro,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:value-of>
										<xsl:text>)</xsl:text>
									</fo:inline>
								</fo:inline>                 
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<xsl:if test=".//deposit-account/authorization/total-fee">                  
						<fo:table-row keep-with-next="always">                  
							<fo:table-cell xsl:use-attribute-sets="tdTL">                        
								<fo:block>12-22-1</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                        
								<fo:block>                           
									Die Bevollmächtigung, den o.g. Gesamtbetrag der Gebühren abzubuchen                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTL" number-columns-spanned="3">                        
								<fo:block font-size="11pt" font-family="ZapfDingbats">✓</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>               
					</xsl:if>               
					<xsl:if test=".//deposit-account/authorization/deficiency-credit">                  
						<fo:table-row keep-with-next="always">                  
							<fo:table-cell xsl:use-attribute-sets="tdTL">                        
								<fo:block>12-22-2</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                        
								<fo:block>                           
									Die Bevollmächtigung, Fehlbeträge oder Überzahlungen des Gesamtbetrags zu belasten bzw. gutzuschreiben                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTL" number-columns-spanned="3">                        
								<fo:block font-size="11pt" font-family="ZapfDingbats">✓</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>               
					</xsl:if>               
					<xsl:if test=".//deposit-account/authorization/fee-for-pdoc">                  
						<fo:table-row keep-with-previous="always">                  
							<fo:table-cell xsl:use-attribute-sets="tdTL">                        
								<fo:block>12-22-3</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                        
								<fo:block>                           
									Die Bevollmächtigung, die Gebühr für Prioritätsbeleg abzubuchen                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTL" number-columns-spanned="3">                        
								<fo:block font-size="11pt" font-family="ZapfDingbats">✓</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>               
					</xsl:if>               
					<xsl:if test=".//deposit-account/authorization/automatic-debit">
						<fo:table-row>                     
							<fo:table-cell xsl:use-attribute-sets="tdTL">                        
								<fo:block>12-22-4</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                        
								<fo:block>                           
									Das Amt in seiner Eigenschaft als Anmeldeamt (RO), als Internationale Recherchenbehörde (ISA) und gegebenenfalls als mit der internationalen vorläufigen Prüfung beauftragte Behörde (IPEA) wird hiermit ermächtigt, die für die Bearbeitung dieser internationalen Anmeldung anfallenden Gebühren, gemäß dem automatischen Abbuchungsverfahren des Amts, vom angegebenen Konto abzubuchen.                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTL" number-columns-spanned="3">                        
								<fo:block font-size="11pt" font-family="ZapfDingbats">✓</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>               
					</xsl:if>                  

					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdTL">                     
							<fo:block>                        
								<fo:inline font-weight="bold">12-23</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                     
							<fo:block>                        
								Nummer des laufenden Kontos                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR" number-columns-spanned="3">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                           
									<xsl:value-of select=".//account-no"></xsl:value-of>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdTBL">                     
							<fo:block>                        
								<fo:inline font-weight="bold">12-24</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTBC" number-columns-spanned="2">                     
							<fo:block>                        
								Datum                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTBR" number-columns-spanned="3">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                           
									<xsl:call-template name="format_date">                              
										<xsl:with-param name="lang" select="$lang"></xsl:with-param>                              
										<xsl:with-param name="date" select=".//date"></xsl:with-param>                              
										<xsl:with-param name="show_date" select="1"></xsl:with-param>                              
										<xsl:with-param name="date_too" select="1"></xsl:with-param>                              
										<xsl:with-param name="text" select="1"></xsl:with-param>                           
									</xsl:call-template>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row keep-with-next="always">                  
						<fo:table-cell xsl:use-attribute-sets="tdTL">                     
							<fo:block>                        
								<fo:inline font-weight="bold">12-25</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                     
							<fo:block space-after="12mm">                        
								Name und Unterschrift                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR" number-columns-spanned="3">                     
							<fo:block>                        
								<fo:inline font-weight="bold">
									<!-- TODO: determine whether to show deposit-account name or signatory name -->
									 
									<xsl:call-template name="format_name">
										<xsl:with-param name="name_arg" select=".//deposit-account"></xsl:with-param> 
									</xsl:call-template>           						 
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row keep-with-previous="always">                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderBottom">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBC" number-columns-spanned="2">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBR" number-columns-spanned="3">                     
							<fo:block>   
								<xsl:choose>  
									<xsl:when test=".//signatory[1]/electronic-signature/basic-signature/fax-image"> 
										<fo:external-graphic>
											<xsl:if test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
												<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>											
												<xsl:attribute name="width">100mm</xsl:attribute>											
											</xsl:if>										
											<!-- NOTE: XEP will not load files in same directory if 'file:///' is prepended -->
											<xsl:attribute name="src">   
												<xsl:choose>  
													<xsl:when test="contains(.//signatory[1]/electronic-signature/basic-signature/fax-image/@file,'/') or contains(.//signatory[1]/electronic-signature/basic-signature/fax-image/@file,'\') or contains(.//signatory[1]/electronic-signature/basic-signature/fax-image/@file,':')"> 
														<xsl:value-of select="concat('file:///',.//signatory[1]/electronic-signature/basic-signature/fax-image/@file)"></xsl:value-of>  
													</xsl:when>  
													<xsl:otherwise> 
														<xsl:value-of select=".//signatory[1]/electronic-signature/basic-signature/fax-image/@file"></xsl:value-of>  
													</xsl:otherwise>   
												</xsl:choose>
											</xsl:attribute> 
										</fo:external-graphic>  
									</xsl:when>  
									<xsl:when test=".//signatory[1]/electronic-signature/basic-signature/click-wrap"> 
										<fo:inline font-weight="bold"> 
											(Anmelder hat 'Ja' angeklickt) 
										</fo:inline>  
									</xsl:when>  
									<xsl:when test=".//signatory[1]/electronic-signature/basic-signature/text-string"> 
										<fo:inline font-weight="bold"> 
											<xsl:value-of select=".//signatory[1]//text-string"></xsl:value-of> 
										</fo:inline>  
									</xsl:when>  
									<xsl:when test=".//signatory[1]/enhanced-signature/pkcs7">
										<fo:inline font-weight="bold"> 
											(PKCS7 digitale Unterschrift)
										</fo:inline>  
									</xsl:when>   
								</xsl:choose>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>            
				</xsl:if>        
				<xsl:if test="(.//payment-mode/credit-card) or (.//payment-mode/bank-draft and .//payment-contact/email/text()) or (.//@ro='IB' and .//payment-contact/email/text())">
					<xsl:if test="not(.//@ro='EP')">
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdTBL">
								<fo:block>
									<fo:inline font-weight="bold">12-22</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTBC" number-columns-spanned="2">
								<fo:block>
									<fo:inline font-weight="bold">
										Zahlung Kontakt
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTBR" number-columns-spanned="3">
								<fo:block>
									<fo:inline font-weight="bold">
										<xsl:value-of select=".//payment-contact/email"></xsl:value-of>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
					</xsl:if>
				</xsl:if>
				<xsl:if test=".//reimbursement-deposit-account">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdTBL">
							<fo:block>
								<fo:inline font-weight="bold">12-26</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBC" number-columns-spanned="2">
							<fo:block>
								<fo:inline font-weight="bold">
									Rückerstattungsanweisungen
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBR" number-columns-spanned="3">
							<fo:block></fo:block>
						</fo:table-cell>
					</fo:table-row>
					<xsl:for-each select=".//reimbursement-deposit-account">
						<xsl:variable name="seq" select="position()"></xsl:variable>
						<fo:table-row keep-with-previous="always">
							<fo:table-cell xsl:use-attribute-sets="tdTL">
								<fo:block>
									<fo:inline>12-26-<xsl:value-of select="$seq"></xsl:value-of>-1</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">
								<fo:block>
									<fo:inline>
										Amt, das die Rückerstattung bearbeitet
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTR" number-columns-spanned="3">
								<fo:block>
									<fo:inline font-weight="bold">
										<xsl:value-of select="./ip-office"></xsl:value-of>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row keep-with-previous="always">
							<fo:table-cell xsl:use-attribute-sets="tdTL">
								<fo:block>
									<fo:inline>12-26-<xsl:value-of select="$seq"></xsl:value-of>-2</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">
								<fo:block>
									<fo:inline>
										Etwaige Rückerstattungen sind an das Termin- oder Kontokorrentkonto mit folgender Nummer zu leisten:
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTR" number-columns-spanned="3">
								<fo:block>
									<fo:inline font-weight="bold">
										<xsl:value-of select="./account-no"></xsl:value-of>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row keep-with-previous="always">
							<fo:table-cell xsl:use-attribute-sets="tdTL">
								<fo:block>
									<fo:inline>12-26-<xsl:value-of select="$seq"></xsl:value-of>-3</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">
								<fo:block>
									<fo:inline>
										Kontoinhaber
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTR" number-columns-spanned="3">
								<fo:block>
									<fo:inline font-weight="bold">
										<xsl:value-of select="./name"></xsl:value-of>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>                  
							<fo:table-cell xsl:use-attribute-sets="tdTBL">                     
								<fo:block>                        
										<fo:inline>12-26-<xsl:value-of select="$seq"></xsl:value-of>-4</fo:inline>
								</fo:block>                  
							</fo:table-cell>                  
							<fo:table-cell xsl:use-attribute-sets="tdTBC" number-columns-spanned="2">                     
								<fo:block>                        
									Datum                     
								</fo:block>                  
							</fo:table-cell>                  
							<fo:table-cell xsl:use-attribute-sets="tdTBR" number-columns-spanned="3">                     
								<fo:block>                        
									<fo:inline font-weight="bold">                           
										<xsl:call-template name="format_date">                              
											<xsl:with-param name="lang" select="$lang"></xsl:with-param>                              
											<xsl:with-param name="date" select=".//date"></xsl:with-param>                              
											<xsl:with-param name="show_date" select="1"></xsl:with-param>                              
											<xsl:with-param name="date_too" select="1"></xsl:with-param>                              
											<xsl:with-param name="text" select="1"></xsl:with-param>                           
										</xsl:call-template>                        
									</fo:inline>                     
								</fo:block>                  
							</fo:table-cell>               
						</fo:table-row>  
					</xsl:for-each>
				</xsl:if>
			</fo:table-body>      
		</fo:table>   
	</xsl:template><xsl:template name="reduction_type">
		<xsl:param name="reduction"></xsl:param>
		<xsl:choose>
			<xsl:when test="$reduction='PCT-SAFE reduction (full)'">
				Ermäßigung für elektronische Anmeldung (vollständig)
			</xsl:when>
			<xsl:when test="$reduction='PCT-SAFE reduction (image)'">
				Ermäßigung für elektronische Anmeldung (Bild)
			</xsl:when>
			<xsl:when test="$reduction='PCT-SAFE reduction (EASY)'">
				EASY-Ermäßigung
			</xsl:when>
			<xsl:when test="$reduction='electronic-application-form'">
				EASY-Ermäßigung
			</xsl:when>
			<xsl:when test="$reduction='electronic-filing-image-description'">
				Ermäßigung für elektronische Anmeldung (Bild)
			</xsl:when>
			<xsl:when test="$reduction='electronic-filing-full-xml'">
				 Ermäßigung für elektronische Anmeldung (XML)
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="$reduction"></xsl:value-of>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template><xsl:template name="remarks">
		<!-- render <dtext> remarks; currently, JA only -->
		<xsl:if test="(document($request_doc)//dtext) or (.//dtext)">
			<fo:table table-layout="fixed" border-collapse="separate" space-after="5mm" space-before="5mm">         
				<fo:table-column column-width="12mm"></fo:table-column>         
				<fo:table-column column-width="53mm"></fo:table-column>         
				<fo:table-column column-width="105mm"></fo:table-column>         
				<fo:table-body>            
					<fo:table-row>
						<fo:table-cell font-size="10pt" vertical-align="top" padding="1.5pt" number-columns-spanned="3" padding-bottom="4mm">
							<fo:block text-align="center">  
								<fo:inline font-weight="bold">  
									BEMERKUNGEN
								</fo:inline>  
							</fo:block>       
						</fo:table-cell>
					</fo:table-row>        
					<xsl:for-each select="document($request_doc)//dtext | .//dtext">
						<xsl:variable name="seq" select="position()"></xsl:variable>
						<fo:table-row>               
							<fo:table-cell xsl:use-attribute-sets="tdTL">                  
								<fo:block>                     
									<fo:inline font-weight="bold">13-1-<xsl:value-of select="$seq"></xsl:value-of>
									</fo:inline>                  
								</fo:block>               
							</fo:table-cell>               
							<fo:table-cell xsl:use-attribute-sets="tdTC">                  
								<fo:block space-after="1.5mm">                     
									<fo:inline font-weight="bold">                        
										Bemerkungen des Anmelders 
									</fo:inline>                  
								</fo:block>               
							</fo:table-cell>               
							<fo:table-cell xsl:use-attribute-sets="tdTL">                  
								<fo:block padding-bottom="3mm">
									<xsl:value-of select="."></xsl:value-of>
								</fo:block>               
							</fo:table-cell>            
						</fo:table-row>            
					</xsl:for-each>
					<fo:table-row>
						<fo:table-cell number-columns-spanned="3" border-top="solid black 0.5pt">
							<fo:block></fo:block>
						</fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
		</xsl:if>
	</xsl:template><xsl:template name="paymentMode">   	 
		<xsl:param name="pType"></xsl:param>
		<xsl:choose>
			<xsl:when test="name($pType/*)='charge'">
				<xsl:choose>
					<xsl:when test=".//deposit-account/authorization/automatic-debit">
						Ermächtigung zur automatischen Abbuchung von Laufendes Konto											
					</xsl:when>
					<xsl:otherwise>
						Abbuchungsauftrag
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="name($pType/*)='credit-card'">
				Kreditkarte
			</xsl:when>
			<xsl:when test="name($pType/*)='postal-order'">
				Postanweisung
			</xsl:when>
			<xsl:when test="name($pType/*)='cash'">
				Barzahlung
			</xsl:when>
			<xsl:when test="name($pType/*)='coupons'">
				Kupons
			</xsl:when>
			<xsl:when test="name($pType/*)='cheque'">
				Scheck
			</xsl:when>
			<xsl:when test="name($pType/*)='bank-draft'">
				Banküberweisung
			</xsl:when>
			<xsl:when test="name($pType/*)='stamps'">
				Gebührenmarken
			</xsl:when>
			<xsl:when test="name($pType/*)='other'">
				Sonstige(s) : 
				<xsl:choose>
					<xsl:when test="$pType='credit card'">
						Kreditkarte
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$pType"></xsl:value-of>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
		</xsl:choose> 
	</xsl:template>   
	<xsl:template match="doc-page">
	  <fo:block>
	   <fo:external-graphic>
			<xsl:if test="@type='pdf'">
				<xsl:attribute name="content-type">pdf</xsl:attribute>
			</xsl:if>
		<!-- NOTE: XEP will not load files in same directory if 'file:///' is prepended,
				   but FOP requires this  -->
			  <xsl:attribute name="src">
				 <xsl:choose>
					<!-- file is properly addressed -->
					<xsl:when test="contains(@file,'file')">
					   <xsl:value-of select="@file"></xsl:value-of>
					</xsl:when>
					<!-- create proper URI -->
					<xsl:otherwise>
						<xsl:value-of select="concat('file:///',translate(@file,'\','/'))"></xsl:value-of>
					</xsl:otherwise>
				 </xsl:choose>
				 <xsl:if test="@ppf">
					 <xsl:if test="@ppl">
						 <xsl:if test="@pp">
							<xsl:text>|</xsl:text>
							<xsl:value-of select="@ppf"></xsl:value-of>
							<xsl:text>;</xsl:text>
							<xsl:value-of select="@ppl"></xsl:value-of>
							<xsl:text>;</xsl:text>
							<xsl:value-of select="@pp"></xsl:value-of>
 	        	         </xsl:if>
        	         </xsl:if>
       	         </xsl:if>
			  </xsl:attribute>
			  <xsl:if test="@he">
				  <xsl:attribute name="content-height">
					 <xsl:choose>
						<xsl:when test="contains(@he,'mm') or contains(@he,'MM')">
						   <xsl:value-of select="@he"></xsl:value-of>
						</xsl:when>
						<xsl:otherwise>
						   <xsl:value-of select="@he"></xsl:value-of>mm</xsl:otherwise>
					 </xsl:choose>
				  </xsl:attribute>
			  </xsl:if>
			  <xsl:if test="@wi">
				  <xsl:attribute name="content-width">
					 <xsl:choose>
						<xsl:when test="contains(@wi,'mm') or contains(@wi,'MM')">
						   <xsl:value-of select="@wi"></xsl:value-of>
						</xsl:when>
						<xsl:otherwise>
						   <xsl:value-of select="@wi"></xsl:value-of>mm</xsl:otherwise>
					 </xsl:choose>
				  </xsl:attribute>
			  </xsl:if>
		   </fo:external-graphic>
	  </fo:block>
   </xsl:template>   
   
	<xsl:template match="fee-sheet">      
		<xsl:call-template name="fee_info">         
			<xsl:with-param name="lang" select="$lang"></xsl:with-param>      
		</xsl:call-template>   
	</xsl:template>
</xsl:stylesheet>