<?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: POWER-OF-ATTORNEY                               *
* DTD Version       : v1.5   01-01-2009                                      *
* Stylesheet Version: v                                                      *
*		1.93                                                      			 *
*		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>   
	<xsl:preserve-space elements="invention-title"></xsl:preserve-space>
	<!-- ****************************************************************
	*  PARAMETER original                                               *
	*  Set at run-time via XSL Processor; sets                          *
	*  'Paper Copy' or 'Original (for Submission)' in top margin        *
	********************************************************************* -->
	<xsl:param name="original"></xsl:param>
	<!-- ****************************************************************
	*  PARAMETER ia_number                                              *
	*  Set at run-time via XSL Processor; sets                          *
	*  International Application Number                                 *
	********************************************************************* -->
	<xsl:param name="ia_number"></xsl:param>

	<!--*********************************************************************
     * PARAMETER: 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>

	<!-- VARIABLE 'software_name': finds this PI, whether in doc prolog or doc -->
	<xsl:variable name="software_name">
		<xsl:value-of select="processing-instruction('software_name')"></xsl:value-of>
	</xsl:variable>
	<!-- VARIABLE 'software_version': finds this PI, whether in doc prolog or doc -->
	<xsl:variable name="software_version">
		<xsl:value-of select="processing-instruction('software_version')"></xsl:value-of>
	</xsl:variable>
	<!-- *****************************************************************************
    * VARIABLE: EASY                                                                 * 
    * Set from $software_name.  Specifies EASY mode $software_name contains [EASY].  *
    ********************************************************************************** -->
	<xsl:variable name="EASY">
		<xsl:choose>
			<xsl:when test="contains($software_name,'EASY') or contains($software_name,'EFS-Web')">1</xsl:when>
			<xsl:otherwise></xsl:otherwise>
		</xsl:choose>
	</xsl:variable>    
	<xsl:param name="lang" select="substring(translate(//power-of-attorney/@lang,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),1,2)"></xsl:param>
	<!-- default page size = A4 -->
	<xsl:param name="page_size" select="A4"></xsl:param>   
	<xsl:variable name="page_height">      
		<xsl:choose>         
			<xsl:when test="$page_size='A4' or $page_size='a4'">297</xsl:when>         
			<xsl:when test="$page_size='Letter' or $page_size='letter'">279</xsl:when>         
			<xsl:otherwise>297</xsl:otherwise>      
		</xsl:choose>   
	</xsl:variable>   
	<xsl:variable name="page_width">      
		<xsl:choose>         
			<xsl:when test="$page_size='A4' or $page_size='a4'">210</xsl:when>         
			<xsl:when test="$page_size='Letter' or $page_size='letter'">215</xsl:when>         
			<xsl:otherwise>210</xsl:otherwise>      
		</xsl:choose>   
	</xsl:variable>   
	<xsl:param name="power_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="power-of-attorney">               
					<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="power-of-attorney" force-page-count="no-force">            
				<fo:static-content flow-name="xsl-region-before">               
					<fo:block width="{$avail_width}mm" font-family="{$helvetica_font}"> 
						<fo:table table-layout="fixed"> 
							<fo:table-column column-width="55mm"></fo:table-column>                     
							<fo:table-column column-width="55mm"></fo:table-column>                     
							<fo:table-column column-width="55mm"></fo:table-column>                     
							<fo:table-body>                        
								<fo:table-row>                  
									<fo:table-cell>                    
										<fo:block font-size="9pt">
											<xsl:value-of select=".//file-reference-id"></xsl:value-of>
										</fo:block>                  
									</fo:table-cell>                  
									<fo:table-cell>                    
										<fo:block></fo:block>                  
									</fo:table-cell>                  
									<fo:table-cell>                    
										<fo:block font-size="9pt" text-align="right">
											<xsl:value-of select="$ia_number"></xsl:value-of>
										</fo:block>       
									</fo:table-cell>                
								</fo:table-row>                
								<fo:table-row>                           
									<fo:table-cell>                              
										<fo:block> 
										</fo:block>                           
									</fo:table-cell>                           
									<fo:table-cell>                              
										<fo:block text-align="center" font-size="10pt" background-color="white">                                
											<fo:page-number></fo:page-number>/<fo:page-number-citation ref-id="endofdoc"></fo:page-number-citation>                              
										</fo:block>                           
									</fo:table-cell>                           
									<fo:table-cell>                              
										<fo:block> 
										</fo:block>                           
									</fo:table-cell>                        
								</fo:table-row>                        
								<fo:table-row>                           
									<fo:table-cell number-columns-spanned="2">                              
										<fo:block text-align="left" font-size="10pt" color="black" background-color="white">           
											<fo:inline font-weight="bold">                                 
												POUVOIR PCT                                  
											</fo:inline>                              
										</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></fo:block>                                
										<fo:block text-align="center" font-size="8pt" background-color="white">                                
											<xsl:choose>
												<xsl:when test="$original = '1' and $EASY = '1'">
													Original (pour 
													<fo:inline font-weight="bold">
														PRESENTATION
													</fo:inline>
													<xsl:text>)</xsl:text>
												</xsl:when>
												<xsl:when test="$original = '2' and $EASY = '1'">
													Copie de l’original
												</xsl:when>
												<xsl:when test="$EASY = '1'">
													<fo:block></fo:block>
												</xsl:when>
												<xsl:otherwise>
													(original sous forme électronique)
												</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>   
	<xsl:template match="power-of-attorney">  
		<xsl:choose>
			<xsl:when test="./doc-page">
				<xsl:apply-templates select="./doc-page"></xsl:apply-templates>               	  
			</xsl:when>
			<xsl:otherwise>
				<xsl:call-template name="power_of_attorney"></xsl:call-template>
			</xsl:otherwise>               	  
		</xsl:choose>   
	</xsl:template>   
	<!-- INCLUDE COMPONENT TEMPLATES -->
	   
	<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'"> 
					 de            
				</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'">            		 
					 de            
				</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'">
								 janvier    
							</xsl:when>   
							<xsl:when test="$m='02'"> 
								 février    
							</xsl:when>   
							<xsl:when test="$m='03'"> 
								 mars    
							</xsl:when>   
							<xsl:when test="$m='04'"> 
								 avril    
							</xsl:when>   
							<xsl:when test="$m='05'"> 
								 mai    
							</xsl:when>   
							<xsl:when test="$m='06'"> 
								 juin    
							</xsl:when>   
							<xsl:when test="$m='07'"> 
								 juillet    
							</xsl:when>   
							<xsl:when test="$m='08'"> 
								 août    
							</xsl:when>   
							<xsl:when test="$m='09'"> 
								 septembre    
							</xsl:when>   
							<xsl:when test="$m='10'"> 
								 octobre    
							</xsl:when>   
							<xsl:when test="$m='11'"> 
								 novembre    
							</xsl:when>   
							<xsl:when test="$m='12'"> 
								 décembre    
							</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'">
								 janvier    
							</xsl:when>   
							<xsl:when test="$m='02'"> 
								 février    
							</xsl:when>   
							<xsl:when test="$m='03'"> 
								 mars    
							</xsl:when>   
							<xsl:when test="$m='04'"> 
								 avril    
							</xsl:when>   
							<xsl:when test="$m='05'"> 
								 mai    
							</xsl:when>   
							<xsl:when test="$m = '06'"> 
								 juin    
							</xsl:when>   
							<xsl:when test="$m='07'"> 
								 juillet    
							</xsl:when>   
							<xsl:when test="$m='08'"> 
								 août    
							</xsl:when>   
							<xsl:when test="$m='09'"> 
								 septembre    
							</xsl:when>   
							<xsl:when test="$m='10'"> 
								 octobre    
							</xsl:when>   
							<xsl:when test="$m='11'"> 
								 novembre    
							</xsl:when>   
							<xsl:when test="$m='12'"> 
								 décembre    
							</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'"> 
								 janvier    
							</xsl:when>   
							<xsl:when test="$m='02'"> 
								 février    
							</xsl:when>   
							<xsl:when test="$m='03'"> 
								 mars    
							</xsl:when>   
							<xsl:when test="$m='04'"> 
								 avril    
							</xsl:when>   
							<xsl:when test="$m='05'"> 
								 mai    
							</xsl:when>   
							<xsl:when test="$m = '06'"> 
								 juin    
							</xsl:when>   
							<xsl:when test="$m='07'"> 
								 juillet    
							</xsl:when>   
							<xsl:when test="$m='08'"> 
								 août    
							</xsl:when>   
							<xsl:when test="$m='09'"> 
								 septembre    
							</xsl:when>   
							<xsl:when test="$m='10'"> 
								 octobre    
							</xsl:when>   
							<xsl:when test="$m='11'"> 
								 novembre    
							</xsl:when>   
							<xsl:when test="$m='12'"> 
								 décembre    
							</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="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']">
	         	Nom :
	         </xsl:when>
	         <xsl:otherwise>
	         	Nom (NOM DE FAMILLE, prénom) :
	         </xsl:otherwise>
	      </xsl:choose>
   </xsl:template>   
	<xsl:template name="agentType_ChoiceText">
   <xsl:param name="rep-type"></xsl:param>
   	  <xsl:choose>
   	  	<xsl:when test="$rep-type='agent'">
   	  		Mandataire
   	  	</xsl:when>
   	  	<xsl:when test="$rep-type='attorney'">
	   	  	Avocat
   	  	</xsl:when>
   	  	<xsl:when test="$rep-type='common-representative'">
	   	  	Représentant commun
   	  	</xsl:when>
   	  </xsl:choose>
   </xsl:template><xsl:template name="agentTypeEn_ChoiceText">
   <xsl:param name="rep-type"></xsl:param>
   	  <xsl:choose>
   	  	<xsl:when test="$rep-type='agent'">
			<xsl:text>agent</xsl:text>   	  	
   	  	</xsl:when>
   	  	<xsl:when test="$rep-type='attorney'">
   	  		<xsl:text>attorney</xsl:text>
   	  	</xsl:when>
   	  	<xsl:when test="$rep-type='common-representative'">
   	  		<xsl:text>common representative </xsl:text>
   	  	</xsl:when>
   	  </xsl:choose>
   </xsl:template>   
	<xsl:template name="officeName_ChoiceText">
      <xsl:param name="office"></xsl:param>
      <xsl:param name="tOffice" select="translate($office,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:param>
      <xsl:choose>
         <xsl:when test="$tOffice='AE'">
	            Centre international pour l'enregistrement des brevets, Ministère de l'économie (Émirats arabes unis)	
         </xsl:when>
         <xsl:when test="$tOffice='AG'">
	            Office de la propriété intellectuelle et du commerce d’Antigua-et-Barbuda (ABIPCO)	
         </xsl:when>
         <xsl:when test="$tOffice='AL'">
	            Direction générale de la propriété industrielle (GDIP) (Albanie)	
         </xsl:when>
         <xsl:when test="$tOffice='AM'">
	            Office de la propriété intellectuelle de la République d'Arménie	
         </xsl:when>
         <xsl:when test="$tOffice='AO'">
	            Institut angolais de la propriété industrielle	
         </xsl:when>
         <xsl:when test="$tOffice='AP'">
	            Organisation régionale africaine de la propriété intellectuelle (ARIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='AT'">
	            Office autrichien des brevets	
         </xsl:when>
         <xsl:when test="$tOffice='AU'">
	            Office australien des brevets	
         </xsl:when>
         <xsl:when test="$tOffice='AZ'">
	            Agence de la propriété intellectuelle de la République d'Azerbaïdjan	
         </xsl:when>
         <xsl:when test="$tOffice='BA'">
	            Institut pour la propriété intellectuelle de Bosnie-Herzégovine	
         </xsl:when>
         <xsl:when test="$tOffice='BB'">
	            Office des sociétés et de la propriété intellectuelle (Barbade)	
         </xsl:when>
         <xsl:when test="$tOffice='BE'">
	            Office belge de la Propriété intellectuelle (OPRI)	
         </xsl:when>
         <xsl:when test="$tOffice='BF'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='BG'">
	            Office des brevets de la République de Bulgarie	
         </xsl:when>
         <xsl:when test="$tOffice='BH'">
	            Direction du commerce extérieur et de la propriété intellectuelle, Office national des brevets (Bahreïn)	
         </xsl:when>
         <xsl:when test="$tOffice='BJ'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='BN'">
	            Office de la propriété intellectuelle du Brunéi Darussalam (BruIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='BR'">
	            Institut national de la propriété industrielle (Brésil)	
         </xsl:when>
         <xsl:when test="$tOffice='BW'">
	            Administration des sociétés et de la propriété intellectuelle (CIPA) (Botswana)	
         </xsl:when>
         <xsl:when test="$tOffice='BX'">
	            Benelux Office for Intellectual Property (BOIP)	
         </xsl:when>
         <xsl:when test="$tOffice='BY'">
	            Centre national pour la propriété intellectuelle (Bélarus)	
         </xsl:when>
         <xsl:when test="$tOffice='BZ'">
	            Office de la propriété intellectuelle du Belize	
         </xsl:when>
         <xsl:when test="$tOffice='CA'">
	            Office de la propriété intellectuelle du Canada	
         </xsl:when>
         <xsl:when test="$tOffice='CF'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CG'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CH'">
	            Institut Fédéral de la Propriété Intellectuelle (Suisse)	
         </xsl:when>
         <xsl:when test="$tOffice='CI'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CL'">
	            Institut national de la propriété industrielle (Chili)	
         </xsl:when>
         <xsl:when test="$tOffice='CM'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CN'">
	            Administration nationale de la propriété intellectuelle de la Chine (CNIPA)	
         </xsl:when>
         <xsl:when test="$tOffice='CO'">
	            Surintendance de l’industrie et du commerce (Colombie)	
         </xsl:when>
         <xsl:when test="$tOffice='CR'">
	            Registre de la propriété intellectuelle (Costa Rica)	
         </xsl:when>
         <xsl:when test="$tOffice='CS'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CU'">
	            Office cubain de la propriété industrielle	
         </xsl:when>
         <xsl:when test="$tOffice='CY'">
	            Direction de l'enregistrement des sociétés et des recettes de Chypre	
         </xsl:when>
         <xsl:when test="$tOffice='CV'">
	            Institut de la gestion de qualité et la propriété intellectuelle (IGQPI) (Cabo Verde)	
         </xsl:when>
         <xsl:when test="$tOffice='CZ'">
	            Office de la propriété industrielle de la République tchèque	
         </xsl:when>
         <xsl:when test="$tOffice='DD'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='DE'">
	            Office allemand des brevets et des marques	
         </xsl:when>
         <xsl:when test="$tOffice='DJ'">
	            Office djiboutien de la propriété industrielle et commerciale (ODPIC)	
         </xsl:when>
         <xsl:when test="$tOffice='DK'">
	            Office danois des brevets et des marques	
         </xsl:when>
         <xsl:when test="$tOffice='DM'">
	            Office de la propriété intellectuelle (Dominique)	
         </xsl:when>
         <xsl:when test="$tOffice='DO'">
	            Office national de la propriété industrielle (République dominicaine)	
         </xsl:when>
         <xsl:when test="$tOffice='DZ'">
	            Institut national algérien de la propriété industrielle	
         </xsl:when>
         <xsl:when test="$tOffice='EA'">
	            Office eurasien des brevets (OEAB)	
         </xsl:when>
         <xsl:when test="$tOffice='EC'">
	            Service national des droits intellectuels (SENADI) (Équateur)	
         </xsl:when>
         <xsl:when test="$tOffice='EE'">
	            Office estonien des brevets	
         </xsl:when>
         <xsl:when test="$tOffice='EG'">
	            Office égyptien des brevets	
         </xsl:when>
         <xsl:when test="$tOffice='EM'">
	            Office de l'Union européenne pour la propriété intellectuelle	
         </xsl:when>
         <xsl:when test="$tOffice='EP'">
	            Office européen des brevets (OEB)	
         </xsl:when>
         <xsl:when test="$tOffice='ES'">
	            Office espagnol des brevets et des marques	
         </xsl:when>
         <xsl:when test="$tOffice='FI'">
	            Office finlandais des brevets et de l'enregistrement (PRH)	
         </xsl:when>
         <xsl:when test="$tOffice='FR'">
	            Institut national de la propriété industrielle (INPI) (France)	
         </xsl:when>
         <xsl:when test="$tOffice='GA'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='GB'">
	            Office de la propriété intellectuelle (Royaume-Uni)	
         </xsl:when>
         <xsl:when test="$tOffice='GC'">
	            Patent Office of the Gulf Cooperation Council (GCC)	
         </xsl:when>
         <xsl:when test="$tOffice='GD'">
	            Cour suprême de l'enregistrement (Grenade)	
         </xsl:when>
         <xsl:when test="$tOffice='GE'">
	            Centre national de la propriété intellectuelle de la Géorgie (SAKPATENTI)	
         </xsl:when>
         <xsl:when test="$tOffice='GH'">
	            Direction générale de l'enregistrement (Ghana)	
         </xsl:when>
         <xsl:when test="$tOffice='GM'">
	            Direction générale de l'enregistrement, Ministère de la justice (Gambie)	
         </xsl:when>
         <xsl:when test="$tOffice='GN'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='GQ'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='GR'">
	            Organisation de la propriété industrielle (OBI) (Grèce)	
         </xsl:when>
         <xsl:when test="$tOffice='GT'">
	            Registre de la propriété intellectuelle (Guatemala)	
         </xsl:when>
         <xsl:when test="$tOffice='GW'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='HK'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='HN'">
	            Direction générale de la propriété intellectuelle (Honduras)	
         </xsl:when>
         <xsl:when test="$tOffice='HR'">
	            Office d’État de la propriété intellectuelle (Croatie)	
         </xsl:when>
         <xsl:when test="$tOffice='HU'">
	            Office hongrois de la propriété intellectuelle (HIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='IB'">
	            Bureau international de l'OMPI	
         </xsl:when>
         <xsl:when test="$tOffice='ID'">
	            Direction générale de la propriété intellectuelle (Indonésie)	
         </xsl:when>
         <xsl:when test="$tOffice='IE'">
	            Office de la propriété intellectuelle d'Irlande	
         </xsl:when>
         <xsl:when test="$tOffice='IL'">
	            Office des brevets d'Israël	
         </xsl:when>
         <xsl:when test="$tOffice='IR'">
	            Centre de propriété intellectuelle (République islamique d'Iran)	
         </xsl:when>
         <xsl:when test="$tOffice='IN'">
	            Office indien des brevets	
         </xsl:when>
         <xsl:when test="$tOffice='IQ'">
	            Office irakien des brevets (IQPO)	
         </xsl:when>
         <xsl:when test="$tOffice='IS'">
	            Office islandais de la propriété intellectuelle (ISIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='IT'">
	            Office italien des brevets et des marques	
         </xsl:when>
         <xsl:when test="$tOffice='JM'">
               Office de la propriété intellectuelle de la Jamaïque (JIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='JO'">
	            Direction de la protection de la propriété industrielle, Ministère de l'industrie, du commerce et de l'approvisionnement (Jordanie)	
         </xsl:when>
         <xsl:when test="$tOffice='JP'">
	            Office des brevets du Japon (JPO)	
         </xsl:when>
         <xsl:when test="$tOffice='KE'">
	            Institut kényan de la propriété industrielle	
         </xsl:when>
         <xsl:when test="$tOffice='KG'">
	            Ministère des sciences, de l’enseignement supérieur et de l’innovation de la République kirghize	
         </xsl:when>
         <xsl:when test="$tOffice='KH'">
	            Département de la propriété industrielle, Ministère de l'industrie, de la science, de la technologie et de l'innovation (Cambodge)	
         </xsl:when>
         <xsl:when test="$tOffice='KM'">
	            Office comorien de la propriété industrielle	
         </xsl:when>
         <xsl:when test="$tOffice='KN'">
	            Office de la propriété intellectuelle de Saint-Kitts-et-Nevis	
         </xsl:when>
         <xsl:when test="$tOffice='KP'">
	            Administration de la propriété intellectuelle (IPA) de la République populaire démocratique de Corée	
         </xsl:when>
         <xsl:when test="$tOffice='KR'">
	            Ministère de la propriété intellectuelle (MOIP) (République de Corée)	
         </xsl:when>
         <xsl:when test="$tOffice='KW'">
	            Ministère du commerce et de l'industrie, Département des marques et des brevets (Koweït)	
         </xsl:when>
         <xsl:when test="$tOffice='KZ'">
	            Institut national de la propriété intellectuelle (INPI) (Kazakhstan)	
         </xsl:when>
         <xsl:when test="$tOffice='LA'">
	            Département de la propriété intellectuelle, Ministère de la science et de la technologie (République démocratique populaire lao)	
         </xsl:when>
         <xsl:when test="$tOffice='LC'">
	            Office pour l’enregistrement des sociétés et de la propriété intellectuelle (Sainte-Lucie)	
         </xsl:when>
         <xsl:when test="$tOffice='LK'">
	            Office national de la propriété intellectuelle du Sri Lanka	
         </xsl:when>
         <xsl:when test="$tOffice='LR'">
	            Office de la propriété intellectuelle du Libéria	
         </xsl:when>
         <xsl:when test="$tOffice='LS'">
	            Direction générale de l'enregistrement (Lesotho)	
         </xsl:when>
         <xsl:when test="$tOffice='LT'">
	            Bureau d'État des brevets de la République de la Lituanie	
         </xsl:when>
         <xsl:when test="$tOffice='LU'">
	            Office de la propriété intellectuelle (Luxembourg)	
         </xsl:when>
         <xsl:when test="$tOffice='LV'">
	            Office des brevets de la République de Lettonie	
         </xsl:when>
         <xsl:when test="$tOffice='LY'">
	            Office libyen de la propriété industrielle	
         </xsl:when>
         <xsl:when test="$tOffice='MA'">
	            Office marocain de la propriété industrielle et commerciale (OMPIC)	
         </xsl:when>
         <xsl:when test="$tOffice='MC'">
	            Office de la propriété industrielle de Monaco (MCIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='MD'">
	            Office d'État pour la propriété intellectuelle (République de Moldova)	
         </xsl:when>
         <xsl:when test="$tOffice='ME'">
	            Ministère du développement économique (Monténégro)	
         </xsl:when>
         <xsl:when test="$tOffice='MG'">
	            Office malgache de la propriété industrielle	
         </xsl:when>
         <xsl:when test="$tOffice='MK'">
	            Office d'État de la propriété industrielle (Macédoine du Nord)	
         </xsl:when>
         <xsl:when test="$tOffice='ML'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='MN'">
	            Office de la propriété intellectuelle de la Mongolie	
         </xsl:when>
         <xsl:when test="$tOffice='MR'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='MT'">
	            Direction de l'enregistrement de la propriété industrielle, Département du commerce (Malte)	
         </xsl:when>
         <xsl:when test="$tOffice='MU'">
	            Office de la propriété industrielle de Maurice (IPOM)	
         </xsl:when>
         <xsl:when test="$tOffice='MW'">
	            Ministère de la justice, Département du Directeur général de l'enregistrement (Malawi)	
         </xsl:when>
         <xsl:when test="$tOffice='MX'">
	            Institut mexicain de la propriété industrielle	
         </xsl:when>
         <xsl:when test="$tOffice='MY'">
	            Société de propriété intellectuelle de Malaisie	
         </xsl:when>
         <xsl:when test="$tOffice='MZ'">
	            Institut de la propriété industrielle (IPI) (Mozambique)	
         </xsl:when>
         <xsl:when test="$tOffice='NA'">
	            Administration des affaires commerciales et de la propriété intellectuelle (BIPA) (Namibie)	
         </xsl:when>
         <xsl:when test="$tOffice='NE'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='NG'">
	            Registre des brevets et dessins et modèles, département du droit commercial (Nigéria)	
         </xsl:when>
         <xsl:when test="$tOffice='NI'">
	            Registre de la propriété intellectuelle (Nicaragua)	
         </xsl:when>
         <xsl:when test="$tOffice='NL'">
	            Office néerlandais des brevets	
         </xsl:when>
         <xsl:when test="$tOffice='NO'">
	            Office norvégien de la propriété industrielle	
         </xsl:when>
         <xsl:when test="$tOffice='NZ'">
	            Office de la propriété intellectuelle de la Nouvelle-Zélande (IPONZ)	
         </xsl:when>
         <xsl:when test="$tOffice='OA'">
	            Organisation africaine de la propriété intellectuelle (OAPI)	
         </xsl:when>
         <xsl:when test="$tOffice='OM'">
	            Office national de la propriété intellectuelle (Ministère du commerce, de l'industrie et de la promotion des investissements) (Oman)	
         </xsl:when>
         <xsl:when test="$tOffice='PA'">
	            Direction générale de l'enregistrement de la propriété industrielle (DIGERPI) (Panama)	
         </xsl:when>
         <xsl:when test="$tOffice='PE'">
	            Institut national de défense de la concurrence et de la protection de la propriété intellectuelle (Pérou)	
         </xsl:when>
         <xsl:when test="$tOffice='PG'">
	            Office de la propriété intellectuelle de la Papouasie-Nouvelle-Guinée	
         </xsl:when>
         <xsl:when test="$tOffice='PH'">
	            Office de la propriété intellectuelle des Philippines	
         </xsl:when>
         <xsl:when test="$tOffice='PL'">
	            Office des brevets de la République de Pologne	
         </xsl:when>
         <xsl:when test="$tOffice='PT'">
	            Institut national de la propriété industrielle (Portugal)	
         </xsl:when>
         <xsl:when test="$tOffice='QA'">
	            Département de la propriété intellectuelle (Qatar)	
         </xsl:when>
         <xsl:when test="$tOffice='RO'">
	            Office d'État pour les inventions et les marques (Roumanie)	
         </xsl:when>
         <xsl:when test="$tOffice='RS'">
	            Office de la propriété intellectuelle (Serbie)	
         </xsl:when>
         <xsl:when test="$tOffice='RU'">
	            Service fédéral de la propriété intellectuelle (Rospatent) (Fédération de Russie)	
         </xsl:when>
         <xsl:when test="$tOffice='RW'">
	            Direction générale de l’enregistrement (Rwanda)	
         </xsl:when>
         <xsl:when test="$tOffice='SA'">
	            Autorité saoudienne de la propriété intellectuelle (SAIP)	
         </xsl:when>
         <xsl:when test="$tOffice='SC'">
	            Division de l’enregistrement, Département des affaires juridiques (Seychelles)	
         </xsl:when>
         <xsl:when test="$tOffice='SD'">
	            Directeur général de l'enregistrement, Département de la propriété intellectuelle (Soudan) 
         </xsl:when>
         <xsl:when test="$tOffice='SE'">
	            Office suédois de la propriété intellectuelle (PRV)	
         </xsl:when>
         <xsl:when test="$tOffice='SG'">
	            Office de la propriété intellectuelle de Singapour	
         </xsl:when>
         <xsl:when test="$tOffice='SI'">
	            Office slovène de la propriété intellectuelle	
         </xsl:when>
         <xsl:when test="$tOffice='SK'">
	            Office de la propriété industrielle de la République slovaque	
         </xsl:when>
         <xsl:when test="$tOffice='SL'">
	            Département de l’administrateur et directeur général de l’enregistrement (Sierra Leone)	
         </xsl:when>
         <xsl:when test="$tOffice='SM'">
	            Office des brevets et des marques (Saint-Marin)	
         </xsl:when>
         <xsl:when test="$tOffice='SN'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='ST'">
	            Service national de la propriété industrielle (SENAPI)	
         </xsl:when>
         <xsl:when test="$tOffice='SU'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='SV'">
	            Centre national des enregistrements (CNR) (El Salvador)	
         </xsl:when>
         <xsl:when test="$tOffice='SY'">
	            Ministère du commerce intérieur et protection des consommateurs, Direction de la protection de la propriété industrielle et commerciale (République arabe syrienne)	
         </xsl:when>
         <xsl:when test="$tOffice='SZ'">
	            Ministry of Justice
Registrar General's Office	
         </xsl:when>
         <xsl:when test="$tOffice='TD'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='TG'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='TH'">
	            Département de la propriété intellectuelle (DPI) (Thaïlande)	
         </xsl:when>
         <xsl:when test="$tOffice='TJ'">
	            Centre national des brevets et de l'information auprès du ministère du développement économique et du commerce de la République du Tadjikistan	
         </xsl:when>
         <xsl:when test="$tOffice='TM'">
	            Service d'état de la propriété intellectuelle du Ministère des finances et de l'économie du Turkménistan	
         </xsl:when>
         <xsl:when test="$tOffice='TN'">
	            Institut national de la normalisation et de la propriété industrielle (INNORPI) (Tunisie)	
         </xsl:when>
         <xsl:when test="$tOffice='TR'">
	            Office turc des brevets et des marques (Turkpatent)	
         </xsl:when>
         <xsl:when test="$tOffice='TT'">
	            Office de la propriété intellectuelle, Ministère de l'aménagement du territoire et des affaires juridiques (Trinité-et-Tobago)	
         </xsl:when>
         <xsl:when test="$tOffice='TZ'">
	            Service d’enregistrement des sociétés et des licences commerciales, Ministère de l’industrie et du commerce (République-Unie de Tanzanie)	
         </xsl:when>
         <xsl:when test="$tOffice='UA'">
	            Office national ukrainien pour la propriété intellectuelle et les innovations (UANIPIO)	
         </xsl:when>
         <xsl:when test="$tOffice='UG'">
	            Bureau des services de l'enregistrement de l'Ouganda (URSB)	
         </xsl:when>
         <xsl:when test="$tOffice='US'">
	            Office des brevets et des marques des États-Unis (USPTO)	
         </xsl:when>
         <xsl:when test="$tOffice='UY'">
	            Direction nationale de la propriété industrielle (DNPI)	
         </xsl:when>
         <xsl:when test="$tOffice='UZ'">
	            Agence de la propriété intellectuelle auprès du ministère de la justice de la République d'Ouzbékistan	
         </xsl:when>
         <xsl:when test="$tOffice='VC'">
	            Office du commerce et de la propriété intellectuelle (CIPO) (Saint-Vincent-et-les-Grenadines)	
         </xsl:when>
         <xsl:when test="$tOffice='VN'">
	            Office de la propriété intellectuelle du Viet Nam (IP Viet Nam)	
         </xsl:when>
         <xsl:when test="$tOffice='WO'">
	            Organisation Mondiale de la Propriété Intellectuelle	
         </xsl:when>
         <xsl:when test="$tOffice='WS'">
	            Ministère du commerce, de l'industrie et du travail (MCIL) (Samoa)	
         </xsl:when>
         <xsl:when test="$tOffice='XN'">
	            Institut nordique des brevets	
         </xsl:when>
		 <xsl:when test="$tOffice='XV'">
	            Institut des brevets de Visegrad (VPI)	
         </xsl:when>
         <xsl:when test="$tOffice='YU'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='ZA'">
	            Commission pour les sociétés et la propriété intellectuelle (CIPC) (Afrique du Sud)	
         </xsl:when>
         <xsl:when test="$tOffice='ZM'">
	            Agence d'enregistrement des brevets et des sociétés (PACRA) (Zambie)	
         </xsl:when>
         <xsl:when test="$tOffice='ZR'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='ZW'">
	            Office de la propriété intellectuelle du Zimbabwe	
         </xsl:when>
         <xsl:otherwise>
            <xsl:value-of select="$tOffice"></xsl:value-of>
         </xsl:otherwise>
      </xsl:choose>
   </xsl:template>   
	<xsl:template name="country_ChoiceText">
		<xsl:param name="country"></xsl:param>
		<xsl:choose>
			<xsl:when test="$country='AD'">
				ANDORRE 
			</xsl:when>
			<xsl:when test="$country='AE'">
				ÉMIRATS ARABES UNIS 
			</xsl:when>
			<xsl:when test="$country='AF'">
				AFGHANISTAN 
			</xsl:when>
			<xsl:when test="$country='AG'">
				ANTIGUA-ET-BARBUDA 
			</xsl:when>
			<xsl:when test="$country='AI'">
				ANGUILLA 
			</xsl:when>
			<xsl:when test="$country='AL'">
				ALBANIE 
			</xsl:when>
			<xsl:when test="$country='AM'">
				ARMÉNIE 
			</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'">
				ANTARCTIQUE 
			</xsl:when>
			<xsl:when test="$country='AR'">
				ARGENTINE 
			</xsl:when>
			<xsl:when test="$country='AS'">
				SAMOA AMÉRICAINES 
			</xsl:when>
			<xsl:when test="$country='AT'">
				AUTRICHE 
			</xsl:when>
			<xsl:when test="$country='AU'">
				AUSTRALIE 
			</xsl:when>
			<xsl:when test="$country='AW'">
				ARUBA 
			</xsl:when>
			<xsl:when test="$country='AX'">
				ÎLES ALAND 
			</xsl:when>
			<xsl:when test="$country='AZ'">
				AZERBAÏDJAN 
			</xsl:when>
			<xsl:when test="$country='BA'">
				BOSNIE-HERZÉGOVINE 
			</xsl:when>
			<xsl:when test="$country='BB'">
				BARBADE 
			</xsl:when>
			<xsl:when test="$country='BD'">
				BANGLADESH 
			</xsl:when>
			<xsl:when test="$country='BE'">
				BELGIQUE 
			</xsl:when>
			<xsl:when test="$country='BF'">
				BURKINA FASO 
			</xsl:when>
			<xsl:when test="$country='BG'">
				BULGARIE 
			</xsl:when>
			<xsl:when test="$country='BH'">
				BAHREÏN 
			</xsl:when>
			<xsl:when test="$country='BI'">
				BURUNDI 
			</xsl:when>
			<xsl:when test="$country='BJ'">
				BÉNIN 
			</xsl:when>
			<xsl:when test="$country='BM'">
				BERMUDES 
			</xsl:when>
			<xsl:when test="$country='BN'">
				BRUNÉI DARUSSALAM 
			</xsl:when>
			<xsl:when test="$country='BO'">
				BOLIVIE (ÉTAT PLURINATIONAL DE) 
			</xsl:when>
			<xsl:when test="$country='BQ'">
				BONAIRE, SAINT-EUSTACHE ET SABA 
			</xsl:when>
			<xsl:when test="$country='BR'">
				BRÉSIL 
			</xsl:when>
			<xsl:when test="$country='BS'">
				BAHAMAS 
			</xsl:when>
			<xsl:when test="$country='BT'">
				BHOUTAN 
			</xsl:when>
			<xsl:when test="$country='BV'">
				ÎLE BOUVET 
			</xsl:when>
			<xsl:when test="$country='BW'">
				BOTSWANA 
			</xsl:when>
			<xsl:when test="$country='BX'">
				
			</xsl:when>
			<xsl:when test="$country='BY'">
				BÉLARUS 
			</xsl:when>
			<xsl:when test="$country='BZ'">
				BELIZE 
			</xsl:when>
			<xsl:when test="$country='CA'">
				CANADA 
			</xsl:when>
			<xsl:when test="$country='CC'">
				ÎLES COCOS (KEELING) 
			</xsl:when>
			<xsl:when test="$country='CD'">
				RÉPUBLIQUE DÉMOCRATIQUE DU CONGO 
			</xsl:when>
			<xsl:when test="$country='CF'">
				RÉPUBLIQUE CENTRAFRICAINE 
			</xsl:when>
			<xsl:when test="$country='CG'">
				CONGO 
			</xsl:when>
			<xsl:when test="$country='CH'">
				SUISSE 
			</xsl:when>
			<xsl:when test="$country='CI'">
				CÔTE D'IVOIRE 
			</xsl:when>
			<xsl:when test="$country='CK'">
				ÎLES COOK 
			</xsl:when>
			<xsl:when test="$country='CL'">
				CHILI 
			</xsl:when>
			<xsl:when test="$country='CM'">
				CAMEROUN 
			</xsl:when>
			<xsl:when test="$country='CN'">
				CHINE 
			</xsl:when>
			<xsl:when test="$country='CO'">
				COLOMBIE 
			</xsl:when>
			<xsl:when test="$country='CR'">
				COSTA RICA 
			</xsl:when>
			<xsl:when test="$country='CU'">
				CUBA 
			</xsl:when>
			<xsl:when test="$country='CV'">
				CABO VERDE 
			</xsl:when>
			<xsl:when test="$country='CW'">
				CURAÇAO 
			</xsl:when>
			<xsl:when test="$country='CX'">
				CHRISTMAS, ÎLE 
			</xsl:when>
			<xsl:when test="$country='CY'">
				CHYPRE 
			</xsl:when>
			<xsl:when test="$country='CZ'">
				TCHÉQUIE 
			</xsl:when>
			<xsl:when test="$country='DE'">
				ALLEMAGNE 
			</xsl:when>
			<xsl:when test="$country='DJ'">
				DJIBOUTI 
			</xsl:when>
			<xsl:when test="$country='DK'">
				DANEMARK 
			</xsl:when>
			<xsl:when test="$country='DM'">
				DOMINIQUE 
			</xsl:when>
			<xsl:when test="$country='DO'">
				RÉPUBLIQUE DOMINICAINE 
			</xsl:when>
			<xsl:when test="$country='DZ'">
				ALGÉRIE 
			</xsl:when>
			<xsl:when test="$country='EA'">
				
			</xsl:when>
			<xsl:when test="$country='EC'">
				ÉQUATEUR 
			</xsl:when>
			<xsl:when test="$country='EE'">
				ESTONIE 
			</xsl:when>
			<xsl:when test="$country='EG'">
				ÉGYPTE 
			</xsl:when>
			<xsl:when test="$country='EH'">
				SAHARA OCCIDENTAL 
			</xsl:when>
			<xsl:when test="$country='EM'">
				
			</xsl:when>
			<xsl:when test="$country='EP'">
				
			</xsl:when>
			<xsl:when test="$country='ER'">
				ÉRYTHRÉE 
			</xsl:when>
			<xsl:when test="$country='ES'">
				ESPAGNE 
			</xsl:when>
			<xsl:when test="$country='ET'">
				ÉTHIOPIE 
			</xsl:when>
			<xsl:when test="$country='FI'">
				FINLANDE 
			</xsl:when>
			<xsl:when test="$country='FJ'">
				FIDJI 
			</xsl:when>
			<xsl:when test="$country='FK'">
				ÎLES FALKLAND (MALVINAS) 
			</xsl:when>
			<xsl:when test="$country='FM'">
				MICRONÉSIE (ETATS FÉDÉRÉS DE) 
			</xsl:when>
			<xsl:when test="$country='FO'">
				ÎLES FÉROÉ 
			</xsl:when>
			<xsl:when test="$country='FR'">
				FRANCE 
			</xsl:when>
			<xsl:when test="$country='GA'">
				GABON 
			</xsl:when>
			<xsl:when test="$country='GB'">
				ROYAUME-UNI 
			</xsl:when>
			<xsl:when test="$country='GC'">
				
			</xsl:when>
			<xsl:when test="$country='GD'">
				GRENADE 
			</xsl:when>
			<xsl:when test="$country='GE'">
				GÉORGIE 
			</xsl:when>
			<xsl:when test="$country='GF'">
				GUYANE FRANÇAISE 
			</xsl:when>
			<xsl:when test="$country='GG'">
				GUERNESEY 
			</xsl:when>
			<xsl:when test="$country='GH'">
				GHANA 
			</xsl:when>
			<xsl:when test="$country='GI'">
				GIBRALTAR 
			</xsl:when>
			<xsl:when test="$country='GL'">
				GROENLAND 
			</xsl:when>
			<xsl:when test="$country='GM'">
				GAMBIE 
			</xsl:when>
			<xsl:when test="$country='GN'">
				GUINÉE 
			</xsl:when>
			<xsl:when test="$country='GP'">
				GUADELOUPE 
			</xsl:when>
			<xsl:when test="$country='GQ'">
				GUINÉE ÉQUATORIALE 
			</xsl:when>
			<xsl:when test="$country='GR'">
				GRÈCE 
			</xsl:when>
			<xsl:when test="$country='GS'">
				GÉORGIE DU SUD-ET-LES ÎLES SANDWICH DU SUD 
			</xsl:when>
			<xsl:when test="$country='GT'">
				GUATEMALA 
			</xsl:when>
			<xsl:when test="$country='GU'">
				GUAM 
			</xsl:when>
			<xsl:when test="$country='GW'">
				GUINÉE-BISSAU 
			</xsl:when>
			<xsl:when test="$country='GY'">
				GUYANA 
			</xsl:when>
			<xsl:when test="$country='HK'">
				HONG KONG, CHINE 
			</xsl:when>
			<xsl:when test="$country='HM'">
				HEARD-ET-ÎLES MACDONALD, ÎLE 
			</xsl:when>
			<xsl:when test="$country='HN'">
				HONDURAS 
			</xsl:when>
			<xsl:when test="$country='HR'">
				CROATIE 
			</xsl:when>
			<xsl:when test="$country='HT'">
				HAÏTI 
			</xsl:when>
			<xsl:when test="$country='HU'">
				HONGRIE 
			</xsl:when>
			<xsl:when test="$country='IB'">
				
			</xsl:when>
			<xsl:when test="$country='ID'">
				INDONÉSIE 
			</xsl:when>
			<xsl:when test="$country='IE'">
				IRLANDE 
			</xsl:when>
			<xsl:when test="$country='IL'">
				ISRAËL 
			</xsl:when>
			<xsl:when test="$country='IM'">
				MAN, ÎLE DE 
			</xsl:when>
			<xsl:when test="$country='IN'">
				INDE 
			</xsl:when>
			<xsl:when test="$country='IO'">
				OCÉAN INDIEN, TERRITOIRE BRITANNIQUE DE L' 
			</xsl:when>
			<xsl:when test="$country='IQ'">
				IRAQ 
			</xsl:when>
			<xsl:when test="$country='IR'">
				IRAN (RÉPUBLIQUE ISLAMIQUE D') 
			</xsl:when>
			<xsl:when test="$country='IS'">
				ISLANDE 
			</xsl:when>
			<xsl:when test="$country='IT'">
				ITALIE 
			</xsl:when>
			<xsl:when test="$country='JE'">
				JERSEY 
			</xsl:when>
			<xsl:when test="$country='JM'">
				JAMAÏQUE 
			</xsl:when>
			<xsl:when test="$country='JO'">
				JORDANIE 
			</xsl:when>
			<xsl:when test="$country='JP'">
				JAPON 
			</xsl:when>
			<xsl:when test="$country='KE'">
				KENYA 
			</xsl:when>
			<xsl:when test="$country='KG'">
				KIRGHIZISTAN 
			</xsl:when>
			<xsl:when test="$country='KH'">
				CAMBODGE 
			</xsl:when>
			<xsl:when test="$country='KI'">
				KIRIBATI 
			</xsl:when>
			<xsl:when test="$country='KM'">
				COMORES 
			</xsl:when>
			<xsl:when test="$country='KN'">
				SAINT-KITTS-ET-NEVIS 
			</xsl:when>
			<xsl:when test="$country='KP'">
				RÉPUBLIQUE POPULAIRE DÉMOCRATIQUE DE CORÉE 
			</xsl:when>
			<xsl:when test="$country='KR'">
				RÉPUBLIQUE DE CORÉE 
			</xsl:when>
			<xsl:when test="$country='KW'">
				KOWEÏT 
			</xsl:when>
			<xsl:when test="$country='KY'">
				CAÏMANS, ÎLES 
			</xsl:when>
			<xsl:when test="$country='KZ'">
				KAZAKHSTAN 
			</xsl:when>
			<xsl:when test="$country='LA'">
				RÉPUBLIQUE DÉMOCRATIQUE POPULAIRE LAO 
			</xsl:when>
			<xsl:when test="$country='LB'">
				LIBAN 
			</xsl:when>
			<xsl:when test="$country='LC'">
				SAINTE-LUCIE 
			</xsl:when>
			<xsl:when test="$country='LI'">
				LIECHTENSTEIN 
			</xsl:when>
			<xsl:when test="$country='LK'">
				SRI LANKA 
			</xsl:when>
			<xsl:when test="$country='LR'">
				LIBÉRIA 
			</xsl:when>
			<xsl:when test="$country='LS'">
				LESOTHO 
			</xsl:when>
			<xsl:when test="$country='LT'">
				LITUANIE 
			</xsl:when>
			<xsl:when test="$country='LU'">
				LUXEMBOURG 
			</xsl:when>
			<xsl:when test="$country='LV'">
				LETTONIE 
			</xsl:when>
			<xsl:when test="$country='LY'">
				LIBYE 
			</xsl:when>
			<xsl:when test="$country='MA'">
				MAROC 
			</xsl:when>
			<xsl:when test="$country='MC'">
				MONACO 
			</xsl:when>
			<xsl:when test="$country='MD'">
				RÉPUBLIQUE DE MOLDOVA 
			</xsl:when>
			<xsl:when test="$country='ME'">
				MONTÉNÉGRO 
			</xsl:when>
			<xsl:when test="$country='MG'">
				MADAGASCAR 
			</xsl:when>
			<xsl:when test="$country='MH'">
				MARSHALL, ÎLES 
			</xsl:when>
			<xsl:when test="$country='MK'">
				MACÉDOINE DU NORD 
			</xsl:when>
			<xsl:when test="$country='ML'">
				MALI 
			</xsl:when>
			<xsl:when test="$country='MM'">
				MYANMAR 
			</xsl:when>
			<xsl:when test="$country='MN'">
				MONGOLIE 
			</xsl:when>
			<xsl:when test="$country='MO'">
				MACAO, CHINE 
			</xsl:when>
			<xsl:when test="$country='MP'">
				ÎLES MARIANNES DU NORD 
			</xsl:when>
			<xsl:when test="$country='MQ'">
				MARTINIQUE 
			</xsl:when>
			<xsl:when test="$country='MR'">
				MAURITANIE 
			</xsl:when>
			<xsl:when test="$country='MS'">
				MONTSERRAT 
			</xsl:when>
			<xsl:when test="$country='MT'">
				MALTE 
			</xsl:when>
			<xsl:when test="$country='MU'">
				MAURICE 
			</xsl:when>
			<xsl:when test="$country='MV'">
				MALDIVES 
			</xsl:when>
			<xsl:when test="$country='MW'">
				MALAWI 
			</xsl:when>
			<xsl:when test="$country='MX'">
				MEXIQUE 
			</xsl:when>
			<xsl:when test="$country='MY'">
				MALAISIE 
			</xsl:when>
			<xsl:when test="$country='MZ'">
				MOZAMBIQUE 
			</xsl:when>
			<xsl:when test="$country='NA'">
				NAMIBIE 
			</xsl:when>
			<xsl:when test="$country='NC'">
				NOUVELLE-CALÉDONIE 
			</xsl:when>
			<xsl:when test="$country='NE'">
				NIGER 
			</xsl:when>
			<xsl:when test="$country='NF'">
				NORFOLK, ÎLE 
			</xsl:when>
			<xsl:when test="$country='NG'">
				NIGÉRIA 
			</xsl:when>
			<xsl:when test="$country='NI'">
				NICARAGUA 
			</xsl:when>
			<xsl:when test="$country='NL'">
				PAYS-BAS (ROYAUME DES) 
			</xsl:when>
			<xsl:when test="$country='NO'">
				NORVÈGE 
			</xsl:when>
			<xsl:when test="$country='NP'">
				NÉPAL 
			</xsl:when>
			<xsl:when test="$country='NR'">
				NAURU 
			</xsl:when>
			<xsl:when test="$country='NU'">
				NIUE 
			</xsl:when>
			<xsl:when test="$country='NZ'">
				NOUVELLE-ZÉLANDE 
			</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'">
				PÉROU 
			</xsl:when>
			<xsl:when test="$country='PF'">
				POLYNÉSIE FRANÇAISE 
			</xsl:when>
			<xsl:when test="$country='PG'">
				PAPOUASIE-NOUVELLE-GUINÉE 
			</xsl:when>
			<xsl:when test="$country='PH'">
				PHILIPPINES 
			</xsl:when>
			<xsl:when test="$country='PK'">
				PAKISTAN 
			</xsl:when>
			<xsl:when test="$country='PL'">
				POLOGNE 
			</xsl:when>
			<xsl:when test="$country='PM'">
				SAINT-PIERRE-ET-MIQUELON 
			</xsl:when>
			<xsl:when test="$country='PN'">
				PITCAIRN 
			</xsl:when>
			<xsl:when test="$country='PR'">
				PORTO RICO 
			</xsl:when>
			<xsl:when test="$country='PS'">
				PALESTINE 
			</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'">
				QATAR 
			</xsl:when>
			<xsl:when test="$country='RE'">
				RÉUNION 
			</xsl:when>
			<xsl:when test="$country='RO'">
				ROUMANIE 
			</xsl:when>
			<xsl:when test="$country='RS'">
				SERBIE 
			</xsl:when>
			<xsl:when test="$country='RU'">
				FÉDÉRATION DE RUSSIE 
			</xsl:when>
			<xsl:when test="$country='RW'">
				RWANDA 
			</xsl:when>
			<xsl:when test="$country='SA'">
				ARABIE SAOUDITE 
			</xsl:when>
			<xsl:when test="$country='SB'">
				ÎLES SALOMON 
			</xsl:when>
			<xsl:when test="$country='SC'">
				SEYCHELLES 
			</xsl:when>
			<xsl:when test="$country='SD'">
				SOUDAN 
			</xsl:when>
			<xsl:when test="$country='SE'">
				SUÈDE 
			</xsl:when>
			<xsl:when test="$country='SG'">
				SINGAPOUR 
			</xsl:when>
			<xsl:when test="$country='SH'">
				SAINT-HÉLÈNE, ASCENSION ET TRISTAN DA CUNHA 
			</xsl:when>
			<xsl:when test="$country='SI'">
				SLOVÉNIE 
			</xsl:when>
			<xsl:when test="$country='SJ'">
				SVALBARD ET JAN MAYEN 
			</xsl:when>
			<xsl:when test="$country='SK'">
				SLOVAQUIE 
			</xsl:when>
			<xsl:when test="$country='SL'">
				SIERRA LEONE 
			</xsl:when>
			<xsl:when test="$country='SM'">
				SAINT-MARIN 
			</xsl:when>
			<xsl:when test="$country='SN'">
				SÉNÉGAL 
			</xsl:when>
			<xsl:when test="$country='SO'">
				SOMALIE 
			</xsl:when>
			<xsl:when test="$country='SR'">
				SURINAME 
			</xsl:when>
			<xsl:when test="$country='SS'">
				SOUDAN DU SUD 
			</xsl:when>
			<xsl:when test="$country='ST'">
				SAO TOMÉ-ET-PRINCIPE 
			</xsl:when>
			<xsl:when test="$country='SV'">
				EL SALVADOR 
			</xsl:when>
			<xsl:when test="$country='SX'">
				SAINT-MARTIN (PARTIE NÉERLANDAISE) 
			</xsl:when>
			<xsl:when test="$country='SY'">
				RÉPUBLIQUE ARABE SYRIENNE 
			</xsl:when>
			<xsl:when test="$country='SZ'">
				ESWATINI 
			</xsl:when>
			<xsl:when test="$country='TC'">
				ÎLES TURKS ET CAÏQUES 
			</xsl:when>
			<xsl:when test="$country='TD'">
				TCHAD 
			</xsl:when>
			<xsl:when test="$country='TF'">
				TERRES AUSTRALES FRANÇAISES 
			</xsl:when>
			<xsl:when test="$country='TG'">
				TOGO 
			</xsl:when>
			<xsl:when test="$country='TH'">
				THAÏLANDE 
			</xsl:when>
			<xsl:when test="$country='TJ'">
				TADJIKISTAN 
			</xsl:when>
			<xsl:when test="$country='TK'">
				TOKELAU 
			</xsl:when>
			<xsl:when test="$country='TL'">
				TIMOR-LESTE 
			</xsl:when>
			<xsl:when test="$country='TM'">
				TURKMÉNISTAN 
			</xsl:when>
			<xsl:when test="$country='TN'">
				TUNISIE 
			</xsl:when>
			<xsl:when test="$country='TO'">
				TONGA 
			</xsl:when>
			<xsl:when test="$country='TP'">
				TIMOR ORIENTAL 
			</xsl:when>
			<xsl:when test="$country='TR'">
				TÜRKİYE 
			</xsl:when>
			<xsl:when test="$country='TT'">
				TRINITÉ-ET-TOBAGO 
			</xsl:when>
			<xsl:when test="$country='TV'">
				TUVALU 
			</xsl:when>
			<xsl:when test="$country='TW'">
				TAÏWAN, PROVINCE DE CHINE 
			</xsl:when>
			<xsl:when test="$country='TZ'">
				RÉPUBLIQUE-UNIE DE TANZANIE 
			</xsl:when>
			<xsl:when test="$country='UA'">
				UKRAINE 
			</xsl:when>
			<xsl:when test="$country='UG'">
				OUGANDA 
			</xsl:when>
			<xsl:when test="$country='UM'">
				MINEURES ÉLOIGNÉES DES ÉTATS-UNIS, ÎLES 
			</xsl:when>
			<xsl:when test="$country='US'">
				ÉTATS-UNIS D'AMÉRIQUE 
			</xsl:when>
			<xsl:when test="$country='UY'">
				URUGUAY 
			</xsl:when>
			<xsl:when test="$country='UZ'">
				OUZBÉKISTAN 
			</xsl:when>
			<xsl:when test="$country='VA'">
				SAINT-SIÈGE 
			</xsl:when>
			<xsl:when test="$country='VC'">
				SAINT-VINCENT-ET-LES-GRENADINES 
			</xsl:when>
			<xsl:when test="$country='VE'">
				VENEZUELA (RÉPUBLIQUE BOLIVARIENNE DU) 
			</xsl:when>
			<xsl:when test="$country='VG'">
				ÎLES VIERGES (BRITANNIQUES) 
			</xsl:when>
			<xsl:when test="$country='VI'">
				VIERGES DES ÉTATS-UNIS, ÎLES 
			</xsl:when>
			<xsl:when test="$country='VN'">
				VIET NAM 
			</xsl:when>
			<xsl:when test="$country='VU'">
				VANUATU 
			</xsl:when>
			<xsl:when test="$country='WF'">
				WALLIS-ET-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'">
				YÉMEN 
			</xsl:when>
			<xsl:when test="$country='YT'">
				MAYOTTE 
			</xsl:when>
			<xsl:when test="$country='YU'">
				
			</xsl:when>
			<xsl:when test="$country='ZA'">
				AFRIQUE DU SUD 
			</xsl:when>
			<xsl:when test="$country='ZM'">
				ZAMBIE 
			</xsl:when>
			<xsl:when test="$country='ZW'">
				ZIMBABWE 
			</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:template name="representBefore_ChoiceText">
		<xsl:param name="arg"></xsl:param>
		<xsl:choose>
			<xsl:when test="$arg='all-authorities'">
				toutes les administrations internationales compétentes
			</xsl:when>
			<xsl:when test="$arg='isa-only'">
				l'administration chargée de la recherche internationale seulement				
			</xsl:when>
			<xsl:when test="$arg='ipea-only'">
				l'administration chargée de l'examen préliminaire international seulement
			</xsl:when>
		</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="power_of_attorney">
		<xsl:choose>
			<xsl:when test="$power_doc != ''">
				<xsl:for-each select="document($power_doc)/*">
					<xsl:choose>
						<xsl:when test="document($power_doc)//doc-page">
							<xsl:for-each select="document($power_doc)//doc-page">
								<xsl:apply-templates select="."></xsl:apply-templates>
							</xsl:for-each>
						</xsl:when>
						<xsl:otherwise>
							<xsl:call-template name="process_power"></xsl:call-template>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:for-each>
			</xsl:when>
			<!-- when no fee parameter (e.g., power-of-attorney document) -->
			<xsl:otherwise>
				<xsl:choose>
					<xsl:when test="./doc-page">
						<xsl:for-each select="./doc-page">
							<xsl:apply-templates select="doc-page"></xsl:apply-templates>
						</xsl:for-each>
					</xsl:when>
					<xsl:otherwise>
						<xsl:call-template name="process_power"></xsl:call-template>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template><xsl:template name="process_power">
		<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">0-1</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							<fo:inline font-weight="bold">
								Pouvoir PCT (pour une demande internationale déposée en vertu du Traité de coopération en matière de brevets) (règle 90.4 du PCT)
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTop">
						<fo:block></fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTBL">
						<fo:block>0-1-1</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTBC">
						<fo:block>
							Préparée avec
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTBR">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:value-of select="$software_name"></xsl:value-of>
								<fo:block></fo:block>
								<xsl:value-of select="$software_version"></xsl:value-of>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
			</fo:table-body>
		</fo:table>
		<fo:table table-layout="fixed" border-collapse="separate" space-before="5mm" space-after="5mm">
			<fo:table-column column-width="12mm"></fo:table-column>
			<fo:table-column column-width="53mm"></fo:table-column>
			<fo:table-column column-width="105mm"></fo:table-column>
			<fo:table-body>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTL">
						<fo:block>
							<fo:inline font-weight="bold">1</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							<fo:inline font-weight="bold">
								Le(s) déposant(s) soussigné(s)
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTR">
						<fo:block>
							<xsl:for-each select=".//signatory">
								<fo:inline font-weight="bold">
									<xsl:call-template name="format_name">
										<xsl:with-param name="name_arg" select="."></xsl:with-param>
									</xsl:call-template>
									<xsl:if test="following-sibling::signatory">
										<xsl:text>; </xsl:text>
									</xsl:if>
								</fo:inline>
							</xsl:for-each>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<xsl:for-each select=".//attorney-or-agent">
					<xsl:variable name="agent_seq" select="position()"></xsl:variable>
					<fo:table-row keep-together.within-page="always">
						<fo:table-cell xsl:use-attribute-sets="tdTL">
							<fo:block>
								<fo:inline font-weight="bold">1-1-<xsl:value-of select="$agent_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">
									désigne(nt) la personne suivante
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR">
							<xsl:choose>
								<xsl:when test="$lang = 'ja' or $lang ='ko' or $lang = 'zh' or $lang ='ru' or $lang = 'ar'">
									<fo:block font-weight="bold">
										<xsl:if test="./addressbook[@lang != 'en']">
											<fo:block>
												<xsl:call-template name="format_name">
													<xsl:with-param name="name_arg" select="./addressbook[@lang != 'en']"></xsl:with-param>
												</xsl:call-template>
											</fo:block>
										</xsl:if>
										<fo:block>
											<xsl:call-template name="format_name">
												<xsl:with-param name="name_arg" select="./addressbook[@lang ='en']"></xsl:with-param>
											</xsl:call-template>
										</fo:block>
									</fo:block>
									<xsl:if test="./addressbook[@lang != 'en']/address">
										<fo:block font-weight="bold" padding-top="5mm">
											<xsl:choose>
												<xsl:when test="./addressbook/@lang = 'ja'">
													<xsl:call-template name="showJaAddress"></xsl:call-template>
												</xsl:when>
												<xsl:when test="./addressbook/@lang = 'zh'">
													<xsl:call-template name="showZhAddress"></xsl:call-template>
												</xsl:when>
												<xsl:when test="./addressbook/@lang = 'ko'">
													<xsl:call-template name="showKoAddress"></xsl:call-template>
												</xsl:when>
												<xsl:otherwise>
													<xsl:call-template name="showAddress"></xsl:call-template>
												</xsl:otherwise>
											</xsl:choose>
										</fo:block>
									</xsl:if>
									<xsl:if test="./addressbook[@lang = 'en']/address">
										<fo:block font-weight="bold" padding-top="3mm">
											<xsl:call-template name="showEnAddress"></xsl:call-template>
										</fo:block>
									</xsl:if>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<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:block></fo:block>
											<xsl:if test="./addressbook[1]/address">
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														<xsl:call-template name="showJaAddress"></xsl:call-template>
													</xsl:when>
													<xsl:when test="$lang='zh'">
														<xsl:call-template name="showZhAddress"></xsl:call-template>
													</xsl:when>
													<xsl:when test="$lang='ko'">
														<xsl:call-template name="showKoAddress"></xsl:call-template>
													</xsl:when>
													<xsl:otherwise>
														<xsl:call-template name="showAddress"></xsl:call-template>
													</xsl:otherwise>
												</xsl:choose>
											</xsl:if>
										</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
					</fo:table-row>
				</xsl:for-each>
				<!-- TODO: display info for additional agents?  See PCT-Easy output (doesn't allow multiple 'rep-type's)-->
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTL">
						<fo:block>
							<fo:inline font-weight="bold">1-2</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							<fo:inline font-weight="bold">
								comme
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTR">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:choose>
									<xsl:when test=".//attorney-or-agent[1]/@rep-type='agent'">
										Mandataire
									</xsl:when>
									<xsl:when test=".//attorney-or-agent[1]/@rep-type='attorney'">
										Avocat
									</xsl:when>
									<xsl:when test=".//attorney-or-agent[1]/@rep-type='common-representative'">
										Représentant commun
									</xsl:when>
									<xsl:otherwise>
										<xsl:value-of select=".//attorney-or-agent[1]/@rep-type"></xsl:value-of>
									</xsl:otherwise>
								</xsl:choose>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTL">
						<fo:block>
							<fo:inline font-weight="bold">1-3</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							<fo:inline font-weight="bold">
								pour le(s) représenter auprès de
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTR">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:choose>
									<xsl:when test="name(.//represent-before/*)='all-authorities'">
										toutes les administrations internationales compétentes
									</xsl:when>
									<xsl:when test="name(.//represent-before/*)='isa-only'">
										l'administration chargée de la recherche internationale seulement
									</xsl:when>
									<xsl:when test="name(.//represent-before/*)='ipea-only'">
										l'administration chargée de l'examen préliminaire international seulement
									</xsl:when>
								</xsl:choose>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTL">
						<fo:block>
							<fo:inline font-weight="bold">1-4</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							<fo:inline font-weight="bold">
								pour ce qui concerne la demande internationale suivante :
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTop">
						<fo:block></fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTL">
						<fo:block>
							<fo:inline font-weight="bold">1-4-1</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block start-indent="4mm">
							<fo:inline font-weight="bold">
								Titre de l'invention
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTR">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:apply-templates select="./invention-title"></xsl:apply-templates>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTL">
						<fo:block>
							<fo:inline font-weight="bold">1-4-2</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block start-indent="4mm">
							<fo:inline font-weight="bold">
								Référence du dossier du déposant ou du mandataire
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTR">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:value-of select=".//file-reference-id"></xsl:value-of>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTL">
						<fo:block>
							<fo:inline font-weight="bold">1-4-3</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block start-indent="4mm">
							<fo:inline font-weight="bold">
								Numéro de demande internationale(s'il est déjà disponible)
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTR">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:value-of select=".//doc-number"></xsl:value-of>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTL">
						<fo:block>
							<fo:inline font-weight="bold">1-4-4</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block start-indent="4mm">
							<fo:inline font-weight="bold">
								déposée auprès de l'office suivant en sa qualité d'office récepteur
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTR">
						<fo:block>                        
							<fo:inline font-weight="bold">
								<xsl:choose>
									<xsl:when test="$lang='ar'">
										<fo:bidi-override unicode-bidi="embed" direction="rtl">
											<xsl:call-template name="officeName_ChoiceText">
												<xsl:with-param name="office" select=".//ro"></xsl:with-param>
											</xsl:call-template>
										</fo:bidi-override>
									</xsl:when>
									<xsl:otherwise>
										<xsl:call-template name="officeName_ChoiceText">
											<xsl:with-param name="office" select=".//ro"></xsl:with-param>
										</xsl:call-template>											
									</xsl:otherwise>
								</xsl:choose>
								<fo:inline keep-together.within-line="always">
									<xsl:text>(RO/</xsl:text>
									<xsl:value-of select="translate(.//ro,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:value-of>
									<xsl:text>)</xsl:text>
								</fo:inline>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTBL">
						<fo:block>
							<fo:inline font-weight="bold">1-5</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTBC">
						<fo:block>
							<fo:inline font-weight="bold">
								et pour faire ou recevoir des paiements en son (leur) nom.
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTBR">
						<fo:block>
							<!--fo:inline font-weight = "bold">                        
								<xsl:value-of select = ".//payor/@role"/>                     
							</fo:inline-->
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
			</fo:table-body>
		</fo:table>
		<xsl:for-each select=".//signatory">
			<xsl:call-template name="signatory">
				<xsl:with-param name="sig_seq" select="position()"></xsl:with-param>
				<xsl:with-param name="box" select="2"></xsl:with-param>
				<xsl:with-param name="sig_type">applicant</xsl:with-param>
			</xsl:call-template>
		</xsl:for-each>
		<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">3</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTBC">
						<fo:block padding-right="3mm">
							<fo:inline font-weight="bold">
								Date 
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTBR">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:call-template name="format_date">
									<xsl:with-param name="lang" select="$lang"></xsl:with-param>
									<xsl:with-param name="date" select=".//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="date_too" select="1"></xsl:with-param>
								</xsl:call-template>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
			</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="signatory">
		<xsl:param name="sig_seq"></xsl:param>
		<xsl:param name="sig_type"></xsl:param>
		<xsl:param name="box"></xsl:param>
		<fo:table table-layout="fixed" 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>                        
							<fo:inline font-weight="bold">
								<xsl:value-of select="$box"></xsl:value-of>-<xsl:value-of select="$sig_seq"></xsl:value-of>                        
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdTC">                     
						<fo:block space-after="11mm">                        
							<fo:inline font-weight="bold">     
								<xsl:choose>
									<xsl:when test="$sig_type='applicant'">
										Signature du déposant
									</xsl:when>
									<xsl:otherwise>
										Signature du déposant, du mandataire ou du représentant commun  
									</xsl:otherwise>
								</xsl:choose>
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdTR">                     
						<fo:block>                        
							<fo:inline font-weight="bold">                           
								<xsl:choose>                              
									<xsl:when test="./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>										
											<xsl:attribute name="src">   
												<xsl:choose>  
													<xsl:when test="contains(./electronic-signature/basic-signature/fax-image/@file,'/') or contains(./electronic-signature/basic-signature/fax-image/@file,'\') or contains(.//signatory[1]/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, ./electronic-signature/basic-signature/fax-image/@file)"></xsl:value-of>  
															</xsl:when>
															<xsl:otherwise>													
																<xsl:value-of select="./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="./electronic-signature/basic-signature/click-wrap">                                 
										(Le déposant a cliqué "Oui")
									</xsl:when>                              
									<xsl:when test="./electronic-signature/basic-signature/text-string">                                 
										<xsl:value-of select=".//text-string"></xsl:value-of>
									</xsl:when>                              
									<xsl:when test=".//pkcs7">                                 
										(PKCS7 Signature Digital)
									</xsl:when>                           
								</xsl:choose>                        
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>               
				</fo:table-row>               
				<xsl:choose>
					<xsl:when test="./name[@name-type='legal']">
						<fo:table-row>                  
							<fo:table-cell xsl:use-attribute-sets="tdL">                     
								<fo:block>                        
									<fo:inline font-weight="bold">
										<xsl:value-of select="$box"></xsl:value-of>-<xsl:value-of select="$sig_seq"></xsl:value-of>-1</fo:inline>                     
								</fo:block>                  
							</fo:table-cell>                  
							<fo:table-cell xsl:use-attribute-sets="tdC">
								<fo:block>                     
									Nom :
								</fo:block>                  
							</fo:table-cell>                  
							<fo:table-cell xsl:use-attribute-sets="tdR">                     
								<fo:block>                        
									<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:table-cell>               
						</fo:table-row>           
					</xsl:when>
					<xsl:otherwise>
						<fo:table-row>                  
							<fo:table-cell xsl:use-attribute-sets="tdL">                     
								<fo:block>                        
									<fo:inline font-weight="bold">
										<xsl:value-of select="$box"></xsl:value-of>-<xsl:value-of select="$sig_seq"></xsl:value-of>-1</fo:inline>                     
								</fo:block>                  
							</fo:table-cell>                  
							<fo:table-cell xsl:use-attribute-sets="tdC">
								<fo:block>                     
									Nom (NOM DE FAMILLE, prénom) :
								</fo:block>                  
							</fo:table-cell>                  
							<fo:table-cell xsl:use-attribute-sets="tdR">                     
								<fo:block>                        
									<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:table-cell>               
						</fo:table-row>           
					</xsl:otherwise>
				</xsl:choose>
				<xsl:if test="./name[@name-type='legal']">
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdL">                     
							<fo:block>                        
								<fo:inline font-weight="bold">
									<xsl:value-of select="$box"></xsl:value-of>-<xsl:value-of select="$sig_seq"></xsl:value-of>-2</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdC">                     
							<fo:block>         
								Nom du signataire 
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdR">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                           
									<xsl:value-of select="substring-after(./signatory-capacity,'|')"></xsl:value-of>
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>            
				</xsl:if>
				<fo:table-row>                  
					<fo:table-cell xsl:use-attribute-sets="tdBL">                     
						<fo:block>                        
							<fo:inline font-weight="bold">
								<xsl:value-of select="$box"></xsl:value-of>-<xsl:value-of select="$sig_seq"></xsl:value-of>-3</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdBC">                     
						<fo:block>         
							Qualité (si cela n’apparaît pas clairement à la lecture de la requête)
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdBR">                     
						<fo:block>                        
							<fo:inline font-weight="bold">                           
								<xsl:value-of select="substring-before(./signatory-capacity/text(),'|')"></xsl:value-of>
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>               
				</fo:table-row>            
			</fo:table-body>
		</fo:table>
	</xsl:template>
	<xsl:template match="i">      
		<fo:inline>
			<xsl:if test="not(name(preceding-sibling::node()[1])='i') and not(ancestor::i)">
				<xsl:attribute name="font-style">italic</xsl:attribute>
			</xsl:if>
			<xsl:attribute name="vertical-align">
				<xsl:choose>
					<xsl:when test="name(ancestor::sup2)">
						<xsl:choose>
							<xsl:when test="name(ancestor::sub)">baseline</xsl:when>
							<xsl:otherwise>super</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:when test="name(ancestor::sub2)">
						<xsl:choose>
							<xsl:when test="name(ancestor::sup)">baseline</xsl:when>
							<xsl:otherwise>sub</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when test="name(ancestor::sup)">super</xsl:when>
							<xsl:when test="name(ancestor::sub)">sub</xsl:when>
							<xsl:otherwise>baseline</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:attribute>
			<xsl:apply-templates></xsl:apply-templates>
		</fo:inline>
	</xsl:template><xsl:template match="sub">
		<fo:inline>
			<xsl:attribute name="vertical-align">sub</xsl:attribute>
			<xsl:attribute name="font-size">7pt</xsl:attribute>
			<xsl:apply-templates></xsl:apply-templates>
		</fo:inline>
	</xsl:template><xsl:template match="sup">
		<fo:inline>
			<xsl:attribute name="vertical-align">super</xsl:attribute>
			<xsl:attribute name="font-size">7pt</xsl:attribute>
			<xsl:apply-templates></xsl:apply-templates>
		</fo:inline>
	</xsl:template><xsl:template match="sub2">
		<fo:inline>
			<xsl:attribute name="vertical-align">
				<xsl:choose>
					<xsl:when test="name(ancestor::sup)">baseline</xsl:when>
					<xsl:when test="name(ancestor::sub)">sub</xsl:when>
					<xsl:otherwise>sub</xsl:otherwise>
				</xsl:choose>
			</xsl:attribute>
			<xsl:attribute name="font-size">5pt</xsl:attribute>
			<xsl:apply-templates></xsl:apply-templates>
		</fo:inline>
	</xsl:template><xsl:template match="sup2">
		<fo:inline>
			<xsl:attribute name="vertical-align">
				<xsl:choose>
					<xsl:when test="name(ancestor::sub)">baseline</xsl:when>
					<xsl:when test="name(ancestor::sup)">super</xsl:when>
					<xsl:otherwise>super</xsl:otherwise>
				</xsl:choose>
			</xsl:attribute>
			<xsl:attribute name="font-size">5pt</xsl:attribute>
			<xsl:apply-templates></xsl:apply-templates>
		</fo:inline>
	</xsl:template><xsl:template match="u">   	  
		<xsl:param name="renderer"></xsl:param>      
		<fo:inline>
			<!-- Note: FOP does not support all '@style' values for underline -->
			         
			<xsl:choose>            
				<xsl:when test="$renderer='FOP'">               
					<xsl:attribute name="text-decoration">underline</xsl:attribute>            
				</xsl:when>            
				<xsl:otherwise>               
					<xsl:choose>                  
						<xsl:when test="@style='double'">                     
							<xsl:attribute name="text-decoration">underline</xsl:attribute>                     
							<xsl:attribute name="border-bottom-style">solid</xsl:attribute>                     
							<xsl:attribute name="border-bottom-width">0.1mm</xsl:attribute>                  
						</xsl:when>                  
						<xsl:when test="@style='dash'">                     
							<xsl:attribute name="border-bottom-style">dashed</xsl:attribute>                     
							<xsl:attribute name="border-bottom-width">0.3mm</xsl:attribute>                  
						</xsl:when>                  
						<xsl:when test="@style='dots'">                     
							<xsl:attribute name="border-bottom-style">dotted</xsl:attribute>                     
							<xsl:attribute name="border-bottom-width">0.3mm</xsl:attribute>                  
						</xsl:when>                  
						<xsl:otherwise>                     
							<xsl:attribute name="text-decoration">underline</xsl:attribute>                  
						</xsl:otherwise>               
					</xsl:choose>            
				</xsl:otherwise>         
			</xsl:choose>
			<xsl:attribute name="vertical-align">
				<xsl:choose>
					<xsl:when test="name(ancestor::sup2)">
						<xsl:choose>
							<xsl:when test="name(ancestor::sub)">baseline</xsl:when>
							<xsl:otherwise>super</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:when test="name(ancestor::sub2)">
						<xsl:choose>
							<xsl:when test="name(ancestor::sup)">baseline</xsl:when>
							<xsl:otherwise>sub</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when test="name(ancestor::sup)">super</xsl:when>
							<xsl:when test="name(ancestor::sub)">sub</xsl:when>
							<xsl:otherwise>baseline</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:attribute>
			<xsl:apply-templates></xsl:apply-templates>      
		</fo:inline>
	</xsl:template>   
</xsl:stylesheet>