<?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: DECLARATION                                     *
* DTD Version       : v1.5   01-01-2009                                      *
* Stylesheet Version: v                                                      *
*		1.92                                                      *
*		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>   
	<!-- *****************************************************************************
	* 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>
	<xsl:param name="lang" select="substring(translate(//declaration/@lang,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),1,2)"></xsl:param>
	<!-- PARAMETER 'declarations': if a declarations document has been created
     based on declaration.dtd, *and* if that document contains *all* declarations,
     supply that filename and path as a parameter to the XSL processor as argument
     at run-time  -->
	<xsl:param name="declarations"></xsl:param>
	<!-- PARAMETER 'declaration1': the XML document based on declaration.dtd that
       contains declaration1, <identity-of-inventor>      -->
	<xsl:param name="declaration1"></xsl:param>
	<!-- PARAMETER 'declaration2': the XML document based on declaration.dtd that
       contains declaration2, <entitlement-to-be-granted-patent>      -->
	<xsl:param name="declaration2"></xsl:param>
	<!-- PARAMETER 'declaration3': the XML document based on declaration.dtd that
       contains declaration3, <entitlement-to-claim-priority>      -->
	<xsl:param name="declaration3"></xsl:param>
	<!-- PARAMETER 'declaration4': the XML document based on declaration.dtd that
       contains declaration4, <inventorship>      -->
	<xsl:param name="declaration4"></xsl:param>
  	<!-- PARAMETER 'declaration5': the XML document based on declaration.dtd that
       contains declaration5, <lack-of-novelty>      -->
	<xsl:param name="declaration5"></xsl:param>
	<!-- 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>
	<!-- default page size = A4 -->
	<xsl:param name="page_size" select="A4"></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>

	<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="dec_doc"></xsl:param>
	<xsl:param name="dec1_doc"></xsl:param>
	<xsl:param name="dec2_doc"></xsl:param>
	<xsl:param name="dec3_doc"></xsl:param>
	<xsl:param name="dec4_doc"></xsl:param>
	<xsl:param name="dec5_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="2cm" margin-left="2cm" margin-right="2.3cm">
					<fo:region-body margin-bottom="0mm" margin-right="0mm" margin-left="0mm" margin-top="20mm"></fo:region-body>
					<fo:region-before extent="2.5cm"></fo:region-before>
				</fo:simple-page-master>
				<fo:page-sequence-master master-name="declaration">
					<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 - 47"></xsl:value-of>
			</xsl:variable>
			<fo:page-sequence master-reference="declaration" 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> 
										<fo:block text-align="left" font-size="10pt" color="black" background-color="white">
											<fo:inline font-weight="bold">
												PCT
											</fo:inline>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell>
										<fo:block>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell>
										<fo:block text-align="right" font-size="8pt" 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-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:apply-templates></xsl:apply-templates>               
					</xsl:element>               
					<fo:block id="endofdoc"></fo:block>            
				</fo:flow>         
			</fo:page-sequence>      
		</fo:root>   
	</xsl:template>   
	<!-- trap built-in template rule -->
	   
	<xsl:template match="text()"></xsl:template>   
   
	<xsl:template match="declaration">       
		<xsl:apply-templates></xsl:apply-templates>       
	</xsl:template>   
	<xsl:template match="identity-of-inventor">      
		<xsl:choose>         
			<xsl:when test="./doc-page">            
				<xsl:apply-templates select="doc-page"></xsl:apply-templates>         
			</xsl:when>         
			<xsl:otherwise>   			 
				<xsl:if test="count(preceding-sibling::*) &gt; 0">
					<fo:block break-before="page"></fo:block> 
				</xsl:if>            
				<xsl:call-template name="process_dec1"></xsl:call-template>         
			</xsl:otherwise>      
		</xsl:choose>   
	</xsl:template>   
	<xsl:template match="entitlement-to-be-granted-patent">      
		<xsl:choose>         
			<xsl:when test="./doc-page">            
				<xsl:apply-templates select="doc-page"></xsl:apply-templates>         
			</xsl:when>         
			<xsl:otherwise>   			 
				<xsl:if test="count(preceding-sibling::*) &gt; 0">
					<fo:block break-before="page"></fo:block> 
				</xsl:if>            
				<xsl:call-template name="process_dec2"></xsl:call-template>         
			</xsl:otherwise>      
		</xsl:choose>   
	</xsl:template>   
	<xsl:template match="entitlement-to-claim-priority">      
		<xsl:choose>         
			<xsl:when test="./doc-page">            
				<xsl:apply-templates select="doc-page"></xsl:apply-templates>         
			</xsl:when>         
			<xsl:otherwise>   			 
				<xsl:if test="count(preceding-sibling::*) &gt; 0">
					<fo:block break-before="page"></fo:block> 
				</xsl:if>            
				<xsl:call-template name="process_dec3"></xsl:call-template>         
			</xsl:otherwise>      
		</xsl:choose>   
	</xsl:template>   
	<xsl:template match="inventorship">      
		<xsl:choose>         
			<xsl:when test="./doc-page">            
				<xsl:apply-templates select="doc-page"></xsl:apply-templates>         
			</xsl:when>         
			<xsl:otherwise>   		     
				<!-- if there IS a prior declaration, insert page break  -->
				<xsl:if test="count(preceding-sibling::*) &gt; 0">
					<fo:block break-before="page"></fo:block> 
				</xsl:if>            
				<xsl:call-template name="process_dec4"></xsl:call-template>         
			</xsl:otherwise>      
		</xsl:choose>   
	</xsl:template>   
	<xsl:template match="lack-of-novelty">   	 
		<xsl:for-each select=".">  
			<xsl:choose> 
				<xsl:when test="./doc-page">
					<xsl:apply-templates select="doc-page"></xsl:apply-templates> 
				</xsl:when> 
				<xsl:otherwise> 
					<xsl:if test="count(preceding-sibling::*) &gt; 0">
						<fo:block break-before="page"></fo:block> 
					</xsl:if>            
					<xsl:call-template name="process_dec5"></xsl:call-template> 
				</xsl:otherwise>  
			</xsl:choose>  
		</xsl:for-each>   
	</xsl:template>
	<!-- INCLUDE COMPONENT TEMPLATES -->
	   
	<xsl:template name="caseCH">   
		<xsl:choose>   
			<xsl:when test="text()='ch' or text() = 'CH'">  
				<xsl:text>CH&amp;LI</xsl:text>  
				<xsl:if test="following-sibling::*[1][name()='country']">
					<xsl:text> 
					</xsl:text>  
				</xsl:if>   
			</xsl:when>   
			<xsl:when test="text() = 'li' or text() = 'LI'"></xsl:when>   
			<xsl:otherwise>  
				<xsl:value-of select="translate(.,'abdefghijklmnopqrstuvwxyz','ABDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:value-of>  
				<xsl:if test="following-sibling::*[1][name()='country'] or following-sibling::*[1][name()='protection-request']">
					<xsl:text> 
					</xsl:text>  
				</xsl:if>   
			</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="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="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="get_size">
      <xsl:param name="size_in"></xsl:param>
    <!-- NOTE: assumes screen resolution of 96 DPI (small icons) -->
        <!-- strip any units from attributes for mathematical operations to follow -->
      <xsl:variable name="unit" select="normalize-space(translate($size_in,'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',''))"></xsl:variable>
      <xsl:variable name="nSize" select="translate($size_in,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:variable>
      <xsl:variable name="size_out">
         <xsl:choose>
            <!-- if measured in milimeters -->
            <xsl:when test="contains($nSize,'MM')">
               <xsl:value-of select="round(number($unit) div 25.4 * 96)"></xsl:value-of>
            </xsl:when>
            <!-- if measured in centimeters -->
            <xsl:when test="contains($nSize,'CM')">
               <xsl:value-of select="round(number($unit) div 2.54 * 96)"></xsl:value-of>
            </xsl:when>
            <!-- if measured in inches -->
            <xsl:when test="contains($nSize,'IN')">
               <xsl:value-of select="round(number($unit) * 96)"></xsl:value-of>
            </xsl:when>
            <!-- if measured in pixels; NOTE: assumes 300 dpi scan -->
            <xsl:when test="contains($nSize,'PX')">
               <xsl:value-of select="round(number($unit) div 300 * 96)"></xsl:value-of>
            </xsl:when>
            <!-- use mm as default -->
            <xsl:otherwise>
               <xsl:value-of select="round(number($unit) div 25.4 * 96)"></xsl:value-of>
            </xsl:otherwise>
         </xsl:choose>
      </xsl:variable>
      <xsl:value-of select="$size_out"></xsl:value-of>
   </xsl:template>   
	<xsl:template name="showAddress">
		<xsl:choose>
			<xsl:when test="addressbook[1]/address/country='US' or addressbook[1]/address/country='CA'">
				<xsl:choose>
					<xsl:when test="addressbook[1]/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<xsl:for-each select="addressbook[1]/address/*"> 
							<xsl:choose>
								<xsl:when test="name(.)='city'">   
									<xsl:value-of select="."></xsl:value-of>   
									<xsl:text>, </xsl:text>
								</xsl:when>
								<xsl:when test="name(.)='state'">   
									<xsl:value-of select="."></xsl:value-of>   
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:when test="name(.)='postcode'">
									<xsl:value-of select="."></xsl:value-of>
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:when test="name(.)='country'">
									<fo:block>
										<xsl:call-template name="country_ChoiceText">
											<xsl:with-param name="country" select="."></xsl:with-param>
										</xsl:call-template>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<xsl:choose>
										<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
											<fo:block white-space="pre" wrap-option="wrap">
												<xsl:value-of select="."></xsl:value-of>
											</fo:block>
										</xsl:when>
										<xsl:otherwise>
											<fo:block white-space-collapse="false" wrap-option="wrap">															
												<xsl:value-of select="."></xsl:value-of>   
											</fo:block>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:otherwise> 
							</xsl:choose>  
						</xsl:for-each>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="addressbook[1]/address/country='AU'">
				<xsl:choose>
					<xsl:when test="addressbook[1]/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<xsl:for-each select="addressbook[1]/address/*"> 
							<xsl:choose>
								<xsl:when test="name(.)='city'">   
									<xsl:value-of select="."></xsl:value-of>   
									<xsl:text>, </xsl:text>
								</xsl:when>
								<xsl:when test="name(.)='postcode'">
									<xsl:value-of select="."></xsl:value-of>
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:when test="name(.)='state'">   
									<xsl:value-of select="."></xsl:value-of>   
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:when test="name(.)='country'">
									<fo:block>
										<xsl:call-template name="country_ChoiceText">
											<xsl:with-param name="country" select="."></xsl:with-param>
										</xsl:call-template>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<xsl:choose>
										<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
											<fo:block white-space="pre" wrap-option="wrap">
												<xsl:value-of select="."></xsl:value-of>
											</fo:block>
										</xsl:when>
										<xsl:otherwise>
											<fo:block white-space-collapse="false" wrap-option="wrap">															
												<xsl:value-of select="."></xsl:value-of>   
											</fo:block>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:otherwise> 
							</xsl:choose>  
						</xsl:for-each>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="addressbook[1]/address/country='DE'">
				<xsl:choose>
					<xsl:when test="addressbook[1]/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<xsl:for-each select="addressbook[1]/address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]"> 
							<xsl:choose>
								<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
									<fo:block white-space="pre" wrap-option="wrap">
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block white-space-collapse="false" wrap-option="wrap">															
										<xsl:value-of select="."></xsl:value-of>   
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:for-each>
						<fo:block>
							<xsl:value-of select="addressbook[1]/address/postcode"></xsl:value-of>
							<xsl:text> </xsl:text>
							<xsl:value-of select="addressbook[1]/address/city"></xsl:value-of>
						</fo:block>
						<fo:block>
							<xsl:call-template name="country_ChoiceText">
								<xsl:with-param name="country" select="addressbook[1]/address/country"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<!-- TODO: determine JA markup -->
			<xsl:when test="addressbook[1]/address/country='JP'">
				<xsl:choose>
					<xsl:when test="addressbook[1]/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
								<fo:block white-space="pre" wrap-option="wrap">
									<xsl:value-of select="addressbook[1]/address/address-1"></xsl:value-of>
								</fo:block>
							</xsl:when>
							<xsl:otherwise>
								<fo:block white-space-collapse="false" wrap-option="wrap">															
									<xsl:value-of select="addressbook[1]/address/address-1"></xsl:value-of>
								</fo:block>
							</xsl:otherwise>
						</xsl:choose>
						<xsl:if test="addressbook[1]/address/address-2">
							<xsl:choose>
								<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
									<fo:block white-space="pre" wrap-option="wrap">
										<xsl:value-of select="addressbook[1]/address/address-2"></xsl:value-of>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block white-space-collapse="false" wrap-option="wrap">															
										<xsl:value-of select="addressbook[1]/address/address-2"></xsl:value-of>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:if>
						<xsl:if test="addressbook[1]/address/address-3">
							<xsl:choose>
								<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
									<fo:block white-space="pre" wrap-option="wrap">
										<xsl:value-of select="addressbook[1]/address/address-3"></xsl:value-of>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block white-space-collapse="false" wrap-option="wrap">															
										<xsl:value-of select="addressbook[1]/address/address-3"></xsl:value-of>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
								<fo:block white-space="pre" wrap-option="wrap">
									<xsl:for-each select="addressbook[1]/address/*[not(name(.)='address-1' or name(.)='address-2' or name(.)='address-3' or name(.)='postcode' or name(.)='country')]"> 
										<xsl:value-of select="."></xsl:value-of>
										<xsl:text>, </xsl:text>
									</xsl:for-each>
								</fo:block>
							</xsl:when>
							<xsl:otherwise>
								<fo:block white-space-collapse="false" wrap-option="wrap">															
									<xsl:for-each select="addressbook[1]/address/*[not(name(.)='address-1' or name(.)='address-2' or name(.)='address-3' or name(.)='postcode' or name(.)='country')]"> 
										<xsl:value-of select="."></xsl:value-of>
										<xsl:text>, </xsl:text>
									</xsl:for-each>
								</fo:block>
							</xsl:otherwise>
						</xsl:choose>
						<fo:block>
							<xsl:value-of select="addressbook[1]/address/postcode"></xsl:value-of>
						</fo:block>
						<fo:block>
							<xsl:call-template name="country_ChoiceText">
								<xsl:with-param name="country" select="addressbook[1]/address/country"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="addressbook[1]/address/country='GB' or addressbook[1]/address/country='KR'">
				<xsl:choose>
					<xsl:when test="addressbook[1]/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<xsl:for-each select="addressbook[1]/address/*"> 
							<xsl:choose>
								<xsl:when test="name(.)='postcode'">
									<fo:block>
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:when>
								<xsl:when test="name(.)='city'">   
									<fo:block>
										<xsl:value-of select="."></xsl:value-of>   
									</fo:block>
								</xsl:when>
								<xsl:when test="name(.)='country'">
									<fo:block>
										<xsl:call-template name="country_ChoiceText">
											<xsl:with-param name="country" select="."></xsl:with-param>
										</xsl:call-template>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<xsl:choose>
										<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
											<fo:block white-space="pre" wrap-option="wrap">
												<xsl:if test="name(.)='address-2' or name(.)='address-3'">
													<xsl:text> </xsl:text>
												</xsl:if>
												<xsl:value-of select="."></xsl:value-of>
											</fo:block>
										</xsl:when>
										<xsl:otherwise>
											<fo:block white-space-collapse="false" wrap-option="wrap">															
												<xsl:if test="name(.)='address-2' or name(.)='address-3'">
													<xsl:text> </xsl:text>
												</xsl:if>
												<xsl:value-of select="."></xsl:value-of> 
											</fo:block>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:otherwise> 
							</xsl:choose>  
						</xsl:for-each>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="addressbook[1]/address/country='FR' or addressbook[1]/address/country='NL' or addressbook[1]/address/country='SE' or addressbook[1]/address/country='CH' or addressbook[1]/address/country='LI'">
				<xsl:choose>
					<xsl:when test="addressbook[1]/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<xsl:for-each select="addressbook[1]/address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]"> 
							<xsl:choose>
								<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
									<fo:block white-space="pre" wrap-option="wrap">
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block white-space-collapse="false" wrap-option="wrap">															
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:for-each>
						<fo:block>
							<xsl:value-of select="addressbook[1]/address/postcode"></xsl:value-of>
							<xsl:text> </xsl:text>
							<xsl:value-of select="addressbook[1]/address/city"></xsl:value-of>
						</fo:block>
						<fo:block>
							<xsl:call-template name="country_ChoiceText">
								<xsl:with-param name="country" select="addressbook[1]/address/country"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="addressbook[1]/address/country='CN'">				
				<xsl:choose>			
					<xsl:when test="addressbook[1]/text">		
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>		
					<xsl:when test="$lang='zh'"> <!-- for when the stylesheet does not use "showZhAddress" for Chinese address -->
						<fo:block>
							<xsl:call-template name="country_ChoiceText">	
								<xsl:with-param name="country" select="addressbook[1]/address/country"></xsl:with-param>
							</xsl:call-template>
							<xsl:value-of select="addressbook[1]/address/state"></xsl:value-of>
							<xsl:value-of select="addressbook[1]/address/city"></xsl:value-of>
						</fo:block>
						<xsl:choose>
							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
								<fo:block white-space="pre" wrap-option="wrap">
									<xsl:value-of select="addressbook[1]/address/street"></xsl:value-of>
									<xsl:value-of select="addressbook[1]/address/address-1"></xsl:value-of>
									<xsl:value-of select="addressbook[1]/address/address-2"></xsl:value-of>
									<xsl:value-of select="addressbook[1]/address/address-3"></xsl:value-of>
								</fo:block>
							</xsl:when>
							<xsl:otherwise>
								<fo:block white-space-collapse="false" wrap-option="wrap">															
									<xsl:value-of select="addressbook[1]/address/street"></xsl:value-of>
									<xsl:value-of select="addressbook[1]/address/address-1"></xsl:value-of>
									<xsl:value-of select="addressbook[1]/address/address-2"></xsl:value-of>
									<xsl:value-of select="addressbook[1]/address/address-3"></xsl:value-of>
								</fo:block>
							</xsl:otherwise>
						</xsl:choose>
						<fo:block>
							<xsl:value-of select="addressbook[1]/address/postcode"></xsl:value-of>
						</fo:block>					
					</xsl:when>		
					<xsl:otherwise>		
						<xsl:for-each select="addressbook[1]/address/*[not(name(.)='street' or name(.)='city' or name(.)='state' or name(.)='postcode' or name(.)='country')]"> 	
							<xsl:choose>
								<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
									<fo:block white-space="pre" wrap-option="wrap">
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block white-space-collapse="false" wrap-option="wrap">															
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:for-each>		
						<xsl:if test="addressbook[1]/address/street">
							<xsl:choose>
								<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
									<fo:block white-space="pre" wrap-option="wrap">
										<xsl:value-of select="addressbook[1]/address/street"></xsl:value-of>	
										<xsl:text> </xsl:text>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block white-space-collapse="false" wrap-option="wrap">															
										<xsl:value-of select="addressbook[1]/address/street"></xsl:value-of>	
										<xsl:text> </xsl:text>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="addressbook[1]/address/city">
								<fo:block>		
									<xsl:value-of select="addressbook[1]/address/city"></xsl:value-of>
									<xsl:text>, </xsl:text>	
									<xsl:value-of select="addressbook[1]/address/state"></xsl:value-of>	
									<xsl:text> </xsl:text>	
									<xsl:value-of select="addressbook[1]/address/postcode"></xsl:value-of>	
								</fo:block>		
							</xsl:when>
							<xsl:otherwise>		
								<fo:block>		
									<xsl:value-of select="addressbook[1]/address/state"></xsl:value-of>	
									<xsl:text> </xsl:text>	
									<xsl:value-of select="addressbook[1]/address/postcode"></xsl:value-of>	
								</fo:block>		
							</xsl:otherwise>			
						</xsl:choose>
						<fo:block>		
							<xsl:call-template name="country_ChoiceText">	
								<xsl:with-param name="country" select="addressbook[1]/address/country"></xsl:with-param>
							</xsl:call-template>	
						</fo:block>		
					</xsl:otherwise>			
				</xsl:choose>				
			</xsl:when>					
			<xsl:when test="addressbook[1]/address/country='RU'">
				<xsl:choose>
					<xsl:when test="addressbook[1]/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<xsl:for-each select="addressbook[1]/address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]"> 
							<xsl:choose>
								<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
									<fo:block white-space="pre" wrap-option="wrap">
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block white-space-collapse="false" wrap-option="wrap">															
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:for-each>
						<fo:block>
							<xsl:value-of select="addressbook[1]/address/city"></xsl:value-of>
							<xsl:text> </xsl:text>	
							<xsl:value-of select="addressbook[1]/address/postcode"></xsl:value-of>
						</fo:block>
						<fo:block>
							<xsl:call-template name="country_ChoiceText">
								<xsl:with-param name="country" select="addressbook[1]/address/country"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>			
			</xsl:when>
			<!-- for all others, use European format by default -->
			<xsl:otherwise>
				<xsl:choose>
					<xsl:when test="addressbook[1]/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<xsl:for-each select="addressbook[1]/address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]"> 
							<xsl:choose>
								<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
									<fo:block white-space="pre" wrap-option="wrap">
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block white-space-collapse="false" wrap-option="wrap">															
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:for-each>
						<fo:block>
							<xsl:value-of select="addressbook[1]/address/postcode"></xsl:value-of>
							<xsl:text> </xsl:text>	
							<xsl:value-of select="addressbook[1]/address/city"></xsl:value-of>
						</fo:block>
						<fo:block>
							<xsl:call-template name="country_ChoiceText">
								<xsl:with-param name="country" select="addressbook[1]/address/country"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>   
	<xsl:template name="showEnAddress">
		<xsl:param name="address_arg" select="./addressbook[@lang='en']"></xsl:param>      
		<xsl:choose>
			<xsl:when test="$address_arg/address/country='US' or $address_arg/address/country='CA'">
				<xsl:choose>
					<xsl:when test="$address_arg/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<xsl:for-each select="$address_arg/address/*"> 
							<xsl:choose>
								<xsl:when test="name(.)='city'">   
									<xsl:value-of select="."></xsl:value-of>   
									<xsl:text>, </xsl:text>
								</xsl:when>
								<xsl:when test="name(.)='state'">   
									<xsl:value-of select="."></xsl:value-of>   
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:when test="name(.)='postcode'">
									<xsl:value-of select="."></xsl:value-of>
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:when test="name(.)='country'">
									<fo:block>
										<xsl:call-template name="enCountry_ChoiceText">
											<xsl:with-param name="country" select="."></xsl:with-param>
										</xsl:call-template>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<xsl:choose>
										<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
											<fo:block white-space="pre" wrap-option="wrap">
												<xsl:value-of select="."></xsl:value-of>
											</fo:block>
										</xsl:when>
										<xsl:otherwise>
											<fo:block white-space-collapse="false" wrap-option="wrap">															
												<xsl:value-of select="."></xsl:value-of>   
											</fo:block>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:otherwise> 
							</xsl:choose>  
						</xsl:for-each>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="$address_arg/address/country='AU'">
				<xsl:choose>
					<xsl:when test="$address_arg/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<xsl:for-each select="$address_arg/address/*"> 
							<xsl:choose>
								<xsl:when test="name(.)='city'">   
									<xsl:value-of select="."></xsl:value-of>   
									<xsl:text>, </xsl:text>
								</xsl:when>
								<xsl:when test="name(.)='postcode'">
									<xsl:value-of select="."></xsl:value-of>
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:when test="name(.)='state'">   
									<xsl:value-of select="."></xsl:value-of>   
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:when test="name(.)='country'">
									<fo:block>
										<xsl:call-template name="enCountry_ChoiceText">
											<xsl:with-param name="country" select="."></xsl:with-param>
										</xsl:call-template>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<xsl:choose>
										<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
											<fo:block white-space="pre" wrap-option="wrap">
												<xsl:value-of select="."></xsl:value-of>
											</fo:block>
										</xsl:when>
										<xsl:otherwise>
											<fo:block white-space-collapse="false" wrap-option="wrap">															
												<xsl:value-of select="."></xsl:value-of>   
											</fo:block>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:otherwise> 
							</xsl:choose>  
						</xsl:for-each>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="$address_arg/address/country='DE'">
				<xsl:choose>
					<xsl:when test="$address_arg/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<xsl:for-each select="$address_arg/address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]"> 
							<xsl:choose>
								<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
									<fo:block white-space="pre" wrap-option="wrap">
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block white-space-collapse="false" wrap-option="wrap">															
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:for-each>
						<fo:block>
							<xsl:value-of select="$address_arg/address/postcode"></xsl:value-of>
							<xsl:text> </xsl:text>
							<xsl:value-of select="$address_arg/address/city"></xsl:value-of>
						</fo:block>
						<fo:block>
							<xsl:call-template name="enCountry_ChoiceText">
								<xsl:with-param name="country" select="$address_arg/address/country"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<!-- TODO: determine JA markup -->
			<xsl:when test="$address_arg/address/country='JP'">
				<xsl:choose>
					<xsl:when test="$address_arg/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:when test="$address_arg/address/state">
						<fo:block>
							<xsl:for-each select="$address_arg/address/*[not(name(.)='state' or name(.)='postcode' or name(.)='country')]"> 
								<xsl:choose>
									<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
										<fo:block white-space="pre" wrap-option="wrap">
											<xsl:value-of select="."></xsl:value-of>
											<xsl:text>, </xsl:text>
										</fo:block>
									</xsl:when>
									<xsl:otherwise>
										<fo:block white-space-collapse="false" wrap-option="wrap">															
											<xsl:value-of select="."></xsl:value-of>
											<xsl:text>, </xsl:text>
										</fo:block>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:for-each>
						</fo:block>
						<fo:block>
							<xsl:value-of select="$address_arg/address/state"></xsl:value-of>
							<xsl:text> </xsl:text>
							<xsl:value-of select="$address_arg/address/postcode"></xsl:value-of>
						</fo:block>
						<fo:block>
							<xsl:call-template name="enCountry_ChoiceText">
								<xsl:with-param name="country" select="$address_arg/address/country"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
					</xsl:when>
					<xsl:otherwise>   
						<!-- NOTE: JA format of EN address should always be like below
					           address-1
					           postcode
					           country -->
						<xsl:choose>
							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
								<fo:block white-space="pre" wrap-option="wrap">
									<xsl:value-of select="$address_arg//address-1"></xsl:value-of>
									<xsl:text> </xsl:text>
									<xsl:if test="$address_arg//address-2">
										<fo:block white-space="pre" wrap-option="wrap">
											<xsl:value-of select="$address_arg//address-2"></xsl:value-of>
											<xsl:text> </xsl:text>
										</fo:block>
									</xsl:if>
									<xsl:if test="$address_arg//address-3">
										<fo:block white-space="pre" wrap-option="wrap">
											<xsl:value-of select="$address_arg//address-3"></xsl:value-of>
											<xsl:text> </xsl:text>
										</fo:block>
									</xsl:if>
									<xsl:if test="$address_arg//street">
										<fo:block white-space="pre" wrap-option="wrap">
											<xsl:value-of select="$address_arg//street"></xsl:value-of>
											<xsl:if test="$address_arg//city">
												<xsl:text>, </xsl:text>
												<xsl:value-of select="$address_arg//city"></xsl:value-of>
											</xsl:if>									
										</fo:block>
									</xsl:if>
									<xsl:value-of select="$address_arg//county"></xsl:value-of>
								</fo:block>
							</xsl:when>
							<xsl:otherwise>
								<fo:block white-space-collapse="false" wrap-option="wrap">															
									<xsl:value-of select="$address_arg//address-1"></xsl:value-of>
									<xsl:text> </xsl:text>
									<xsl:if test="$address_arg//address-2">
										<fo:block white-space-collapse="false" wrap-option="wrap">
											<xsl:value-of select="$address_arg//address-2"></xsl:value-of>
											<xsl:text> </xsl:text>
										</fo:block>
									</xsl:if>
									<xsl:if test="$address_arg//address-3">
										<fo:block white-space-collapse="false" wrap-option="wrap">
											<xsl:value-of select="$address_arg//address-3"></xsl:value-of>
											<xsl:text> </xsl:text>
										</fo:block>
									</xsl:if>
									<xsl:if test="$address_arg//street">
										<fo:block white-space-collapse="false" wrap-option="wrap">
											<xsl:value-of select="$address_arg//street"></xsl:value-of>
											<xsl:if test="$address_arg//city">
												<xsl:text>, </xsl:text>
												<xsl:value-of select="$address_arg//city"></xsl:value-of>
											</xsl:if>									
										</fo:block>
									</xsl:if>
									<xsl:value-of select="$address_arg//county"></xsl:value-of>
								</fo:block>
							</xsl:otherwise>
						</xsl:choose>
						<fo:block>
							<xsl:value-of select="$address_arg//postcode"></xsl:value-of>
						</fo:block>
						<fo:block>
							<xsl:call-template name="enCountry_ChoiceText">
								<xsl:with-param name="country" select="$address_arg/address/country"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="$address_arg/address/country='GB'">
				<xsl:choose>
					<xsl:when test="$address_arg/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<xsl:for-each select="$address_arg/address/*"> 
							<xsl:choose>
								<xsl:when test="name(.)='postcode'">
									<xsl:value-of select="."></xsl:value-of>
								</xsl:when>
								<xsl:when test="name(.)='city'">   
									<xsl:value-of select="."></xsl:value-of>   
								</xsl:when>
								<xsl:when test="name(.)='country'">
									<fo:block>
										<xsl:call-template name="enCountry_ChoiceText">
											<xsl:with-param name="country" select="."></xsl:with-param>
										</xsl:call-template>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<xsl:choose>
										<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
											<fo:block white-space="pre" wrap-option="wrap">
												<xsl:value-of select="."></xsl:value-of>
											</fo:block>
										</xsl:when>
										<xsl:otherwise>
											<fo:block white-space-collapse="false" wrap-option="wrap">															
												<xsl:value-of select="."></xsl:value-of>   
											</fo:block>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:otherwise> 
							</xsl:choose>  
						</xsl:for-each>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="$address_arg/address/country='KR'">
				<xsl:choose>
					<xsl:when test="$address_arg/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<xsl:for-each select="$address_arg/address/*"> 
							<xsl:choose>
								<xsl:when test="name(.)='postcode'">
									<xsl:value-of select="."></xsl:value-of>
								</xsl:when>
								<xsl:when test="name(.)='city'">   
									<xsl:value-of select="."></xsl:value-of>   
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:when test="name(.)='state'">   
									<xsl:value-of select="."></xsl:value-of>   
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:when test="name(.)='country'">
									<fo:block>
										<xsl:call-template name="enCountry_ChoiceText">
											<xsl:with-param name="country" select="."></xsl:with-param>
										</xsl:call-template>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<xsl:choose>
										<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
											<fo:block white-space="pre" wrap-option="wrap">
												<xsl:value-of select="."></xsl:value-of>
											</fo:block>
										</xsl:when>
										<xsl:otherwise>
											<fo:block white-space-collapse="false" wrap-option="wrap">															
												<xsl:value-of select="."></xsl:value-of>   
											</fo:block>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:otherwise> 
							</xsl:choose>  
						</xsl:for-each>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="$address_arg/address/country='FR' or $address_arg/address/country='NL' or $address_arg/address/country='SE' or $address_arg/address/country='CH' or $address_arg/address/country='LI'">
				<xsl:choose>
					<xsl:when test="$address_arg/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<xsl:for-each select="$address_arg/address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]"> 
							<xsl:choose>
								<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
									<fo:block white-space="pre" wrap-option="wrap">
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block white-space-collapse="false" wrap-option="wrap">															
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:for-each>
						<fo:block>
							<xsl:value-of select="$address_arg/address/postcode"></xsl:value-of>
							<xsl:text> </xsl:text>
							<xsl:value-of select="$address_arg/address/city"></xsl:value-of>
						</fo:block>
						<fo:block>
							<xsl:call-template name="enCountry_ChoiceText">
								<xsl:with-param name="country" select="$address_arg/address/country"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="$address_arg/address/country='CN'">				
				<xsl:choose>			
					<xsl:when test="$address_arg/text">		
						<xsl:value-of select="."></xsl:value-of>	
					</xsl:when>		
					<xsl:otherwise>		
						<xsl:for-each select="$address_arg/address/*[not(name(.)='street' or name(.)='city' or name(.)='state' or name(.)='postcode' or name(.)='country')]"> 	
							<xsl:choose>
								<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
									<fo:block white-space="pre" wrap-option="wrap">
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block white-space-collapse="false" wrap-option="wrap">															
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:for-each>
						<xsl:if test="$address_arg/address/street">
							<xsl:choose>
								<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
									<fo:block white-space="pre" wrap-option="wrap">
										<xsl:value-of select="$address_arg/address/street"></xsl:value-of>	
										<xsl:text> </xsl:text>	
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block white-space-collapse="false" wrap-option="wrap">															
										<xsl:value-of select="$address_arg/address/street"></xsl:value-of>	
										<xsl:text> </xsl:text>	
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:if>		
						<xsl:choose>
							<xsl:when test="$address_arg/address/city">
								<fo:block>		
									<xsl:value-of select="$address_arg/address/city"></xsl:value-of>
									<xsl:text>,	</xsl:text>	
									<xsl:value-of select="$address_arg/address/state"></xsl:value-of>	
									<xsl:text> </xsl:text>	
									<xsl:value-of select="$address_arg/address/postcode"></xsl:value-of>	
								</fo:block>		
							</xsl:when>
							<xsl:otherwise>		
								<fo:block>		
									<xsl:value-of select="$address_arg/address/state"></xsl:value-of>	
									<xsl:text> </xsl:text>	
									<xsl:value-of select="$address_arg/address/postcode"></xsl:value-of>	
								</fo:block>		
							</xsl:otherwise>			
						</xsl:choose>
						<fo:block>		
							<xsl:call-template name="enCountry_ChoiceText">	
								<xsl:with-param name="country" select="$address_arg/address/country"></xsl:with-param>
							</xsl:call-template>	
						</fo:block>		
					</xsl:otherwise>			
				</xsl:choose>				
			</xsl:when>					
			<xsl:when test="$address_arg/address/country='RU'">
				<xsl:choose>
					<xsl:when test="$address_arg/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<xsl:for-each select="$address_arg/address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]"> 
							<xsl:choose>
								<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
									<fo:block white-space="pre" wrap-option="wrap">
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block white-space-collapse="false" wrap-option="wrap">															
										<xsl:value-of select="."></xsl:value-of>   
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:for-each>
						<fo:block>
							<xsl:value-of select="$address_arg/address/city"></xsl:value-of>
							<xsl:text> </xsl:text>
							<xsl:value-of select="$address_arg/address/postcode"></xsl:value-of>
						</fo:block>
						<fo:block>
							<xsl:call-template name="enCountry_ChoiceText">
								<xsl:with-param name="country" select="$address_arg/address/country"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<!-- for all others, use European format by default -->
			<xsl:otherwise>
				<xsl:choose>
					<xsl:when test="$address_arg/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<xsl:for-each select="$address_arg/address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]"> 
							<xsl:choose>
								<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
									<fo:block white-space="pre" wrap-option="wrap">
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block white-space-collapse="false" wrap-option="wrap">															
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:for-each>
						<fo:block>
							<xsl:value-of select="$address_arg/address/postcode"></xsl:value-of>
							<xsl:text> </xsl:text>
							<xsl:value-of select="$address_arg/address/city"></xsl:value-of>
						</fo:block>
						<fo:block>
							<xsl:call-template name="enCountry_ChoiceText">
								<xsl:with-param name="country" select="$address_arg/address/country"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template><xsl:template name="showJaAddress">
		<xsl:choose>
			<xsl:when test="addressbook[@lang=$lang]/text">
				<xsl:value-of select="."></xsl:value-of>
			</xsl:when>
			<xsl:otherwise>
				<!-- NOTE: JA format should always be (at least for PCT-SAFE) 
			           postcode
			           country
			           address-1
			           If this changes, uncomment below  -->
				<fo:block>
					<xsl:value-of select="addressbook[@lang=$lang]//postcode"></xsl:value-of>
				</fo:block>
				<fo:block>
					<xsl:call-template name="country_ChoiceText">
						<xsl:with-param name="country" select="addressbook[@lang=$lang]/address/country"></xsl:with-param>
					</xsl:call-template>
				</fo:block>
				<xsl:choose>
					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
						<fo:block white-space="pre" wrap-option="wrap">
							<xsl:value-of select="addressbook[@lang=$lang]/address/state"></xsl:value-of>
							<xsl:value-of select="addressbook[@lang=$lang]/address/city"></xsl:value-of>
							<xsl:value-of select="addressbook[@lang=$lang]/address/street"></xsl:value-of>
							<xsl:value-of select="addressbook[@lang=$lang]/address/address-1"></xsl:value-of>
							<xsl:if test="addressbook[@lang=$lang]/address/address-2">
								<fo:block>
									<xsl:value-of select="addressbook[@lang=$lang]/address/address-2"></xsl:value-of>
								</fo:block>
							</xsl:if>
							<xsl:if test="addressbook[@lang=$lang]/address/address-3">
								<fo:block>
									<xsl:value-of select="addressbook[@lang=$lang]/address/address-3"></xsl:value-of>
								</fo:block>
							</xsl:if>
						</fo:block>
					</xsl:when>
					<xsl:otherwise>
						<fo:block white-space-collapse="false" wrap-option="wrap">															
							<xsl:value-of select="addressbook[@lang=$lang]/address/state"></xsl:value-of>
							<xsl:value-of select="addressbook[@lang=$lang]/address/city"></xsl:value-of>
							<xsl:value-of select="addressbook[@lang=$lang]/address/street"></xsl:value-of>
							<xsl:value-of select="addressbook[@lang=$lang]/address/address-1"></xsl:value-of>
							<xsl:if test="addressbook[@lang=$lang]/address/address-2">
								<fo:block>
									<xsl:value-of select="addressbook[@lang=$lang]/address/address-2"></xsl:value-of>
								</fo:block>
							</xsl:if>
							<xsl:if test="addressbook[@lang=$lang]/address/address-3">
								<fo:block>
									<xsl:value-of select="addressbook[@lang=$lang]/address/address-3"></xsl:value-of>
								</fo:block>
							</xsl:if>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template><xsl:template name="showZhAddress">
		<xsl:choose>
			<xsl:when test="addressbook[@lang=$lang]/text">
				<xsl:value-of select="."></xsl:value-of>
			</xsl:when>
			<xsl:otherwise>
				<fo:block>
					<xsl:variable name="country_name">
						<xsl:call-template name="country_ChoiceText">
							<xsl:with-param name="country" select="addressbook[@lang=$lang]/address/country"></xsl:with-param>
						</xsl:call-template>
					</xsl:variable>
					<xsl:value-of select="normalize-space($country_name)"></xsl:value-of>      
					<xsl:value-of select="addressbook[@lang=$lang]/address/state"></xsl:value-of>
					<xsl:value-of select="addressbook[@lang=$lang]/address/city"></xsl:value-of>
				</fo:block>
				<xsl:choose>
					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
						<fo:block white-space="pre" wrap-option="wrap">
							<xsl:value-of select="addressbook[@lang=$lang]/address/street"></xsl:value-of>
							<xsl:value-of select="addressbook[@lang=$lang]/address/address-1"></xsl:value-of>
							<xsl:value-of select="addressbook[@lang=$lang]/address/address-2"></xsl:value-of>
							<xsl:value-of select="addressbook[@lang=$lang]/address/address-3"></xsl:value-of>
						</fo:block>
					</xsl:when>
					<xsl:otherwise>
						<fo:block white-space-collapse="false" wrap-option="wrap">															
							<xsl:value-of select="addressbook[@lang=$lang]/address/street"></xsl:value-of>
							<xsl:value-of select="addressbook[@lang=$lang]/address/address-1"></xsl:value-of>
							<xsl:value-of select="addressbook[@lang=$lang]/address/address-2"></xsl:value-of>
							<xsl:value-of select="addressbook[@lang=$lang]/address/address-3"></xsl:value-of>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>
				<fo:block>
					<xsl:value-of select="addressbook[@lang=$lang]/address/postcode"></xsl:value-of>
				</fo:block>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template><xsl:template name="showKoAddress">
		<xsl:choose>
			<xsl:when test="addressbook[@lang=$lang]/text">
				<xsl:value-of select="."></xsl:value-of>
			</xsl:when>
			<xsl:otherwise>
				<fo:block>
					<xsl:call-template name="country_ChoiceText">
						<xsl:with-param name="country" select="addressbook[@lang=$lang]/address/country"></xsl:with-param>
					</xsl:call-template>
				</fo:block>
				<fo:block>
					<xsl:value-of select="addressbook[@lang=$lang]/address/postcode"></xsl:value-of>
				</fo:block>
				<xsl:choose>
					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
						<fo:block white-space="pre" wrap-option="wrap">
							<xsl:if test="addressbook[@lang=$lang]/address/state">   
								<xsl:value-of select="addressbook[@lang=$lang]/address/state"></xsl:value-of>
								<xsl:text> </xsl:text>
							</xsl:if>
							<xsl:if test="addressbook[@lang=$lang]/address/city">
								<xsl:value-of select="addressbook[@lang=$lang]/address/city"></xsl:value-of>
								<xsl:text> </xsl:text>
							</xsl:if>
							<xsl:if test="addressbook[@lang=$lang]/address/street">
								<xsl:value-of select="addressbook[@lang=$lang]/address/street"></xsl:value-of>
								<xsl:text> </xsl:text>
							</xsl:if>
							<xsl:if test="addressbook[@lang=$lang]/address/address-1">
								<xsl:value-of select="addressbook[@lang=$lang]/address/address-1"></xsl:value-of>
							</xsl:if>
							<xsl:if test="addressbook[@lang=$lang]/address/address-2">
								<xsl:text> </xsl:text>
								<xsl:value-of select="addressbook[@lang=$lang]/address/address-2"></xsl:value-of>
							</xsl:if>
							<xsl:if test="addressbook[@lang=$lang]/address/address-3">
								<xsl:text> </xsl:text>
								<xsl:value-of select="addressbook[@lang=$lang]/address/address-3"></xsl:value-of>
							</xsl:if>
						</fo:block>
					</xsl:when>
					<xsl:otherwise>
						<fo:block white-space-collapse="false" wrap-option="wrap">															
							<xsl:if test="addressbook[@lang=$lang]/address/state">   
								<xsl:value-of select="addressbook[@lang=$lang]/address/state"></xsl:value-of>
								<xsl:text> </xsl:text>
							</xsl:if>
							<xsl:if test="addressbook[@lang=$lang]/address/city">
								<xsl:value-of select="addressbook[@lang=$lang]/address/city"></xsl:value-of>
								<xsl:text> </xsl:text>
							</xsl:if>
							<xsl:if test="addressbook[@lang=$lang]/address/street">
								<xsl:value-of select="addressbook[@lang=$lang]/address/street"></xsl:value-of>
								<xsl:text> </xsl:text>
							</xsl:if>
							<xsl:if test="addressbook[@lang=$lang]/address/address-1">
								<xsl:value-of select="addressbook[@lang=$lang]/address/address-1"></xsl:value-of>
							</xsl:if>
							<xsl:if test="addressbook[@lang=$lang]/address/address-2">
								<xsl:text> </xsl:text>
								<xsl:value-of select="addressbook[@lang=$lang]/address/address-2"></xsl:value-of>
							</xsl:if>
							<xsl:if test="addressbook[@lang=$lang]/address/address-3">
								<xsl:text> </xsl:text>
								<xsl:value-of select="addressbook[@lang=$lang]/address/address-3"></xsl:value-of>
							</xsl:if>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template><xsl:template name="showNativeAddress">
		<!-- shows addressbook data in language of the application -->
		<xsl:choose>
			<xsl:when test="addressbook[@lang=$lang]/address/country='US' or addressbook[@lang=$lang]/address/country='CA'">
				<xsl:choose>
					<xsl:when test="addressbook[@lang=$lang]/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<xsl:for-each select="addressbook[@lang=$lang]/address/*"> 
							<xsl:choose>
								<xsl:when test="name(.)='city'">   
									<xsl:value-of select="."></xsl:value-of>   
									<xsl:text>, </xsl:text>
								</xsl:when>
								<xsl:when test="name(.)='state'">   
									<xsl:value-of select="."></xsl:value-of>   
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:when test="name(.)='postcode'">
									<xsl:value-of select="."></xsl:value-of>
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:when test="name(.)='country'">
									<fo:block>
										<xsl:call-template name="country_ChoiceText">
											<xsl:with-param name="country" select="."></xsl:with-param>
										</xsl:call-template>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<xsl:choose>
										<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
											<fo:block white-space="pre" wrap-option="wrap">
												<xsl:value-of select="."></xsl:value-of>
											</fo:block>
										</xsl:when>
										<xsl:otherwise>
											<fo:block white-space-collapse="false" wrap-option="wrap">															
												<xsl:value-of select="."></xsl:value-of>   
											</fo:block>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:otherwise> 
							</xsl:choose>  
						</xsl:for-each>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="addressbook[@lang=$lang]/address/country='DE'">
				<xsl:choose>
					<xsl:when test="addressbook[@lang=$lang]/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<xsl:for-each select="addressbook[@lang=$lang]/address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]"> 
							<xsl:choose>
								<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
									<fo:block white-space="pre" wrap-option="wrap">
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block white-space-collapse="false" wrap-option="wrap">															
										<xsl:value-of select="."></xsl:value-of>   
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:for-each>
						<fo:block>
							<xsl:value-of select="addressbook[@lang=$lang]/address/postcode"></xsl:value-of>
							<xsl:text> </xsl:text>
							<xsl:value-of select="addressbook[@lang=$lang]/address/city"></xsl:value-of>
						</fo:block>
						<fo:block>
							<xsl:call-template name="country_ChoiceText">
								<xsl:with-param name="country" select="addressbook[@lang=$lang]/address/country"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<!-- TODO: determine JA markup -->
			<xsl:when test="addressbook[@lang=$lang]/address/country='JP'">
				<xsl:choose>
					<xsl:when test="addressbook[@lang=$lang]/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<fo:block>
							<xsl:value-of select="addressbook[@lang=$lang]//postcode"></xsl:value-of>
						</fo:block>
						<fo:block>
							<xsl:call-template name="country_ChoiceText">
								<xsl:with-param name="country" select="addressbook[@lang=$lang]/address/country"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
						<xsl:choose>
							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
								<fo:block white-space="pre" wrap-option="wrap">
									<xsl:value-of select="addressbook[@lang=$lang]//state"></xsl:value-of>
									<xsl:value-of select="addressbook[@lang=$lang]//city"></xsl:value-of>
									<xsl:value-of select="addressbook[@lang=$lang]//street"></xsl:value-of>
									<xsl:value-of select="addressbook[@lang=$lang]//address-1"></xsl:value-of>
									<xsl:if test="addressbook[@lang=$lang]//address-2">
										<fo:block>
											<xsl:value-of select="addressbook[@lang=$lang]//address-2"></xsl:value-of>
										</fo:block>
									</xsl:if>
									<xsl:if test="addressbook[@lang=$lang]//address-3">
										<fo:block>
											<xsl:value-of select="addressbook[@lang=$lang]//address-3"></xsl:value-of>	
										</fo:block>
									</xsl:if>
								</fo:block>
							</xsl:when>
							<xsl:otherwise>
								<fo:block white-space-collapse="false" wrap-option="wrap">															
									<xsl:value-of select="addressbook[@lang=$lang]//state"></xsl:value-of>
									<xsl:value-of select="addressbook[@lang=$lang]//city"></xsl:value-of>
									<xsl:value-of select="addressbook[@lang=$lang]//street"></xsl:value-of>
									<xsl:value-of select="addressbook[@lang=$lang]//address-1"></xsl:value-of>
									<xsl:if test="addressbook[@lang=$lang]//address-2">
										<fo:block>
											<xsl:value-of select="addressbook[@lang=$lang]//address-2"></xsl:value-of>
										</fo:block>
									</xsl:if>
									<xsl:if test="addressbook[@lang=$lang]//address-3">
										<fo:block>
											<xsl:value-of select="addressbook[@lang=$lang]//address-3"></xsl:value-of>	
										</fo:block>
									</xsl:if>
								</fo:block>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="addressbook[@lang=$lang]/address/country='GB'">
				<xsl:choose>
					<xsl:when test="addressbook[@lang=$lang]/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<xsl:for-each select="addressbook[@lang=$lang]/address/*"> 
							<xsl:choose>
								<xsl:when test="name(.)='postcode'">
									<xsl:value-of select="."></xsl:value-of>
								</xsl:when>
								<xsl:when test="name(.)='city'">   
									<xsl:value-of select="."></xsl:value-of>   
								</xsl:when>
								<xsl:when test="name(.)='country'">
									<fo:block>
										<xsl:call-template name="country_ChoiceText">
											<xsl:with-param name="country" select="."></xsl:with-param>
										</xsl:call-template>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<xsl:choose>
										<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
											<fo:block white-space="pre" wrap-option="wrap">
												<xsl:value-of select="."></xsl:value-of>
											</fo:block>
										</xsl:when>
										<xsl:otherwise>
											<fo:block white-space-collapse="false" wrap-option="wrap">															
												<xsl:value-of select="."></xsl:value-of>   
											</fo:block>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:otherwise> 
							</xsl:choose>  
						</xsl:for-each>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="addressbook[@lang=$lang]/address/country='KR'">
				<xsl:choose>
					<xsl:when test="addressbook[@lang=$lang]/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<fo:block>
							<xsl:value-of select="addressbook[@lang=$lang]/address/state"></xsl:value-of>
						</fo:block>
						<fo:block>
							<xsl:value-of select="addressbook[@lang=$lang]/address/city"></xsl:value-of>
						</fo:block>
						<xsl:choose>
							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
								<fo:block white-space="pre" wrap-option="wrap">
									<xsl:value-of select="addressbook[@lang=$lang]/address/street"></xsl:value-of>
								</fo:block>
							</xsl:when>
							<xsl:otherwise>
								<fo:block white-space-collapse="false" wrap-option="wrap">															
									<xsl:value-of select="addressbook[@lang=$lang]/address/street"></xsl:value-of>
								</fo:block>
							</xsl:otherwise>
						</xsl:choose>
						<xsl:choose>
							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
								<fo:block white-space="pre" wrap-option="wrap">
									<xsl:value-of select="addressbook[@lang=$lang]/address/address-1"></xsl:value-of>
								</fo:block>
							</xsl:when>
							<xsl:otherwise>
								<fo:block white-space-collapse="false" wrap-option="wrap">															
									<xsl:value-of select="addressbook[@lang=$lang]/address/address-1"></xsl:value-of>
								</fo:block>
							</xsl:otherwise>
						</xsl:choose>
						<xsl:if test="addressbook[@lang=$lang]/address/address-2">
							<xsl:choose>
								<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
									<fo:block white-space="pre" wrap-option="wrap">
										<xsl:value-of select="addressbook[@lang=$lang]/address/address-2"></xsl:value-of>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block white-space-collapse="false" wrap-option="wrap">															
										<xsl:value-of select="addressbook[@lang=$lang]/address/address-2"></xsl:value-of>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:if>
						<xsl:if test="addressbook[@lang=$lang]/address/address-3">
							<xsl:choose>
								<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
									<fo:block white-space="pre" wrap-option="wrap">
										<xsl:value-of select="addressbook[@lang=$lang]/address/address-3"></xsl:value-of>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block white-space-collapse="false" wrap-option="wrap">															
										<xsl:value-of select="addressbook[@lang=$lang]/address/address-3"></xsl:value-of>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:if>
						<fo:block>
							<xsl:value-of select="addressbook[@lang=$lang]/address/postcode"></xsl:value-of>
						</fo:block>
						<fo:block>
							<xsl:call-template name="country_ChoiceText">
								<xsl:with-param name="country" select="addressbook[@lang=$lang]/address/country"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="addressbook[@lang=$lang]/address/country='FR' or addressbook[@lang=$lang]/address/country='NL' or addressbook[@lang=$lang]/address/country='SE' or addressbook[@lang=$lang]/address/country='CH' or addressbook[@lang=$lang]/address/country='LI'">
				<xsl:choose>
					<xsl:when test="addressbook[@lang=$lang]/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<xsl:for-each select="addressbook[@lang=$lang]/address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]"> 
							<xsl:choose>
								<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
									<fo:block white-space="pre" wrap-option="wrap">
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block white-space-collapse="false" wrap-option="wrap">															
										<xsl:value-of select="."></xsl:value-of>   
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:for-each>
						<fo:block>
							<xsl:value-of select="addressbook[@lang=$lang]/address/postcode"></xsl:value-of>
							<xsl:text> </xsl:text>
							<xsl:value-of select="addressbook[@lang=$lang]/address/city"></xsl:value-of>
						</fo:block>
						<fo:block>
							<xsl:call-template name="country_ChoiceText">
								<xsl:with-param name="country" select="addressbook[@lang=$lang]/address/country"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="addressbook[@lang=$lang]/address/country='CN'">
				<xsl:choose>
					<xsl:when test="addressbook[@lang=$lang]/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>
						<fo:block>
							<xsl:call-template name="country_ChoiceText">
								<xsl:with-param name="country" select="addressbook[@lang=$lang]/address/country"></xsl:with-param>
							</xsl:call-template>
							<xsl:value-of select="addressbook[@lang=$lang]/address/state"></xsl:value-of>
							<xsl:value-of select="addressbook[@lang=$lang]/address/city"></xsl:value-of>
						</fo:block>
						<xsl:choose>
							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
								<fo:block white-space="pre" wrap-option="wrap">
									<xsl:value-of select="addressbook[@lang=$lang]/address/street"></xsl:value-of>
									<xsl:value-of select="addressbook[@lang=$lang]/address/address-1"></xsl:value-of>
									<xsl:value-of select="addressbook[@lang=$lang]/address/address-2"></xsl:value-of>
									<xsl:value-of select="addressbook[@lang=$lang]/address/address-3"></xsl:value-of>
								</fo:block>
							</xsl:when>
							<xsl:otherwise>
								<fo:block white-space-collapse="false" wrap-option="wrap">															
									<xsl:value-of select="addressbook[@lang=$lang]/address/street"></xsl:value-of>
									<xsl:value-of select="addressbook[@lang=$lang]/address/address-1"></xsl:value-of>
									<xsl:value-of select="addressbook[@lang=$lang]/address/address-2"></xsl:value-of>
									<xsl:value-of select="addressbook[@lang=$lang]/address/address-3"></xsl:value-of>
								</fo:block>
							</xsl:otherwise>
						</xsl:choose>
						<fo:block>
							<xsl:value-of select="addressbook[@lang=$lang]/address/postcode"></xsl:value-of>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="addressbook[@lang=$lang]/address/country='RU'">
				<xsl:choose>
					<xsl:when test="addressbook[@lang=$lang]/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<xsl:for-each select="addressbook[@lang=$lang]/address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]"> 
							<xsl:choose>
								<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
									<fo:block white-space="pre" wrap-option="wrap">
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block white-space-collapse="false" wrap-option="wrap">															
										<xsl:value-of select="."></xsl:value-of>   
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:for-each>
						<fo:block>
							<xsl:value-of select="addressbook[@lang=$lang]/address/city"></xsl:value-of>
							<xsl:text> </xsl:text>
							<xsl:value-of select="addressbook[@lang=$lang]/address/postcode"></xsl:value-of>
						</fo:block>
						<fo:block>
							<xsl:call-template name="country_ChoiceText">
								<xsl:with-param name="country" select="addressbook[@lang=$lang]/address/country"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<!-- for all others, use European format by default -->
			<xsl:otherwise>
				<xsl:choose>
					<xsl:when test="addressbook[@lang=$lang]/text">
						<xsl:value-of select="."></xsl:value-of>
					</xsl:when>
					<xsl:otherwise>   
						<xsl:for-each select="addressbook[@lang=$lang]/address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]"> 
							<xsl:choose>
								<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
									<fo:block white-space="pre" wrap-option="wrap">
										<xsl:value-of select="."></xsl:value-of>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block white-space-collapse="false" wrap-option="wrap">															
										<xsl:value-of select="."></xsl:value-of>   
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:for-each>
						<fo:block>
							<xsl:value-of select="addressbook[@lang=$lang]/address/postcode"></xsl:value-of>
							<xsl:text> </xsl:text>
							<xsl:value-of select="addressbook[@lang=$lang]/address/city"></xsl:value-of>
						</fo:block>
						<fo:block>
							<xsl:call-template name="country_ChoiceText">
								<xsl:with-param name="country" select="addressbook[@lang=$lang]/address/country"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>   
	<xsl:template name="trimEndWS">
	 <xsl:param name="string"></xsl:param>
	 <xsl:param name="len" select="string-length($string)"></xsl:param>
	 <xsl:param name="cut" select="number($len)-1"></xsl:param>

	 <xsl:choose>
		<xsl:when test="substring($string,$len)='&#xA;' &#xA;					 or substring($string,$len)='&#xA;' &#xA;					 or substring($string,$len)=' ' &#xA;					 or substring($string,$len)='	'">
			<xsl:call-template name="trimEndWS">
				<xsl:with-param name="string" select="substring($string,1,$cut)"></xsl:with-param>
			</xsl:call-template>
		</xsl:when>
		<xsl:otherwise>
			<xsl:value-of select="$string"></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="country_ChoiceText">
		<xsl:param name="country"></xsl:param>
		<xsl:choose>
			<xsl:when test="$country='AD'">
				Andorra 
			</xsl:when>
			<xsl:when test="$country='AE'">
				Vereinigte Arabische Emirate 
			</xsl:when>
			<xsl:when test="$country='AF'">
				Afghanistan 
			</xsl:when>
			<xsl:when test="$country='AG'">
				Antigua und Barbuda 
			</xsl:when>
			<xsl:when test="$country='AI'">
				Anguilla 
			</xsl:when>
			<xsl:when test="$country='AL'">
				Albanien 
			</xsl:when>
			<xsl:when test="$country='AM'">
				Armenien 
			</xsl:when>
			<xsl:when test="$country='AN'">
				
			</xsl:when>
			<xsl:when test="$country='AO'">
				Angola 
			</xsl:when>
			<xsl:when test="$country='AP'">
				
			</xsl:when>
			<xsl:when test="$country='AQ'">
				Antarktis 
			</xsl:when>
			<xsl:when test="$country='AR'">
				Argentinien 
			</xsl:when>
			<xsl:when test="$country='AS'">
				Amerikanisch-Samoa 
			</xsl:when>
			<xsl:when test="$country='AT'">
				Österreich 
			</xsl:when>
			<xsl:when test="$country='AU'">
				Australien 
			</xsl:when>
			<xsl:when test="$country='AW'">
				Aruba 
			</xsl:when>
			<xsl:when test="$country='AX'">
				Aland 
			</xsl:when>
			<xsl:when test="$country='AZ'">
				Aserbaidschan 
			</xsl:when>
			<xsl:when test="$country='BA'">
				Bosnien und Herzegowina 
			</xsl:when>
			<xsl:when test="$country='BB'">
				Barbados 
			</xsl:when>
			<xsl:when test="$country='BD'">
				Bangladesch 
			</xsl:when>
			<xsl:when test="$country='BE'">
				Belgien 
			</xsl:when>
			<xsl:when test="$country='BF'">
				Burkina Faso 
			</xsl:when>
			<xsl:when test="$country='BG'">
				Bulgarien 
			</xsl:when>
			<xsl:when test="$country='BH'">
				Bahrain 
			</xsl:when>
			<xsl:when test="$country='BI'">
				Burundi 
			</xsl:when>
			<xsl:when test="$country='BJ'">
				Benin 
			</xsl:when>
			<xsl:when test="$country='BM'">
				Bermuda 
			</xsl:when>
			<xsl:when test="$country='BN'">
				Brunei Darussalam 
			</xsl:when>
			<xsl:when test="$country='BO'">
				(Plurinationaler Staat) Bolivien 
			</xsl:when>
			<xsl:when test="$country='BQ'">
				Bonaire, Sint Eustatius und Saba 
			</xsl:when>
			<xsl:when test="$country='BR'">
				Brasilien 
			</xsl:when>
			<xsl:when test="$country='BS'">
				Bahamas 
			</xsl:when>
			<xsl:when test="$country='BT'">
				Bhutan 
			</xsl:when>
			<xsl:when test="$country='BV'">
				Bouvetinsel 
			</xsl:when>
			<xsl:when test="$country='BW'">
				Botswana 
			</xsl:when>
			<xsl:when test="$country='BX'">
				
			</xsl:when>
			<xsl:when test="$country='BY'">
				Belarus 
			</xsl:when>
			<xsl:when test="$country='BZ'">
				Belize 
			</xsl:when>
			<xsl:when test="$country='CA'">
				Kanada 
			</xsl:when>
			<xsl:when test="$country='CC'">
				Kokosinseln 
			</xsl:when>
			<xsl:when test="$country='CD'">
				Demokratische Republik Kongo 
			</xsl:when>
			<xsl:when test="$country='CF'">
				Zentralafrikanische Republik 
			</xsl:when>
			<xsl:when test="$country='CG'">
				Republik Kongo 
			</xsl:when>
			<xsl:when test="$country='CH'">
				Schweiz 
			</xsl:when>
			<xsl:when test="$country='CI'">
				Côte d'Ivoire 
			</xsl:when>
			<xsl:when test="$country='CK'">
				Cookinseln 
			</xsl:when>
			<xsl:when test="$country='CL'">
				Chile 
			</xsl:when>
			<xsl:when test="$country='CM'">
				Kamerun 
			</xsl:when>
			<xsl:when test="$country='CN'">
				China 
			</xsl:when>
			<xsl:when test="$country='CO'">
				Kolumbien 
			</xsl:when>
			<xsl:when test="$country='CR'">
				Costa Rica 
			</xsl:when>
			<xsl:when test="$country='CU'">
				Kuba 
			</xsl:when>
			<xsl:when test="$country='CV'">
				Kap Verde 
			</xsl:when>
			<xsl:when test="$country='CW'">
				Curaçao 
			</xsl:when>
			<xsl:when test="$country='CX'">
				Weihnachtsinsel 
			</xsl:when>
			<xsl:when test="$country='CY'">
				Zypern 
			</xsl:when>
			<xsl:when test="$country='CZ'">
				Tschechien 
			</xsl:when>
			<xsl:when test="$country='DE'">
				Deutschland 
			</xsl:when>
			<xsl:when test="$country='DJ'">
				Dschibuti 
			</xsl:when>
			<xsl:when test="$country='DK'">
				Dänemark 
			</xsl:when>
			<xsl:when test="$country='DM'">
				Dominica 
			</xsl:when>
			<xsl:when test="$country='DO'">
				Dominikanische Republik 
			</xsl:when>
			<xsl:when test="$country='DZ'">
				Algerien 
			</xsl:when>
			<xsl:when test="$country='EA'">
				
			</xsl:when>
			<xsl:when test="$country='EC'">
				Ecuador 
			</xsl:when>
			<xsl:when test="$country='EE'">
				Estland 
			</xsl:when>
			<xsl:when test="$country='EG'">
				Ägypten 
			</xsl:when>
			<xsl:when test="$country='EH'">
				Westsahara 
			</xsl:when>
			<xsl:when test="$country='EM'">
				
			</xsl:when>
			<xsl:when test="$country='EP'">
				
			</xsl:when>
			<xsl:when test="$country='ER'">
				Eritrea 
			</xsl:when>
			<xsl:when test="$country='ES'">
				Spanien 
			</xsl:when>
			<xsl:when test="$country='ET'">
				Äthiopien 
			</xsl:when>
			<xsl:when test="$country='FI'">
				Finnland 
			</xsl:when>
			<xsl:when test="$country='FJ'">
				Fidschi 
			</xsl:when>
			<xsl:when test="$country='FK'">
				Falklandinseln (Malwinen) 
			</xsl:when>
			<xsl:when test="$country='FM'">
				Föderierte Staaten von Mikronesien 
			</xsl:when>
			<xsl:when test="$country='FO'">
				Färöer-Inseln 
			</xsl:when>
			<xsl:when test="$country='FR'">
				Frankreich 
			</xsl:when>
			<xsl:when test="$country='GA'">
				Gabun 
			</xsl:when>
			<xsl:when test="$country='GB'">
				Vereinigtes Königreich 
			</xsl:when>
			<xsl:when test="$country='GC'">
				
			</xsl:when>
			<xsl:when test="$country='GD'">
				Grenada 
			</xsl:when>
			<xsl:when test="$country='GE'">
				Georgien 
			</xsl:when>
			<xsl:when test="$country='GF'">
				Französisch-Guayana 
			</xsl:when>
			<xsl:when test="$country='GG'">
				Guernsey 
			</xsl:when>
			<xsl:when test="$country='GH'">
				Ghana 
			</xsl:when>
			<xsl:when test="$country='GI'">
				Gibraltar 
			</xsl:when>
			<xsl:when test="$country='GL'">
				Grönland 
			</xsl:when>
			<xsl:when test="$country='GM'">
				Gambia 
			</xsl:when>
			<xsl:when test="$country='GN'">
				Guinea 
			</xsl:when>
			<xsl:when test="$country='GP'">
				Guadeloupe 
			</xsl:when>
			<xsl:when test="$country='GQ'">
				Äquatorialguinea 
			</xsl:when>
			<xsl:when test="$country='GR'">
				Griechenland 
			</xsl:when>
			<xsl:when test="$country='GS'">
				Südgeorgien und die Südlichen Sandwichinseln 
			</xsl:when>
			<xsl:when test="$country='GT'">
				Guatemala 
			</xsl:when>
			<xsl:when test="$country='GU'">
				Guam 
			</xsl:when>
			<xsl:when test="$country='GW'">
				Guinea-Bissau 
			</xsl:when>
			<xsl:when test="$country='GY'">
				Guyana 
			</xsl:when>
			<xsl:when test="$country='HK'">
				Hongkong, China 
			</xsl:when>
			<xsl:when test="$country='HM'">
				Heard und McDonald-Inseln 
			</xsl:when>
			<xsl:when test="$country='HN'">
				Honduras 
			</xsl:when>
			<xsl:when test="$country='HR'">
				Kroatien 
			</xsl:when>
			<xsl:when test="$country='HT'">
				Haiti 
			</xsl:when>
			<xsl:when test="$country='HU'">
				Ungarn 
			</xsl:when>
			<xsl:when test="$country='IB'">
				
			</xsl:when>
			<xsl:when test="$country='ID'">
				Indonesien 
			</xsl:when>
			<xsl:when test="$country='IE'">
				Irland 
			</xsl:when>
			<xsl:when test="$country='IL'">
				Israel 
			</xsl:when>
			<xsl:when test="$country='IM'">
				Isle of Man 
			</xsl:when>
			<xsl:when test="$country='IN'">
				Indien 
			</xsl:when>
			<xsl:when test="$country='IO'">
				Britisches Territorium im Indischen Ozean 
			</xsl:when>
			<xsl:when test="$country='IQ'">
				Irak 
			</xsl:when>
			<xsl:when test="$country='IR'">
				Iran (islamische Republik) 
			</xsl:when>
			<xsl:when test="$country='IS'">
				Island 
			</xsl:when>
			<xsl:when test="$country='IT'">
				Italien 
			</xsl:when>
			<xsl:when test="$country='JE'">
				Jersey 
			</xsl:when>
			<xsl:when test="$country='JM'">
				Jamaika 
			</xsl:when>
			<xsl:when test="$country='JO'">
				Jordanien 
			</xsl:when>
			<xsl:when test="$country='JP'">
				Japan 
			</xsl:when>
			<xsl:when test="$country='KE'">
				Kenia 
			</xsl:when>
			<xsl:when test="$country='KG'">
				Kirgisistan 
			</xsl:when>
			<xsl:when test="$country='KH'">
				Kambodscha 
			</xsl:when>
			<xsl:when test="$country='KI'">
				Kiribati 
			</xsl:when>
			<xsl:when test="$country='KM'">
				Komoren 
			</xsl:when>
			<xsl:when test="$country='KN'">
				St. Kitts und Nevis 
			</xsl:when>
			<xsl:when test="$country='KP'">
				Demokratische Volksrepublik Korea 
			</xsl:when>
			<xsl:when test="$country='KR'">
				Republik Korea 
			</xsl:when>
			<xsl:when test="$country='KW'">
				Kuwait 
			</xsl:when>
			<xsl:when test="$country='KY'">
				Kaimaninseln 
			</xsl:when>
			<xsl:when test="$country='KZ'">
				Kasachstan 
			</xsl:when>
			<xsl:when test="$country='LA'">
				Demokratische Volksrepublik Laos 
			</xsl:when>
			<xsl:when test="$country='LB'">
				Libanon 
			</xsl:when>
			<xsl:when test="$country='LC'">
				Saint Lucia 
			</xsl:when>
			<xsl:when test="$country='LI'">
				Liechtenstein 
			</xsl:when>
			<xsl:when test="$country='LK'">
				Sri Lanka 
			</xsl:when>
			<xsl:when test="$country='LR'">
				Liberia 
			</xsl:when>
			<xsl:when test="$country='LS'">
				Lesotho 
			</xsl:when>
			<xsl:when test="$country='LT'">
				Litauen 
			</xsl:when>
			<xsl:when test="$country='LU'">
				Luxemburg 
			</xsl:when>
			<xsl:when test="$country='LV'">
				Lettland 
			</xsl:when>
			<xsl:when test="$country='LY'">
				Libyen 
			</xsl:when>
			<xsl:when test="$country='MA'">
				Marokko 
			</xsl:when>
			<xsl:when test="$country='MC'">
				Monaco 
			</xsl:when>
			<xsl:when test="$country='MD'">
				Republik Moldau 
			</xsl:when>
			<xsl:when test="$country='ME'">
				Montenegro 
			</xsl:when>
			<xsl:when test="$country='MG'">
				Madagaskar 
			</xsl:when>
			<xsl:when test="$country='MH'">
				Marshallinseln 
			</xsl:when>
			<xsl:when test="$country='MK'">
				Nordmazedonien 
			</xsl:when>
			<xsl:when test="$country='ML'">
				Mali 
			</xsl:when>
			<xsl:when test="$country='MM'">
				Myanmar 
			</xsl:when>
			<xsl:when test="$country='MN'">
				Mongolei 
			</xsl:when>
			<xsl:when test="$country='MO'">
				Macau, China 
			</xsl:when>
			<xsl:when test="$country='MP'">
				Nördliche Marianen 
			</xsl:when>
			<xsl:when test="$country='MQ'">
				Martinique 
			</xsl:when>
			<xsl:when test="$country='MR'">
				Mauretanien 
			</xsl:when>
			<xsl:when test="$country='MS'">
				Montserrat 
			</xsl:when>
			<xsl:when test="$country='MT'">
				Malta 
			</xsl:when>
			<xsl:when test="$country='MU'">
				Mauritius 
			</xsl:when>
			<xsl:when test="$country='MV'">
				Malediven 
			</xsl:when>
			<xsl:when test="$country='MW'">
				Malawi 
			</xsl:when>
			<xsl:when test="$country='MX'">
				Mexiko 
			</xsl:when>
			<xsl:when test="$country='MY'">
				Malaysia 
			</xsl:when>
			<xsl:when test="$country='MZ'">
				Mosambik 
			</xsl:when>
			<xsl:when test="$country='NA'">
				Namibia 
			</xsl:when>
			<xsl:when test="$country='NC'">
				Neukaledonien 
			</xsl:when>
			<xsl:when test="$country='NE'">
				Niger 
			</xsl:when>
			<xsl:when test="$country='NF'">
				Norfolkinsel 
			</xsl:when>
			<xsl:when test="$country='NG'">
				Nigeria 
			</xsl:when>
			<xsl:when test="$country='NI'">
				Nicaragua 
			</xsl:when>
			<xsl:when test="$country='NL'">
				Niederlande (Königreich der) 
			</xsl:when>
			<xsl:when test="$country='NO'">
				Norwegen 
			</xsl:when>
			<xsl:when test="$country='NP'">
				Nepal 
			</xsl:when>
			<xsl:when test="$country='NR'">
				Nauru 
			</xsl:when>
			<xsl:when test="$country='NU'">
				Niue 
			</xsl:when>
			<xsl:when test="$country='NZ'">
				Neuseeland 
			</xsl:when>
			<xsl:when test="$country='OA'">
				
			</xsl:when>
			<xsl:when test="$country='OM'">
				Oman 
			</xsl:when>
			<xsl:when test="$country='PA'">
				Panama 
			</xsl:when>
			<xsl:when test="$country='PE'">
				Peru 
			</xsl:when>
			<xsl:when test="$country='PF'">
				Französisch-Polynesien 
			</xsl:when>
			<xsl:when test="$country='PG'">
				Papua-Neuguinea 
			</xsl:when>
			<xsl:when test="$country='PH'">
				Philippinen 
			</xsl:when>
			<xsl:when test="$country='PK'">
				Pakistan 
			</xsl:when>
			<xsl:when test="$country='PL'">
				Polen 
			</xsl:when>
			<xsl:when test="$country='PM'">
				Saint-Pierre und Miquelon 
			</xsl:when>
			<xsl:when test="$country='PN'">
				Pitcairn 
			</xsl:when>
			<xsl:when test="$country='PR'">
				Puerto Rico 
			</xsl:when>
			<xsl:when test="$country='PS'">
				Palästina 
			</xsl:when>
			<xsl:when test="$country='PT'">
				Portugal 
			</xsl:when>
			<xsl:when test="$country='PW'">
				Palau 
			</xsl:when>
			<xsl:when test="$country='PY'">
				Paraguay 
			</xsl:when>
			<xsl:when test="$country='QA'">
				Katar 
			</xsl:when>
			<xsl:when test="$country='RE'">
				Réunion 
			</xsl:when>
			<xsl:when test="$country='RO'">
				Rumänien 
			</xsl:when>
			<xsl:when test="$country='RS'">
				Serbien 
			</xsl:when>
			<xsl:when test="$country='RU'">
				Russische Föderation 
			</xsl:when>
			<xsl:when test="$country='RW'">
				Ruanda 
			</xsl:when>
			<xsl:when test="$country='SA'">
				Saudi-Arabien 
			</xsl:when>
			<xsl:when test="$country='SB'">
				Salomonen 
			</xsl:when>
			<xsl:when test="$country='SC'">
				Seychellen 
			</xsl:when>
			<xsl:when test="$country='SD'">
				Sudan 
			</xsl:when>
			<xsl:when test="$country='SE'">
				Schweden 
			</xsl:when>
			<xsl:when test="$country='SG'">
				Singapur 
			</xsl:when>
			<xsl:when test="$country='SH'">
				St. Helena, Ascension und Tristan da Cunha 
			</xsl:when>
			<xsl:when test="$country='SI'">
				Slowenien 
			</xsl:when>
			<xsl:when test="$country='SJ'">
				Spitzbergen und Jan Mayen 
			</xsl:when>
			<xsl:when test="$country='SK'">
				Slowakei 
			</xsl:when>
			<xsl:when test="$country='SL'">
				Sierra Leone 
			</xsl:when>
			<xsl:when test="$country='SM'">
				San Marino 
			</xsl:when>
			<xsl:when test="$country='SN'">
				Senegal 
			</xsl:when>
			<xsl:when test="$country='SO'">
				Somalia 
			</xsl:when>
			<xsl:when test="$country='SR'">
				Suriname 
			</xsl:when>
			<xsl:when test="$country='SS'">
				Südsudan 
			</xsl:when>
			<xsl:when test="$country='ST'">
				São Tomé und Príncipe 
			</xsl:when>
			<xsl:when test="$country='SV'">
				El Salvador 
			</xsl:when>
			<xsl:when test="$country='SX'">
				Sint Maarten (niederländischer Teil) 
			</xsl:when>
			<xsl:when test="$country='SY'">
				Syrien, Arabische Republik 
			</xsl:when>
			<xsl:when test="$country='SZ'">
				Eswatini 
			</xsl:when>
			<xsl:when test="$country='TC'">
				Turks- und Caicosinseln 
			</xsl:when>
			<xsl:when test="$country='TD'">
				Tschad 
			</xsl:when>
			<xsl:when test="$country='TF'">
				Französische Süd- und Antarktisgebiete 
			</xsl:when>
			<xsl:when test="$country='TG'">
				Togo 
			</xsl:when>
			<xsl:when test="$country='TH'">
				Thailand 
			</xsl:when>
			<xsl:when test="$country='TJ'">
				Tadschikistan 
			</xsl:when>
			<xsl:when test="$country='TK'">
				Tokelau 
			</xsl:when>
			<xsl:when test="$country='TL'">
				Demokratische Republik Timor-Leste 
			</xsl:when>
			<xsl:when test="$country='TM'">
				Turkmenistan 
			</xsl:when>
			<xsl:when test="$country='TN'">
				Tunesien 
			</xsl:when>
			<xsl:when test="$country='TO'">
				Tonga 
			</xsl:when>
			<xsl:when test="$country='TP'">
				Osttimor 
			</xsl:when>
			<xsl:when test="$country='TR'">
				Türkiye 
			</xsl:when>
			<xsl:when test="$country='TT'">
				Trinidad und Tobago 
			</xsl:when>
			<xsl:when test="$country='TV'">
				Tuvalu 
			</xsl:when>
			<xsl:when test="$country='TW'">
				Republik China (Taiwan) 
			</xsl:when>
			<xsl:when test="$country='TZ'">
				Vereinigte Republik Tansania 
			</xsl:when>
			<xsl:when test="$country='UA'">
				Ukraine 
			</xsl:when>
			<xsl:when test="$country='UG'">
				Uganda 
			</xsl:when>
			<xsl:when test="$country='UM'">
				United States Minor Outlying Islands 
			</xsl:when>
			<xsl:when test="$country='US'">
				Vereinigte Staaten von Amerika 
			</xsl:when>
			<xsl:when test="$country='UY'">
				Uruguay 
			</xsl:when>
			<xsl:when test="$country='UZ'">
				Usbekistan 
			</xsl:when>
			<xsl:when test="$country='VA'">
				Heiliger Stuhl 
			</xsl:when>
			<xsl:when test="$country='VC'">
				St. Vincent und die Grenadinen 
			</xsl:when>
			<xsl:when test="$country='VE'">
				(Bolivarische Republik) Venezuela 
			</xsl:when>
			<xsl:when test="$country='VG'">
				Britische Jungferninseln 
			</xsl:when>
			<xsl:when test="$country='VI'">
				Amerikanische Jungferninseln 
			</xsl:when>
			<xsl:when test="$country='VN'">
				Vietnam 
			</xsl:when>
			<xsl:when test="$country='VU'">
				Vanuatu 
			</xsl:when>
			<xsl:when test="$country='WF'">
				Wallis und Futuna 
			</xsl:when>
			<xsl:when test="$country='WO'">
				
			</xsl:when>
			<xsl:when test="$country='WS'">
				Samoa 
			</xsl:when>
			<xsl:when test="$country='XV'">
				
			</xsl:when>
			<xsl:when test="$country='YE'">
				Jemen 
			</xsl:when>
			<xsl:when test="$country='YT'">
				Mayotte 
			</xsl:when>
			<xsl:when test="$country='YU'">
				
			</xsl:when>
			<xsl:when test="$country='ZA'">
				Südafrika 
			</xsl:when>
			<xsl:when test="$country='ZM'">
				Sambia 
			</xsl:when>
			<xsl:when test="$country='ZW'">
				Simbabwe 
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="$country"></xsl:value-of>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>   
	<xsl:template name="enCountry_ChoiceText">
		<xsl:param name="country"></xsl:param>
		<xsl:choose>
			<xsl:when test="$country='AD'">
				<xsl:text>Andorra </xsl:text>
			</xsl:when>
			<xsl:when test="$country='AE'">
				<xsl:text>United Arab Emirates </xsl:text>
			</xsl:when>
			<xsl:when test="$country='AF'">
				<xsl:text>Afghanistan </xsl:text>
			</xsl:when>
			<xsl:when test="$country='AG'">
				<xsl:text>Antigua and Barbuda </xsl:text>
			</xsl:when>
			<xsl:when test="$country='AI'">
				<xsl:text>Anguilla </xsl:text>
			</xsl:when>
			<xsl:when test="$country='AL'">
				<xsl:text>Albania </xsl:text>
			</xsl:when>
			<xsl:when test="$country='AM'">
				<xsl:text>Armenia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='AO'">
				<xsl:text>Angola </xsl:text>
			</xsl:when>
			<xsl:when test="$country='AQ'">
				<xsl:text>Antarctica </xsl:text>
			</xsl:when>
			<xsl:when test="$country='AR'">
				<xsl:text>Argentina </xsl:text>
			</xsl:when>
			<xsl:when test="$country='AS'">
				<xsl:text>American Samoa </xsl:text>
			</xsl:when>
			<xsl:when test="$country='AT'">
				<xsl:text>Austria </xsl:text>
			</xsl:when>
			<xsl:when test="$country='AU'">
				<xsl:text>Australia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='AW'">
				<xsl:text>Aruba </xsl:text>
			</xsl:when>
			<xsl:when test="$country='AX'">
				<xsl:text>Aland Islands </xsl:text>
			</xsl:when>
			<xsl:when test="$country='AZ'">
				<xsl:text>Azerbaijan </xsl:text>
			</xsl:when>
			<xsl:when test="$country='BA'">
				<xsl:text>Bosnia and Herzegovina </xsl:text>
			</xsl:when>
			<xsl:when test="$country='BB'">
				<xsl:text>Barbados </xsl:text>
			</xsl:when>
			<xsl:when test="$country='BD'">
				<xsl:text>Bangladesh </xsl:text>
			</xsl:when>
			<xsl:when test="$country='BE'">
				<xsl:text>Belgium </xsl:text>
			</xsl:when>
			<xsl:when test="$country='BF'">
				<xsl:text>Burkina Faso </xsl:text>
			</xsl:when>
			<xsl:when test="$country='BG'">
				<xsl:text>Bulgaria </xsl:text>
			</xsl:when>
			<xsl:when test="$country='BH'">
				<xsl:text>Bahrain </xsl:text>
			</xsl:when>
			<xsl:when test="$country='BI'">
				<xsl:text>Burundi </xsl:text>
			</xsl:when>
			<xsl:when test="$country='BJ'">
				<xsl:text>Benin </xsl:text>
			</xsl:when>
			<xsl:when test="$country='BM'">
				<xsl:text>Bermuda </xsl:text>
			</xsl:when>
			<xsl:when test="$country='BN'">
				<xsl:text>Brunei Darussalam </xsl:text>
			</xsl:when>
			<xsl:when test="$country='BO'">
				<xsl:text>Bolivia (Plurinational State of) </xsl:text>
			</xsl:when>
			<xsl:when test="$country='BQ'">
				<xsl:text>Bonaire, Saint Eustatius and Saba </xsl:text>
			</xsl:when>
			<xsl:when test="$country='BR'">
				<xsl:text>Brazil </xsl:text>
			</xsl:when>
			<xsl:when test="$country='BS'">
				<xsl:text>Bahamas </xsl:text>
			</xsl:when>
			<xsl:when test="$country='BT'">
				<xsl:text>Bhutan </xsl:text>
			</xsl:when>
			<xsl:when test="$country='BV'">
				<xsl:text>Bouvet Island </xsl:text>
			</xsl:when>
			<xsl:when test="$country='BW'">
				<xsl:text>Botswana </xsl:text>
			</xsl:when>
			<xsl:when test="$country='BY'">
				<xsl:text>Belarus </xsl:text>
			</xsl:when>
			<xsl:when test="$country='BZ'">
				<xsl:text>Belize </xsl:text>
			</xsl:when>
			<xsl:when test="$country='CA'">
				<xsl:text>Canada </xsl:text>
			</xsl:when>
			<xsl:when test="$country='CC'">
				<xsl:text>Cocos (Keeling) Islands </xsl:text>
			</xsl:when>
			<xsl:when test="$country='CD'">
				<xsl:text>Democratic Republic of Congo </xsl:text>
			</xsl:when>
			<xsl:when test="$country='CF'">
				<xsl:text>Central African Republic </xsl:text>
			</xsl:when>
			<xsl:when test="$country='CG'">
				<xsl:text>Congo </xsl:text>
			</xsl:when>
			<xsl:when test="$country='CH'">
				<xsl:text>Switzerland </xsl:text>
			</xsl:when>
			<xsl:when test="$country='CI'">
				<xsl:text>Côte d'Ivoire </xsl:text>
			</xsl:when>
			<xsl:when test="$country='CK'">
				<xsl:text>Cook Islands </xsl:text>
			</xsl:when>
			<xsl:when test="$country='CL'">
				<xsl:text>Chile </xsl:text>
			</xsl:when>
			<xsl:when test="$country='CM'">
				<xsl:text>Cameroon </xsl:text>
			</xsl:when>
			<xsl:when test="$country='CN'">
				<xsl:text>China </xsl:text>
			</xsl:when>
			<xsl:when test="$country='CO'">
				<xsl:text>Colombia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='CR'">
				<xsl:text>Costa Rica </xsl:text>
			</xsl:when>
			<xsl:when test="$country='CU'">
				<xsl:text>Cuba </xsl:text>
			</xsl:when>
			<xsl:when test="$country='CV'">
				<xsl:text>Cabo Verde </xsl:text>
			</xsl:when>
			<xsl:when test="$country='CW'">
				<xsl:text>Curaçao </xsl:text>
			</xsl:when>
			<xsl:when test="$country='CX'">
				<xsl:text>Christmas Island </xsl:text>
			</xsl:when>
			<xsl:when test="$country='CY'">
				<xsl:text>Cyprus </xsl:text>
			</xsl:when>
			<xsl:when test="$country='CZ'">
				<xsl:text>Czechia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='DE'">
				<xsl:text>Germany </xsl:text>
			</xsl:when>
			<xsl:when test="$country='DJ'">
				<xsl:text>Djibouti </xsl:text>
			</xsl:when>
			<xsl:when test="$country='DK'">
				<xsl:text>Denmark </xsl:text>
			</xsl:when>
			<xsl:when test="$country='DM'">
				<xsl:text>Dominica </xsl:text>
			</xsl:when>
			<xsl:when test="$country='DO'">
				<xsl:text>Dominican Republic </xsl:text>
			</xsl:when>
			<xsl:when test="$country='DZ'">
				<xsl:text>Algeria </xsl:text>
			</xsl:when>
			<xsl:when test="$country='EC'">
				<xsl:text>Ecuador </xsl:text>
			</xsl:when>
			<xsl:when test="$country='EE'">
				<xsl:text>Estonia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='EG'">
				<xsl:text>Egypt </xsl:text>
			</xsl:when>
			<xsl:when test="$country='EH'">
				<xsl:text>Western Sahara </xsl:text>
			</xsl:when>
			<xsl:when test="$country='ER'">
				<xsl:text>Eritrea </xsl:text>
			</xsl:when>
			<xsl:when test="$country='ES'">
				<xsl:text>Spain </xsl:text>
			</xsl:when>
			<xsl:when test="$country='ET'">
				<xsl:text>Ethiopia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='FI'">
				<xsl:text>Finland </xsl:text>
			</xsl:when>
			<xsl:when test="$country='FJ'">
				<xsl:text>Fiji </xsl:text>
			</xsl:when>
			<xsl:when test="$country='FK'">
				<xsl:text>Falkland Islands (Malvinas) </xsl:text>
			</xsl:when>
			<xsl:when test="$country='FM'">
				<xsl:text>Micronesia (Federated States of) </xsl:text>
			</xsl:when>
			<xsl:when test="$country='FO'">
				<xsl:text>Faroe Islands </xsl:text>
			</xsl:when>
			<xsl:when test="$country='FR'">
				<xsl:text>France </xsl:text>
			</xsl:when>
			<xsl:when test="$country='GA'">
				<xsl:text>Gabon </xsl:text>
			</xsl:when>
			<xsl:when test="$country='GB'">
				<xsl:text>United Kingdom </xsl:text>
			</xsl:when>
			<xsl:when test="$country='GD'">
				<xsl:text>Grenada </xsl:text>
			</xsl:when>
			<xsl:when test="$country='GE'">
				<xsl:text>Georgia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='GF'">
				<xsl:text>French Guiana </xsl:text>
			</xsl:when>
			<xsl:when test="$country='GG'">
				<xsl:text>Guernsey </xsl:text>
			</xsl:when>
			<xsl:when test="$country='GH'">
				<xsl:text>Ghana </xsl:text>
			</xsl:when>
			<xsl:when test="$country='GI'">
				<xsl:text>Gibraltar </xsl:text>
			</xsl:when>
			<xsl:when test="$country='GL'">
				<xsl:text>Greenland </xsl:text>
			</xsl:when>
			<xsl:when test="$country='GM'">
				<xsl:text>Gambia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='GN'">
				<xsl:text>Guinea </xsl:text>
			</xsl:when>
			<xsl:when test="$country='GP'">
				<xsl:text>Guadeloupe </xsl:text>
			</xsl:when>
			<xsl:when test="$country='GQ'">
				<xsl:text>Equatorial Guinea </xsl:text>
			</xsl:when>
			<xsl:when test="$country='GR'">
				<xsl:text>Greece </xsl:text>
			</xsl:when>
			<xsl:when test="$country='GS'">
				<xsl:text>South Georgia and the South Sandwich Islands </xsl:text>
			</xsl:when>
			<xsl:when test="$country='GT'">
				<xsl:text>Guatemala </xsl:text>
			</xsl:when>
			<xsl:when test="$country='GU'">
				<xsl:text>Guam </xsl:text>
			</xsl:when>
			<xsl:when test="$country='GW'">
				<xsl:text>Guinea-Bissau </xsl:text>
			</xsl:when>
			<xsl:when test="$country='GY'">
				<xsl:text>Guyana </xsl:text>
			</xsl:when>
			<xsl:when test="$country='HK'">
				<xsl:text>Hong Kong, China </xsl:text>
			</xsl:when>
			<xsl:when test="$country='HM'">
				<xsl:text>Heard Island and McDonald Islands </xsl:text>
			</xsl:when>
			<xsl:when test="$country='HN'">
				<xsl:text>Honduras </xsl:text>
			</xsl:when>
			<xsl:when test="$country='HR'">
				<xsl:text>Croatia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='HT'">
				<xsl:text>Haiti </xsl:text>
			</xsl:when>
			<xsl:when test="$country='HU'">
				<xsl:text>Hungary </xsl:text>
			</xsl:when>
			<xsl:when test="$country='ID'">
				<xsl:text>Indonesia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='IE'">
				<xsl:text>Ireland </xsl:text>
			</xsl:when>
			<xsl:when test="$country='IL'">
				<xsl:text>Israel </xsl:text>
			</xsl:when>
			<xsl:when test="$country='IM'">
				<xsl:text>Isle of Man </xsl:text>
			</xsl:when>
			<xsl:when test="$country='IN'">
				<xsl:text>India </xsl:text>
			</xsl:when>
			<xsl:when test="$country='IO'">
				<xsl:text>British Indian Ocean Territory </xsl:text>
			</xsl:when>
			<xsl:when test="$country='IQ'">
				<xsl:text>Iraq </xsl:text>
			</xsl:when>
			<xsl:when test="$country='IR'">
				<xsl:text>Iran (Islamic Republic of) </xsl:text>
			</xsl:when>
			<xsl:when test="$country='IS'">
				<xsl:text>Iceland </xsl:text>
			</xsl:when>
			<xsl:when test="$country='IT'">
				<xsl:text>Italy </xsl:text>
			</xsl:when>
			<xsl:when test="$country='JE'">
				<xsl:text>Jersey </xsl:text>
			</xsl:when>
			<xsl:when test="$country='JM'">
				<xsl:text>Jamaica </xsl:text>
			</xsl:when>
			<xsl:when test="$country='JO'">
				<xsl:text>Jordan </xsl:text>
			</xsl:when>
			<xsl:when test="$country='JP'">
				<xsl:text>Japan </xsl:text>
			</xsl:when>
			<xsl:when test="$country='KE'">
				<xsl:text>Kenya </xsl:text>
			</xsl:when>
			<xsl:when test="$country='KG'">
				<xsl:text>Kyrgyzstan </xsl:text>
			</xsl:when>
			<xsl:when test="$country='KH'">
				<xsl:text>Cambodia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='KI'">
				<xsl:text>Kiribati </xsl:text>
			</xsl:when>
			<xsl:when test="$country='KM'">
				<xsl:text>Comoros </xsl:text>
			</xsl:when>
			<xsl:when test="$country='KN'">
				<xsl:text>Saint Kitts and Nevis </xsl:text>
			</xsl:when>
			<xsl:when test="$country='KP'">
				<xsl:text>Democratic People's Republic of Korea </xsl:text>
			</xsl:when>
			<xsl:when test="$country='KR'">
				<xsl:text>Republic of Korea </xsl:text>
			</xsl:when>
			<xsl:when test="$country='KW'">
				<xsl:text>Kuwait </xsl:text>
			</xsl:when>
			<xsl:when test="$country='KY'">
				<xsl:text>Cayman Islands </xsl:text>
			</xsl:when>
			<xsl:when test="$country='KZ'">
				<xsl:text>Kazakhstan </xsl:text>
			</xsl:when>
			<xsl:when test="$country='LA'">
				<xsl:text>Lao People's Democratic Republic </xsl:text>
			</xsl:when>
			<xsl:when test="$country='LB'">
				<xsl:text>Lebanon </xsl:text>
			</xsl:when>
			<xsl:when test="$country='LC'">
				<xsl:text>Saint Lucia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='LI'">
				<xsl:text>Liechtenstein </xsl:text>
			</xsl:when>
			<xsl:when test="$country='LK'">
				<xsl:text>Sri Lanka </xsl:text>
			</xsl:when>
			<xsl:when test="$country='LR'">
				<xsl:text>Liberia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='LS'">
				<xsl:text>Lesotho </xsl:text>
			</xsl:when>
			<xsl:when test="$country='LT'">
				<xsl:text>Lithuania </xsl:text>
			</xsl:when>
			<xsl:when test="$country='LU'">
				<xsl:text>Luxembourg </xsl:text>
			</xsl:when>
			<xsl:when test="$country='LV'">
				<xsl:text>Latvia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='LY'">
				<xsl:text>Libya </xsl:text>
			</xsl:when>
			<xsl:when test="$country='MA'">
				<xsl:text>Morocco </xsl:text>
			</xsl:when>
			<xsl:when test="$country='MC'">
				<xsl:text>Monaco </xsl:text>
			</xsl:when>
			<xsl:when test="$country='MD'">
				<xsl:text>Republic of Moldova </xsl:text>
			</xsl:when>
			<xsl:when test="$country='ME'">
				<xsl:text>Montenegro </xsl:text>
			</xsl:when>
			<xsl:when test="$country='MG'">
				<xsl:text>Madagascar </xsl:text>
			</xsl:when>
			<xsl:when test="$country='MH'">
				<xsl:text>Marshall Islands </xsl:text>
			</xsl:when>
			<xsl:when test="$country='MK'">
				<xsl:text>North Macedonia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='ML'">
				<xsl:text>Mali </xsl:text>
			</xsl:when>
			<xsl:when test="$country='MM'">
				<xsl:text>Myanmar </xsl:text>
			</xsl:when>
			<xsl:when test="$country='MN'">
				<xsl:text>Mongolia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='MO'">
				<xsl:text>Macao, China </xsl:text>
			</xsl:when>
			<xsl:when test="$country='MP'">
				<xsl:text>Northern Mariana Islands </xsl:text>
			</xsl:when>
			<xsl:when test="$country='MQ'">
				<xsl:text>Martinique </xsl:text>
			</xsl:when>
			<xsl:when test="$country='MR'">
				<xsl:text>Mauritania </xsl:text>
			</xsl:when>
			<xsl:when test="$country='MS'">
				<xsl:text>Montserrat </xsl:text>
			</xsl:when>
			<xsl:when test="$country='MT'">
				<xsl:text>Malta </xsl:text>
			</xsl:when>
			<xsl:when test="$country='MU'">
				<xsl:text>Mauritius </xsl:text>
			</xsl:when>
			<xsl:when test="$country='MV'">
				<xsl:text>Maldives </xsl:text>
			</xsl:when>
			<xsl:when test="$country='MW'">
				<xsl:text>Malawi </xsl:text>
			</xsl:when>
			<xsl:when test="$country='MX'">
				<xsl:text>Mexico </xsl:text>
			</xsl:when>
			<xsl:when test="$country='MY'">
				<xsl:text>Malaysia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='MZ'">
				<xsl:text>Mozambique </xsl:text>
			</xsl:when>
			<xsl:when test="$country='NA'">
				<xsl:text>Namibia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='NC'">
				<xsl:text>New Caledonia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='NE'">
				<xsl:text>Niger </xsl:text>
			</xsl:when>
			<xsl:when test="$country='NF'">
				<xsl:text>Norfolk Island </xsl:text>
			</xsl:when>
			<xsl:when test="$country='NG'">
				<xsl:text>Nigeria </xsl:text>
			</xsl:when>
			<xsl:when test="$country='NI'">
				<xsl:text>Nicaragua </xsl:text>
			</xsl:when>
			<xsl:when test="$country='NL'">
				<xsl:text>Netherlands (Kingdom of the) </xsl:text>
			</xsl:when>
			<xsl:when test="$country='NO'">
				<xsl:text>Norway </xsl:text>
			</xsl:when>
			<xsl:when test="$country='NP'">
				<xsl:text>Nepal </xsl:text>
			</xsl:when>
			<xsl:when test="$country='NR'">
				<xsl:text>Nauru </xsl:text>
			</xsl:when>
			<xsl:when test="$country='NU'">
				<xsl:text>Niue </xsl:text>
			</xsl:when>
			<xsl:when test="$country='NZ'">
				<xsl:text>New Zealand </xsl:text>
			</xsl:when>
			<xsl:when test="$country='OM'">
				<xsl:text>Oman </xsl:text>
			</xsl:when>
			<xsl:when test="$country='PA'">
				<xsl:text>Panama </xsl:text>
			</xsl:when>
			<xsl:when test="$country='PE'">
				<xsl:text>Peru </xsl:text>
			</xsl:when>
			<xsl:when test="$country='PF'">
				<xsl:text>French Polynesia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='PG'">
				<xsl:text>Papua New Guinea </xsl:text>
			</xsl:when>
			<xsl:when test="$country='PH'">
				<xsl:text>Philippines </xsl:text>
			</xsl:when>
			<xsl:when test="$country='PK'">
				<xsl:text>Pakistan </xsl:text>
			</xsl:when>
			<xsl:when test="$country='PL'">
				<xsl:text>Poland </xsl:text>
			</xsl:when>
			<xsl:when test="$country='PM'">
				<xsl:text>Saint Pierre and Miquelon </xsl:text>
			</xsl:when>
			<xsl:when test="$country='PN'">
				<xsl:text>Pitcairn </xsl:text>
			</xsl:when>
			<xsl:when test="$country='PR'">
				<xsl:text>Puerto Rico </xsl:text>
			</xsl:when>
			<xsl:when test="$country='PS'">
				<xsl:text>Palestine </xsl:text>
			</xsl:when>
			<xsl:when test="$country='PT'">
				<xsl:text>Portugal </xsl:text>
			</xsl:when>
			<xsl:when test="$country='PW'">
				<xsl:text>Palau </xsl:text>
			</xsl:when>
			<xsl:when test="$country='PY'">
				<xsl:text>Paraguay </xsl:text>
			</xsl:when>
			<xsl:when test="$country='QA'">
				<xsl:text>Qatar </xsl:text>
			</xsl:when>
			<xsl:when test="$country='RE'">
				<xsl:text>Réunion </xsl:text>
			</xsl:when>
			<xsl:when test="$country='RO'">
				<xsl:text>Romania </xsl:text>
			</xsl:when>
			<xsl:when test="$country='RS'">
				<xsl:text>Serbia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='RU'">
				<xsl:text>Russian Federation </xsl:text>
			</xsl:when>
			<xsl:when test="$country='RW'">
				<xsl:text>Rwanda </xsl:text>
			</xsl:when>
			<xsl:when test="$country='SA'">
				<xsl:text>Saudi Arabia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='SB'">
				<xsl:text>Solomon Islands </xsl:text>
			</xsl:when>
			<xsl:when test="$country='SC'">
				<xsl:text>Seychelles </xsl:text>
			</xsl:when>
			<xsl:when test="$country='SD'">
				<xsl:text>Sudan </xsl:text>
			</xsl:when>
			<xsl:when test="$country='SE'">
				<xsl:text>Sweden </xsl:text>
			</xsl:when>
			<xsl:when test="$country='SG'">
				<xsl:text>Singapore </xsl:text>
			</xsl:when>
			<xsl:when test="$country='SH'">
				<xsl:text>Saint Helena, Ascension and Tristan da Cunha </xsl:text>
			</xsl:when>
			<xsl:when test="$country='SI'">
				<xsl:text>Slovenia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='SJ'">
				<xsl:text>Svalbard and Jan Mayen </xsl:text>
			</xsl:when>
			<xsl:when test="$country='SK'">
				<xsl:text>Slovakia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='SL'">
				<xsl:text>Sierra Leone </xsl:text>
			</xsl:when>
			<xsl:when test="$country='SM'">
				<xsl:text>San Marino </xsl:text>
			</xsl:when>
			<xsl:when test="$country='SN'">
				<xsl:text>Senegal </xsl:text>
			</xsl:when>
			<xsl:when test="$country='SO'">
				<xsl:text>Somalia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='SR'">
				<xsl:text>Suriname </xsl:text>
			</xsl:when>
			<xsl:when test="$country='SS'">
				<xsl:text>South Sudan </xsl:text>
			</xsl:when>
			<xsl:when test="$country='ST'">
				<xsl:text>Sao Tome and Principe </xsl:text>
			</xsl:when>
			<xsl:when test="$country='SV'">
				<xsl:text>El Salvador </xsl:text>
			</xsl:when>
			<xsl:when test="$country='SX'">
				<xsl:text>Sint Maarten (Dutch part) </xsl:text>
			</xsl:when>
			<xsl:when test="$country='SY'">
				<xsl:text>Syrian Arab Republic </xsl:text>
			</xsl:when>
			<xsl:when test="$country='SZ'">
				<xsl:text>Eswatini </xsl:text>
			</xsl:when>
			<xsl:when test="$country='TC'">
				<xsl:text>Turks and Caicos Islands </xsl:text>
			</xsl:when>
			<xsl:when test="$country='TD'">
				<xsl:text>Chad </xsl:text>
			</xsl:when>
			<xsl:when test="$country='TF'">
				<xsl:text>French Southern Territories </xsl:text>
			</xsl:when>
			<xsl:when test="$country='TG'">
				<xsl:text>Togo </xsl:text>
			</xsl:when>
			<xsl:when test="$country='TH'">
				<xsl:text>Thailand </xsl:text>
			</xsl:when>
			<xsl:when test="$country='TJ'">
				<xsl:text>Tajikistan </xsl:text>
			</xsl:when>
			<xsl:when test="$country='TK'">
				<xsl:text>Tokelau </xsl:text>
			</xsl:when>
			<xsl:when test="$country='TL'">
				<xsl:text>Timor–Leste </xsl:text>
			</xsl:when>
			<xsl:when test="$country='TM'">
				<xsl:text>Turkmenistan </xsl:text>
			</xsl:when>
			<xsl:when test="$country='TN'">
				<xsl:text>Tunisia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='TO'">
				<xsl:text>Tonga </xsl:text>
			</xsl:when>
			<xsl:when test="$country='TP'">
				<xsl:text>East Timor </xsl:text>
			</xsl:when>
			<xsl:when test="$country='TR'">
				<xsl:text>Türkiye </xsl:text>
			</xsl:when>
			<xsl:when test="$country='TT'">
				<xsl:text>Trinidad and Tobago </xsl:text>
			</xsl:when>
			<xsl:when test="$country='TV'">
				<xsl:text>Tuvalu </xsl:text>
			</xsl:when>
			<xsl:when test="$country='TW'">
				<xsl:text>Taiwan, Province of China </xsl:text>
			</xsl:when>
			<xsl:when test="$country='TZ'">
				<xsl:text>United Republic of Tanzania </xsl:text>
			</xsl:when>
			<xsl:when test="$country='UA'">
				<xsl:text>Ukraine </xsl:text>
			</xsl:when>
			<xsl:when test="$country='UG'">
				<xsl:text>Uganda </xsl:text>
			</xsl:when>
			<xsl:when test="$country='UM'">
				<xsl:text>United States Minor Outlying Islands </xsl:text>
			</xsl:when>
			<xsl:when test="$country='US'">
				<xsl:text>United States of America </xsl:text>
			</xsl:when>
			<xsl:when test="$country='UY'">
				<xsl:text>Uruguay </xsl:text>
			</xsl:when>
			<xsl:when test="$country='UZ'">
				<xsl:text>Uzbekistan </xsl:text>
			</xsl:when>
			<xsl:when test="$country='VA'">
				<xsl:text>Holy See </xsl:text>
			</xsl:when>
			<xsl:when test="$country='VC'">
				<xsl:text>Saint Vincent and the Grenadines </xsl:text>
			</xsl:when>
			<xsl:when test="$country='VE'">
				<xsl:text>Venezuela (Bolivarian Republic of) </xsl:text>
			</xsl:when>
			<xsl:when test="$country='VG'">
				<xsl:text>Virgin Islands, British </xsl:text>
			</xsl:when>
			<xsl:when test="$country='VI'">
				<xsl:text>Virgin Islands, U.S. </xsl:text>
			</xsl:when>
			<xsl:when test="$country='VN'">
				<xsl:text>Viet Nam </xsl:text>
			</xsl:when>
			<xsl:when test="$country='VU'">
				<xsl:text>Vanuatu </xsl:text>
			</xsl:when>
			<xsl:when test="$country='WF'">
				<xsl:text>Wallis and Futuna </xsl:text>
			</xsl:when>
			<xsl:when test="$country='WS'">
				<xsl:text>Samoa </xsl:text>
			</xsl:when>
			<xsl:when test="$country='YE'">
				<xsl:text>Yemen </xsl:text>
			</xsl:when>
			<xsl:when test="$country='YT'">
				<xsl:text>Mayotte </xsl:text>
			</xsl:when>
			<xsl:when test="$country='ZA'">
				<xsl:text>South Africa </xsl:text>
			</xsl:when>
			<xsl:when test="$country='ZM'">
				<xsl:text>Zambia </xsl:text>
			</xsl:when>
			<xsl:when test="$country='ZW'">
				<xsl:text>Zimbabwe </xsl:text>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="$country"></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:template name="process_dec1">
		<xsl:for-each select=".">
			<xsl:variable name="inv_seq" select="@sequence"></xsl:variable>
			<fo:table table-layout="fixed" border-collapse="separate">
				<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">VIII-1-<xsl:value-of select="$inv_seq"></xsl:value-of>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<fo:block>
								<fo:inline font-weight="bold">
									Erklärung: Identität des Erfinders
								</fo:inline>
								<fo:block></fo:block>
								Erklärung hinsichtlich der Identität des Erfinders (Regeln 4.17 Ziffer i und 51bis.1 Absatz a Ziffer i)
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR">
							<fo:block padding-before="4mm">
								<fo:inline font-weight="bold">
									In bezug auf 
									<xsl:choose>
										<xsl:when test=".//application-reference">
											<xsl:if test="not($lang='ja')">
												internationale Anmeldung Nr.
											</xsl:if>
											<xsl:value-of select=".//country"></xsl:value-of>
											<xsl:text> </xsl:text>
											<xsl:value-of select=".//doc-number"></xsl:value-of>
											<xsl:if test="$lang='ja'">
												internationale Anmeldung Nr.
											</xsl:if>
										</xsl:when>
										<xsl:otherwise>
											diese internationale Anmeldung
										</xsl:otherwise>
									</xsl:choose>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<xsl:choose>
						<xsl:when test="not($lang='ja' or $lang='ko' or $lang='zh' or $lang='ru' or $lang='ar')">
							<xsl:for-each select=".//addressbook[*]">
								<fo:table-row>
									<fo:table-cell xsl:use-attribute-sets="tdBorderTop">
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdTC">
										<fo:block>
											<xsl:choose>
												<xsl:when test="$lang='ja'">
													<xsl:if test=".//address//text()">
														Anschrift 
													</xsl:if>
												</xsl:when>
												<xsl:otherwise>
													<xsl:call-template name="nameType">
														<xsl:with-param name="nam" select="./addressbook"></xsl:with-param>
													</xsl:call-template>
												</xsl:otherwise>
											</xsl:choose>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdTR">
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														<xsl:if test="./address//text()">
															<fo:block>
																<xsl:value-of select=".//postcode"></xsl:value-of>
															</fo:block>
															<fo:block>
																<xsl:call-template name="country_ChoiceText">
																	<xsl:with-param name="country" select=".//country"></xsl:with-param>
																</xsl:call-template>
															</fo:block>
															<xsl:choose>
																<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																	<fo:block white-space="pre" wrap-option="wrap">
																		<xsl:value-of select=".//state"></xsl:value-of>
																		<xsl:value-of select=".//city"></xsl:value-of>
																		<xsl:value-of select=".//street"></xsl:value-of>
																		<xsl:value-of select=".//address-1"></xsl:value-of>
																		<xsl:if test=".//address-2">
																			<fo:block white-space="pre" wrap-option="wrap">
																				<xsl:value-of select=".//address-2"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																		<xsl:if test=".//address-3">
																			<fo:block white-space="pre" wrap-option="wrap">
																				<xsl:value-of select=".//address-3"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																	</fo:block>
																</xsl:when>
																<xsl:otherwise>
																	<fo:block white-space-collapse="false" wrap-option="wrap">
																		<xsl:value-of select=".//state"></xsl:value-of>
																		<xsl:value-of select=".//city"></xsl:value-of>
																		<xsl:value-of select=".//street"></xsl:value-of>
																		<xsl:value-of select=".//address-1"></xsl:value-of>
																		<xsl:if test=".//address-2">
																			<fo:block white-space-collapse="false" wrap-option="wrap">
																				<xsl:value-of select=".//address-2"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																		<xsl:if test=".//address-3">
																			<fo:block white-space-collapse="false" wrap-option="wrap">
																				<xsl:value-of select=".//address-3"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																	</fo:block>
																</xsl:otherwise>
															</xsl:choose>
															<fo:block></fo:block>
															<xsl:text>在住の</xsl:text>
														</xsl:if>
													</xsl:when>
													<xsl:when test="$lang='zh'">
														<xsl:call-template name="format_name">
															<xsl:with-param name="name_arg" select="."></xsl:with-param>
														</xsl:call-template>
														<xsl:if test="./address//text()">
															<xsl:text> 住在</xsl:text>
														</xsl:if>
													</xsl:when>
													<xsl:when test="$lang='fr' or $lang='ru' or $lang='ko' or $lang='pt'">
														<xsl:call-template name="format_name">
															<xsl:with-param name="name_arg" select="."></xsl:with-param>
														</xsl:call-template>
													</xsl:when>
													<xsl:otherwise>
														<xsl:choose>
															<xsl:when test="./address//text()">
																<xsl:choose>
																	<xsl:when test="$lang = 'de'">
																		<xsl:call-template name="format_name">
																			<xsl:with-param name="name_arg" select="."></xsl:with-param>
																			<xsl:with-param name="showOf" select="1"></xsl:with-param>
																		</xsl:call-template>
																	</xsl:when>
																	<xsl:otherwise>
																		<xsl:call-template name="format_name">
																			<xsl:with-param name="name_arg" select="."></xsl:with-param>
																			<xsl:with-param name="showOf" select="1"></xsl:with-param>
																		</xsl:call-template>
																	</xsl:otherwise>
																</xsl:choose>
															</xsl:when>
															<xsl:otherwise>
																<xsl:call-template name="format_name">
																	<xsl:with-param name="name_arg" select="."></xsl:with-param>
																</xsl:call-template>
															</xsl:otherwise>
														</xsl:choose>
													</xsl:otherwise>
												</xsl:choose>
											</fo:inline>
										</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">
										<fo:block>
											<xsl:choose>
												<xsl:when test="$lang='ja'">
													<xsl:call-template name="nameType">
														<xsl:with-param name="nam" select="./addressbook"></xsl:with-param>
													</xsl:call-template>
												</xsl:when>
												<xsl:otherwise>
													<xsl:if test=".//address//text()">
														Anschrift 
													</xsl:if>
												</xsl:otherwise>
											</xsl:choose>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdR">
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														<xsl:call-template name="format_name">
															<xsl:with-param name="name_arg" select="."></xsl:with-param>
														</xsl:call-template>
														<fo:block></fo:block>
													</xsl:when>
													<xsl:otherwise>
														<xsl:if test="./address//text()">
															<xsl:choose>
																<xsl:when test=".//address/country='US' or .//address/country='CA'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:when test="$lang='zh'">
																			<!-- US and CA address in Chinese Request Case-->
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select=".//state"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//city"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//street"></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">
																						<xsl:value-of select=".//state"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//city"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//street"></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*">
																				<xsl:choose>
																					<xsl:when test="name(.)='city'">
																						<xsl:value-of select="."></xsl:value-of>
																						<xsl:text>, </xsl:text>
																					</xsl:when>
																					<xsl:when test="name(.)='state'">
																						<xsl:value-of select="."></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</xsl:when>
																					<xsl:when test="name(.)='postcode'">
																						<xsl:value-of select="."></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</xsl:when>
																					<xsl:when test="name(.)='country'">
																						<fo:block>
																							<xsl:call-template name="country_ChoiceText">
																								<xsl:with-param name="country" select="."></xsl:with-param>
																							</xsl:call-template>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<xsl:choose>
																							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																								<fo:block white-space="pre" wrap-option="wrap">
																									<xsl:value-of select="."></xsl:value-of>
																								</fo:block>
																							</xsl:when>
																							<xsl:otherwise>
																								<fo:block white-space-collapse="false" wrap-option="wrap">
																									<xsl:value-of select="."></xsl:value-of>
																								</fo:block>
																							</xsl:otherwise>
																						</xsl:choose>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='DE'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]">
																				<fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select="."></xsl:value-of>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">
																								<xsl:value-of select="."></xsl:value-of>
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																				</fo:block>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//address/city"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<!-- TODO: determine JA markup -->
																<xsl:when test=".//address/country='JP'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:when test="(.//address/state) or (.//address/city) or (.//address/street)">
																			<!-- Japanese address in Korean or Chinese Request Case-->
																			<xsl:choose>
																				<xsl:when test="$lang='ko'">
																					<fo:block>
																						<xsl:call-template name="country_ChoiceText">
																							<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																						</xsl:call-template>
																					</fo:block>
																					<fo:block>
																						<xsl:value-of select=".//postcode"></xsl:value-of>
																					</fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"></xsl:value-of>
																								<xsl:if test=".//address-2">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-2"></xsl:value-of>
																								</xsl:if>
																								<xsl:if test=".//address-3">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-3"></xsl:value-of>
																								</xsl:if>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"></xsl:value-of>
																								<xsl:if test=".//address-2">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-2"></xsl:value-of>
																								</xsl:if>
																								<xsl:if test=".//address-3">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-3"></xsl:value-of>
																								</xsl:if>
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block>
																						<xsl:call-template name="country_ChoiceText">
																							<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																						</xsl:call-template>
																					</fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																					<fo:block>
																						<xsl:value-of select=".//postcode"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select=".//address-1"></xsl:value-of>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">
																						<xsl:value-of select=".//address-1"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='GB'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*">
																				<xsl:choose>
																					<xsl:when test="name(.)='postcode'">
																						<xsl:value-of select="."></xsl:value-of>
																					</xsl:when>
																					<xsl:when test="name(.)='city'">
																						<xsl:value-of select="."></xsl:value-of>
																					</xsl:when>
																					<xsl:when test="name(.)='country'">
																						<fo:block>
																							<xsl:call-template name="country_ChoiceText">
																								<xsl:with-param name="country" select="."></xsl:with-param>
																							</xsl:call-template>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<xsl:choose>
																							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																								<fo:block white-space="pre" wrap-option="wrap">
																									<xsl:value-of select="."></xsl:value-of>
																								</fo:block>
																							</xsl:when>
																							<xsl:otherwise>
																								<fo:block white-space-collapse="false" wrap-option="wrap">
																									<xsl:value-of select="."></xsl:value-of>
																								</fo:block>
																							</xsl:otherwise>
																						</xsl:choose>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='KR'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select=".//state"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//city"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//street"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//address-1"></xsl:value-of>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">
																						<xsl:value-of select=".//state"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//city"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//street"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//address-1"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='CN' or .//address/country='TW'">			
																	<xsl:choose>			
																		<xsl:when test=".//text">		
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>		
																		<xsl:when test="$lang='zh'"> <!-- for when the stylesheet does not use "showZhAddress" for Chinese address -->
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">	
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																				<xsl:value-of select=".//address/state"></xsl:value-of>
																					<xsl:value-of select=".//address/city"></xsl:value-of>
																			</fo:block>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select=".//address/street"></xsl:value-of>
																						<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						<xsl:value-of select=".//address/address-3"></xsl:value-of>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">															
																						<xsl:value-of select=".//address/street"></xsl:value-of>
																						<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						<xsl:value-of select=".//address/address-3"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																			</fo:block>					
																		</xsl:when>		
																		<xsl:otherwise>		
																			<xsl:for-each select=".//address/*[not(name(.)='street' or name(.)='city' or name(.)='state' or name(.)='postcode' or name(.)='country')]"> 	
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">															
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>		
																			<xsl:if test=".//address/street">
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select=".//address/street"></xsl:value-of>	
																							<xsl:text> </xsl:text>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">															
																							<xsl:value-of select=".//address/street"></xsl:value-of>	
																							<xsl:text> </xsl:text>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:if>
																			<xsl:choose>
																				<xsl:when test=".//address/city">
																					<fo:block>		
																						<xsl:value-of select=".//address/city"></xsl:value-of>
																						<xsl:text>, </xsl:text>	
																						<xsl:value-of select=".//address/state"></xsl:value-of>	
																						<xsl:text> </xsl:text>	
																						<xsl:value-of select=".//address/postcode"></xsl:value-of>	
																					</fo:block>		
																				</xsl:when>
																				<xsl:otherwise>		
																					<fo:block>		
																						<xsl:value-of select=".//address/state"></xsl:value-of>	
																						<xsl:text> </xsl:text>	
																						<xsl:value-of select=".//address/postcode"></xsl:value-of>	
																					</fo:block>		
																				</xsl:otherwise>			
																			</xsl:choose>
																			<fo:block>		
																				<xsl:call-template name="country_ChoiceText">	
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>	
																			</fo:block>		
																		</xsl:otherwise>			
																	</xsl:choose>				
																</xsl:when>	
																<!-- 202001 CN address not shown correctly
																<xsl:when test=".//address/country='CN' or .//address/country='TW'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."/>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:choose>
																				<xsl:when test="$lang='ko'">
																					<fo:block>
																						<xsl:call-template name="country_ChoiceText">
																							<xsl:with-param name="country" select=".//address/country"/>
																						</xsl:call-template>
																					</fo:block>
																					<fo:block>
																						<xsl:value-of select=".//postcode"/>
																					</fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select=".//state"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"/>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">
																								<xsl:value-of select=".//state"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"/>
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block>
																						<xsl:call-template name="country_ChoiceText">
																							<xsl:with-param name="country" select=".//address/country"/>
																						</xsl:call-template>
																						<xsl:value-of select=".//state"/>
																						<xsl:value-of select=".//city"/>
																					</fo:block>
																					<xsl:if test=".//street">
																						<xsl:choose>
																							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																								<fo:block white-space="pre" wrap-option="wrap">
																									<xsl:value-of select=".//street"/>
																								</fo:block>
																							</xsl:when>
																							<xsl:otherwise>
																								<fo:block white-space-collapse="false" wrap-option="wrap">
																									<xsl:value-of select=".//street"/>
																								</fo:block>
																							</xsl:otherwise>
																						</xsl:choose>
																					</xsl:if>
																					<fo:block>
																						<xsl:value-of select=".//postcode"/>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																!-->
																<xsl:when test=".//address/country='FR' or .//address/country='NL' or .//address/country='SE' or .//address/country='CH' or .//address/country='LI'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]">
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//address/city"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='RU'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>   
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]"> 
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//city"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<!-- for all others, use European format by default -->
																<xsl:otherwise>
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]">
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//city"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:otherwise>
															</xsl:choose>
														</xsl:if>
													</xsl:otherwise>
												</xsl:choose>
												 ist der Erfinder des Gegenstandes, für den im Wege dieser internationalen Anmeldung um Schutz nachgesucht wird
											</fo:inline>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
							</xsl:for-each>
						</xsl:when>
						<xsl:otherwise>
							<xsl:for-each select=".//addressbook[@lang='ja' or @lang='ko' or @lang='zh' or @lang='ru' or @lang='ar']">
								<xsl:variable name="sibling" select="following-sibling::addressbook[position()=1][@lang='en']"></xsl:variable>
								<fo:table-row>
									<fo:table-cell xsl:use-attribute-sets="tdBorderTop">
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdTC">
										<fo:block>
											<xsl:choose>
												<xsl:when test="$lang='ja'">
													<xsl:if test=".//address//text()">
														Anschrift 
													</xsl:if>
												</xsl:when>
												<xsl:otherwise>
													<xsl:call-template name="nameType">
														<xsl:with-param name="nam" select="./addressbook"></xsl:with-param>
													</xsl:call-template>
												</xsl:otherwise>
											</xsl:choose>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdTR">
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														<xsl:if test="./address//text()">
															<fo:block>
																<xsl:value-of select=".//postcode"></xsl:value-of>
															</fo:block>
															<fo:block>
																<xsl:call-template name="country_ChoiceText">
																	<xsl:with-param name="country" select=".//country"></xsl:with-param>
																</xsl:call-template>
															</fo:block>
															<xsl:choose>
																<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																	<fo:block white-space="pre" wrap-option="wrap">
																		<xsl:value-of select=".//state"></xsl:value-of>
																		<xsl:value-of select=".//city"></xsl:value-of>
																		<xsl:value-of select=".//street"></xsl:value-of>
																		<xsl:value-of select=".//address-1"></xsl:value-of>
																		<xsl:if test=".//address-2">
																			<fo:block white-space="pre" wrap-option="wrap">
																				<xsl:value-of select=".//address-2"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																		<xsl:if test=".//address-3">
																			<fo:block white-space="pre" wrap-option="wrap">
																				<xsl:value-of select=".//address-3"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																	</fo:block>
																</xsl:when>
																<xsl:otherwise>
																	<fo:block white-space-collapse="false" wrap-option="wrap">
																		<xsl:value-of select=".//state"></xsl:value-of>
																		<xsl:value-of select=".//city"></xsl:value-of>
																		<xsl:value-of select=".//street"></xsl:value-of>
																		<xsl:value-of select=".//address-1"></xsl:value-of>
																		<xsl:if test=".//address-2">
																			<fo:block white-space-collapse="false" wrap-option="wrap">
																				<xsl:value-of select=".//address-2"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																		<xsl:if test=".//address-3">
																			<fo:block white-space-collapse="false" wrap-option="wrap">
																				<xsl:value-of select=".//address-3"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																	</fo:block>
																</xsl:otherwise>
															</xsl:choose>
															<fo:block></fo:block>
															<xsl:text>在住の</xsl:text>
														</xsl:if>
													</xsl:when>
													<xsl:when test="$lang='zh'">
														<xsl:call-template name="format_name">
															<xsl:with-param name="name_arg" select="."></xsl:with-param>
														</xsl:call-template>
														<xsl:if test="./address//text()">
															<xsl:text> 住在</xsl:text>
														</xsl:if>
													</xsl:when>
													<xsl:when test="$lang='fr' or $lang='ru' or $lang='ko' or $lang='pt'">
														<xsl:call-template name="format_name">
															<xsl:with-param name="name_arg" select="."></xsl:with-param>
														</xsl:call-template>
													</xsl:when>
													<xsl:otherwise>
														<xsl:choose>
															<xsl:when test="./address//text()">
																<xsl:choose>
																	<xsl:when test="$lang = 'de'">
																		<xsl:call-template name="format_name">
																			<xsl:with-param name="name_arg" select="."></xsl:with-param>
																			<xsl:with-param name="showOf" select="1"></xsl:with-param>
																		</xsl:call-template>
																	</xsl:when>
																	<xsl:otherwise>
																		<xsl:call-template name="format_name">
																			<xsl:with-param name="name_arg" select="."></xsl:with-param>
																			<xsl:with-param name="showOf" select="1"></xsl:with-param>
																		</xsl:call-template>
																	</xsl:otherwise>
																</xsl:choose>
															</xsl:when>
															<xsl:otherwise>
																<xsl:call-template name="format_name">
																	<xsl:with-param name="name_arg" select="."></xsl:with-param>
																</xsl:call-template>
															</xsl:otherwise>
														</xsl:choose>
													</xsl:otherwise>
												</xsl:choose>
											</fo:inline>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
								<!-- 2018.03.09 Transliteration address for Declaration (i) for non-latin language -->
								<xsl:if test="following-sibling::addressbook[position()=1][@lang='en']">
									<fo:table-row>
										<fo:table-cell>
											<fo:block></fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdC">
											<fo:block>
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														<xsl:if test=".//address//text()">
															Address:
														</xsl:if>
													</xsl:when>
													<xsl:when test="$lang='ar'">
														<fo:table>
															<fo:table-column column-width="2mm"></fo:table-column>
															<fo:table-column column-width="24mm"></fo:table-column>
															<fo:table-column column-width="27mm"></fo:table-column>
															<fo:table-body>
																<fo:table-row>
																	<fo:table-cell text-align="left">
																		<fo:block>(</fo:block>
																	</fo:table-cell>
																	<fo:table-cell>
																		<fo:block>Name (LAST, First</fo:block>
																	</fo:table-cell>
																	<fo:table-cell>
																		<fo:block>:</fo:block>
																	</fo:table-cell>
																</fo:table-row>
															</fo:table-body>
														</fo:table>
													</xsl:when>
													<xsl:otherwise>
														Name (LAST, First):
													</xsl:otherwise>
												</xsl:choose>
											</fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdR">
											<fo:block padding-top="1pt">
												<fo:inline font-weight="bold">
													<xsl:choose>
														<xsl:when test="$lang='ja'">
															<xsl:if test="$sibling//address//text()">
																<xsl:call-template name="showEnAddress">
																	<xsl:with-param name="address_arg" select="$sibling"></xsl:with-param>																	
																</xsl:call-template>
															</xsl:if>
														</xsl:when>
														<xsl:when test="$lang='zh' or $lang='ru' or $lang='ko' or $lang='ar'">
															<xsl:call-template name="format_name">
																<xsl:with-param name="name_arg" select="$sibling"></xsl:with-param>
															</xsl:call-template>
														</xsl:when>
													</xsl:choose>
												</fo:inline>
											</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</xsl:if>
								<fo:table-row>
									<fo:table-cell>
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdC">
										<fo:block>
											<xsl:choose>
												<xsl:when test="$lang='ja'">
													<xsl:call-template name="nameType">
														<xsl:with-param name="nam" select="./addressbook"></xsl:with-param>
													</xsl:call-template>
												</xsl:when>
												<xsl:otherwise>
													<xsl:if test=".//address//text()">
														Anschrift 
													</xsl:if>
												</xsl:otherwise>
											</xsl:choose>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdR">
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														<xsl:call-template name="format_name">
															<xsl:with-param name="name_arg" select="."></xsl:with-param>
														</xsl:call-template>
														<fo:block></fo:block>
													</xsl:when>
													<xsl:otherwise>
														<xsl:if test="./address//text()">
															<xsl:choose>
																<xsl:when test=".//address/country='US' or .//address/country='CA'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:when test="$lang='zh'">
																			<!-- US and CA address in Chinese Request Case-->
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select=".//state"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//city"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//street"></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">															
																						<xsl:value-of select=".//state"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//city"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//street"></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*">
																				<xsl:choose>
																					<xsl:when test="name(.)='city'">
																						<xsl:value-of select="."></xsl:value-of>
																						<xsl:text>, </xsl:text>
																					</xsl:when>
																					<xsl:when test="name(.)='state'">
																						<xsl:value-of select="."></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</xsl:when>
																					<xsl:when test="name(.)='postcode'">
																						<xsl:value-of select="."></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</xsl:when>
																					<xsl:when test="name(.)='country'">
																						<fo:block>
																							<xsl:call-template name="country_ChoiceText">
																								<xsl:with-param name="country" select="."></xsl:with-param>
																							</xsl:call-template>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<xsl:choose>
																							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																								<fo:block white-space="pre" wrap-option="wrap">
																									<xsl:value-of select="."></xsl:value-of>
																								</fo:block>
																							</xsl:when>
																							<xsl:otherwise>
																								<fo:block white-space-collapse="false" wrap-option="wrap">															
																									<xsl:value-of select="."></xsl:value-of>   
																								</fo:block>
																							</xsl:otherwise>
																						</xsl:choose>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='DE'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]">
																				<fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select="."></xsl:value-of>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">															
																								<xsl:value-of select="."></xsl:value-of>   
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																				</fo:block>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//address/city"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<!-- TODO: determine JA markup -->
																<xsl:when test=".//address/country='JP'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:when test="(.//address/state) or (.//address/city) or (.//address/street)">
																			<!-- Japanese address in Korean or Chinese Request Case-->
																			<xsl:choose>
																				<xsl:when test="$lang='ko'">
																					<fo:block>
																						<xsl:call-template name="country_ChoiceText">
																							<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																						</xsl:call-template>
																					</fo:block>
																					<fo:block>
																						<xsl:value-of select=".//postcode"></xsl:value-of>
																					</fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"></xsl:value-of>
																								<xsl:if test=".//address-2">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-2"></xsl:value-of>
																								</xsl:if>
																								<xsl:if test=".//address-3">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-3"></xsl:value-of>
																								</xsl:if>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">															
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"></xsl:value-of>
																								<xsl:if test=".//address-2">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-2"></xsl:value-of>
																								</xsl:if>
																								<xsl:if test=".//address-3">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-3"></xsl:value-of>
																								</xsl:if>
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block>
																						<xsl:call-template name="country_ChoiceText">
																							<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																						</xsl:call-template>
																					</fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">															
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																					<fo:block>
																						<xsl:value-of select=".//postcode"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																					<xsl:value-of select=".//address-1"></xsl:value-of>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">															
																						<xsl:value-of select=".//address-1"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='GB'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*">
																				<xsl:choose>
																					<xsl:when test="name(.)='postcode'">
																						<xsl:value-of select="."></xsl:value-of>
																					</xsl:when>
																					<xsl:when test="name(.)='city'">
																						<xsl:value-of select="."></xsl:value-of>
																					</xsl:when>
																					<xsl:when test="name(.)='country'">
																						<fo:block>
																							<xsl:call-template name="country_ChoiceText">
																								<xsl:with-param name="country" select="."></xsl:with-param>
																							</xsl:call-template>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<xsl:choose>
																							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																								<fo:block white-space="pre" wrap-option="wrap">
																									<xsl:value-of select="."></xsl:value-of>
																								</fo:block>
																							</xsl:when>
																							<xsl:otherwise>
																								<fo:block white-space-collapse="false" wrap-option="wrap">															
																									<xsl:value-of select="."></xsl:value-of>   
																								</fo:block>
																							</xsl:otherwise>
																						</xsl:choose>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='KR'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select=".//state"></xsl:value-of>
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//city"></xsl:value-of>
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//street"></xsl:value-of>
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//address-1"></xsl:value-of>
																							<xsl:if test=".//address-2">
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-2"></xsl:value-of>
																							</xsl:if>
																							<xsl:if test=".//address-3">
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-3"></xsl:value-of>
																							</xsl:if>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">															
																							<xsl:value-of select=".//state"></xsl:value-of>
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//city"></xsl:value-of>
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//street"></xsl:value-of>
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//address-1"></xsl:value-of>
																							<xsl:if test=".//address-2">
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-2"></xsl:value-of>
																							</xsl:if>
																							<xsl:if test=".//address-3">
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-3"></xsl:value-of>
																							</xsl:if>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='CN' or .//address/country='TW'">			
																	<xsl:choose>			
																		<xsl:when test=".//text">		
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>		
																		<xsl:when test="$lang='zh'"> <!-- for when the stylesheet does not use "showZhAddress" for Chinese address -->
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">	
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																				<xsl:value-of select=".//address/state"></xsl:value-of>
																					<xsl:value-of select=".//address/city"></xsl:value-of>
																			</fo:block>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select=".//address/street"></xsl:value-of>
																						<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						<xsl:value-of select=".//address/address-3"></xsl:value-of>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">															
																						<xsl:value-of select=".//address/street"></xsl:value-of>
																						<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						<xsl:value-of select=".//address/address-3"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																			</fo:block>					
																		</xsl:when>
																		<xsl:when test="$lang='ru'">
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																				<xsl:value-of select=".//address/state"></xsl:value-of>
																				<xsl:value-of select=".//address/city"></xsl:value-of>
																			</fo:block>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select=".//address/street"></xsl:value-of>
																						<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						<xsl:value-of select=".//address/address-3"></xsl:value-of>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">															
																						<xsl:value-of select=".//address/street"></xsl:value-of>
																						<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						<xsl:value-of select=".//address/address-3"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																			</fo:block>
																		</xsl:when>
																		<xsl:when test="$lang='ko'">
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																			</fo:block>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:if test=".//address/state">   
																							<xsl:value-of select=".//address/state"></xsl:value-of>
																							<xsl:text> </xsl:text>
																						</xsl:if>
																						<xsl:if test=".//address/city">
																							<xsl:value-of select=".//address/city"></xsl:value-of>
																							<xsl:text> </xsl:text>
																						</xsl:if>
																						<xsl:if test=".//address/street">
																							<xsl:value-of select=".//address/street"></xsl:value-of>
																							<xsl:text> </xsl:text>
																						</xsl:if>
																						<xsl:if test=".//address/address-1">
																							<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						</xsl:if>
																						<xsl:if test=".//address/address-2">
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						</xsl:if>
																						<xsl:if test=".//address/address-3">
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//address/address-3"></xsl:value-of>
																						</xsl:if>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">															
																						<xsl:if test=".//address/state">   
																							<xsl:value-of select=".//address/state"></xsl:value-of>
																							<xsl:text> </xsl:text>
																						</xsl:if>
																						<xsl:if test=".//address/city">
																							<xsl:value-of select=".//address/city"></xsl:value-of>
																							<xsl:text> </xsl:text>
																						</xsl:if>
																						<xsl:if test=".//address/street">
																							<xsl:value-of select=".//address/street"></xsl:value-of>
																							<xsl:text> </xsl:text>
																						</xsl:if>
																						<xsl:if test=".//address/address-1">
																							<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						</xsl:if>
																						<xsl:if test=".//address/address-2">
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						</xsl:if>
																						<xsl:if test=".//address/address-3">
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//address/address-3"></xsl:value-of>
																						</xsl:if>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:when>
																		<xsl:otherwise>		
																			<xsl:for-each select=".//address/*[not(name(.)='street' or name(.)='city' or name(.)='state' or name(.)='postcode' or name(.)='country')]"> 	
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">															
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>		
																			<xsl:if test=".//address/street">
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select=".//address/street"></xsl:value-of>	
																							<xsl:text> </xsl:text>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">															
																							<xsl:value-of select=".//address/street"></xsl:value-of>	
																							<xsl:text> </xsl:text>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:if>
																			<xsl:choose>
																				<xsl:when test=".//address/city">
																					<fo:block>		
																						<xsl:value-of select=".//address/city"></xsl:value-of>
																						<xsl:text>, </xsl:text>	
																						<xsl:value-of select=".//address/state"></xsl:value-of>	
																						<xsl:text> </xsl:text>	
																						<xsl:value-of select=".//address/postcode"></xsl:value-of>	
																					</fo:block>		
																				</xsl:when>
																				<xsl:otherwise>		
																					<fo:block>		
																						<xsl:value-of select=".//address/state"></xsl:value-of>	
																						<xsl:text> </xsl:text>	
																						<xsl:value-of select=".//address/postcode"></xsl:value-of>	
																					</fo:block>		
																				</xsl:otherwise>			
																			</xsl:choose>
																			<fo:block>		
																				<xsl:call-template name="country_ChoiceText">	
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>	
																			</fo:block>		
																		</xsl:otherwise>			
																	</xsl:choose>				
																</xsl:when>	
																<!-- 202001 CN address not shown correctly
																<xsl:when test=".//address/country='CN' or .//address/country='TW'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."/>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:choose>
																				<xsl:when test="$lang='ko'">
																					<fo:block>
																						<xsl:call-template name="country_ChoiceText">
																							<xsl:with-param name="country" select=".//address/country"/>
																						</xsl:call-template>
																					</fo:block>
																					<fo:block>
																						<xsl:value-of select=".//postcode"/>
																					</fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select=".//state"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"/>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">															
																								<xsl:value-of select=".//state"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"/>
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block>
																						<xsl:choose>
																							<xsl:when test="$lang='zh'">
																								<xsl:variable name="country_name">
																									<xsl:call-template name="country_ChoiceText">
																										<xsl:with-param name="country" select=".//address/country"/>
																									</xsl:call-template>
																								</xsl:variable>
																								<xsl:value-of select="normalize-space($country_name)"></xsl:value-of>
																							</xsl:when>
																							<xsl:otherwise>
																								<xsl:call-template name="country_ChoiceText">
																									<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																								</xsl:call-template>
																							</xsl:otherwise>
																						</xsl:choose>
																						<xsl:value-of select=".//state"/>
																						<xsl:value-of select=".//city"/>
																					</fo:block>
																					<xsl:if test=".//street">
																						<xsl:choose>
																							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																								<fo:block white-space="pre" wrap-option="wrap">
																									<xsl:value-of select=".//street"/>
																								</fo:block>
																							</xsl:when>
																							<xsl:otherwise>
																								<fo:block white-space-collapse="false" wrap-option="wrap">															
																									<xsl:value-of select=".//street"/>
																								</fo:block>
																							</xsl:otherwise>
																						</xsl:choose>
																					</xsl:if>
																					<fo:block>
																						<xsl:value-of select=".//postcode"/>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when> !-->
																<xsl:when test=".//address/country='FR' or .//address/country='NL' or .//address/country='SE' or .//address/country='CH' or .//address/country='LI'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]">
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">															
																							<xsl:value-of select="."></xsl:value-of>   
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//address/city"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='RU'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>   
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]"> 
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//city"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<!-- for all others, use European format by default -->
																<xsl:otherwise>
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]">
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">															
																							<xsl:value-of select="."></xsl:value-of>   
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//city"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:otherwise>
															</xsl:choose>
														</xsl:if>
													</xsl:otherwise>
												</xsl:choose>
											</fo:inline>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
								<!-- 2018.03.09 Transliteration address for Declaration (i) for non-latin language -->
								<xsl:if test="following-sibling::addressbook[position()=1][@lang='en']">
									<fo:table-row>
										<fo:table-cell>
											<fo:block></fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdC">
											<fo:block>
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														Name (LAST, First):
													</xsl:when>
													<xsl:otherwise>
														<xsl:if test=".//address//text()">
															Address:
														</xsl:if>
													</xsl:otherwise>
												</xsl:choose>
											</fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdR">
											<fo:block padding-top="1pt">
												<fo:inline font-weight="bold">
													<xsl:choose>
														<xsl:when test="$lang='ja'">
															<xsl:call-template name="format_name">
																<xsl:with-param name="name_arg" select="$sibling"></xsl:with-param>
															</xsl:call-template>
															<fo:block></fo:block>
														</xsl:when>
														<xsl:otherwise>
															<xsl:if test="./address//text()">
																<xsl:call-template name="showEnAddress">
																	<xsl:with-param name="address_arg" select="$sibling"></xsl:with-param>																	
																</xsl:call-template>
															</xsl:if>
														</xsl:otherwise>
													</xsl:choose>
												</fo:inline>
											</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</xsl:if>
								<fo:table-row>
									<fo:table-cell>
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdC">
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdR">
										<fo:block>
											<fo:inline font-weight="bold">
												 ist der Erfinder des Gegenstandes, für den im Wege dieser internationalen Anmeldung um Schutz nachgesucht wird
											</fo:inline>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
							</xsl:for-each>
						</xsl:otherwise>
					</xsl:choose>
					<fo:table-row>
						<fo:table-cell number-columns-spanned="3" border-top="solid black 0.25pt">
							<fo:block></fo:block>
						</fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
		</xsl:for-each>
	</xsl:template>   
	<xsl:template name="process_dec2">
		<xsl:variable name="dec_seq" select="@sequence"></xsl:variable>  
		<fo:table table-layout="fixed" border-collapse="separate">          
			<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">VIII-2-<xsl:value-of select="$dec_seq"></xsl:value-of>                        
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdTC">                     
						<fo:block>                        
							<fo:inline font-weight="bold">                           
								Erklärung: Berechtigung, ein Patent zu beantragen und zu erhalten                        
							</fo:inline>                        
							<fo:block></fo:block>                        
							 Erklärung hinsichtlich der Berechtigung des Anmelders, zum Zeitpunkt des internationalen Anmeldedatums, ein Patent zu beantragen und zu erhalten (Regeln 4.17 Ziffer ii und 51bis.1 Absatz a Ziffer ii), für den Fall, daß eine Erklärung nach Regel 4.17 Ziffer iv nicht einschlägig ist:                      
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdTR">                     
						<fo:block padding-before="7mm">    
							<fo:inline font-weight="bold">                           
								In bezug auf 
								<xsl:choose>                              
									<xsl:when test=".//application-reference">                                 
										<xsl:if test="not($lang='ja')">
											internationale Anmeldung Nr.  
										</xsl:if>
										<xsl:value-of select=".//country"></xsl:value-of>                                 
										<xsl:text> 
										</xsl:text>                                 
										<xsl:value-of select=".//doc-number"></xsl:value-of>    
										<xsl:if test="$lang='ja'">
											internationale Anmeldung Nr.  
										</xsl:if>                          
									</xsl:when>                              
									<xsl:otherwise>
										diese internationale Anmeldung                              
									</xsl:otherwise>                           
								</xsl:choose>                        
							</fo:inline>                     
						</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">                     
						<fo:block>                     
							<xsl:call-template name="nameType">                     
								<xsl:with-param name="nam" select="."></xsl:with-param>                     
							</xsl:call-template>                     
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdR">                     
						<fo:block padding-top="1pt">                        
							<fo:inline font-weight="bold">           
								<xsl:if test="$lang='ja'">以下の事実により、      <fo:block></fo:block>                     
								</xsl:if>                
								<xsl:call-template name="format_name">                              
									<xsl:with-param name="name_arg" select="."></xsl:with-param>                           
								</xsl:call-template>
								<xsl:if test="$lang='ja'">
									<xsl:text>は、</xsl:text>                       
									<fo:block></fo:block> 
								</xsl:if>
								 ist kraft des nachfolgend Aufgeführten berechtigt, ein Patent zu beantragen und zu erhalten:                         
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>               
				</fo:table-row>    
			</fo:table-body>
		</fo:table>           
		<xsl:for-each select="./matter">                  
			<xsl:variable name="matter" select="translate(@item,'()','')"></xsl:variable>                  
			<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">          
				<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>VIII-2-<xsl:value-of select="$dec_seq"></xsl:value-of></fo:block>
							<fo:block>(<xsl:value-of select="$matter"></xsl:value-of>)</fo:block>                     
						</fo:table-cell>                     
						<fo:table-cell xsl:use-attribute-sets="tdTC">                        
							<fo:block></fo:block>                     
						</fo:table-cell>                     
						<fo:table-cell xsl:use-attribute-sets="tdTR">                        
							<fo:block padding-top="1pt"> 
								<fo:inline font-weight="bold">                        
									<xsl:call-template name="matter">                        
										<xsl:with-param name="matter" select="$matter"></xsl:with-param>                        
									</xsl:call-template>                           
								</fo:inline>                        
							</fo:block>                        
						</fo:table-cell>                  
					</fo:table-row>  
					<fo:table-row>
						<fo:table-cell number-columns-spanned="3" border-top="solid black 0.25pt">
							<fo:block></fo:block>
						</fo:table-cell>
					</fo:table-row>      
				</fo:table-body>
			</fo:table>
		</xsl:for-each>               
	</xsl:template>   
	<xsl:template name="process_dec3">
		<xsl:variable name="dec_seq" select="@sequence"></xsl:variable>  
		<fo:table table-layout="fixed" border-collapse="separate">          
			<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">VIII-3-<xsl:value-of select="$dec_seq"></xsl:value-of>                        
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdTC">                     
						<fo:block>                        
							<fo:inline font-weight="bold">                           
								Erklärung: Berechtigung, Priorität zu beanspruchen                         
							</fo:inline>                        
							<fo:block></fo:block>                        
							 Erklärung hinsichtlich der Berechtigung des Anmelders, zum Zeitpunkt des internationalen Anmeldedatums, eine Priorität zu beanspruchen, in Fällen, in denen der Anmelder nicht der Anmelder der früheren Anmeldung, deren Priorität beansprucht wird, ist oder in Fällen, in denen sich der Name des Anmelders seit dem Einreichen der früheren Anmeldung geändert hat (Regeln 4.17 Ziffer iii und 51bis.1 Absatz a Ziffer iii):                      
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdTR">                     
						<fo:block padding-before="7mm">                        
							<fo:inline font-weight="bold">                           
								In bezug auf 
								<xsl:choose>                              
									<xsl:when test=".//application-reference">                                 
										<xsl:if test="not($lang='ja')">
											internationale Anmeldung Nr.  
										</xsl:if>
										<xsl:value-of select=".//country"></xsl:value-of>                                 
										<xsl:text> 
										</xsl:text>                                 
										<xsl:value-of select=".//doc-number"></xsl:value-of>    
										<xsl:if test="$lang='ja'">
											internationale Anmeldung Nr.  
										</xsl:if>                          
									</xsl:when>                              
									<xsl:otherwise>
										diese internationale Anmeldung                              
									</xsl:otherwise>                           
								</xsl:choose>                        
							</fo:inline>                     
						</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">                     
						<fo:block>                     
							<xsl:choose>
								<xsl:when test="./name and not($lang='zh')">
									Name 
								</xsl:when>
								<xsl:when test="./name and $lang='zh'">
									Name (FAMILIENNAME, Vorname)
								</xsl:when>
								<xsl:otherwise>
									Name (FAMILIENNAME, Vorname)
								</xsl:otherwise>
							</xsl:choose>
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdR">                     
						<fo:block padding-top="1pt">                        
							<fo:inline font-weight="bold">                           
								<xsl:if test="$lang='ja'">
									<xsl:text>以下の事実により、</xsl:text>                  
									<fo:block></fo:block>
								</xsl:if>
								<xsl:call-template name="format_name">                              
									<xsl:with-param name="name_arg" select="."></xsl:with-param>                           
								</xsl:call-template>                        
								<xsl:if test="$lang='ja'">
									<xsl:text>は、</xsl:text>
								</xsl:if>
							</fo:inline>                     
						</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">                     
						<fo:block></fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdR">                     
						<fo:block padding-top="1pt">                        
							<fo:inline font-weight="bold">                           
								 ist kraft des nachfolgend Aufgeführten berechtigt, die Priorität der früheren Anmeldung Nr.                            
								<xsl:value-of select=".//earlier-app-reference//country"></xsl:value-of>                           
								<xsl:text> </xsl:text>
								<xsl:value-of select=".//earlier-app-reference//doc-number"></xsl:value-of>                           
								 zu beanspruchen:                         
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>               
				</fo:table-row>   
			</fo:table-body>
		</fo:table>            
		<xsl:for-each select="./matter">                  
			<xsl:variable name="matter" select="translate(@item,'()','')"></xsl:variable>                  
			<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">          
				<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="tdTBL">                        
							<fo:block>VIII-3-<xsl:value-of select="$dec_seq"></xsl:value-of></fo:block>
							<fo:block>(<xsl:value-of select="$matter"></xsl:value-of>)</fo:block>                     
						</fo:table-cell>                     
						<fo:table-cell xsl:use-attribute-sets="tdTBC">                        
							<fo:block></fo:block>                     
						</fo:table-cell>                     
						<fo:table-cell xsl:use-attribute-sets="tdTBR">                        
							<fo:block padding-top="1pt">                        
								<fo:inline font-weight="bold">                        
									<xsl:call-template name="matter">                        
										<xsl:with-param name="matter" select="$matter"></xsl:with-param>                        
									</xsl:call-template>                           
								</fo:inline>                        
							</fo:block>   
						</fo:table-cell>                  
					</fo:table-row>           
					<fo:table-row>
						<fo:table-cell number-columns-spanned="3" border-top="solid black 0.25pt">
							<fo:block></fo:block>
						</fo:table-cell>
					</fo:table-row>      
				</fo:table-body>
			</fo:table>    
		</xsl:for-each>               
	</xsl:template>   
	<xsl:template name="process_dec4">   
		<xsl:variable name="dec_seq" select="@sequence"></xsl:variable>
		<xsl:for-each select=".">      
			<fo:table table-layout="fixed" border-collapse="separate">          
				<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="tdTBL">                  
							<fo:block>                     
								<fo:inline font-weight="bold">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of></fo:inline>                  
							</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdTBC">                  
							<fo:block>                     
								<fo:inline font-weight="bold">                        
									Erklärung: Erfindererklärung (nur im Hinblick auf die Bestimmung der Vereinigten Staaten von Amerika)                     
								</fo:inline>                     
								<fo:block></fo:block>                     
								Erfindererklärung (Regeln 4.17 Ziffer iv und 51bis.1 Absatz a Ziffer iv) im Hinblick auf die Bestimmung der Vereinigten Staaten von Amerika:                  
							</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdTBR">                  
							<fo:block padding="1.5pt" line-height="1.3" space-before="1cm">                     
								<fo:block></fo:block>                     
								<fo:block></fo:block>                     
								<fo:inline font-weight="bold">                        
									Ich erkläre hiermit, daß ich nach bestem Wissen der ursprüngliche Erfinder oder ein ursprünglicher Miterfinder einer in der Anmeldung beanspruchten Erfindung bin.                        
									<fo:block></fo:block>
									<fo:block space-after="2mm">
									</fo:block>
									<xsl:choose>
										<xsl:when test="./application-reference">
											Diese Erklärung wird im Hinblick auf die internationale Anmeldung Nr. <xsl:value-of select="./application-reference//doc-number"></xsl:value-of> abgegeben. 
											<fo:block space-after="2mm">
											</fo:block>
										</xsl:when>
										<xsl:otherwise>
												Diese Erklärung wird im Hinblick auf und als Teil dieser internationalen Anmeldung abgegeben.
												<fo:block space-after="2mm">
												</fo:block>                        
										</xsl:otherwise>
									</xsl:choose>
									<fo:block></fo:block>                        
									Ich erkläre hiermit, daß die oben angegebene internationale Anmeldung von meiner Person angefertigt wurde oder  ich die Genehmigung zu ihrer Anfertigung erteilt habe.                         
									<fo:block space-after="2mm">
									</fo:block>                        
									Ich erkenne hiermit an, daß jede vorsätzlich falsche Angabe in dieser Erklärung gemäß § 1001, Title 18 des US-Codes (United States Code (U.S.C.)) strafbar ist und mit einer Geldstrafe und/oder Gefängnis bis zu  fünf (5) Jahren bestraft werden kann.                     
								</fo:inline>                  
							</fo:block>               
						</fo:table-cell>            
					</fo:table-row>            
				</fo:table-body>      
			</fo:table>     
		</xsl:for-each>  
		<xsl:if test=".//inventor-info/addressbook">               
			<fo:table table-layout="fixed" keep-together.within-page="always" border-collapse="separate">          
				<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 wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- 1-1</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTC">                     
							<fo:block>                     
								<xsl:call-template name="nameType">                     
									<xsl:with-param name="nam" select=".//inventor-info[1]/addressbook[1]"></xsl:with-param>                     
								</xsl:call-template>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR">                     
							<fo:block padding-top="1pt">                        
								<fo:inline font-weight="bold">                           
									<xsl:call-template name="format_name">                              
										<xsl:with-param name="name_arg" select=".//inventor-info[1]/addressbook[1]"></xsl:with-param>                           
									</xsl:call-template>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<xsl:if test=".//inventor-info[1]/addressbook[2]">  
						<xsl:if test=".//inventor-info[1]/addressbook[@lang='en']">  
							<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="tdC">                     
									<fo:block>
										Name (LAST, First):
									</fo:block>                  
								</fo:table-cell>                  
								<fo:table-cell xsl:use-attribute-sets="tdR">                     
									<fo:block padding-top="1pt">                        
										<fo:inline font-weight="bold">                           
											<xsl:call-template name="format_name">                              
												<xsl:with-param name="name_arg" select=".//inventor-info[1]/addressbook[2]"></xsl:with-param>                           
											</xsl:call-template>                        
										</fo:inline>                     
									</fo:block>                  
								</fo:table-cell>               
							</fo:table-row>   
						</xsl:if>  
					</xsl:if>  
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdL">                     
							<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- 1-2</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdC">                     
							<fo:block>                        
								Wohnsitz:                        
								<fo:block></fo:block>                        
								(Stadt und US-Staat, falls anwendbar, sonst Land)                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdR">                     
							<fo:block padding-top="1pt">                        
								<fo:inline font-weight="bold">                           
									<xsl:value-of select=".//inventor-info[1]/us-residence//city"></xsl:value-of>                           
									<xsl:text>, </xsl:text>                           
									<xsl:choose>                              
										<xsl:when test=".//inventor-info[1]/us-residence/us/state">                                 
											<xsl:value-of select=".//inventor-info[1]/us-residence//state"></xsl:value-of>                              
										</xsl:when>                              
										<xsl:otherwise>
											<xsl:call-template name="country_ChoiceText">
												<xsl:with-param name="country" select=".//inventor-info[1]/us-residence//country"></xsl:with-param>
											</xsl:call-template>                              
										</xsl:otherwise>                           
									</xsl:choose>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<xsl:choose>                  
						<xsl:when test=".//inventor-info[1]/addressbook[1]/address">                     
							<fo:table-row>                        
								<fo:table-cell xsl:use-attribute-sets="tdL">                           
									<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- 1-3</fo:block>                        
								</fo:table-cell>                        
								<fo:table-cell xsl:use-attribute-sets="tdC">                           
									<fo:block>                              
										Postanschrift:                           
									</fo:block>                        
								</fo:table-cell>                        
								<fo:table-cell xsl:use-attribute-sets="tdR">                           
									<fo:block padding-top="1pt">                              
										<fo:inline font-weight="bold">        
											<xsl:choose>
												<xsl:when test="($lang='ja') or ($lang='zh')">
													<xsl:if test=".//inventor-info[1]/addressbook[1]/address/country">
														<fo:block>
															<xsl:call-template name="country_ChoiceText">
																<xsl:with-param name="country" select=".//inventor-info[1]/addressbook[1]/address/country"></xsl:with-param>
															</xsl:call-template>
														</fo:block>
													</xsl:if>
													<xsl:if test=".//inventor-info[1]/addressbook[1]/address/state">
														<fo:block>
															<xsl:value-of select=".//inventor-info[1]/addressbook[1]/address/state"></xsl:value-of>
														</fo:block>
													</xsl:if>
													<xsl:for-each select=".//inventor-info[1]/addressbook[1]/address//*[not(name(.)='country' or name(.)='state')]">
														<xsl:choose>
															<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																<fo:block white-space="pre" wrap-option="wrap">
																	<xsl:value-of select="."></xsl:value-of>
																</fo:block>
															</xsl:when>
															<xsl:otherwise>
																<fo:block white-space-collapse="false" wrap-option="wrap">															
																	<xsl:value-of select="."></xsl:value-of>   
																</fo:block>
															</xsl:otherwise>
														</xsl:choose>
													</xsl:for-each>
												</xsl:when>
												<xsl:otherwise>
													<xsl:for-each select=".//inventor-info[1]/addressbook[1]/address/*">                                    
														<xsl:choose>                                       
															<xsl:when test="name(.)='city' or name(.)='state'">                                          
																<xsl:value-of select="."></xsl:value-of>                                          
																<xsl:text> </xsl:text>                                       
															</xsl:when> 
															<xsl:when test="name(.)='country'">
																<xsl:call-template name="country_ChoiceText">
																	<xsl:with-param name="country" select="."></xsl:with-param>
																</xsl:call-template> 
															</xsl:when>                                       
															<xsl:otherwise>                                          
																<xsl:choose>
																	<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																		<fo:block white-space="pre" wrap-option="wrap">
																			<xsl:value-of select="."></xsl:value-of>
																		</fo:block>
																	</xsl:when>
																	<xsl:otherwise>
																		<fo:block white-space-collapse="false" wrap-option="wrap">															
																			<xsl:value-of select="."></xsl:value-of>   
																		</fo:block>
																	</xsl:otherwise>
																</xsl:choose>
																<fo:block></fo:block>                                       
															</xsl:otherwise>                                    
														</xsl:choose>                                 
													</xsl:for-each>                              
												</xsl:otherwise>
											</xsl:choose>                         
										</fo:inline>                           
									</fo:block>                        
								</fo:table-cell>                     
							</fo:table-row>                  
							<xsl:if test=".//inventor-info[1]/addressbook[2]">  
								<xsl:if test=".//inventor-info[1]/addressbook[@lang='en']">  
									<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="tdC">                           
											<fo:block>                              
												Mailing Address:                           
											</fo:block>                        
										</fo:table-cell>                        
										<fo:table-cell xsl:use-attribute-sets="tdR">                           
											<fo:block padding-top="1pt">                              
												<fo:inline font-weight="bold">        
													<xsl:choose>
														<xsl:when test="$lang='ja'">
															<xsl:for-each select=".//inventor-info[1]/addressbook[2]/address//*[not(name(.)='country' or name(.)='state')]">
															<xsl:choose>
																<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																	<fo:block white-space="pre" wrap-option="wrap">
																		<xsl:value-of select="."></xsl:value-of>
																	</fo:block>
																</xsl:when>
																<xsl:otherwise>
																	<fo:block white-space-collapse="false" wrap-option="wrap">															
																		<xsl:value-of select="."></xsl:value-of>   
																	</fo:block>
																</xsl:otherwise>
															</xsl:choose>
															</xsl:for-each>
															<xsl:if test=".//inventor-info[1]/addressbook[2]/address/state">
																<fo:block>
																	<xsl:value-of select=".//inventor-info[1]/addressbook[2]/address/state"></xsl:value-of>
																</fo:block>
															</xsl:if>
															<xsl:if test=".//inventor-info[1]/addressbook[2]/address/country">
																<fo:block>
																	<xsl:call-template name="enCountry_ChoiceText">
																		<xsl:with-param name="country" select=".//inventor-info[1]/addressbook[2]/address/country"></xsl:with-param>
																	</xsl:call-template>
																</fo:block>
															</xsl:if>
														</xsl:when>
														<xsl:otherwise>
															<xsl:for-each select=".//inventor-info[1]/addressbook[2]/address/*">                                    
																<xsl:choose>                                       
																	<xsl:when test="name(.)='city' or name(.)='state'">                                          
																		<xsl:value-of select="."></xsl:value-of>                                          
																	<xsl:text> </xsl:text>                                       
																	</xsl:when> 
																	<xsl:when test="name(.)='country'">
																		<xsl:call-template name="enCountry_ChoiceText">
																			<xsl:with-param name="country" select="."></xsl:with-param>
																		</xsl:call-template> 
																	</xsl:when>                                       
																	<xsl:otherwise>                                          
																		<xsl:choose>
																			<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																				<fo:block white-space="pre" wrap-option="wrap">
																					<xsl:value-of select="."></xsl:value-of>
																				</fo:block>
																			</xsl:when>
																			<xsl:otherwise>
																				<fo:block white-space-collapse="false" wrap-option="wrap">															
																					<xsl:value-of select="."></xsl:value-of>   
																				</fo:block>
																			</xsl:otherwise>
																		</xsl:choose>
																		<fo:block></fo:block>                                       
																	</xsl:otherwise>                                    
																</xsl:choose>                                 
															</xsl:for-each>                              
														</xsl:otherwise>
													</xsl:choose>                         
												</fo:inline>                           
											</fo:block>                        
										</fo:table-cell>                     
									</fo:table-row>                  
								</xsl:if>  
							</xsl:if>  
						</xsl:when>               
					</xsl:choose>         
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdL">                     
							<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- 1-4</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdC">                     
							<fo:block>                        
								Unterschrift des Erfinders:                        
								<fo:block></fo:block>                        
								(Die Unterschrift muß die des Erfinders sein, nicht die des Anwalts)                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdR">                     
							<fo:block padding-top="1pt">                        
								<fo:inline font-weight="bold">                           
									<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(./electronic-signature/basic-signature/fax-image/@file,'\') or contains(./electronic-signature/basic-signature/fax-image/@file,':')"> 
															<xsl:value-of select="concat('file:///',./electronic-signature/basic-signature/fax-image/@file)"></xsl:value-of>  
														</xsl:when>  
														<xsl:otherwise> 
															<xsl:choose>
																<xsl:when test="$baseDir != ''"> 
																	<xsl:value-of select="concat('file:///', $baseDir, .//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:otherwise>   
													</xsl:choose>
												</xsl:attribute> 
											</fo:external-graphic>                              
										</xsl:when>                              
										<xsl:when test=".//signatory[1]/electronic-signature/basic-signature/click-wrap">                                 
											(Anmelder hat 'Ja' angeklickt)                              
										</xsl:when>                              
										<xsl:when test=".//signatory[1]//text-string">                                 
											<xsl:value-of select=".//signatory[1]//text-string"></xsl:value-of>                              
										</xsl:when>                              
										<xsl:when test=".//signatory[1]//pkcs7">                                 
											(PKCS7 digitale Unterschrift)                              
										</xsl:when>                           
									</xsl:choose>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdBL">                     
							<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- 1-5</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBC">                     
							<fo:block>                        
								Datum:                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBR">                     
							<fo:block padding-top="1pt">                        
								<fo:inline font-weight="bold">                           
									<xsl:if test=".//signatory[1]/electronic-signature/@date">                              
										<xsl:call-template name="format_date">                                 
											<xsl:with-param name="date" select=".//signatory[1]/electronic-signature/@date"></xsl:with-param>                              
											<xsl:with-param name="show_date" select="1"></xsl:with-param>   
											<xsl:with-param name="text" select="1"></xsl:with-param>   
											<xsl:with-param name="lang" select="$lang"></xsl:with-param>   
											<xsl:with-param name="date_too" select="1"></xsl:with-param>
										</xsl:call-template>                           
									</xsl:if>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>  	  
				</fo:table-body>  
			</fo:table>  
		</xsl:if> 
		<xsl:if test="count(//inventor-info) &gt; 1"> 
			<xsl:call-template name="other_inventors">
				<xsl:with-param name="signatory_seq" select="ancestor-or-self::inventorship/@sequence"></xsl:with-param>
			</xsl:call-template>
		</xsl:if>   
	</xsl:template><xsl:template name="other_inventors">      
		<!-- ****************************************************************** -->
		 
		<!--  repeated inventor-info                                            -->
		
		<!-- ****************************************************************** -->
		<xsl:param name="signatory_seq"></xsl:param>
		<xsl:variable name="dec_seq" select="@sequence"></xsl:variable>
		<xsl:if test=".//inventor-info[position() &gt; 1]/addressbook">   
			<xsl:for-each select=".//inventor-info[position() &gt; 1]">  
				<xsl:variable name="inventor_seq" select="position()+1"></xsl:variable> 
				<fo:table table-layout="fixed" keep-together.within-page="always" border-collapse="separate"> 
					<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 wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- <xsl:value-of select="$inventor_seq"></xsl:value-of>-1</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTC">                        
								<fo:block>                     
									<xsl:call-template name="nameType">                     
										<xsl:with-param name="nam" select="./addressbook[1]"></xsl:with-param>                     
									</xsl:call-template>                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTR">                        
								<fo:block padding-top="1pt">                           
									<fo:inline font-weight="bold">                              
										<xsl:call-template name="format_name">                                 
											<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>                              
										</xsl:call-template>                           
									</fo:inline>                        
								</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>                  
						<xsl:if test="./addressbook[2]">  
							<xsl:if test="./addressbook[@lang='en']">  
								<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="tdC">                     
										<fo:block>
											Name (LAST, First):
										</fo:block>                  
									</fo:table-cell>                  
									<fo:table-cell xsl:use-attribute-sets="tdR">                     
										<fo:block padding-top="1pt">                        
											<fo:inline font-weight="bold">                           
												<xsl:call-template name="format_name">                              
													<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>                           
												</xsl:call-template>                        
											</fo:inline>                     
										</fo:block>                  
									</fo:table-cell>               
								</fo:table-row>   
							</xsl:if>  
						</xsl:if>  
						<fo:table-row>                     
							<fo:table-cell xsl:use-attribute-sets="tdL">                        
								<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- <xsl:value-of select="$inventor_seq"></xsl:value-of>-2</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdC">                        
								<fo:block>                           
									Wohnsitz:                           
									<fo:block></fo:block>                           
									(Stadt und US-Staat, falls anwendbar, sonst Land)                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdR">                        
								<fo:block padding-top="1pt">                           
									<fo:inline font-weight="bold">                              
										<xsl:value-of select=".//us-residence//city"></xsl:value-of>                              
										<xsl:if test=".//us-residence//city/text()">                              
											<xsl:text>, </xsl:text>                          
										</xsl:if>                              
										<xsl:choose>                                 
											<xsl:when test=".//us-residence/us">                                    
												<xsl:value-of select=".//us-residence//state"></xsl:value-of>                                 
											</xsl:when>                                 
											<xsl:otherwise>                                    
												<xsl:call-template name="country_ChoiceText">
													<xsl:with-param name="country" select=".//us-residence//country"></xsl:with-param>                                    
												</xsl:call-template>       
											</xsl:otherwise>                              
										</xsl:choose>                           
									</fo:inline>                        
								</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>                  
						<xsl:choose>                     
							<xsl:when test=".//addressbook/address">                        
								<fo:table-row>                           
									<fo:table-cell xsl:use-attribute-sets="tdL">                              
										<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- <xsl:value-of select="$inventor_seq"></xsl:value-of>-3</fo:block>                           
									</fo:table-cell>                           
									<fo:table-cell xsl:use-attribute-sets="tdC">                              
										<fo:block>                                 
											Postanschrift:                              
										</fo:block>                           
									</fo:table-cell>                           
									<fo:table-cell xsl:use-attribute-sets="tdR">                              
										<fo:block padding-top="1pt">                                 
											<fo:inline font-weight="bold">                                    
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														<xsl:if test=".//addressbook[1]/address/country">
															<fo:block>
																<xsl:call-template name="country_ChoiceText">
																	<xsl:with-param name="country" select=".//addressbook[1]/address/country"></xsl:with-param>
																</xsl:call-template>
															</fo:block>
														</xsl:if>
														<xsl:if test=".//addressbook[1]/address/state">
															<fo:block>
																<xsl:value-of select=".//addressbook[1]/address/state"></xsl:value-of>
															</fo:block>
														</xsl:if>
														<xsl:for-each select=".//addressbook[1]/address//*[not(name(.)='country' or name(.)='state')]">
															<xsl:choose>
																<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																	<fo:block white-space="pre" wrap-option="wrap">
																		<xsl:value-of select="."></xsl:value-of>
																	</fo:block>
																</xsl:when>
																<xsl:otherwise>
																	<fo:block white-space-collapse="false" wrap-option="wrap">															
																		<xsl:value-of select="."></xsl:value-of>   
																	</fo:block>
																</xsl:otherwise>
															</xsl:choose>
														</xsl:for-each>
													</xsl:when>
													<xsl:otherwise>
														<xsl:for-each select=".//addressbook[1]/address/*">   
															<xsl:choose>                                          
																<xsl:when test="name(.)='city' or name(.)='state'">                                             
																	<xsl:value-of select="."></xsl:value-of>                                             
																	<xsl:text> </xsl:text>                                       
																</xsl:when>  
																<xsl:when test="name(.)='country'">
																	<xsl:call-template name="country_ChoiceText">
																		<xsl:with-param name="country" select="."></xsl:with-param>
																	</xsl:call-template>  
																</xsl:when>                                          
																<xsl:otherwise>                                             
																	<xsl:choose>
																		<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																			<fo:block white-space="pre" wrap-option="wrap">
																				<xsl:value-of select="."></xsl:value-of>
																			</fo:block>
																		</xsl:when>
																		<xsl:otherwise>
																			<fo:block white-space-collapse="false" wrap-option="wrap">															
																				<xsl:value-of select="."></xsl:value-of>   
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																	<fo:block></fo:block>                                          
																</xsl:otherwise>                                       
															</xsl:choose>                                    
														</xsl:for-each>                                 
													</xsl:otherwise>
												</xsl:choose>                                    
											</fo:inline>                              
										</fo:block>                           
									</fo:table-cell>                        
								</fo:table-row>                     
								<xsl:if test="./addressbook[2]">  
									<xsl:if test="./addressbook[@lang='en']">  
										<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="tdC">                           
												<fo:block>                              
													Mailing Address:                           
												</fo:block>                        
											</fo:table-cell>                        
											<fo:table-cell xsl:use-attribute-sets="tdR">                           
												<fo:block padding-top="1pt">                              
													<fo:inline font-weight="bold">        
														<xsl:choose>
															<xsl:when test="$lang='ja'">
																<xsl:for-each select="./addressbook[2]/address//*[not(name(.)='country' or name(.)='state')]">
																	<xsl:choose>
																		<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																			<fo:block white-space="pre" wrap-option="wrap">
																				<xsl:value-of select="."></xsl:value-of>
																			</fo:block>
																		</xsl:when>
																		<xsl:otherwise>
																			<fo:block white-space-collapse="false" wrap-option="wrap">															
																				<xsl:value-of select="."></xsl:value-of>   
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:for-each>
																<xsl:if test="./addressbook[2]/address/state">
																	<fo:block>
																		<xsl:value-of select="./addressbook[2]/address/state"></xsl:value-of>
																	</fo:block>
																</xsl:if>
																<xsl:if test="./addressbook[2]/address/country">
																	<fo:block>
																		<xsl:call-template name="enCountry_ChoiceText">
																			<xsl:with-param name="country" select="./addressbook[2]/address/country"></xsl:with-param>
																		</xsl:call-template>
																	</fo:block>
																</xsl:if>
															</xsl:when>
															<xsl:otherwise>
																<xsl:for-each select="./addressbook[2]/address/*">                                    
																	<xsl:choose>                                       
																		<xsl:when test="name(.)='city' or name(.)='state'">                                          
																			<xsl:value-of select="."></xsl:value-of>                                          
																			<xsl:text> </xsl:text>                                       
																		</xsl:when> 
																		<xsl:when test="name(.)='country'">
																			<xsl:call-template name="enCountry_ChoiceText">
																				<xsl:with-param name="country" select="."></xsl:with-param>
																			</xsl:call-template> 
																		</xsl:when>                                       
																		<xsl:otherwise>                                          
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select="."></xsl:value-of>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">															
																						<xsl:value-of select="."></xsl:value-of>   
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block></fo:block>                                       
																		</xsl:otherwise>                                    
																	</xsl:choose>                                 
																</xsl:for-each>                              
															</xsl:otherwise>
														</xsl:choose>                         
													</fo:inline>                           
												</fo:block>                        
											</fo:table-cell>                     
										</fo:table-row>                  
									</xsl:if>  
								</xsl:if>  
							</xsl:when>                  
						</xsl:choose>                  
						<fo:table-row>                     
							<fo:table-cell xsl:use-attribute-sets="tdL">                        
								<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- <xsl:value-of select="$inventor_seq"></xsl:value-of>-4</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdC">                        
								<fo:block>                           
									Unterschrift des Erfinders:                           
									<fo:block></fo:block>                           
									(Die Unterschrift muß die des Erfinders sein, nicht die des Anwalts)                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdR">                        
								<fo:block padding-top="1pt">                           
									<fo:inline font-weight="bold">                              
										<xsl:choose>                                 
											<xsl:when test="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/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(ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/fax-image/@file,'/') or contains(ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/fax-image/@file,'\') or contains(ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/fax-image/@file,':')"> 
																<xsl:value-of select="concat('file:///',ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/fax-image/@file)"></xsl:value-of>  
															</xsl:when>  
															<xsl:otherwise> 
																<xsl:choose>
																	<xsl:when test="$baseDir != ''"> 
																		<xsl:value-of select="concat('file:///', $baseDir, ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/fax-image/@file)"></xsl:value-of>  
																	</xsl:when>
																	<xsl:otherwise>
																		<xsl:value-of select="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/fax-image/@file"></xsl:value-of>
																	</xsl:otherwise>
																</xsl:choose>
															</xsl:otherwise>   
														</xsl:choose>
													</xsl:attribute> 
												</fo:external-graphic>                                 
											</xsl:when>                                 
											<xsl:when test="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/click-wrap">                                    
												(Anmelder hat 'Ja' angeklickt)                                 
											</xsl:when>                                 
											<xsl:when test="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/text-string">                                    
												<xsl:value-of select="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]//text-string"></xsl:value-of>                                 
											</xsl:when>                                 
											<xsl:when test="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature//pkcs7">                                    
												(PKCS7 digitale Unterschrift)                                 
											</xsl:when>                              
										</xsl:choose>                           
									</fo:inline>                        
								</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>                  
						<fo:table-row>                     
							<fo:table-cell xsl:use-attribute-sets="tdBL">                        
								<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- <xsl:value-of select="$inventor_seq"></xsl:value-of>-5</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdBC">                        
								<fo:block>                           
									Datum:                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdBR">                        
								<fo:block padding-top="1pt">                           
									<fo:inline font-weight="bold">                  
										<xsl:if test="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/@date">                                 
											<xsl:call-template name="format_date">                                 
												<xsl:with-param name="date" select="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/@date"></xsl:with-param>                                 
												<xsl:with-param name="show_date" select="1"></xsl:with-param>   
												<xsl:with-param name="text" select="1"></xsl:with-param>   
												<xsl:with-param name="lang" select="$lang"></xsl:with-param>   
												<xsl:with-param name="date_too" select="1"></xsl:with-param>
											</xsl:call-template>                           
										</xsl:if>                           
									</fo:inline>                        
								</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>
					</fo:table-body> 
				</fo:table>         
			</xsl:for-each>      
		</xsl:if>   
	</xsl:template>   
	<xsl:template name="process_dec5">
		<xsl:variable name="lack_seq" select="@sequence"></xsl:variable>
		<fo:table table-layout="fixed" border-collapse="separate">
			<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>
						<xsl:element name="fo:block">
							<fo:inline font-weight="bold">VIII-5-<xsl:value-of select="$lack_seq"></xsl:value-of>
							</fo:inline>
						</xsl:element>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							<fo:inline font-weight="bold">
								Erklärung: Unschädliche Offenbarungen oder Ausnahmen von der Neuheitsschädlichkeit
							</fo:inline>
							<fo:block></fo:block>
							Erklärung hinsichtlich unschädlicher Offenbarungen oder Ausnahmen von der Neuheitsschädlichkeit (Regeln 4.17(v) und 51bis.1(a)(v)):
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTR">
						<fo:block padding-before="9mm">
							<fo:inline font-weight="bold">
								In bezug auf 
								<xsl:choose>
									<xsl:when test=".//application-reference">
										<xsl:if test="not($lang='ja')">
											internationale Anmeldung Nr.
										</xsl:if>
										<xsl:value-of select=".//country"></xsl:value-of>
										<xsl:text>
										</xsl:text>
										<xsl:value-of select=".//doc-number"></xsl:value-of>
										<xsl:if test="$lang='ja'">
											internationale Anmeldung Nr.
										</xsl:if>
									</xsl:when>
									<xsl:otherwise>
										diese internationale Anmeldung
									</xsl:otherwise>
								</xsl:choose>
							</fo:inline>
						</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">
						<fo:block>
							<xsl:call-template name="nameType">
								<xsl:with-param name="nam" select="."></xsl:with-param>
							</xsl:call-template>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdR">
						<fo:block padding-top="1pt">
							<fo:inline font-weight="bold">
								<xsl:call-template name="format_name">
									<xsl:with-param name="name_arg" select="."></xsl:with-param>
								</xsl:call-template>
							</fo:inline>
						</fo:block>
						<fo:block>
							<fo:inline font-weight="bold">
								 erklärt, daß der in dieser internationalen Anmeldung beanspruchte Gegenstand wie folgt offenbart wurde:
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<xsl:for-each select=".//method-of-disclosure">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdTL">
							<fo:block>VIII-5-<xsl:value-of select="$lack_seq"></xsl:value-of></fo:block>
							<fo:block>(i)</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<fo:block>
								Art und Weise der Offenbarung:
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:choose>
										<xsl:when test="./international-exhibition/text()">
											<xsl:value-of select="./international-exhibition"></xsl:value-of>
										</xsl:when>
										<xsl:when test="./international-exhibition">
											Internationale Ausstellung
										</xsl:when>
										<xsl:when test="./publication/text()">
											<xsl:value-of select="./publication"></xsl:value-of>
										</xsl:when>
										<xsl:when test="./publication">
											Veröffentlichung
										</xsl:when>
										<xsl:when test="./abuse/text()">
											<xsl:value-of select="./abuse"></xsl:value-of>
										</xsl:when>
										<xsl:when test="./abuse">
											Mißbrauch
										</xsl:when>
										<xsl:when test="./other">
											Sonstige(s): 
											<xsl:value-of select="./other"></xsl:value-of>
										</xsl:when>
									</xsl:choose>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>VIII-5-<xsl:value-of select="$lack_seq"></xsl:value-of></fo:block>
							<fo:block>(ii)</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>
								Datum der Offenbarung:
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:call-template name="format_date">
										<xsl:with-param name="date" select="preceding-sibling::date[1]"></xsl:with-param>
										<xsl:with-param name="lang" select="$lang"></xsl:with-param>
										<xsl:with-param name="show_date" select="1"></xsl:with-param>
										<xsl:with-param name="text" select="1"></xsl:with-param>
										<xsl:with-param name="date_too" select="1"></xsl:with-param>
									</xsl:call-template>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>VIII-5-<xsl:value-of select="$lack_seq"></xsl:value-of></fo:block>
							<fo:block>(iii)</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>
								Titel der Offenbarung:
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:value-of select="preceding-sibling::title-of-disclosure[1]"></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>VIII-5-<xsl:value-of select="$lack_seq"></xsl:value-of></fo:block>
							<fo:block>(iv)</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>
								Ort der Offenbarung:
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:choose>
										<xsl:when test="not($lang='ja')">
											<xsl:choose>
												<xsl:when test="name(.)='city' or name(.)='state'">
													<xsl:value-of select="."></xsl:value-of>
													<xsl:text> 
													</xsl:text>
												</xsl:when>
												<xsl:when test="name(.)='country'">
													<xsl:call-template name="country_ChoiceText">
														<xsl:with-param name="country" select="."></xsl:with-param>
													</xsl:call-template>
												</xsl:when>
												<xsl:otherwise>
				                                    <xsl:value-of select="following-sibling::address[1]/text"></xsl:value-of>
													<fo:block></fo:block>
												</xsl:otherwise>
											</xsl:choose>
										</xsl:when>
										<xsl:when test="$lang='ja' and (following-sibling::*[1][name()='address'] or contains($software_name,'SAFE'))">
											<xsl:value-of select="following-sibling::address[1]/text"></xsl:value-of>
										</xsl:when>
										<!-- JA address precedes other elements and uses <text> instead of subelements -->
										<xsl:otherwise>
											<xsl:value-of select="preceding-sibling::address[1]/text"></xsl:value-of>
										</xsl:otherwise>
									</xsl:choose>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell number-columns-spanned="3" border-top="solid black 0.25pt">
							<fo:block></fo:block>
						</fo:table-cell>
					</fo:table-row>
				</xsl:for-each>
			</fo:table-body>
		</fo:table>
	</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 name="matter">
		<!-- NOTE: there are many tests for text() nodes, as software implementation includes many empty elements to satisfy content model -->
		
		<!-- NOTE: Japanese and other languages use different markup for matter.  Should be standardized and/or usage made consistent.  This area of the DTD is quite bad -->
		<xsl:param name="matter"></xsl:param>   
		<!-- JA always shows date first -->
		<xsl:if test="./date and $lang='ja'">
			<xsl:call-template name="format_date"> 
				<xsl:with-param name="date" select="./date"></xsl:with-param> 
				<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
				<xsl:with-param name="show_date" select="1"></xsl:with-param> 
				<xsl:with-param name="text" select="1"></xsl:with-param> 
				<xsl:with-param name="date_too" select="1"></xsl:with-param>  
			</xsl:call-template>  
			<xsl:text>付で、</xsl:text>
			<fo:block></fo:block>
		</xsl:if>
		<xsl:if test="./date and $lang='ko'">
			<xsl:call-template name="format_date"> 
				<xsl:with-param name="date" select="./date"></xsl:with-param> 
				<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
				<xsl:with-param name="show_date" select="1"></xsl:with-param> 
				<xsl:with-param name="text" select="1"></xsl:with-param> 
				<xsl:with-param name="date_too" select="1"></xsl:with-param>  
			</xsl:call-template>  
				 vom 
			<fo:block></fo:block>
		</xsl:if>
		<xsl:choose>  
			<xsl:when test="$matter='i'">
				<!-- inventor -->
				<xsl:choose>
					<xsl:when test="$lang='ja'">
						<!-- show address then name in JA (possibly others) -->
						<xsl:if test="./addressbook">
							<xsl:if test="./addressbook//address-1/text()">
								<xsl:choose>
									<xsl:when test="not(./addressbook//country/text())">
										<xsl:value-of select="./addressbook//address-1"></xsl:value-of><fo:block></fo:block>
									</xsl:when>
									<xsl:otherwise>
										<xsl:call-template name="showAddress"></xsl:call-template>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:if>
						</xsl:if>
						<!-- 2019.09.30 Transliteration address for Declaration 2(i) for non-latin language(added following 4lines) -->
						<xsl:if test=".//addressbook[2][@lang='en']/address">
							<xsl:call-template name="showEnAddress">															
							</xsl:call-template>
						</xsl:if>
						<xsl:if test="./addressbook/name/text()">
							<xsl:text>在住の</xsl:text>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="./matter-name[1]/name/text()">
								<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
							</xsl:when>
							<xsl:otherwise>
								<xsl:call-template name="format_name">   
									<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
								</xsl:call-template>
							</xsl:otherwise>
						</xsl:choose>
						<xsl:choose>
							<xsl:when test="parent::entitlement-to-claim-priority">
								der Anmelder ist der Erfinder des Gegenstandes, für den um Schutz im Wege der früheren Anmeldung nachgesucht wurde 
							</xsl:when>
							<xsl:otherwise>
								<xsl:text>は、</xsl:text>
								<fo:block></fo:block>
								ist der Erfinder des Gegenstandes, für den um Schutz im Wege dieser internationalen Anmeldung nachgesucht wird 
							</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:when test="$lang='ko'">
						<xsl:choose>
							<xsl:when test="./matter-name[1]/name">
								<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
							</xsl:when>
							<xsl:when test="./addressbook[1]">
								<xsl:call-template name="format_name">   
									<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
								</xsl:call-template>
							</xsl:when>
						</xsl:choose>
						<xsl:if test=".//addressbook/address/*/text()">
							<fo:block></fo:block>
								<xsl:choose>
									<xsl:when test="not(./addressbook//country/text())">
<!-- 2019.05.31 braket removed
										<xsl:text> (</xsl:text>
-->
										<xsl:for-each select=".//addressbook/address/*">
										<xsl:value-of select="."></xsl:value-of>
										</xsl:for-each>
<!-- 2019.05.31 braket removed
										<xsl:text>) </xsl:text>
-->
									</xsl:when>
									<xsl:otherwise>
<!-- 2019.05.31 braket removed
										<xsl:text> (</xsl:text>									
-->
											<xsl:call-template name="showAddress"></xsl:call-template>
<!-- 2019.05.31 braket removed
										<xsl:text>) </xsl:text>
-->
									</xsl:otherwise>
								</xsl:choose>
							<fo:block></fo:block>
						</xsl:if>
						<!-- 2019.09.30 Transliteration address for Declaration 2(i) for non-latin language(added following 4lines) -->
						<xsl:if test=".//addressbook[2][@lang='en']/address">
							<xsl:call-template name="showEnAddress">															
							</xsl:call-template>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="parent::entitlement-to-claim-priority">
								der Anmelder ist der Erfinder des Gegenstandes, für den um Schutz im Wege der früheren Anmeldung nachgesucht wurde 
							</xsl:when>
							<xsl:otherwise>
								ist der Erfinder des Gegenstandes, für den um Schutz im Wege dieser internationalen Anmeldung nachgesucht wird 
							</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:when test="$lang='zh'">
						<xsl:choose>
							<xsl:when test="./matter-name[1]/name">
								<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
							</xsl:when>
							<xsl:when test="./addressbook[1]">
								<xsl:if test="parent::entitlement-to-be-granted-patent">
									<xsl:call-template name="format_name">   
										<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
									</xsl:call-template>
								</xsl:if>
							</xsl:when>
						</xsl:choose>
						<xsl:if test="parent::entitlement-to-be-granted-patent">
							<xsl:if test=".//addressbook/address/*/text()">
									<xsl:text> 住在</xsl:text>
									<fo:block></fo:block>
									<xsl:choose>
										<xsl:when test="not(./addressbook//country/text())">
											<xsl:for-each select=".//addressbook/address/*">
												<xsl:value-of select="."></xsl:value-of>
											</xsl:for-each>
										</xsl:when>
										<xsl:otherwise>
											<xsl:call-template name="showAddress"></xsl:call-template>
										</xsl:otherwise>
									</xsl:choose>
							</xsl:if>
							<!-- 2019.09.30 Transliteration address for Declaration 2(i) for non-latin language(added following 4lines) -->
							<xsl:if test=".//addressbook[2][@lang='en']/address">
								<xsl:call-template name="showEnAddress">															
								</xsl:call-template>
							</xsl:if>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="parent::entitlement-to-claim-priority">
								der Anmelder ist der Erfinder des Gegenstandes, für den um Schutz im Wege der früheren Anmeldung nachgesucht wurde 
							</xsl:when>
							<xsl:otherwise>
								ist der Erfinder des Gegenstandes, für den um Schutz im Wege dieser internationalen Anmeldung nachgesucht wird 
							</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:when test="$lang='ru'">
						<xsl:choose>
							<xsl:when test="./matter-name[1]/name">
								<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
							</xsl:when>
							<xsl:when test="./addressbook[1]">
								<xsl:call-template name="format_name">   
									<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
								</xsl:call-template>
							</xsl:when>
						</xsl:choose>
						<xsl:if test=".//addressbook/address/*/text()">
							<fo:block></fo:block>
							<xsl:choose>
								<xsl:when test="not(./addressbook//country/text())">
									<xsl:for-each select=".//addressbook/address/*">
									<xsl:value-of select="."></xsl:value-of>
								</xsl:for-each>
								</xsl:when>
								<xsl:otherwise>
									<xsl:call-template name="showAddress"></xsl:call-template>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:if>
						<!-- 2019.09.30 Transliteration address for Declaration 2(i) for non-latin language(added following 4lines) -->
						<xsl:if test=".//addressbook[2][@lang='en']/address">
							<xsl:call-template name="showEnAddress">															
							</xsl:call-template>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="parent::entitlement-to-claim-priority">
								der Anmelder ist der Erfinder des Gegenstandes, für den um Schutz im Wege der früheren Anmeldung nachgesucht wurde 
							</xsl:when>
							<xsl:otherwise>
								ist der Erfinder des Gegenstandes, für den um Schutz im Wege dieser internationalen Anmeldung nachgesucht wird 
							</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:when test="$lang='pt'">
						<xsl:text>o facto de </xsl:text>
						<xsl:choose>
							<xsl:when test="./matter-name[1]/name">
								<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
							</xsl:when>
							<xsl:when test="./addressbook[1]">
								<xsl:call-template name="format_name">   
									<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
								</xsl:call-template>
							</xsl:when>
						</xsl:choose>
						<xsl:if test=".//addressbook/address/*/text()">
							<xsl:if test="$lang != 'de'">
								 wohnhaft in 
							</xsl:if>
							<fo:block></fo:block>
							<xsl:call-template name="showAddress"></xsl:call-template>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="parent::entitlement-to-claim-priority">
								der Anmelder ist der Erfinder des Gegenstandes, für den um Schutz im Wege der früheren Anmeldung nachgesucht wurde 
							</xsl:when>
							<xsl:otherwise>
								ist der Erfinder des Gegenstandes, für den um Schutz im Wege dieser internationalen Anmeldung nachgesucht wird 
							</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<!-- 2019.09.30 Transliteration address for Declaration 2(i) for non-latin language -->
					<xsl:when test="$lang='ar'">					
						<xsl:choose>
							<xsl:when test="./matter-name[1]/name">
								<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
							</xsl:when>
							<xsl:when test="./addressbook[1]">
								<xsl:call-template name="format_name">   
									<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
								</xsl:call-template>
							</xsl:when>
						</xsl:choose>
						<xsl:if test=".//addressbook/address/*/text()">
							 wohnhaft in 
							<fo:block></fo:block>
							<xsl:call-template name="showAddress"></xsl:call-template>
						</xsl:if>
						<xsl:if test=".//addressbook[2][@lang='en']/address">
							<xsl:call-template name="showEnAddress">															
							</xsl:call-template>
						</xsl:if>						
						<xsl:choose>
							<xsl:when test="parent::entitlement-to-claim-priority">
								der Anmelder ist der Erfinder des Gegenstandes, für den um Schutz im Wege der früheren Anmeldung nachgesucht wurde 
							</xsl:when>
							<xsl:otherwise>
								ist der Erfinder des Gegenstandes, für den um Schutz im Wege dieser internationalen Anmeldung nachgesucht wird 
							</xsl:otherwise>
						</xsl:choose>	
					</xsl:when>				
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when test="./matter-name[1]/name">
								<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
							</xsl:when>
							<xsl:when test="./addressbook[1]">
								<xsl:call-template name="format_name">   
									<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
								</xsl:call-template>
							</xsl:when>
						</xsl:choose>
						<xsl:if test=".//addressbook/address/*/text()">
							 wohnhaft in 
							<fo:block></fo:block>
							<xsl:call-template name="showAddress"></xsl:call-template>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="parent::entitlement-to-claim-priority">
								der Anmelder ist der Erfinder des Gegenstandes, für den um Schutz im Wege der früheren Anmeldung nachgesucht wurde 
							</xsl:when>
							<xsl:otherwise>
								ist der Erfinder des Gegenstandes, für den um Schutz im Wege dieser internationalen Anmeldung nachgesucht wird 
							</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="$matter='ii'">
				<!-- employer -->
				<xsl:if test="$lang='fr'">
					<!-- same text for is/was in FR version -->
					ist berechtigt, als Arbeitgeber des Erfinders,
				</xsl:if>
				<xsl:if test="$lang='pt'">
					<!-- same text for is/was in FR version -->
					<xsl:text>o facto de </xsl:text>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./matter-name[2]/name and $lang='ja'">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
					<xsl:when test="./addressbook[2] and $lang='ja'">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="parent::entitlement-to-be-granted-patent/name and $lang != 'ja'">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
					<xsl:when test="parent::entitlement-to-claim-priority/name and $lang != 'ja'">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="@tense='was' and not($lang='fr')">
						war berechtigt, als Arbeitgeber des Erfinders,
					</xsl:when>
					<xsl:when test="@tense='is' and not($lang='fr')">
						ist berechtigt, als Arbeitgeber des Erfinders,
					</xsl:when>
					<xsl:when test="@tense='was' and $lang='fr'">
						
					</xsl:when>
					<xsl:when test="@tense='is' and $lang='fr'">
						
					</xsl:when>
				</xsl:choose>
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./matter-name[2]/name and $lang = 'ja'">
						<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
					</xsl:when>
					<xsl:when test="./addressbook[2] and $lang = 'ja'">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[2]/name and $lang != 'ja'">
						<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
					</xsl:when>
					<xsl:when test="./addressbook[2] and $lang != 'ja'">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="$lang='ja' or $lang='zh' or $lang='ko'">
					<xsl:choose>
						<xsl:when test="@tense='was'">
							
						</xsl:when>
						<xsl:otherwise>
							
						</xsl:otherwise>
					</xsl:choose>
				</xsl:if>
			</xsl:when> 
			<xsl:when test="$matter='iii'">
				<!-- agreement -->
				<xsl:if test="not($lang='ja' or $lang='ko' or $lang='zh')">
					auf Grund einer Vereinbarung zwischen    
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[1]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[1]/name">
						<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="$lang='ja'">
						<xsl:text>と</xsl:text>
						<fo:block></fo:block>
					</xsl:when>
					<xsl:otherwise>
						 und 
					</xsl:otherwise>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="./addressbook[2]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[2]/name">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="./date and $lang='zh'">
					 vom 
					<xsl:call-template name="format_date"> 
						<xsl:with-param name="date" select="./date"></xsl:with-param> 
						<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
						<xsl:with-param name="show_date" select="1"></xsl:with-param> 
						<xsl:with-param name="text" select="1"></xsl:with-param> 
						<xsl:with-param name="date_too" select="1"></xsl:with-param>  
					</xsl:call-template>  
				</xsl:if>
				<xsl:if test="$lang='zh'">
					auf Grund einer Vereinbarung zwischen    
				</xsl:if>
				<xsl:if test="$lang='ja' or $lang='ko'">
					<fo:block></fo:block>
					auf Grund einer Vereinbarung zwischen    
				</xsl:if>
			</xsl:when>  
			<xsl:when test="$matter='iv'">
				<!-- assignment -->
				<xsl:if test="not($lang='ja' or $lang='ko' or $lang='zh')">
					auf Grund einer Abtretung von 
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[1]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[1]/name">
						<xsl:value-of select="./matter-name/name[1]"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="./date and $lang='zh'">
					 vom 
					<xsl:call-template name="format_date"> 
						<xsl:with-param name="date" select="./date"></xsl:with-param> 
						<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
						<xsl:with-param name="show_date" select="1"></xsl:with-param> 
						<xsl:with-param name="text" select="1"></xsl:with-param> 
						<xsl:with-param name="date_too" select="1"></xsl:with-param>  
					</xsl:call-template>  
				</xsl:if>
				 auf 
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[2]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[2]/name">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="$lang='zh'">
					auf Grund einer Abtretung von 
				</xsl:if>
				<xsl:if test="$lang='ja' or $lang='ko'">
					<fo:block></fo:block>
					auf Grund einer Abtretung von 
				</xsl:if>
			</xsl:when>
			<xsl:when test="$matter='v'">
				<!-- consent -->
				<xsl:if test="not($lang='ja' or $lang='ko' or $lang='zh')">
					auf Grund einer Einwilligung von 
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[1]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[1]/name">
						<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="./date and $lang='zh'">
					 vom 
					<xsl:call-template name="format_date"> 
						<xsl:with-param name="date" select="./date"></xsl:with-param> 
						<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
						<xsl:with-param name="show_date" select="1"></xsl:with-param> 
						<xsl:with-param name="text" select="1"></xsl:with-param> 
						<xsl:with-param name="date_too" select="1"></xsl:with-param>  
					</xsl:call-template>  
				</xsl:if>
				 zugunsten von 
				<xsl:choose>
					<xsl:when test="./addressbook[2]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[2]/name">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="$lang='zh'">
					auf Grund einer Einwilligung von 
				</xsl:if>
				<xsl:if test="$lang='ja' or $lang='ko'">
					<fo:block></fo:block>
					auf Grund einer Einwilligung von 
				</xsl:if>
			</xsl:when>  
			<xsl:when test="$matter='vi'">
				<!-- court order -->
				<xsl:if test="not($lang='ja' or $lang='ko' or $lang='zh')">
					auf Grund eines Gerichtsbeschlusses vom 
				</xsl:if>
				<xsl:value-of select="./court-name"></xsl:value-of>
				<xsl:if test="$lang='en'">
					<xsl:text>, </xsl:text>
				</xsl:if>
				<xsl:if test="./date and ($lang='zh' or $lang='de')">
					 vom 
					<xsl:call-template name="format_date"> 
						<xsl:with-param name="date" select="./date"></xsl:with-param> 
						<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
						<xsl:with-param name="show_date" select="1"></xsl:with-param> 
						<xsl:with-param name="text" select="1"></xsl:with-param> 
						<xsl:with-param name="date_too" select="1"></xsl:with-param>  
					</xsl:call-template>  
				</xsl:if>
				 welcher eine Rechtsübertragung von 
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[1]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[1]/name">
						<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="$lang='ru'">
						 an 
					</xsl:when>
					<xsl:otherwise>
						 auf 
					</xsl:otherwise>
				</xsl:choose>
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[2]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[2]/name">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="$lang = 'de'">
					bewirkte
				</xsl:if>
				<xsl:if test="$lang='ja' or $lang='ko' or $lang='zh'">
					<fo:block></fo:block>
					auf Grund eines Gerichtsbeschlusses vom 
				</xsl:if>
			</xsl:when>  
			<xsl:when test="$matter='vii'">
				<!-- transfer -->
				<xsl:if test="./date and $lang='zh'">
					 vom 
					<xsl:call-template name="format_date"> 
						<xsl:with-param name="date" select="./date"></xsl:with-param> 
						<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
						<xsl:with-param name="show_date" select="1"></xsl:with-param> 
						<xsl:with-param name="text" select="1"></xsl:with-param> 
						<xsl:with-param name="date_too" select="1"></xsl:with-param>  
					</xsl:call-template>  
				</xsl:if>
				<xsl:choose>
					<xsl:when test="$lang='ja' or $lang='ko'">
						<xsl:value-of select="./kind-of-transfer"></xsl:value-of>
						 im Wege einer 
						<fo:block></fo:block>
					</xsl:when>
					<xsl:when test="$lang='zh'">
						 im Wege einer 
					</xsl:when>
					<xsl:otherwise>
						auf Grund sonstiger Übertragung der Berechtigung von  
					</xsl:otherwise>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="./addressbook[1]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[1]/name">
						<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				 auf 
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[2]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[2]/name">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="$lang='ja' or $lang='ko'">
						<fo:block></fo:block>
						auf Grund sonstiger Übertragung der Berechtigung von  
					</xsl:when>
					<xsl:when test="$lang='zh'">
						auf Grund sonstiger Übertragung der Berechtigung von  
						<xsl:text>(</xsl:text>
						<xsl:value-of select="./kind-of-transfer"></xsl:value-of>
						<xsl:text>)</xsl:text>
					</xsl:when>
					<xsl:otherwise>
						 im Wege einer 
						<xsl:value-of select="./kind-of-transfer"></xsl:value-of>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="$matter='viii'">
				<!-- name change -->
				<xsl:if test="./date and $lang='zh'">
					<xsl:call-template name="format_date"> 
						<xsl:with-param name="date" select="./date"></xsl:with-param> 
						<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
						<xsl:with-param name="show_date" select="1"></xsl:with-param> 
						<xsl:with-param name="text" select="1"></xsl:with-param> 
						<xsl:with-param name="date_too" select="1"></xsl:with-param>  
					</xsl:call-template>  
				</xsl:if>
				 Der Name des Anmelders hat sich am 
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:if test="$lang ='de'">
					<xsl:call-template name="format_date"> 
						<xsl:with-param name="date" select="./date"></xsl:with-param> 
						<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
						<xsl:with-param name="show_date" select="1"></xsl:with-param> 
						<xsl:with-param name="text" select="1"></xsl:with-param> 
						<xsl:with-param name="date_too" select="1"></xsl:with-param>  
					</xsl:call-template>  
					von
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[1]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[1]/name">
						<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="$lang='zh'">
						 am 
					</xsl:when>
					<xsl:when test="$lang='de'">
						in
					</xsl:when>
					<xsl:when test="$lang='fr'">
						en
					</xsl:when>
					<xsl:otherwise>
						 auf 
					</xsl:otherwise>
				</xsl:choose>
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[2]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[2]/name">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="$lang='de'">
						geändert.
					</xsl:when>
					<xsl:when test="$lang='zh'"></xsl:when>
					<xsl:when test="$lang='es'">
						geändert.
					</xsl:when>
					<xsl:otherwise>
						 am 
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when> 
		</xsl:choose>  
		<xsl:if test="./date and not($lang='ja' or $lang='ko' or $lang='zh')">
			<xsl:if test="not($matter='vi' and $lang='de') and not($matter='viii' and $lang='de')">
				<xsl:if test="not($matter='viii')"> 
					<xsl:text>, </xsl:text>
					<xsl:choose>
						<xsl:when test="$lang='ru' and $matter='vi'">
							 vom 
						</xsl:when>
						<xsl:otherwise>
							 vom 
						</xsl:otherwise>
					</xsl:choose>
				</xsl:if>  
				<xsl:call-template name="format_date"> 
					<xsl:with-param name="date" select="./date"></xsl:with-param> 
					<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
					<xsl:with-param name="show_date" select="1"></xsl:with-param> 
					<xsl:with-param name="text" select="1"></xsl:with-param> 
					<xsl:with-param name="date_too" select="1"></xsl:with-param>  
				</xsl:call-template>  
			</xsl:if>
		</xsl:if>
	</xsl:template>  
</xsl:stylesheet>