<?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:fox="http://xml.apache.org/fop/extensions" xmlns:LU="lookup-table" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<!-- 
******************************************************************************
* XSL FORMATTING STYLESHEET: REQUEST                                         *
* DTD Version       : v1.9   01-07-2017                                      *
* Stylesheet Version: v                                                      *
*		2.58                                                      			 *
*		28/02/2026                                              			 *
******************************************************************************
*  contacts:                                                                 *
*  WIPO:  Tadanori MORIGUCHI; tadanori.moriguchi@wipo.int                    *
*  Special thanks to John Dunning                                            *
******************************************************************************
	-->
	<xsl:strip-space elements="*"></xsl:strip-space>
	<xsl:preserve-space elements="invention-title"></xsl:preserve-space>
	<xsl:output method="xml" version="1.0" indent="no" encoding="UTF-8"></xsl:output>
	<!-- ****************************************************************
	*  PARAMETER original                                               *
	*  Set at run-time via XSL Processor; sets                          *
	*  'Paper Copy' or 'Original (for Submission)' in top margin        *
	********************************************************************* -->
	<xsl:param name="original"></xsl:param>
	<!-- ****************************************************************
	*  PARAMETER ia_number                                              *
	*  Set at run-time via XSL Processor; sets                          *
	*  International Application Number                                 *
	********************************************************************* -->
	<xsl:param name="ia_number"></xsl:param>
	<!-- ***************************************************************
    * PARAMETER: mode                                                  * 
    * Set at run time or will be read from 'dtd-version' attribute.    *
    * specifies modal templates to use for different DTD versions      *
    ******************************************************************** -->
	<xsl:param name="mode">
		<xsl:if test="//request/@dtd-version">
			<xsl:value-of select="concat('v',//request/@dtd-version)"></xsl:value-of>
		</xsl:if>
	</xsl:param>
	<!-- ****************************************************************
	*  PARAMETER physical_media                                         *
	*  Set at run-time via XSL Processor; sets                          *
	*  renders type of physical media used for Box IX-17                *
	********************************************************************* -->
	<xsl:param name="physical_media">
		<xsl:choose>
			<xsl:when test="$lang='en'">PCT-SAFE Physical Media</xsl:when>
			<xsl:when test="$lang='ja' and contains($software_name,'SAFE')">PCT-SAFE 物理媒体</xsl:when>
			<xsl:when test="$lang='ja' and contains($software_name,'JPO')">JPO-PAS 物理媒体</xsl:when>
			<xsl:otherwise>PCT-SAFE Physical Media</xsl:otherwise>
		</xsl:choose>
	</xsl:param>
	<!-- *****************************************************************
     * PARAMETER page_size                                               *
     *  VALUES :  (a4 | A4 ) | (Letter | letter)                         *
     *  DEFAULT:  A4                                                     *
     *  Set at run-time via XSL Processor; calculates margins, page size *
     *  based on page size                                               *
     ********************************************************************* -->
	<xsl:param name="page_size" select="A4"></xsl:param>
	<!-- *****************************************************************
     * PARAMETER: renderer                                               *
     * VALUES:    (FOP | XEP)                                            *
     * DEFAULT:    FOP                                                   *
     * sets rendering tool (XEP | FOP) for bookmark extensions           *
     ********************************************************************* -->
	<xsl:param name="renderer"></xsl:param>
	<!-- *****************************************************************
     * PARAMETER: lang                                                   *
     * sets language for boilerplate text, hyphenation                   *
     ********************************************************************* -->
	<xsl:param name="lang" select="substring(translate(//request/@lang,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),1,2)"></xsl:param>
	<!-- ****************************************************************
	*  PARAMETER fee_reduction                                          *
	*  Set at run-time via XSL Processor; sets                          *
	*  text of fee-sheet box 12-12, default "PCT-SAFE fee reduction"    *
	********************************************************************* -->
	<xsl:param name="fee_reduction">
		<xsl:choose>
			<xsl:when test="$lang='en'">PCT-SAFE fee reduction</xsl:when>
			<xsl:when test="$lang='ja'">PCT-SAFE ‚É‚æ‚é—¿‹à‚ÌŒ¸Šz</xsl:when>
			<xsl:otherwise>PCT-SAFE fee reduction</xsl:otherwise>
		</xsl:choose>
	</xsl:param>
	<!-- ********************************************************************
     * PARAMETER 'officeUse':  hides office specific data section, unless   *
     * parameter is assigned new value by the XSL processor (anything but 1)*
     * as argument at run-time                                              *
     ************************************************************************-->
	<xsl:param name="officeUse" select="0"></xsl:param>
	<!-- **********************************************************************
	 * PARAMETER 'package': if a package-data document has been created based *
	 * on package-data.dtd, search for sequence listings and/or tables and    *
     * supply that filename and path as a parameter to the XSL processor as   *
     * argument at run-time.  This param will be used on the SERVER-SIDE to   *
     * produce the various sequence/sequence table parameters listed below    *
     **************************************************************************-->
	<xsl:param name="package"></xsl:param>
	<!-- ******************************************************************
     * PARAMETER seqlist                                                  *
     *  VALUES :  (0 | 1 )                                                *
     *  DEFAULT:  0                                                       *
     *  Set at run-time via XSL Processor or by PI 'seqlist'; used on     *
     *  CLIENT-SIDE to trigger box IX-16(A) sequence listings attached as *
     * part of description                                                *
     ********************************************************************** -->
	<xsl:param name="seqlist">
		<xsl:choose>
			<xsl:when test="//processing-instruction('seqlist')">
				<xsl:value-of select="//processing-instruction('seqlist')"></xsl:value-of>
			</xsl:when>
			<xsl:when test="document($package_doc)//document-name='SEQL' or document($package_doc)//document-name='SEQLTXT'">1</xsl:when>
			<xsl:otherwise>0</xsl:otherwise>
		</xsl:choose>
	</xsl:param>
	<!--**********************************************************************
     * PARAMETER seqlist-search                                              *
     *  VALUES :  (0 | 1 )                                                   *
     *  DEFAULT:  0                                                          *
     *  Set at run-time via XSL Processor or by PI 'seqlist-search'; used on *
     *  CLIENT-SIDE to trigger box IX-16(A)(i) sequence listings attached as *
     *  part of description                                                  *
     ************************************************************************* -->
	<xsl:param name="seqlist-search">
		<xsl:choose>
			<xsl:when test="//processing-instruction('seqlist-search')">
				<xsl:value-of select="//processing-instruction('seqlist-search')"></xsl:value-of>
			</xsl:when>
			<xsl:when test="document($package_doc)//document-name='SEQL-S' or document($package_doc)//document-name='SEQLTXT-S'">1</xsl:when>
			<xsl:otherwise>0</xsl:otherwise>
		</xsl:choose>
	</xsl:param>
	<!--********************************************************************
     * PARAMETER seqtab                                                    *
     *  VALUES :  (0 | 1 )                                                 *
     *  DEFAULT:  0                                                        *
     *  Set at run-time via XSL Processor or by PI 'seqtab'; used on       *
     *  CLIENT-SIDE to trigger box IX-6b sequence listings attached as     *
     *  part of description                                                *
     *********************************************************************** -->
	<xsl:param name="seqtab">
		<xsl:choose>
			<xsl:when test="//processing-instruction('seqtab')">
				<xsl:value-of select="//processing-instruction('seqtab')"></xsl:value-of>
			</xsl:when>
			<xsl:when test="document($package_doc)//document-name='SEQLTAB' or document($package_doc)//document-name='SEQLTABXML' or document($package_doc)//document-name='SEQLTABTXT'">1</xsl:when>
			<xsl:otherwise>0</xsl:otherwise>
		</xsl:choose>
	</xsl:param>
	<!-- **********************************************************************
     * PARAMETER seqtab-search                                                *
     *  VALUES :  (0 | 1 )                                                    *
     *  DEFAULT:  0                                                           *
     *  Set at run-time via XSL Processor or by PI 'seqtab-search'; used on   *
     *  CLIENT-SIDE to trigger box IX-6b(i) sequence listings attached as     *
     *  part of description                                                   *
     ************************************************************************** -->
	<xsl:param name="seqtab-search">
		<xsl:choose>
			<xsl:when test="//processing-instruction('seqtab-search')">
				<xsl:value-of select="//processing-instruction('seqtab-search')"></xsl:value-of>
			</xsl:when>
			<xsl:when test="document($package_doc)//document-name='SEQLTAB-S' or document($package_doc)//document-name='SEQLTABXML-S' or document($package_doc)//document-name='SEQLTABTXT-S'">1</xsl:when>
			<xsl:otherwise>0</xsl:otherwise>
		</xsl:choose>
	</xsl:param>
	<!--********************************************************************************
     * PARAMETER seqlist-additional                                                    *
     *  Set at run-time via XSL Processor or by PI 'seqlist-additional'; used on       *
     *  CLIENT-SIDE to trigger box IX-16(i) sequence listings attached as additional   *
     *  item and text for box IX-6a                                                    *
     *********************************************************************************** -->
	<xsl:param name="seqlist-additional">
		<xsl:choose>
			<xsl:when test="//processing-instruction('seqlist-additional')">
				<xsl:value-of select="//processing-instruction('seqlist-additional')"></xsl:value-of>
			</xsl:when>
			<xsl:otherwise>0</xsl:otherwise>
		</xsl:choose>
	</xsl:param>
	<!-- **********************************************************************
     * PARAMETER seqtab-additional                                            *
     *  Set at run-time via XSL Processor or by PI 'seqtab-additional'; used  *
     *  on CLIENT-SIDE to trigger box IX-16(ii) sequence listing table        *
     *  attached as additional item                                           *
     ************************************************************************** -->
	<xsl:param name="seqtab-additional">
		<xsl:value-of select="//processing-instruction('seqtab-additional')"></xsl:value-of>
	</xsl:param>
	<!-- *****************************************************************************
	 * PARAMETER 'declarations': if a declarations document has been created         *
     * based on declaration.dtd, *and* if that document contains *all* declarations, *
     * supply that filename and path as a parameter to the XSL processor as argument *
     * at run-time                                                                   *
     **********************************************************************************-->
	<xsl:param name="declarations"></xsl:param>
	<!-- ************************************************************************
	 * PARAMETER 'declaration1': the XML document based on declaration.dtd that *
     * contains declaration1, <identity-of-inventor>                            *
     ****************************************************************************-->
	<xsl:param name="declaration1"></xsl:param>
	<!-- ************************************************************************
	 * PARAMETER 'declaration2': the XML document based on declaration.dtd that *
     * contains declaration2, <entitlement-to-be-granted-patent>                * 
     ****************************************************************************-->
	<xsl:param name="declaration2"></xsl:param>
	<!-- ************************************************************************
	 * PARAMETER 'declaration3': the XML document based on declaration.dtd that *
     * contains declaration3, <entitlement-to-claim-priority>                   *
     ****************************************************************************-->
	<xsl:param name="declaration3"></xsl:param>
	<!-- ************************************************************************
	 * PARAMETER 'declaration4': the XML document based on declaration.dtd that *
     *  contains declaration4, <inventorship>                                   *
     ****************************************************************************-->
	<xsl:param name="declaration4"></xsl:param>
	<!-- ************************************************************************
	 * PARAMETER 'declaration5': the XML document based on declaration.dtd that *
     * contains declaration5, <lack-of-novelty>                                 *
     ****************************************************************************-->
	<xsl:param name="declaration5"></xsl:param>
	<!-- ***********************************************************************
	 * PARAMETER 'fees': if a fee-sheet document has been created, supply that *
     * filename and path as a parameter to the XSL processor as argument       *
     * at runtime                                                              *
     ***************************************************************************-->
	<xsl:param name="fees"></xsl:param>
	<!-- ************************************************************************
	 * PARAMETER 'bio': if an indication-bio-deposit document has been created, *
     * supply that filename and path as a parameter to the XSL processor as     *
     * argument at runtime                                                      *
     ****************************************************************************-->
	<xsl:param name="bio"></xsl:param>
	<!-- **********************************************************************
	 * PARAMETER 'power': if a power-of-attorney document has been created,   *
	 * supply that filename and path as a parameter to the XSL processor as   *
	 * argument at runtime                                                    *
	 **************************************************************************-->
	<xsl:param name="power"></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>
	<!-- ************************************************************************
	 * PARAMETER 'rrri': if a RO-request-receiving-info document has been created, *
     * supply that filename and path as a parameter to the XSL processor as     *
     * argument at runtime                                                      *
     ****************************************************************************-->
	<xsl:param name="rrri"></xsl:param>
	<!-- *****************************************************************************
    * VARIABLE: EASY                                                                 * 
    * Set from $software_name.  Specifies EASY mode $software_name contains [EASY].  *
    ********************************************************************************** -->
	<xsl:variable name="EASY">
		<xsl:choose>
			<xsl:when test="contains($software_name,'EASY') or contains($software_name,'EFS-Web')">1</xsl:when>
			<xsl:otherwise></xsl:otherwise>
		</xsl:choose>
	</xsl:variable>
	<!-- *****************************************************************************
    * VARIABLE: EFSWEB                                                                 * 
    * Set from $software_name.  Specifies EASY/EFS-Web mode $software_name contains [EFS-Web].  *
    ********************************************************************************** -->
	<xsl:variable name="EFSWEB">
		<xsl:choose>
			<xsl:when test="contains($software_name,'EFS-Web')">1</xsl:when>
			<xsl:otherwise></xsl:otherwise>
		</xsl:choose>
	</xsl:variable>
	<!-- VARIABLE 'request_doc': used in fee-sheet components; declared here to prevent error -->
	<xsl:variable name="request_doc"></xsl:variable>
	<!-- VARIABLE 'package_doc': adds 'file:/' to path of 'package' parameter 
     (if necessary), if supplied as prior argument.  -->
	<xsl:variable name="package_doc">
		<xsl:if test="$package!= ''">
			<xsl:choose>
				<xsl:when test="contains($package,':')">
					<xsl:choose>
						<xsl:when test="contains($package,'file:/')">
							<xsl:value-of select="$package"></xsl:value-of>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="concat('file:/',$package)"></xsl:value-of>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$package"></xsl:value-of>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:if>
	</xsl:variable>
	<!-- VARIABLE 'dec_doc': adds 'file:/' to path of 'declarations' parameter 
     (if necessary), if supplied as prior argument.  -->
	<xsl:variable name="dec_doc">
		<xsl:if test="$declarations != ''">
			<xsl:choose>
				<xsl:when test="contains($declarations,':')">
					<xsl:choose>
						<xsl:when test="contains($declarations,'file:/')">
							<xsl:value-of select="$declarations"></xsl:value-of>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="concat('file:/',$declarations)"></xsl:value-of>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$declarations"></xsl:value-of>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:if>
	</xsl:variable>
	<!-- VARIABLE 'dec1_doc': adds 'file:/' to path of 'declaration1' parameter 
     (if necessary), if supplied as prior argument.  -->
	<xsl:variable name="dec1_doc">
		<xsl:if test="$declaration1 != ''">
			<xsl:choose>
				<xsl:when test="contains($declaration1,':')">
					<xsl:choose>
						<xsl:when test="contains($declaration1,'file:/')">
							<xsl:value-of select="$declaration1"></xsl:value-of>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="concat('file:/',$declaration1)"></xsl:value-of>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$declaration1"></xsl:value-of>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:if>
	</xsl:variable>
	<!-- VARIABLE 'dec2_doc': adds 'file:/' to path of 'declaration2' parameter 
     (if necessary), if supplied as prior argument.  -->
	<xsl:variable name="dec2_doc">
		<xsl:if test="$declaration2 != ''">
			<xsl:choose>
				<xsl:when test="contains($declaration2,':')">
					<xsl:choose>
						<xsl:when test="contains($declaration2,'file:/')">
							<xsl:value-of select="$declaration2"></xsl:value-of>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="concat('file:/',$declaration2)"></xsl:value-of>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$declaration2"></xsl:value-of>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:if>
	</xsl:variable>
	<!-- VARIABLE 'dec3_doc': adds 'file:/' to path of 'declaration3' parameter 
     (if necessary), if supplied as prior argument.  -->
	<xsl:variable name="dec3_doc">
		<xsl:if test="$declaration3 != ''">
			<xsl:choose>
				<xsl:when test="contains($declaration3,':')">
					<xsl:choose>
						<xsl:when test="contains($declaration3,'file:/')">
							<xsl:value-of select="$declaration3"></xsl:value-of>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="concat('file:/',$declaration3)"></xsl:value-of>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$declaration3"></xsl:value-of>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:if>
	</xsl:variable>
	<!-- VARIABLE 'dec4_doc': adds 'file:/' to path of 'declaration4' parameter 
     (if necessary), if supplied as prior argument.  -->
	<xsl:variable name="dec4_doc">
		<xsl:if test="$declaration4 != ''">
			<xsl:choose>
				<xsl:when test="contains($declaration4,':')">
					<xsl:choose>
						<xsl:when test="contains($declaration4,'file:/')">
							<xsl:value-of select="$declaration4"></xsl:value-of>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="concat('file:/',$declaration4)"></xsl:value-of>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$declaration4"></xsl:value-of>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:if>
	</xsl:variable>
	<!-- VARIABLE 'dec5_doc': adds 'file:/' to path of 'declaration5' parameter 
     (if necessary), if supplied as prior argument.  -->
	<xsl:variable name="dec5_doc">
		<xsl:if test="$declaration5 != ''">
			<xsl:choose>
				<xsl:when test="contains($declaration5,':')">
					<xsl:choose>
						<xsl:when test="contains($declaration5,'file:/')">
							<xsl:value-of select="$declaration5"></xsl:value-of>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="concat('file:/',$declaration5)"></xsl:value-of>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$declaration5"></xsl:value-of>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:if>
	</xsl:variable>
	<!-- VARIABLE 'fee_doc'" adds 'file:/' to path of 'fees' parameter (if necessary)
     if supplied as argument -->
	<xsl:variable name="fee_doc">
		<xsl:if test="$fees != ''">
			<xsl:choose>
				<xsl:when test="contains($fees,':')">
					<xsl:choose>
						<xsl:when test="contains($fees,'file:')">
							<xsl:value-of select="$fees"></xsl:value-of>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="concat('file:///',$fees)"></xsl:value-of>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$fees"></xsl:value-of>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:if>
	</xsl:variable>
	<!-- VARIABLE 'bio_doc'" adds 'file:/' to path of 'bio' parameter (if necessary)
     if supplied as argument -->
	<xsl:variable name="bio_doc">
		<xsl:if test="$bio != ''">
			<xsl:choose>
				<xsl:when test="contains($bio,':')">
					<xsl:choose>
						<xsl:when test="contains($bio,'file:')">
							<xsl:value-of select="$bio"></xsl:value-of>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="concat('file:///',$bio)"></xsl:value-of>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$bio"></xsl:value-of>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:if>
	</xsl:variable>
	<!-- VARIABLE 'power_doc'" adds 'file:/' to path of 'power' parameter (if necessary)
     if supplied as argument -->
	<xsl:variable name="power_doc">
		<xsl:if test="$power != ''">
			<xsl:choose>
				<xsl:when test="contains($power,':')">
					<xsl:choose>
						<xsl:when test="contains($power,'file:')">
							<xsl:value-of select="$power"></xsl:value-of>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="concat('file:///',$power)"></xsl:value-of>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$power"></xsl:value-of>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:if>
	</xsl:variable>
	<!-- VARIABLE 'rrri_doc'" adds 'file:/' to path of 'rrri' parameter (if necessary)
     if supplied as argument -->
	<xsl:variable name="rrri_doc">
		<xsl:if test="$rrri != ''">
			<xsl:choose>
				<xsl:when test="contains($rrri,':')">
					<xsl:choose>
						<xsl:when test="contains($rrri,'file:')">
							<xsl:value-of select="$rrri"></xsl:value-of>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="concat('file:///',$rrri)"></xsl:value-of>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$rrri"></xsl:value-of>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:if>
	</xsl:variable>
	<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>
	<!-- 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>
				<!-- NOTE: setting margin-bottom to '5cm' in attempt to emulate PCT-EASY output -->
				<fo:simple-page-master master-name="page" page-width="{$page_width}mm" page-height="{$page_height}mm" margin-top="1.5cm" margin-bottom="5cm" margin-left="2cm" margin-right="2.3cm">
					<fo:region-body margin-bottom="0mm" margin-right="0mm" margin-left="0mm" margin-top="19mm"></fo:region-body>
					<fo:region-before extent="2.5cm"></fo:region-before>
				</fo:simple-page-master>
				<fo:simple-page-master master-name="fees" page-width="{$page_width}mm" page-height="{$page_height}mm" margin-top="1.5cm" margin-bottom="5cm" margin-left="2cm" margin-right="2.3cm">
					<fo:region-body margin-bottom="0mm" margin-right="0mm" margin-left="0mm" margin-top="23mm"></fo:region-body>
					<fo:region-before extent="2.5cm"></fo:region-before>
				</fo:simple-page-master>
				<fo:simple-page-master master-name="bio" 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="23mm"></fo:region-body>
					<fo:region-before extent="2.5cm"></fo:region-before>
				</fo:simple-page-master>
				<fo:simple-page-master master-name="power" 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="23mm"></fo:region-body>
					<fo:region-before extent="2.5cm"></fo:region-before>
				</fo:simple-page-master>
				<fo:page-sequence-master master-name="request">
					<fo:repeatable-page-master-reference master-reference="page"></fo:repeatable-page-master-reference>
				</fo:page-sequence-master>
				<fo:page-sequence-master master-name="fee-sheet">
					<fo:repeatable-page-master-reference master-reference="fees"></fo:repeatable-page-master-reference>
				</fo:page-sequence-master>
				<fo:page-sequence-master master-name="power-of-attorney">
					<fo:repeatable-page-master-reference master-reference="power"></fo:repeatable-page-master-reference>
				</fo:page-sequence-master>
				<fo:page-sequence-master master-name="bio-deposit">
					<fo:repeatable-page-master-reference master-reference="bio"></fo:repeatable-page-master-reference>
				</fo:page-sequence-master>
			</fo:layout-master-set>
			<xsl:if test="$renderer='FOP'">
				<fox:outline internal-destination="requestSec">
					<fox:label>Request</fox:label>
				</fox:outline>
				<xsl:if test="$declarations != '' or $declaration1 != '' or $declaration2 != '' or $declaration3 != '' or $declaration4 != '' or $declaration5 != ''">
					<fox:outline internal-destination="declarationSec">
						<fox:label>Declarations</fox:label>
					</fox:outline>
				</xsl:if>
				<xsl:if test="$fees != ''">
					<fox:outline internal-destination="feeSec">
						<fox:label>Fees</fox:label>
					</fox:outline>
				</xsl:if>
				<xsl:if test="$power != ''">
					<fox:outline internal-destination="powerSec">
						<fox:label>Power of Attorney</fox:label>
					</fox:outline>
				</xsl:if>
				<xsl:if test="$bio != ''">
					<fox:outline internal-destination="bioSec">
						<fox:label>Biological Deposit</fox:label>
					</fox:outline>
				</xsl:if>
			</xsl:if>
			<xsl:variable name="avail_width">
				<xsl:value-of select="$page_width - 50"></xsl:value-of>
			</xsl:variable>
			<fo:page-sequence master-reference="request" initial-page-number="1" force-page-count="no-force">
				<fo:static-content flow-name="xsl-region-before">
					<fo:block 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="10pt" text-align="right">
											<fo:inline font-weight="bold">
												<xsl:value-of select="$ia_number"></xsl:value-of>
											</fo:inline>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
							</fo:table-body>
						</fo:table>
						<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></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-body>
						</fo:table>
						<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 number-columns-spanned="2">
										<fo:block text-align="left" font-size="10pt" color="black" background-color="white">
											<fo:inline font-weight="bold">
												PCT REQUEST
											</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-body>
						</fo:table>
						<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 number-columns-spanned="3">
										<fo:block text-align="center" font-size="8pt" background-color="white">
											<xsl:choose>
												<xsl:when test="$original = '1' and $EASY = '1'">
													Original (for 
													<fo:inline font-weight="bold">
														SUBMISSION
													</fo:inline>
													<xsl:text>)</xsl:text>
												</xsl:when>
												<xsl:when test="$original = '2' and $EASY = '1'">
													Duplicate of Original
												</xsl:when>
												<xsl:when test="$EASY = '1'">
													Paper Copy 
													(NOT
													 for submission)
												</xsl:when>
												<xsl:otherwise>
													(Original in Electronic Form)
												</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">
					<fo:block xsl:use-attribute-sets="hyphenation" font-family="{$helvetica_font}">
						<xsl:attribute name="line-height"><xsl:choose><xsl:when test="$lang='ja' or $lang='ko' or $lang='zh'">1</xsl:when><xsl:otherwise>1.2</xsl:otherwise></xsl:choose></xsl:attribute>
						<xsl:attribute name="id">requestSec</xsl:attribute>
						<xsl:apply-templates select="request"></xsl:apply-templates>
					</fo:block>
					<fo:block id="endofdoc"></fo:block>
				</fo:flow>
			</fo:page-sequence>
			<!-- insert the fee-sheet pages if that parameter has been set; 
      start page numbering at '1' -->
			<xsl:if test="$fee_doc != ''">
				<fo:page-sequence master-reference="fee-sheet" initial-page-number="1" 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="10pt" text-align="right">
												<fo:inline font-weight="bold">
													<xsl:value-of select="$ia_number"></xsl:value-of>
												</fo:inline>
											</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
							<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></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="endofFeedoc"></fo:page-number-citation>
											</fo:block>
										</fo:table-cell>
										<fo:table-cell>
											<fo:block></fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
							<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 number-columns-spanned="2">
											<fo:block text-align="left" font-size="10pt" color="black" background-color="white">
												<fo:inline font-weight="bold">
													PCT (ANNEX - FEE CALCULATION SHEET)
												</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-body>
							</fo:table>
							<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 number-columns-spanned="3">
											<fo:block text-align="center" font-size="8pt" background-color="white">
												<xsl:choose>
													<xsl:when test="$original = '1' and $EASY = '1'">
														Original (for 
														<fo:inline font-weight="bold">
															SUBMISSION
														</fo:inline>
														<xsl:text>)</xsl:text>
													</xsl:when>
													<xsl:when test="$original = '2' and $EASY = '1'">
														Duplicate of Original
													</xsl:when>
													<xsl:when test="$EASY = '1'">
														Paper Copy 
														(NOT
														 for submission)
													</xsl:when>
													<xsl:otherwise>
														(Original in Electronic Form)
													</xsl:otherwise>
												</xsl:choose>
											</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
							<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 number-columns-spanned="3" text-align="center" font-size="8pt" vertical-align="top">
											<fo:block background-color="white">
												 (This sheet is not part of and does not count as a sheet of the international application) 
											</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">
						<fo:block font-family="{$helvetica_font}" xsl:use-attribute-sets="hyphenation">
							<xsl:attribute name="id">feeSec</xsl:attribute>
							<xsl:call-template name="fee_info">
								<xsl:with-param name="lang" select="$lang"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
						<fo:block id="endofFeedoc"></fo:block>
					</fo:flow>
				</fo:page-sequence>
			</xsl:if>
			<!-- insert the power-of-attorney pages if that parameter has been set; 
      start page numbering at '1' -->
			<xsl:if test="$power_doc != ''">
				<fo:page-sequence master-reference="power-of-attorney" initial-page-number="1" 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="10pt" text-align="right">
												<fo:inline font-weight="bold">
													<xsl:value-of select="$ia_number"></xsl:value-of>
												</fo:inline>
											</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
							<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></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="endofPowerdoc"></fo:page-number-citation>
											</fo:block>
										</fo:table-cell>
										<fo:table-cell>
											<fo:block></fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
							<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 number-columns-spanned="2">
											<fo:block text-align="left" font-size="10pt" color="black" background-color="white">
												<fo:inline font-weight="bold">
													PCT POWER OF ATTORNEY 
												</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-body>
							</fo:table>
							<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 number-columns-spanned="3">
											<fo:block text-align="center" font-size="8pt" background-color="white">
												<xsl:choose>
													<xsl:when test="$original = '1' and $EASY = '1'">
														Original (for 
														<fo:inline font-weight="bold">
															SUBMISSION
														</fo:inline>
														<xsl:text>)</xsl:text>
													</xsl:when>
													<xsl:when test="$original = '2' and $EASY = '1'">
														Duplicate of Original
													</xsl:when>
													<xsl:when test="$EASY = '1'">
														<fo:block></fo:block>
													</xsl:when>
													<xsl:otherwise>
														(Original in Electronic Form)
													</xsl:otherwise>
												</xsl:choose>
											</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
							<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 number-columns-spanned="3" text-align="center" font-size="8pt" vertical-align="top">
											<fo:block background-color="white">
												 (This sheet is not part of and does not count as a sheet of the international application) 
											</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">
						<fo:block font-family="{$helvetica_font}" xsl:use-attribute-sets="hyphenation">
							<xsl:attribute name="id">powerSec</xsl:attribute>
							<xsl:call-template name="power_of_attorney">
								<xsl:with-param name="lang" select="$lang"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
						<fo:block id="endofPowerdoc"></fo:block>
					</fo:flow>
				</fo:page-sequence>
			</xsl:if>
			<!-- insert the bio-deposit pages if that parameter has been set; 
      start page numbering at '1' -->
			<xsl:if test="$bio_doc != ''">
				<fo:page-sequence master-reference="bio-deposit" initial-page-number="1" 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="10pt" text-align="right">
												<fo:inline font-weight="bold">
													<xsl:value-of select="$ia_number"></xsl:value-of>
												</fo:inline>
											</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
							<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></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="endofBiodoc"></fo:page-number-citation>
											</fo:block>
										</fo:table-cell>
										<fo:table-cell>
											<fo:block></fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
							<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 number-columns-spanned="2">
											<fo:block text-align="left" font-size="10pt" color="black" background-color="white">
												<fo:inline font-weight="bold">
													PCT
												</fo:inline>
											</fo:block>
										</fo:table-cell>
										<fo:table-cell>
											<fo:block text-align="right" font-size="8pt" background-color="white"></fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
							<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 number-columns-spanned="3">
											<fo:block text-align="center" font-size="8pt" background-color="white">
												<xsl:choose>
													<xsl:when test="$original = '1' and $EASY = '1'">
														Original (for 
														<fo:inline font-weight="bold">
															SUBMISSION
														</fo:inline>
														<xsl:text>)</xsl:text>
													</xsl:when>
													<xsl:when test="$original = '2' and $EASY = '1'">
														Duplicate of Original
													</xsl:when>
													<xsl:when test="$EASY = '1'">
														Paper Copy 
														(NOT
														 for submission)
													</xsl:when>
													<xsl:otherwise>
														(Original in Electronic Form)
													</xsl:otherwise>
												</xsl:choose>
											</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
							<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 number-columns-spanned="3" text-align="center" font-size="8pt" vertical-align="top">
											<fo:block background-color="white">
												 (This sheet is not part of and does not count as a sheet of the international application) 
											</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">
						<fo:block font-family="{$helvetica_font}" xsl:use-attribute-sets="hyphenation">
							<xsl:attribute name="id">bioSec</xsl:attribute>
							<xsl:call-template name="indication_bio_deposit">
								<xsl:with-param name="lang" select="$lang"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
						<fo:block id="endofBiodoc"></fo:block>
					</fo:flow>
				</fo:page-sequence>
			</xsl:if>
		</fo:root>
	</xsl:template>
	<!-- INCLUDE COMPONENT TEMPLATES -->
	<xsl:template name="caseCH">   
		<xsl:choose>   
			<xsl:when test="text()='ch' or text() = 'CH'">  
				<xsl:text>CH&amp;LI</xsl:text>  
				<xsl:if test="following-sibling::*[1][name()='country']">
					<xsl:text> 
					</xsl:text>  
				</xsl:if>   
			</xsl:when>   
			<xsl:when test="text() = 'li' or text() = 'LI'"></xsl:when>   
			<xsl:otherwise>  
				<xsl:value-of select="translate(.,'abdefghijklmnopqrstuvwxyz','ABDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:value-of>  
				<xsl:if test="following-sibling::*[1][name()='country'] or following-sibling::*[1][name()='protection-request']">
					<xsl:text> 
					</xsl:text>  
				</xsl:if>   
			</xsl:otherwise>   
		</xsl:choose>  
	</xsl:template>
	<xsl:template name="format_name">      
		<xsl:param name="name_arg"></xsl:param>      
		<xsl:param name="showOf">0</xsl:param>      
		<!-- TODO: add prefix?  See EASY data and add accordingly -->
		      
		<xsl:choose>         
			<xsl:when test="$name_arg/name">
				<xsl:value-of select="$name_arg/name"></xsl:value-of>           
				<xsl:if test="$showOf='1'"> 
					 of            
				</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'">            		 
					 of            
				</xsl:if>
			</xsl:when>         
			<xsl:otherwise>             
				<xsl:value-of select="."></xsl:value-of>         
			</xsl:otherwise>                  
		</xsl:choose>   
	</xsl:template>
	<xsl:template name="inventorName">
		<xsl:param name="name"></xsl:param>
		<xsl:for-each select="//deceased-inventor">
			<xsl:choose>
				<xsl:when test="./name = $name">
					<xsl:value-of select="preceding-sibling::deceased-inventor[1]/name"></xsl:value-of>				
				</xsl:when>
				<xsl:when test="concat(./last-name,' ',./first-name) = $name">
					<xsl:value-of select="preceding-sibling::deceased-inventor[1]/last-name"></xsl:value-of>
					<xsl:text> </xsl:text>
					<xsl:value-of select="preceding-sibling::deceased-inventor[1]/first-name"></xsl:value-of>
				</xsl:when>
				<xsl:when test="concat(./last-name,', ',./first-name) = $name">
					<xsl:value-of select="preceding-sibling::deceased-inventor[1]/last-name"></xsl:value-of>
					<xsl:text>, </xsl:text>
					<xsl:value-of select="preceding-sibling::deceased-inventor[1]/first-name"></xsl:value-of>				
				</xsl:when>
			</xsl:choose>
		</xsl:for-each>
	</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="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'">
								 January    
							</xsl:when>   
							<xsl:when test="$m='02'"> 
								 February    
							</xsl:when>   
							<xsl:when test="$m='03'"> 
								 March    
							</xsl:when>   
							<xsl:when test="$m='04'"> 
								 April    
							</xsl:when>   
							<xsl:when test="$m='05'"> 
								 May    
							</xsl:when>   
							<xsl:when test="$m='06'"> 
								 June    
							</xsl:when>   
							<xsl:when test="$m='07'"> 
								 July    
							</xsl:when>   
							<xsl:when test="$m='08'"> 
								 August    
							</xsl:when>   
							<xsl:when test="$m='09'"> 
								 September    
							</xsl:when>   
							<xsl:when test="$m='10'"> 
								 October    
							</xsl:when>   
							<xsl:when test="$m='11'"> 
								 November    
							</xsl:when>   
							<xsl:when test="$m='12'"> 
								 December    
							</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'">
								 January    
							</xsl:when>   
							<xsl:when test="$m='02'"> 
								 February    
							</xsl:when>   
							<xsl:when test="$m='03'"> 
								 March    
							</xsl:when>   
							<xsl:when test="$m='04'"> 
								 April    
							</xsl:when>   
							<xsl:when test="$m='05'"> 
								 May    
							</xsl:when>   
							<xsl:when test="$m = '06'"> 
								 June    
							</xsl:when>   
							<xsl:when test="$m='07'"> 
								 July    
							</xsl:when>   
							<xsl:when test="$m='08'"> 
								 August    
							</xsl:when>   
							<xsl:when test="$m='09'"> 
								 September    
							</xsl:when>   
							<xsl:when test="$m='10'"> 
								 October    
							</xsl:when>   
							<xsl:when test="$m='11'"> 
								 November    
							</xsl:when>   
							<xsl:when test="$m='12'"> 
								 December    
							</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'"> 
								 January    
							</xsl:when>   
							<xsl:when test="$m='02'"> 
								 February    
							</xsl:when>   
							<xsl:when test="$m='03'"> 
								 March    
							</xsl:when>   
							<xsl:when test="$m='04'"> 
								 April    
							</xsl:when>   
							<xsl:when test="$m='05'"> 
								 May    
							</xsl:when>   
							<xsl:when test="$m = '06'"> 
								 June    
							</xsl:when>   
							<xsl:when test="$m='07'"> 
								 July    
							</xsl:when>   
							<xsl:when test="$m='08'"> 
								 August    
							</xsl:when>   
							<xsl:when test="$m='09'"> 
								 September    
							</xsl:when>   
							<xsl:when test="$m='10'"> 
								 October    
							</xsl:when>   
							<xsl:when test="$m='11'"> 
								 November    
							</xsl:when>   
							<xsl:when test="$m='12'"> 
								 December    
							</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="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="get_size">
      <xsl:param name="size_in"></xsl:param>
    <!-- NOTE: assumes screen resolution of 96 DPI (small icons) -->
        <!-- strip any units from attributes for mathematical operations to follow -->
      <xsl:variable name="unit" select="normalize-space(translate($size_in,'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',''))"></xsl:variable>
      <xsl:variable name="nSize" select="translate($size_in,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:variable>
      <xsl:variable name="size_out">
         <xsl:choose>
            <!-- if measured in milimeters -->
            <xsl:when test="contains($nSize,'MM')">
               <xsl:value-of select="round(number($unit) div 25.4 * 96)"></xsl:value-of>
            </xsl:when>
            <!-- if measured in centimeters -->
            <xsl:when test="contains($nSize,'CM')">
               <xsl:value-of select="round(number($unit) div 2.54 * 96)"></xsl:value-of>
            </xsl:when>
            <!-- if measured in inches -->
            <xsl:when test="contains($nSize,'IN')">
               <xsl:value-of select="round(number($unit) * 96)"></xsl:value-of>
            </xsl:when>
            <!-- if measured in pixels; NOTE: assumes 300 dpi scan -->
            <xsl:when test="contains($nSize,'PX')">
               <xsl:value-of select="round(number($unit) div 300 * 96)"></xsl:value-of>
            </xsl:when>
            <!-- use mm as default -->
            <xsl:otherwise>
               <xsl:value-of select="round(number($unit) div 25.4 * 96)"></xsl:value-of>
            </xsl:otherwise>
         </xsl:choose>
      </xsl:variable>
      <xsl:value-of select="$size_out"></xsl:value-of>
   </xsl:template>
	<xsl:template name="stripFilePath">
<xsl:param name="path"></xsl:param>
<!-- first, translate path separators to one type ('/' or '\') -->
<xsl:param name="mPath" select="translate($path,'\','/')"></xsl:param>
	<!-- reverse the string -->
	<xsl:variable name="doc">
		<xsl:call-template name="backward">
			<xsl:with-param name="text" select="$mPath"></xsl:with-param>
		</xsl:call-template>
	</xsl:variable>
	<!-- get substring-after '/'  -->
	<xsl:variable name="doc2">
		<xsl:call-template name="backward2">
			<xsl:with-param name="text" select="$doc"></xsl:with-param>
		</xsl:call-template>
	</xsl:variable>
	<xsl:value-of select="$doc2"></xsl:value-of>
</xsl:template><xsl:template name="backward">
    <xsl:param name="text"></xsl:param>
    <xsl:variable name="mirror">
      <xsl:call-template name="build-mirror">
        <xsl:with-param name="text" select="$text"></xsl:with-param>
        <xsl:with-param name="position" select="string-length($text)"></xsl:with-param>
      </xsl:call-template>
    </xsl:variable>
    <!-- returns filename in reverse (e.g., 'lmx.teehs-eef') -->
	<xsl:value-of select="substring-before(substring($mirror, string-length($text) + 1, string-length($text)),'/')"></xsl:value-of>
</xsl:template><xsl:template name="backward2">
    <xsl:param name="text"></xsl:param>
    <xsl:variable name="mirror">
      <xsl:call-template name="build-mirror">
        <xsl:with-param name="text" select="$text"></xsl:with-param>
        <xsl:with-param name="position" select="string-length($text)"></xsl:with-param>
      </xsl:call-template>
    </xsl:variable>
    <!-- returns filename (e.g.,'fee-sheet.xml') -->
	<xsl:value-of select="substring($mirror, string-length($text) + 1, string-length($text))"></xsl:value-of>
</xsl:template><xsl:template name="build-mirror">
    <xsl:param name="text"></xsl:param>
    <xsl:param name="position"></xsl:param>

    <xsl:choose>
      <xsl:when test="$position &gt; 0">
        <xsl:call-template name="build-mirror">
          <xsl:with-param name="text" select="concat($text, substring($text, $position, 1))"></xsl:with-param>
          <xsl:with-param name="position" select="$position - 1"></xsl:with-param>
        </xsl:call-template>
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$text"></xsl:value-of>
      </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:variable name="adjustedFontSize">10pt</xsl:variable><xsl:attribute-set name="tdTL">
		<!-- 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">
		<!-- 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">
		<!-- 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">
		<!-- 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">
		<!-- 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">
		<!-- 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">
		<!-- 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">
		<!-- 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">
		<!-- 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">
		<!-- 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">
		<!-- 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">
		<!-- 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">
		<!-- 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">
		<!-- 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">
		<!-- table cell, top border -->
		<xsl:attribute name="border-top">solid black 0.5pt</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdBorderBottom">
		<!-- table cell, bottom border -->
		<xsl:attribute name="border-bottom">solid black 0.5pt</xsl:attribute>
	</xsl:attribute-set><xsl:attribute-set name="tdBorderBottomLeft">
		<!-- 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">
		<!-- 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">
		<!-- 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">
		<!-- 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">
		<!-- 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">
		<!-- 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">
		<!-- 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">
		<!-- 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">
		<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">
		<!-- table cell, top left -->
		<xsl:attribute name="border-top">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="border-left">solid black 0.5pt</xsl:attribute>
		<xsl:attribute name="font-size">8pt</xsl:attribute>
		<xsl:attribute name="vertical-align">top</xsl:attribute> 
		<xsl:attribute name="padding">1pt</xsl:attribute>
	</xsl:attribute-set>
	<xsl:template name="process_dec1">
		<xsl:for-each select=".">
			<xsl:variable name="inv_seq" select="@sequence"></xsl:variable>
			<fo:table table-layout="fixed" border-collapse="separate">
				<fo:table-column column-width="12mm"></fo:table-column>
				<fo:table-column column-width="53mm"></fo:table-column>
				<fo:table-column column-width="105mm"></fo:table-column>
				<fo:table-body>
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdTL">
							<fo:block>
								<fo:inline font-weight="bold">VIII-1-<xsl:value-of select="$inv_seq"></xsl:value-of>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<fo:block>
								<fo:inline font-weight="bold">
									Declaration: Identity of the Inventor
								</fo:inline>
								<fo:block></fo:block>
								Declaration as to the identity of the inventor (Rules 4.17(i) and 51bis.1(a)(i))
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR">
							<fo:block padding-before="4mm">
								<fo:inline font-weight="bold">
									In relation to 
									<xsl:choose>
										<xsl:when test=".//application-reference">
											<xsl:if test="not($lang='ja')">
												the international application No.
											</xsl:if>
											<xsl:value-of select=".//country"></xsl:value-of>
											<xsl:text> </xsl:text>
											<xsl:value-of select=".//doc-number"></xsl:value-of>
											<xsl:if test="$lang='ja'">
												the international application No.
											</xsl:if>
										</xsl:when>
										<xsl:otherwise>
											this international application
										</xsl:otherwise>
									</xsl:choose>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<xsl:choose>
						<xsl:when test="not($lang='ja' or $lang='ko' or $lang='zh' or $lang='ru' or $lang='ar')">
							<xsl:for-each select=".//addressbook[*]">
								<fo:table-row>
									<fo:table-cell xsl:use-attribute-sets="tdBorderTop">
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdTC">
										<fo:block>
											<xsl:choose>
												<xsl:when test="$lang='ja'">
													<xsl:if test=".//address//text()">
														Address
													</xsl:if>
												</xsl:when>
												<xsl:otherwise>
													<xsl:call-template name="nameType">
														<xsl:with-param name="nam" select="./addressbook"></xsl:with-param>
													</xsl:call-template>
												</xsl:otherwise>
											</xsl:choose>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdTR">
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														<xsl:if test="./address//text()">
															<fo:block>
																<xsl:value-of select=".//postcode"></xsl:value-of>
															</fo:block>
															<fo:block>
																<xsl:call-template name="country_ChoiceText">
																	<xsl:with-param name="country" select=".//country"></xsl:with-param>
																</xsl:call-template>
															</fo:block>
															<xsl:choose>
																<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																	<fo:block white-space="pre" wrap-option="wrap">
																		<xsl:value-of select=".//state"></xsl:value-of>
																		<xsl:value-of select=".//city"></xsl:value-of>
																		<xsl:value-of select=".//street"></xsl:value-of>
																		<xsl:value-of select=".//address-1"></xsl:value-of>
																		<xsl:if test=".//address-2">
																			<fo:block white-space="pre" wrap-option="wrap">
																				<xsl:value-of select=".//address-2"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																		<xsl:if test=".//address-3">
																			<fo:block white-space="pre" wrap-option="wrap">
																				<xsl:value-of select=".//address-3"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																	</fo:block>
																</xsl:when>
																<xsl:otherwise>
																	<fo:block white-space-collapse="false" wrap-option="wrap">
																		<xsl:value-of select=".//state"></xsl:value-of>
																		<xsl:value-of select=".//city"></xsl:value-of>
																		<xsl:value-of select=".//street"></xsl:value-of>
																		<xsl:value-of select=".//address-1"></xsl:value-of>
																		<xsl:if test=".//address-2">
																			<fo:block white-space-collapse="false" wrap-option="wrap">
																				<xsl:value-of select=".//address-2"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																		<xsl:if test=".//address-3">
																			<fo:block white-space-collapse="false" wrap-option="wrap">
																				<xsl:value-of select=".//address-3"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																	</fo:block>
																</xsl:otherwise>
															</xsl:choose>
															<fo:block></fo:block>
															<xsl:text>在住の</xsl:text>
														</xsl:if>
													</xsl:when>
													<xsl:when test="$lang='zh'">
														<xsl:call-template name="format_name">
															<xsl:with-param name="name_arg" select="."></xsl:with-param>
														</xsl:call-template>
														<xsl:if test="./address//text()">
															<xsl:text> 住在</xsl:text>
														</xsl:if>
													</xsl:when>
													<xsl:when test="$lang='fr' or $lang='ru' or $lang='ko' or $lang='pt'">
														<xsl:call-template name="format_name">
															<xsl:with-param name="name_arg" select="."></xsl:with-param>
														</xsl:call-template>
													</xsl:when>
													<xsl:otherwise>
														<xsl:choose>
															<xsl:when test="./address//text()">
																<xsl:choose>
																	<xsl:when test="$lang = 'de'">
																		<xsl:call-template name="format_name">
																			<xsl:with-param name="name_arg" select="."></xsl:with-param>
																			<xsl:with-param name="showOf" select="1"></xsl:with-param>
																		</xsl:call-template>
																	</xsl:when>
																	<xsl:otherwise>
																		<xsl:call-template name="format_name">
																			<xsl:with-param name="name_arg" select="."></xsl:with-param>
																			<xsl:with-param name="showOf" select="1"></xsl:with-param>
																		</xsl:call-template>
																	</xsl:otherwise>
																</xsl:choose>
															</xsl:when>
															<xsl:otherwise>
																<xsl:call-template name="format_name">
																	<xsl:with-param name="name_arg" select="."></xsl:with-param>
																</xsl:call-template>
															</xsl:otherwise>
														</xsl:choose>
													</xsl:otherwise>
												</xsl:choose>
											</fo:inline>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
								<fo:table-row>
									<fo:table-cell>
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdC">
										<fo:block>
											<xsl:choose>
												<xsl:when test="$lang='ja'">
													<xsl:call-template name="nameType">
														<xsl:with-param name="nam" select="./addressbook"></xsl:with-param>
													</xsl:call-template>
												</xsl:when>
												<xsl:otherwise>
													<xsl:if test=".//address//text()">
														Address
													</xsl:if>
												</xsl:otherwise>
											</xsl:choose>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdR">
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														<xsl:call-template name="format_name">
															<xsl:with-param name="name_arg" select="."></xsl:with-param>
														</xsl:call-template>
														<fo:block></fo:block>
													</xsl:when>
													<xsl:otherwise>
														<xsl:if test="./address//text()">
															<xsl:choose>
																<xsl:when test=".//address/country='US' or .//address/country='CA'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:when test="$lang='zh'">
																			<!-- US and CA address in Chinese Request Case-->
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select=".//state"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//city"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//street"></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">
																						<xsl:value-of select=".//state"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//city"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//street"></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*">
																				<xsl:choose>
																					<xsl:when test="name(.)='city'">
																						<xsl:value-of select="."></xsl:value-of>
																						<xsl:text>, </xsl:text>
																					</xsl:when>
																					<xsl:when test="name(.)='state'">
																						<xsl:value-of select="."></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</xsl:when>
																					<xsl:when test="name(.)='postcode'">
																						<xsl:value-of select="."></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</xsl:when>
																					<xsl:when test="name(.)='country'">
																						<fo:block>
																							<xsl:call-template name="country_ChoiceText">
																								<xsl:with-param name="country" select="."></xsl:with-param>
																							</xsl:call-template>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<xsl:choose>
																							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																								<fo:block white-space="pre" wrap-option="wrap">
																									<xsl:value-of select="."></xsl:value-of>
																								</fo:block>
																							</xsl:when>
																							<xsl:otherwise>
																								<fo:block white-space-collapse="false" wrap-option="wrap">
																									<xsl:value-of select="."></xsl:value-of>
																								</fo:block>
																							</xsl:otherwise>
																						</xsl:choose>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='DE'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]">
																				<fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select="."></xsl:value-of>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">
																								<xsl:value-of select="."></xsl:value-of>
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																				</fo:block>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//address/city"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<!-- TODO: determine JA markup -->
																<xsl:when test=".//address/country='JP'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:when test="(.//address/state) or (.//address/city) or (.//address/street)">
																			<!-- Japanese address in Korean or Chinese Request Case-->
																			<xsl:choose>
																				<xsl:when test="$lang='ko'">
																					<fo:block>
																						<xsl:call-template name="country_ChoiceText">
																							<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																						</xsl:call-template>
																					</fo:block>
																					<fo:block>
																						<xsl:value-of select=".//postcode"></xsl:value-of>
																					</fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"></xsl:value-of>
																								<xsl:if test=".//address-2">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-2"></xsl:value-of>
																								</xsl:if>
																								<xsl:if test=".//address-3">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-3"></xsl:value-of>
																								</xsl:if>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"></xsl:value-of>
																								<xsl:if test=".//address-2">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-2"></xsl:value-of>
																								</xsl:if>
																								<xsl:if test=".//address-3">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-3"></xsl:value-of>
																								</xsl:if>
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block>
																						<xsl:call-template name="country_ChoiceText">
																							<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																						</xsl:call-template>
																					</fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																					<fo:block>
																						<xsl:value-of select=".//postcode"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select=".//address-1"></xsl:value-of>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">
																						<xsl:value-of select=".//address-1"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='GB'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*">
																				<xsl:choose>
																					<xsl:when test="name(.)='postcode'">
																						<xsl:value-of select="."></xsl:value-of>
																					</xsl:when>
																					<xsl:when test="name(.)='city'">
																						<xsl:value-of select="."></xsl:value-of>
																					</xsl:when>
																					<xsl:when test="name(.)='country'">
																						<fo:block>
																							<xsl:call-template name="country_ChoiceText">
																								<xsl:with-param name="country" select="."></xsl:with-param>
																							</xsl:call-template>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<xsl:choose>
																							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																								<fo:block white-space="pre" wrap-option="wrap">
																									<xsl:value-of select="."></xsl:value-of>
																								</fo:block>
																							</xsl:when>
																							<xsl:otherwise>
																								<fo:block white-space-collapse="false" wrap-option="wrap">
																									<xsl:value-of select="."></xsl:value-of>
																								</fo:block>
																							</xsl:otherwise>
																						</xsl:choose>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='KR'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select=".//state"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//city"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//street"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//address-1"></xsl:value-of>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">
																						<xsl:value-of select=".//state"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//city"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//street"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//address-1"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='CN' or .//address/country='TW'">			
																	<xsl:choose>			
																		<xsl:when test=".//text">		
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>		
																		<xsl:when test="$lang='zh'"> <!-- for when the stylesheet does not use "showZhAddress" for Chinese address -->
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">	
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																				<xsl:value-of select=".//address/state"></xsl:value-of>
																					<xsl:value-of select=".//address/city"></xsl:value-of>
																			</fo:block>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select=".//address/street"></xsl:value-of>
																						<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						<xsl:value-of select=".//address/address-3"></xsl:value-of>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">															
																						<xsl:value-of select=".//address/street"></xsl:value-of>
																						<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						<xsl:value-of select=".//address/address-3"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																			</fo:block>					
																		</xsl:when>		
																		<xsl:otherwise>		
																			<xsl:for-each select=".//address/*[not(name(.)='street' or name(.)='city' or name(.)='state' or name(.)='postcode' or name(.)='country')]"> 	
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">															
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>		
																			<xsl:if test=".//address/street">
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select=".//address/street"></xsl:value-of>	
																							<xsl:text> </xsl:text>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">															
																							<xsl:value-of select=".//address/street"></xsl:value-of>	
																							<xsl:text> </xsl:text>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:if>
																			<xsl:choose>
																				<xsl:when test=".//address/city">
																					<fo:block>		
																						<xsl:value-of select=".//address/city"></xsl:value-of>
																						<xsl:text>, </xsl:text>	
																						<xsl:value-of select=".//address/state"></xsl:value-of>	
																						<xsl:text> </xsl:text>	
																						<xsl:value-of select=".//address/postcode"></xsl:value-of>	
																					</fo:block>		
																				</xsl:when>
																				<xsl:otherwise>		
																					<fo:block>		
																						<xsl:value-of select=".//address/state"></xsl:value-of>	
																						<xsl:text> </xsl:text>	
																						<xsl:value-of select=".//address/postcode"></xsl:value-of>	
																					</fo:block>		
																				</xsl:otherwise>			
																			</xsl:choose>
																			<fo:block>		
																				<xsl:call-template name="country_ChoiceText">	
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>	
																			</fo:block>		
																		</xsl:otherwise>			
																	</xsl:choose>				
																</xsl:when>	
																<!-- 202001 CN address not shown correctly
																<xsl:when test=".//address/country='CN' or .//address/country='TW'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."/>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:choose>
																				<xsl:when test="$lang='ko'">
																					<fo:block>
																						<xsl:call-template name="country_ChoiceText">
																							<xsl:with-param name="country" select=".//address/country"/>
																						</xsl:call-template>
																					</fo:block>
																					<fo:block>
																						<xsl:value-of select=".//postcode"/>
																					</fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select=".//state"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"/>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">
																								<xsl:value-of select=".//state"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"/>
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block>
																						<xsl:call-template name="country_ChoiceText">
																							<xsl:with-param name="country" select=".//address/country"/>
																						</xsl:call-template>
																						<xsl:value-of select=".//state"/>
																						<xsl:value-of select=".//city"/>
																					</fo:block>
																					<xsl:if test=".//street">
																						<xsl:choose>
																							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																								<fo:block white-space="pre" wrap-option="wrap">
																									<xsl:value-of select=".//street"/>
																								</fo:block>
																							</xsl:when>
																							<xsl:otherwise>
																								<fo:block white-space-collapse="false" wrap-option="wrap">
																									<xsl:value-of select=".//street"/>
																								</fo:block>
																							</xsl:otherwise>
																						</xsl:choose>
																					</xsl:if>
																					<fo:block>
																						<xsl:value-of select=".//postcode"/>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																!-->
																<xsl:when test=".//address/country='FR' or .//address/country='NL' or .//address/country='SE' or .//address/country='CH' or .//address/country='LI'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]">
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//address/city"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='RU'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>   
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]"> 
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//city"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<!-- for all others, use European format by default -->
																<xsl:otherwise>
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]">
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//city"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:otherwise>
															</xsl:choose>
														</xsl:if>
													</xsl:otherwise>
												</xsl:choose>
												 is the inventor of the subject matter for which protection is sought by way of this international application
											</fo:inline>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
							</xsl:for-each>
						</xsl:when>
						<xsl:otherwise>
							<xsl:for-each select=".//addressbook[@lang='ja' or @lang='ko' or @lang='zh' or @lang='ru' or @lang='ar']">
								<xsl:variable name="sibling" select="following-sibling::addressbook[position()=1][@lang='en']"></xsl:variable>
								<fo:table-row>
									<fo:table-cell xsl:use-attribute-sets="tdBorderTop">
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdTC">
										<fo:block>
											<xsl:choose>
												<xsl:when test="$lang='ja'">
													<xsl:if test=".//address//text()">
														Address
													</xsl:if>
												</xsl:when>
												<xsl:otherwise>
													<xsl:call-template name="nameType">
														<xsl:with-param name="nam" select="./addressbook"></xsl:with-param>
													</xsl:call-template>
												</xsl:otherwise>
											</xsl:choose>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdTR">
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														<xsl:if test="./address//text()">
															<fo:block>
																<xsl:value-of select=".//postcode"></xsl:value-of>
															</fo:block>
															<fo:block>
																<xsl:call-template name="country_ChoiceText">
																	<xsl:with-param name="country" select=".//country"></xsl:with-param>
																</xsl:call-template>
															</fo:block>
															<xsl:choose>
																<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																	<fo:block white-space="pre" wrap-option="wrap">
																		<xsl:value-of select=".//state"></xsl:value-of>
																		<xsl:value-of select=".//city"></xsl:value-of>
																		<xsl:value-of select=".//street"></xsl:value-of>
																		<xsl:value-of select=".//address-1"></xsl:value-of>
																		<xsl:if test=".//address-2">
																			<fo:block white-space="pre" wrap-option="wrap">
																				<xsl:value-of select=".//address-2"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																		<xsl:if test=".//address-3">
																			<fo:block white-space="pre" wrap-option="wrap">
																				<xsl:value-of select=".//address-3"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																	</fo:block>
																</xsl:when>
																<xsl:otherwise>
																	<fo:block white-space-collapse="false" wrap-option="wrap">
																		<xsl:value-of select=".//state"></xsl:value-of>
																		<xsl:value-of select=".//city"></xsl:value-of>
																		<xsl:value-of select=".//street"></xsl:value-of>
																		<xsl:value-of select=".//address-1"></xsl:value-of>
																		<xsl:if test=".//address-2">
																			<fo:block white-space-collapse="false" wrap-option="wrap">
																				<xsl:value-of select=".//address-2"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																		<xsl:if test=".//address-3">
																			<fo:block white-space-collapse="false" wrap-option="wrap">
																				<xsl:value-of select=".//address-3"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																	</fo:block>
																</xsl:otherwise>
															</xsl:choose>
															<fo:block></fo:block>
															<xsl:text>在住の</xsl:text>
														</xsl:if>
													</xsl:when>
													<xsl:when test="$lang='zh'">
														<xsl:call-template name="format_name">
															<xsl:with-param name="name_arg" select="."></xsl:with-param>
														</xsl:call-template>
														<xsl:if test="./address//text()">
															<xsl:text> 住在</xsl:text>
														</xsl:if>
													</xsl:when>
													<xsl:when test="$lang='fr' or $lang='ru' or $lang='ko' or $lang='pt'">
														<xsl:call-template name="format_name">
															<xsl:with-param name="name_arg" select="."></xsl:with-param>
														</xsl:call-template>
													</xsl:when>
													<xsl:otherwise>
														<xsl:choose>
															<xsl:when test="./address//text()">
																<xsl:choose>
																	<xsl:when test="$lang = 'de'">
																		<xsl:call-template name="format_name">
																			<xsl:with-param name="name_arg" select="."></xsl:with-param>
																			<xsl:with-param name="showOf" select="1"></xsl:with-param>
																		</xsl:call-template>
																	</xsl:when>
																	<xsl:otherwise>
																		<xsl:call-template name="format_name">
																			<xsl:with-param name="name_arg" select="."></xsl:with-param>
																			<xsl:with-param name="showOf" select="1"></xsl:with-param>
																		</xsl:call-template>
																	</xsl:otherwise>
																</xsl:choose>
															</xsl:when>
															<xsl:otherwise>
																<xsl:call-template name="format_name">
																	<xsl:with-param name="name_arg" select="."></xsl:with-param>
																</xsl:call-template>
															</xsl:otherwise>
														</xsl:choose>
													</xsl:otherwise>
												</xsl:choose>
											</fo:inline>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
								<!-- 2018.03.09 Transliteration address for Declaration (i) for non-latin language -->
								<xsl:if test="following-sibling::addressbook[position()=1][@lang='en']">
									<fo:table-row>
										<fo:table-cell>
											<fo:block></fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdC">
											<fo:block>
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														<xsl:if test=".//address//text()">
															Address:
														</xsl:if>
													</xsl:when>
													<xsl:when test="$lang='ar'">
														<fo:table>
															<fo:table-column column-width="2mm"></fo:table-column>
															<fo:table-column column-width="24mm"></fo:table-column>
															<fo:table-column column-width="27mm"></fo:table-column>
															<fo:table-body>
																<fo:table-row>
																	<fo:table-cell text-align="left">
																		<fo:block>(</fo:block>
																	</fo:table-cell>
																	<fo:table-cell>
																		<fo:block>Name (LAST, First</fo:block>
																	</fo:table-cell>
																	<fo:table-cell>
																		<fo:block>:</fo:block>
																	</fo:table-cell>
																</fo:table-row>
															</fo:table-body>
														</fo:table>
													</xsl:when>
													<xsl:otherwise>
														Name (LAST, First):
													</xsl:otherwise>
												</xsl:choose>
											</fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdR">
											<fo:block padding-top="1pt">
												<fo:inline font-weight="bold">
													<xsl:choose>
														<xsl:when test="$lang='ja'">
															<xsl:if test="$sibling//address//text()">
																<xsl:call-template name="showEnAddress">
																	<xsl:with-param name="address_arg" select="$sibling"></xsl:with-param>																	
																</xsl:call-template>
															</xsl:if>
														</xsl:when>
														<xsl:when test="$lang='zh' or $lang='ru' or $lang='ko' or $lang='ar'">
															<xsl:call-template name="format_name">
																<xsl:with-param name="name_arg" select="$sibling"></xsl:with-param>
															</xsl:call-template>
														</xsl:when>
													</xsl:choose>
												</fo:inline>
											</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</xsl:if>
								<fo:table-row>
									<fo:table-cell>
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdC">
										<fo:block>
											<xsl:choose>
												<xsl:when test="$lang='ja'">
													<xsl:call-template name="nameType">
														<xsl:with-param name="nam" select="./addressbook"></xsl:with-param>
													</xsl:call-template>
												</xsl:when>
												<xsl:otherwise>
													<xsl:if test=".//address//text()">
														Address
													</xsl:if>
												</xsl:otherwise>
											</xsl:choose>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdR">
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														<xsl:call-template name="format_name">
															<xsl:with-param name="name_arg" select="."></xsl:with-param>
														</xsl:call-template>
														<fo:block></fo:block>
													</xsl:when>
													<xsl:otherwise>
														<xsl:if test="./address//text()">
															<xsl:choose>
																<xsl:when test=".//address/country='US' or .//address/country='CA'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:when test="$lang='zh'">
																			<!-- US and CA address in Chinese Request Case-->
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select=".//state"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//city"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//street"></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">															
																						<xsl:value-of select=".//state"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//city"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//street"></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*">
																				<xsl:choose>
																					<xsl:when test="name(.)='city'">
																						<xsl:value-of select="."></xsl:value-of>
																						<xsl:text>, </xsl:text>
																					</xsl:when>
																					<xsl:when test="name(.)='state'">
																						<xsl:value-of select="."></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</xsl:when>
																					<xsl:when test="name(.)='postcode'">
																						<xsl:value-of select="."></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</xsl:when>
																					<xsl:when test="name(.)='country'">
																						<fo:block>
																							<xsl:call-template name="country_ChoiceText">
																								<xsl:with-param name="country" select="."></xsl:with-param>
																							</xsl:call-template>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<xsl:choose>
																							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																								<fo:block white-space="pre" wrap-option="wrap">
																									<xsl:value-of select="."></xsl:value-of>
																								</fo:block>
																							</xsl:when>
																							<xsl:otherwise>
																								<fo:block white-space-collapse="false" wrap-option="wrap">															
																									<xsl:value-of select="."></xsl:value-of>   
																								</fo:block>
																							</xsl:otherwise>
																						</xsl:choose>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='DE'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]">
																				<fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select="."></xsl:value-of>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">															
																								<xsl:value-of select="."></xsl:value-of>   
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																				</fo:block>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//address/city"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<!-- TODO: determine JA markup -->
																<xsl:when test=".//address/country='JP'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:when test="(.//address/state) or (.//address/city) or (.//address/street)">
																			<!-- Japanese address in Korean or Chinese Request Case-->
																			<xsl:choose>
																				<xsl:when test="$lang='ko'">
																					<fo:block>
																						<xsl:call-template name="country_ChoiceText">
																							<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																						</xsl:call-template>
																					</fo:block>
																					<fo:block>
																						<xsl:value-of select=".//postcode"></xsl:value-of>
																					</fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"></xsl:value-of>
																								<xsl:if test=".//address-2">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-2"></xsl:value-of>
																								</xsl:if>
																								<xsl:if test=".//address-3">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-3"></xsl:value-of>
																								</xsl:if>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">															
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"></xsl:value-of>
																								<xsl:if test=".//address-2">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-2"></xsl:value-of>
																								</xsl:if>
																								<xsl:if test=".//address-3">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-3"></xsl:value-of>
																								</xsl:if>
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block>
																						<xsl:call-template name="country_ChoiceText">
																							<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																						</xsl:call-template>
																					</fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">															
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																					<fo:block>
																						<xsl:value-of select=".//postcode"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																					<xsl:value-of select=".//address-1"></xsl:value-of>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">															
																						<xsl:value-of select=".//address-1"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='GB'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*">
																				<xsl:choose>
																					<xsl:when test="name(.)='postcode'">
																						<xsl:value-of select="."></xsl:value-of>
																					</xsl:when>
																					<xsl:when test="name(.)='city'">
																						<xsl:value-of select="."></xsl:value-of>
																					</xsl:when>
																					<xsl:when test="name(.)='country'">
																						<fo:block>
																							<xsl:call-template name="country_ChoiceText">
																								<xsl:with-param name="country" select="."></xsl:with-param>
																							</xsl:call-template>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<xsl:choose>
																							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																								<fo:block white-space="pre" wrap-option="wrap">
																									<xsl:value-of select="."></xsl:value-of>
																								</fo:block>
																							</xsl:when>
																							<xsl:otherwise>
																								<fo:block white-space-collapse="false" wrap-option="wrap">															
																									<xsl:value-of select="."></xsl:value-of>   
																								</fo:block>
																							</xsl:otherwise>
																						</xsl:choose>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='KR'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select=".//state"></xsl:value-of>
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//city"></xsl:value-of>
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//street"></xsl:value-of>
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//address-1"></xsl:value-of>
																							<xsl:if test=".//address-2">
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-2"></xsl:value-of>
																							</xsl:if>
																							<xsl:if test=".//address-3">
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-3"></xsl:value-of>
																							</xsl:if>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">															
																							<xsl:value-of select=".//state"></xsl:value-of>
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//city"></xsl:value-of>
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//street"></xsl:value-of>
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//address-1"></xsl:value-of>
																							<xsl:if test=".//address-2">
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-2"></xsl:value-of>
																							</xsl:if>
																							<xsl:if test=".//address-3">
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-3"></xsl:value-of>
																							</xsl:if>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='CN' or .//address/country='TW'">			
																	<xsl:choose>			
																		<xsl:when test=".//text">		
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>		
																		<xsl:when test="$lang='zh'"> <!-- for when the stylesheet does not use "showZhAddress" for Chinese address -->
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">	
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																				<xsl:value-of select=".//address/state"></xsl:value-of>
																					<xsl:value-of select=".//address/city"></xsl:value-of>
																			</fo:block>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select=".//address/street"></xsl:value-of>
																						<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						<xsl:value-of select=".//address/address-3"></xsl:value-of>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">															
																						<xsl:value-of select=".//address/street"></xsl:value-of>
																						<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						<xsl:value-of select=".//address/address-3"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																			</fo:block>					
																		</xsl:when>
																		<xsl:when test="$lang='ru'">
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																				<xsl:value-of select=".//address/state"></xsl:value-of>
																				<xsl:value-of select=".//address/city"></xsl:value-of>
																			</fo:block>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select=".//address/street"></xsl:value-of>
																						<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						<xsl:value-of select=".//address/address-3"></xsl:value-of>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">															
																						<xsl:value-of select=".//address/street"></xsl:value-of>
																						<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						<xsl:value-of select=".//address/address-3"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																			</fo:block>
																		</xsl:when>
																		<xsl:when test="$lang='ko'">
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																			</fo:block>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:if test=".//address/state">   
																							<xsl:value-of select=".//address/state"></xsl:value-of>
																							<xsl:text> </xsl:text>
																						</xsl:if>
																						<xsl:if test=".//address/city">
																							<xsl:value-of select=".//address/city"></xsl:value-of>
																							<xsl:text> </xsl:text>
																						</xsl:if>
																						<xsl:if test=".//address/street">
																							<xsl:value-of select=".//address/street"></xsl:value-of>
																							<xsl:text> </xsl:text>
																						</xsl:if>
																						<xsl:if test=".//address/address-1">
																							<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						</xsl:if>
																						<xsl:if test=".//address/address-2">
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						</xsl:if>
																						<xsl:if test=".//address/address-3">
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//address/address-3"></xsl:value-of>
																						</xsl:if>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">															
																						<xsl:if test=".//address/state">   
																							<xsl:value-of select=".//address/state"></xsl:value-of>
																							<xsl:text> </xsl:text>
																						</xsl:if>
																						<xsl:if test=".//address/city">
																							<xsl:value-of select=".//address/city"></xsl:value-of>
																							<xsl:text> </xsl:text>
																						</xsl:if>
																						<xsl:if test=".//address/street">
																							<xsl:value-of select=".//address/street"></xsl:value-of>
																							<xsl:text> </xsl:text>
																						</xsl:if>
																						<xsl:if test=".//address/address-1">
																							<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						</xsl:if>
																						<xsl:if test=".//address/address-2">
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						</xsl:if>
																						<xsl:if test=".//address/address-3">
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//address/address-3"></xsl:value-of>
																						</xsl:if>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:when>
																		<xsl:otherwise>		
																			<xsl:for-each select=".//address/*[not(name(.)='street' or name(.)='city' or name(.)='state' or name(.)='postcode' or name(.)='country')]"> 	
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">															
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>		
																			<xsl:if test=".//address/street">
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select=".//address/street"></xsl:value-of>	
																							<xsl:text> </xsl:text>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">															
																							<xsl:value-of select=".//address/street"></xsl:value-of>	
																							<xsl:text> </xsl:text>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:if>
																			<xsl:choose>
																				<xsl:when test=".//address/city">
																					<fo:block>		
																						<xsl:value-of select=".//address/city"></xsl:value-of>
																						<xsl:text>, </xsl:text>	
																						<xsl:value-of select=".//address/state"></xsl:value-of>	
																						<xsl:text> </xsl:text>	
																						<xsl:value-of select=".//address/postcode"></xsl:value-of>	
																					</fo:block>		
																				</xsl:when>
																				<xsl:otherwise>		
																					<fo:block>		
																						<xsl:value-of select=".//address/state"></xsl:value-of>	
																						<xsl:text> </xsl:text>	
																						<xsl:value-of select=".//address/postcode"></xsl:value-of>	
																					</fo:block>		
																				</xsl:otherwise>			
																			</xsl:choose>
																			<fo:block>		
																				<xsl:call-template name="country_ChoiceText">	
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>	
																			</fo:block>		
																		</xsl:otherwise>			
																	</xsl:choose>				
																</xsl:when>	
																<!-- 202001 CN address not shown correctly
																<xsl:when test=".//address/country='CN' or .//address/country='TW'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."/>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:choose>
																				<xsl:when test="$lang='ko'">
																					<fo:block>
																						<xsl:call-template name="country_ChoiceText">
																							<xsl:with-param name="country" select=".//address/country"/>
																						</xsl:call-template>
																					</fo:block>
																					<fo:block>
																						<xsl:value-of select=".//postcode"/>
																					</fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select=".//state"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"/>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">															
																								<xsl:value-of select=".//state"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"/>
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block>
																						<xsl:choose>
																							<xsl:when test="$lang='zh'">
																								<xsl:variable name="country_name">
																									<xsl:call-template name="country_ChoiceText">
																										<xsl:with-param name="country" select=".//address/country"/>
																									</xsl:call-template>
																								</xsl:variable>
																								<xsl:value-of select="normalize-space($country_name)"></xsl:value-of>
																							</xsl:when>
																							<xsl:otherwise>
																								<xsl:call-template name="country_ChoiceText">
																									<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																								</xsl:call-template>
																							</xsl:otherwise>
																						</xsl:choose>
																						<xsl:value-of select=".//state"/>
																						<xsl:value-of select=".//city"/>
																					</fo:block>
																					<xsl:if test=".//street">
																						<xsl:choose>
																							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																								<fo:block white-space="pre" wrap-option="wrap">
																									<xsl:value-of select=".//street"/>
																								</fo:block>
																							</xsl:when>
																							<xsl:otherwise>
																								<fo:block white-space-collapse="false" wrap-option="wrap">															
																									<xsl:value-of select=".//street"/>
																								</fo:block>
																							</xsl:otherwise>
																						</xsl:choose>
																					</xsl:if>
																					<fo:block>
																						<xsl:value-of select=".//postcode"/>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when> !-->
																<xsl:when test=".//address/country='FR' or .//address/country='NL' or .//address/country='SE' or .//address/country='CH' or .//address/country='LI'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]">
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">															
																							<xsl:value-of select="."></xsl:value-of>   
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//address/city"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='RU'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>   
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]"> 
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//city"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<!-- for all others, use European format by default -->
																<xsl:otherwise>
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]">
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">															
																							<xsl:value-of select="."></xsl:value-of>   
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//city"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:otherwise>
															</xsl:choose>
														</xsl:if>
													</xsl:otherwise>
												</xsl:choose>
											</fo:inline>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
								<!-- 2018.03.09 Transliteration address for Declaration (i) for non-latin language -->
								<xsl:if test="following-sibling::addressbook[position()=1][@lang='en']">
									<fo:table-row>
										<fo:table-cell>
											<fo:block></fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdC">
											<fo:block>
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														Name (LAST, First):
													</xsl:when>
													<xsl:otherwise>
														<xsl:if test=".//address//text()">
															Address:
														</xsl:if>
													</xsl:otherwise>
												</xsl:choose>
											</fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdR">
											<fo:block padding-top="1pt">
												<fo:inline font-weight="bold">
													<xsl:choose>
														<xsl:when test="$lang='ja'">
															<xsl:call-template name="format_name">
																<xsl:with-param name="name_arg" select="$sibling"></xsl:with-param>
															</xsl:call-template>
															<fo:block></fo:block>
														</xsl:when>
														<xsl:otherwise>
															<xsl:if test="./address//text()">
																<xsl:call-template name="showEnAddress">
																	<xsl:with-param name="address_arg" select="$sibling"></xsl:with-param>																	
																</xsl:call-template>
															</xsl:if>
														</xsl:otherwise>
													</xsl:choose>
												</fo:inline>
											</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</xsl:if>
								<fo:table-row>
									<fo:table-cell>
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdC">
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdR">
										<fo:block>
											<fo:inline font-weight="bold">
												 is the inventor of the subject matter for which protection is sought by way of this international application
											</fo:inline>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
							</xsl:for-each>
						</xsl:otherwise>
					</xsl:choose>
					<fo:table-row>
						<fo:table-cell number-columns-spanned="3" border-top="solid black 0.25pt">
							<fo:block></fo:block>
						</fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
		</xsl:for-each>
	</xsl:template>
	<xsl:template name="process_dec2">
		<xsl:variable name="dec_seq" select="@sequence"></xsl:variable>  
		<fo:table table-layout="fixed" border-collapse="separate">          
			<fo:table-column column-width="12mm"></fo:table-column>          
			<fo:table-column column-width="53mm"></fo:table-column>          
			<fo:table-column column-width="105mm"></fo:table-column> 
			<fo:table-body>               
				<fo:table-row>                  
					<fo:table-cell xsl:use-attribute-sets="tdTL">                     
						<fo:block>                        
							<fo:inline font-weight="bold">VIII-2-<xsl:value-of select="$dec_seq"></xsl:value-of>                        
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdTC">                     
						<fo:block>                        
							<fo:inline font-weight="bold">                           
								Declaration: Entitlement to apply for and be granted a patent                        
							</fo:inline>                        
							<fo:block></fo:block>                        
							 Declaration as to the applicant's entitlement, as at the international filing date, to apply for and be granted a patent (Rules 4.17(ii) and 51bis.1(a)(ii)), in a case where the declaration under Rule 4.17(iv) is not appropriate:                      
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdTR">                     
						<fo:block padding-before="7mm">    
							<fo:inline font-weight="bold">                           
								In relation to 
								<xsl:choose>                              
									<xsl:when test=".//application-reference">                                 
										<xsl:if test="not($lang='ja')">
											the international application No.  
										</xsl:if>
										<xsl:value-of select=".//country"></xsl:value-of>                                 
										<xsl:text> 
										</xsl:text>                                 
										<xsl:value-of select=".//doc-number"></xsl:value-of>    
										<xsl:if test="$lang='ja'">
											the international application No.  
										</xsl:if>                          
									</xsl:when>                              
									<xsl:otherwise>
										this international application                              
									</xsl:otherwise>                           
								</xsl:choose>                        
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>               
				</fo:table-row>               
				<fo:table-row>                  
					<fo:table-cell>                     
						<fo:block></fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdC">                     
						<fo:block>                     
							<xsl:call-template name="nameType">                     
								<xsl:with-param name="nam" select="."></xsl:with-param>                     
							</xsl:call-template>                     
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdR">                     
						<fo:block padding-top="1pt">                        
							<fo:inline font-weight="bold">           
								<xsl:if test="$lang='ja'">以下の事実により、      <fo:block></fo:block>                     
								</xsl:if>                
								<xsl:call-template name="format_name">                              
									<xsl:with-param name="name_arg" select="."></xsl:with-param>                           
								</xsl:call-template>
								<xsl:if test="$lang='ja'">
									<xsl:text>は、</xsl:text>                       
									<fo:block></fo:block> 
								</xsl:if>
								 is entitled to apply for and be granted a patent by virtue of the following:                         
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>               
				</fo:table-row>    
			</fo:table-body>
		</fo:table>           
		<xsl:for-each select="./matter">                  
			<xsl:variable name="matter" select="translate(@item,'()','')"></xsl:variable>                  
			<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">          
				<fo:table-column column-width="12mm"></fo:table-column>          
				<fo:table-column column-width="53mm"></fo:table-column>          
				<fo:table-column column-width="105mm"></fo:table-column> 
				<fo:table-body>               
					<fo:table-row>                     
						<fo:table-cell xsl:use-attribute-sets="tdTL">                        
							<fo:block>VIII-2-<xsl:value-of select="$dec_seq"></xsl:value-of></fo:block>
							<fo:block>(<xsl:value-of select="$matter"></xsl:value-of>)</fo:block>                     
						</fo:table-cell>                     
						<fo:table-cell xsl:use-attribute-sets="tdTC">                        
							<fo:block></fo:block>                     
						</fo:table-cell>                     
						<fo:table-cell xsl:use-attribute-sets="tdTR">                        
							<fo:block padding-top="1pt"> 
								<fo:inline font-weight="bold">                        
									<xsl:call-template name="matter">                        
										<xsl:with-param name="matter" select="$matter"></xsl:with-param>                        
									</xsl:call-template>                           
								</fo:inline>                        
							</fo:block>                        
						</fo:table-cell>                  
					</fo:table-row>  
					<fo:table-row>
						<fo:table-cell number-columns-spanned="3" border-top="solid black 0.25pt">
							<fo:block></fo:block>
						</fo:table-cell>
					</fo:table-row>      
				</fo:table-body>
			</fo:table>
		</xsl:for-each>               
	</xsl:template>
	<xsl:template name="process_dec3">
		<xsl:variable name="dec_seq" select="@sequence"></xsl:variable>  
		<fo:table table-layout="fixed" border-collapse="separate">          
			<fo:table-column column-width="12mm"></fo:table-column>          
			<fo:table-column column-width="53mm"></fo:table-column>          
			<fo:table-column column-width="105mm"></fo:table-column> 
			<fo:table-body>               
				<fo:table-row>                  
					<fo:table-cell xsl:use-attribute-sets="tdTL">                     
						<fo:block>                        
							<fo:inline font-weight="bold">VIII-3-<xsl:value-of select="$dec_seq"></xsl:value-of>                        
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdTC">                     
						<fo:block>                        
							<fo:inline font-weight="bold">                           
								Declaration: Entitlement to claim priority                         
							</fo:inline>                        
							<fo:block></fo:block>                        
							 Declaration as to the applicant's entitlement, as at the international filing date, to claim the priority of the earlier application specified below, where the applicant is not the applicant who filed the earlier application or where the applicant's name has changed since the filing of the earlier application (Rules 4.17(iii) and 51bis.1(a)(iii))                      
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdTR">                     
						<fo:block padding-before="7mm">                        
							<fo:inline font-weight="bold">                           
								In relation to 
								<xsl:choose>                              
									<xsl:when test=".//application-reference">                                 
										<xsl:if test="not($lang='ja')">
											the international application No.  
										</xsl:if>
										<xsl:value-of select=".//country"></xsl:value-of>                                 
										<xsl:text> 
										</xsl:text>                                 
										<xsl:value-of select=".//doc-number"></xsl:value-of>    
										<xsl:if test="$lang='ja'">
											the international application No.  
										</xsl:if>                          
									</xsl:when>                              
									<xsl:otherwise>
										this international application                              
									</xsl:otherwise>                           
								</xsl:choose>                        
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>               
				</fo:table-row>               
				<fo:table-row>                  
					<fo:table-cell>                     
						<fo:block></fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdC">                     
						<fo:block>                     
							<xsl:choose>
								<xsl:when test="./name and not($lang='zh')">
									Name
								</xsl:when>
								<xsl:when test="./name and $lang='zh'">
									Name (LAST, First)
								</xsl:when>
								<xsl:otherwise>
									Name (LAST, First)
								</xsl:otherwise>
							</xsl:choose>
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdR">                     
						<fo:block padding-top="1pt">                        
							<fo:inline font-weight="bold">                           
								<xsl:if test="$lang='ja'">
									<xsl:text>以下の事実により、</xsl:text>                  
									<fo:block></fo:block>
								</xsl:if>
								<xsl:call-template name="format_name">                              
									<xsl:with-param name="name_arg" select="."></xsl:with-param>                           
								</xsl:call-template>                        
								<xsl:if test="$lang='ja'">
									<xsl:text>は、</xsl:text>
								</xsl:if>
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>               
				</fo:table-row>               
				<fo:table-row>                  
					<fo:table-cell>                     
						<fo:block></fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdC">                     
						<fo:block></fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdR">                     
						<fo:block padding-top="1pt">                        
							<fo:inline font-weight="bold">                           
								 is entitled to claim priority of earlier application No.                            
								<xsl:value-of select=".//earlier-app-reference//country"></xsl:value-of>                           
								<xsl:text> </xsl:text>
								<xsl:value-of select=".//earlier-app-reference//doc-number"></xsl:value-of>                           
								 by virtue of the following:                         
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>               
				</fo:table-row>   
			</fo:table-body>
		</fo:table>            
		<xsl:for-each select="./matter">                  
			<xsl:variable name="matter" select="translate(@item,'()','')"></xsl:variable>                  
			<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">          
				<fo:table-column column-width="12mm"></fo:table-column>          
				<fo:table-column column-width="53mm"></fo:table-column>          
				<fo:table-column column-width="105mm"></fo:table-column> 
				<fo:table-body>               
					<fo:table-row>                     
						<fo:table-cell xsl:use-attribute-sets="tdTBL">                        
							<fo:block>VIII-3-<xsl:value-of select="$dec_seq"></xsl:value-of></fo:block>
							<fo:block>(<xsl:value-of select="$matter"></xsl:value-of>)</fo:block>                     
						</fo:table-cell>                     
						<fo:table-cell xsl:use-attribute-sets="tdTBC">                        
							<fo:block></fo:block>                     
						</fo:table-cell>                     
						<fo:table-cell xsl:use-attribute-sets="tdTBR">                        
							<fo:block padding-top="1pt">                        
								<fo:inline font-weight="bold">                        
									<xsl:call-template name="matter">                        
										<xsl:with-param name="matter" select="$matter"></xsl:with-param>                        
									</xsl:call-template>                           
								</fo:inline>                        
							</fo:block>   
						</fo:table-cell>                  
					</fo:table-row>           
					<fo:table-row>
						<fo:table-cell number-columns-spanned="3" border-top="solid black 0.25pt">
							<fo:block></fo:block>
						</fo:table-cell>
					</fo:table-row>      
				</fo:table-body>
			</fo:table>    
		</xsl:for-each>               
	</xsl:template>
	<xsl:template name="process_dec4">   
		<xsl:variable name="dec_seq" select="@sequence"></xsl:variable>
		<xsl:for-each select=".">      
			<fo:table table-layout="fixed" border-collapse="separate">          
				<fo:table-column column-width="12mm"></fo:table-column>          
				<fo:table-column column-width="53mm"></fo:table-column>          
				<fo:table-column column-width="105mm"></fo:table-column>         
				<fo:table-body>            
					<fo:table-row>               
						<fo:table-cell xsl:use-attribute-sets="tdTBL">                  
							<fo:block>                     
								<fo:inline font-weight="bold">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of></fo:inline>                  
							</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdTBC">                  
							<fo:block>                     
								<fo:inline font-weight="bold">                        
									Declaration: Inventorship (only for the purposes of the designation of the United States of America)                     
								</fo:inline>                     
								<fo:block></fo:block>                     
								Declaration of Inventorship (Rules 4.17(iv) and 51bis.1(a)(iv)) for the purposes of the designation of the United States of America:                  
							</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdTBR">                  
							<fo:block padding="1.5pt" line-height="1.3" space-before="1cm">                     
								<fo:block></fo:block>                     
								<fo:block></fo:block>                     
								<fo:inline font-weight="bold">                        
									I hereby declare that I believe I am the original inventor or an original joint inventor of a claimed invention in the application.                         
									<fo:block></fo:block>
									<fo:block space-after="2mm">
									</fo:block>
									<xsl:choose>
										<xsl:when test="./application-reference">
											This declaration is directed to international application No. <xsl:value-of select="./application-reference//doc-number"></xsl:value-of>. 
											<fo:block space-after="2mm">
											</fo:block>
										</xsl:when>
										<xsl:otherwise>
												This declaration is directed to the international application of which it forms a part. 
												<fo:block space-after="2mm">
												</fo:block>                        
										</xsl:otherwise>
									</xsl:choose>
									<fo:block></fo:block>                        
									I hereby declare that the above-identified international application was made or authorized to be made by me.                         
									<fo:block space-after="2mm">
									</fo:block>                        
									I hereby acknowledge that any willful false statement made in this declaration is punishable under 18 U.S.C. 1001 by fine or imprisonment of not more than five (5) years, or both.                      
								</fo:inline>                  
							</fo:block>               
						</fo:table-cell>            
					</fo:table-row>            
				</fo:table-body>      
			</fo:table>     
		</xsl:for-each>  
		<xsl:if test=".//inventor-info/addressbook">               
			<fo:table table-layout="fixed" keep-together.within-page="always" border-collapse="separate">          
				<fo:table-column column-width="12mm"></fo:table-column>          
				<fo:table-column column-width="53mm"></fo:table-column>          
				<fo:table-column column-width="105mm"></fo:table-column> 
				<fo:table-body>            
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdTL">                     
							<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- 1-1</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTC">                     
							<fo:block>                     
								<xsl:call-template name="nameType">                     
									<xsl:with-param name="nam" select=".//inventor-info[1]/addressbook[1]"></xsl:with-param>                     
								</xsl:call-template>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR">                     
							<fo:block padding-top="1pt">                        
								<fo:inline font-weight="bold">                           
									<xsl:call-template name="format_name">                              
										<xsl:with-param name="name_arg" select=".//inventor-info[1]/addressbook[1]"></xsl:with-param>                           
									</xsl:call-template>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<xsl:if test=".//inventor-info[1]/addressbook[2]">  
						<xsl:if test=".//inventor-info[1]/addressbook[@lang='en']">  
							<fo:table-row>
								<fo:table-cell xsl:use-attribute-sets="tdL">                     
									<fo:block></fo:block>                  
								</fo:table-cell>                  
								<fo:table-cell xsl:use-attribute-sets="tdC">                     
									<fo:block>
										Name (LAST, First):
									</fo:block>                  
								</fo:table-cell>                  
								<fo:table-cell xsl:use-attribute-sets="tdR">                     
									<fo:block padding-top="1pt">                        
										<fo:inline font-weight="bold">                           
											<xsl:call-template name="format_name">                              
												<xsl:with-param name="name_arg" select=".//inventor-info[1]/addressbook[2]"></xsl:with-param>                           
											</xsl:call-template>                        
										</fo:inline>                     
									</fo:block>                  
								</fo:table-cell>               
							</fo:table-row>   
						</xsl:if>  
					</xsl:if>  
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdL">                     
							<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- 1-2</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdC">                     
							<fo:block>                        
								Residence:                        
								<fo:block></fo:block>                        
								(city and either US state, if applicable, or country)                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdR">                     
							<fo:block padding-top="1pt">                        
								<fo:inline font-weight="bold">                           
									<xsl:value-of select=".//inventor-info[1]/us-residence//city"></xsl:value-of>                           
									<xsl:text>, </xsl:text>                           
									<xsl:choose>                              
										<xsl:when test=".//inventor-info[1]/us-residence/us/state">                                 
											<xsl:value-of select=".//inventor-info[1]/us-residence//state"></xsl:value-of>                              
										</xsl:when>                              
										<xsl:otherwise>
											<xsl:call-template name="country_ChoiceText">
												<xsl:with-param name="country" select=".//inventor-info[1]/us-residence//country"></xsl:with-param>
											</xsl:call-template>                              
										</xsl:otherwise>                           
									</xsl:choose>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<xsl:choose>                  
						<xsl:when test=".//inventor-info[1]/addressbook[1]/address">                     
							<fo:table-row>                        
								<fo:table-cell xsl:use-attribute-sets="tdL">                           
									<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- 1-3</fo:block>                        
								</fo:table-cell>                        
								<fo:table-cell xsl:use-attribute-sets="tdC">                           
									<fo:block>                              
										Mailing Address:                            
									</fo:block>                        
								</fo:table-cell>                        
								<fo:table-cell xsl:use-attribute-sets="tdR">                           
									<fo:block padding-top="1pt">                              
										<fo:inline font-weight="bold">        
											<xsl:choose>
												<xsl:when test="($lang='ja') or ($lang='zh')">
													<xsl:if test=".//inventor-info[1]/addressbook[1]/address/country">
														<fo:block>
															<xsl:call-template name="country_ChoiceText">
																<xsl:with-param name="country" select=".//inventor-info[1]/addressbook[1]/address/country"></xsl:with-param>
															</xsl:call-template>
														</fo:block>
													</xsl:if>
													<xsl:if test=".//inventor-info[1]/addressbook[1]/address/state">
														<fo:block>
															<xsl:value-of select=".//inventor-info[1]/addressbook[1]/address/state"></xsl:value-of>
														</fo:block>
													</xsl:if>
													<xsl:for-each select=".//inventor-info[1]/addressbook[1]/address//*[not(name(.)='country' or name(.)='state')]">
														<xsl:choose>
															<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																<fo:block white-space="pre" wrap-option="wrap">
																	<xsl:value-of select="."></xsl:value-of>
																</fo:block>
															</xsl:when>
															<xsl:otherwise>
																<fo:block white-space-collapse="false" wrap-option="wrap">															
																	<xsl:value-of select="."></xsl:value-of>   
																</fo:block>
															</xsl:otherwise>
														</xsl:choose>
													</xsl:for-each>
												</xsl:when>
												<xsl:otherwise>
													<xsl:for-each select=".//inventor-info[1]/addressbook[1]/address/*">                                    
														<xsl:choose>                                       
															<xsl:when test="name(.)='city' or name(.)='state'">                                          
																<xsl:value-of select="."></xsl:value-of>                                          
																<xsl:text> </xsl:text>                                       
															</xsl:when> 
															<xsl:when test="name(.)='country'">
																<xsl:call-template name="country_ChoiceText">
																	<xsl:with-param name="country" select="."></xsl:with-param>
																</xsl:call-template> 
															</xsl:when>                                       
															<xsl:otherwise>                                          
																<xsl:choose>
																	<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																		<fo:block white-space="pre" wrap-option="wrap">
																			<xsl:value-of select="."></xsl:value-of>
																		</fo:block>
																	</xsl:when>
																	<xsl:otherwise>
																		<fo:block white-space-collapse="false" wrap-option="wrap">															
																			<xsl:value-of select="."></xsl:value-of>   
																		</fo:block>
																	</xsl:otherwise>
																</xsl:choose>
																<fo:block></fo:block>                                       
															</xsl:otherwise>                                    
														</xsl:choose>                                 
													</xsl:for-each>                              
												</xsl:otherwise>
											</xsl:choose>                         
										</fo:inline>                           
									</fo:block>                        
								</fo:table-cell>                     
							</fo:table-row>                  
							<xsl:if test=".//inventor-info[1]/addressbook[2]">  
								<xsl:if test=".//inventor-info[1]/addressbook[@lang='en']">  
									<fo:table-row>                        
										<fo:table-cell xsl:use-attribute-sets="tdL">                           
											<fo:block></fo:block>                        
										</fo:table-cell>                        
										<fo:table-cell xsl:use-attribute-sets="tdC">                           
											<fo:block>                              
												Mailing Address:                           
											</fo:block>                        
										</fo:table-cell>                        
										<fo:table-cell xsl:use-attribute-sets="tdR">                           
											<fo:block padding-top="1pt">                              
												<fo:inline font-weight="bold">        
													<xsl:choose>
														<xsl:when test="$lang='ja'">
															<xsl:for-each select=".//inventor-info[1]/addressbook[2]/address//*[not(name(.)='country' or name(.)='state')]">
															<xsl:choose>
																<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																	<fo:block white-space="pre" wrap-option="wrap">
																		<xsl:value-of select="."></xsl:value-of>
																	</fo:block>
																</xsl:when>
																<xsl:otherwise>
																	<fo:block white-space-collapse="false" wrap-option="wrap">															
																		<xsl:value-of select="."></xsl:value-of>   
																	</fo:block>
																</xsl:otherwise>
															</xsl:choose>
															</xsl:for-each>
															<xsl:if test=".//inventor-info[1]/addressbook[2]/address/state">
																<fo:block>
																	<xsl:value-of select=".//inventor-info[1]/addressbook[2]/address/state"></xsl:value-of>
																</fo:block>
															</xsl:if>
															<xsl:if test=".//inventor-info[1]/addressbook[2]/address/country">
																<fo:block>
																	<xsl:call-template name="enCountry_ChoiceText">
																		<xsl:with-param name="country" select=".//inventor-info[1]/addressbook[2]/address/country"></xsl:with-param>
																	</xsl:call-template>
																</fo:block>
															</xsl:if>
														</xsl:when>
														<xsl:otherwise>
															<xsl:for-each select=".//inventor-info[1]/addressbook[2]/address/*">                                    
																<xsl:choose>                                       
																	<xsl:when test="name(.)='city' or name(.)='state'">                                          
																		<xsl:value-of select="."></xsl:value-of>                                          
																	<xsl:text> </xsl:text>                                       
																	</xsl:when> 
																	<xsl:when test="name(.)='country'">
																		<xsl:call-template name="enCountry_ChoiceText">
																			<xsl:with-param name="country" select="."></xsl:with-param>
																		</xsl:call-template> 
																	</xsl:when>                                       
																	<xsl:otherwise>                                          
																		<xsl:choose>
																			<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																				<fo:block white-space="pre" wrap-option="wrap">
																					<xsl:value-of select="."></xsl:value-of>
																				</fo:block>
																			</xsl:when>
																			<xsl:otherwise>
																				<fo:block white-space-collapse="false" wrap-option="wrap">															
																					<xsl:value-of select="."></xsl:value-of>   
																				</fo:block>
																			</xsl:otherwise>
																		</xsl:choose>
																		<fo:block></fo:block>                                       
																	</xsl:otherwise>                                    
																</xsl:choose>                                 
															</xsl:for-each>                              
														</xsl:otherwise>
													</xsl:choose>                         
												</fo:inline>                           
											</fo:block>                        
										</fo:table-cell>                     
									</fo:table-row>                  
								</xsl:if>  
							</xsl:if>  
						</xsl:when>               
					</xsl:choose>         
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdL">                     
							<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- 1-4</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdC">                     
							<fo:block>                        
								Inventor’s Signature:                        
								<fo:block></fo:block>                        
								(The signature must be that of the inventor, not that of the agent)                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdR">                     
							<fo:block padding-top="1pt">                        
								<fo:inline font-weight="bold">                           
									<xsl:choose>                              
										<xsl:when test=".//signatory[1]/electronic-signature/basic-signature/fax-image"> 
											<fo:external-graphic>
												<xsl:if test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
													<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>											
													<xsl:attribute name="width">100mm</xsl:attribute>											
												</xsl:if>										
												<!-- NOTE: XEP will not load files in same directory if 'file:///' is prepended -->
												<xsl:attribute name="src">   
													<xsl:choose>  
														<xsl:when test="contains(.//signatory[1]/electronic-signature/basic-signature/fax-image/@file,'/') or contains(./electronic-signature/basic-signature/fax-image/@file,'\') or contains(./electronic-signature/basic-signature/fax-image/@file,':')"> 
															<xsl:value-of select="concat('file:///',./electronic-signature/basic-signature/fax-image/@file)"></xsl:value-of>  
														</xsl:when>  
														<xsl:otherwise> 
															<xsl:choose>
																<xsl:when test="$baseDir != ''"> 
																	<xsl:value-of select="concat('file:///', $baseDir, .//signatory[1]/electronic-signature/basic-signature/fax-image/@file)"></xsl:value-of>  
																</xsl:when>
																<xsl:otherwise>
																	<xsl:value-of select=".//signatory[1]/electronic-signature/basic-signature/fax-image/@file"></xsl:value-of>
																</xsl:otherwise>
															</xsl:choose> 
														</xsl:otherwise>   
													</xsl:choose>
												</xsl:attribute> 
											</fo:external-graphic>                              
										</xsl:when>                              
										<xsl:when test=".//signatory[1]/electronic-signature/basic-signature/click-wrap">                                 
											(Applicant clicked "Yes")                              
										</xsl:when>                              
										<xsl:when test=".//signatory[1]//text-string">                                 
											<xsl:value-of select=".//signatory[1]//text-string"></xsl:value-of>                              
										</xsl:when>                              
										<xsl:when test=".//signatory[1]//pkcs7">                                 
											(PKCS7 Digital Signature)                              
										</xsl:when>                           
									</xsl:choose>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdBL">                     
							<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- 1-5</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBC">                     
							<fo:block>                        
								Date:                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBR">                     
							<fo:block padding-top="1pt">                        
								<fo:inline font-weight="bold">                           
									<xsl:if test=".//signatory[1]/electronic-signature/@date">                              
										<xsl:call-template name="format_date">                                 
											<xsl:with-param name="date" select=".//signatory[1]/electronic-signature/@date"></xsl:with-param>                              
											<xsl:with-param name="show_date" select="1"></xsl:with-param>   
											<xsl:with-param name="text" select="1"></xsl:with-param>   
											<xsl:with-param name="lang" select="$lang"></xsl:with-param>   
											<xsl:with-param name="date_too" select="1"></xsl:with-param>
										</xsl:call-template>                           
									</xsl:if>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>  	  
				</fo:table-body>  
			</fo:table>  
		</xsl:if> 
		<xsl:if test="count(//inventor-info) &gt; 1"> 
			<xsl:call-template name="other_inventors">
				<xsl:with-param name="signatory_seq" select="ancestor-or-self::inventorship/@sequence"></xsl:with-param>
			</xsl:call-template>
		</xsl:if>   
	</xsl:template><xsl:template name="other_inventors">      
		<!-- ****************************************************************** -->
		 
		<!--  repeated inventor-info                                            -->
		
		<!-- ****************************************************************** -->
		<xsl:param name="signatory_seq"></xsl:param>
		<xsl:variable name="dec_seq" select="@sequence"></xsl:variable>
		<xsl:if test=".//inventor-info[position() &gt; 1]/addressbook">   
			<xsl:for-each select=".//inventor-info[position() &gt; 1]">  
				<xsl:variable name="inventor_seq" select="position()+1"></xsl:variable> 
				<fo:table table-layout="fixed" keep-together.within-page="always" border-collapse="separate"> 
					<fo:table-column column-width="12mm"></fo:table-column> 
					<fo:table-column column-width="53mm"></fo:table-column> 
					<fo:table-column column-width="105mm"></fo:table-column>
					<fo:table-body>                  
						<fo:table-row>                     
							<fo:table-cell xsl:use-attribute-sets="tdTL">                        
								<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- <xsl:value-of select="$inventor_seq"></xsl:value-of>-1</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTC">                        
								<fo:block>                     
									<xsl:call-template name="nameType">                     
										<xsl:with-param name="nam" select="./addressbook[1]"></xsl:with-param>                     
									</xsl:call-template>                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTR">                        
								<fo:block padding-top="1pt">                           
									<fo:inline font-weight="bold">                              
										<xsl:call-template name="format_name">                                 
											<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>                              
										</xsl:call-template>                           
									</fo:inline>                        
								</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>                  
						<xsl:if test="./addressbook[2]">  
							<xsl:if test="./addressbook[@lang='en']">  
								<fo:table-row>
									<fo:table-cell xsl:use-attribute-sets="tdL">                     
										<fo:block></fo:block>                  
									</fo:table-cell>                  
									<fo:table-cell xsl:use-attribute-sets="tdC">                     
										<fo:block>
											Name (LAST, First):
										</fo:block>                  
									</fo:table-cell>                  
									<fo:table-cell xsl:use-attribute-sets="tdR">                     
										<fo:block padding-top="1pt">                        
											<fo:inline font-weight="bold">                           
												<xsl:call-template name="format_name">                              
													<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>                           
												</xsl:call-template>                        
											</fo:inline>                     
										</fo:block>                  
									</fo:table-cell>               
								</fo:table-row>   
							</xsl:if>  
						</xsl:if>  
						<fo:table-row>                     
							<fo:table-cell xsl:use-attribute-sets="tdL">                        
								<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- <xsl:value-of select="$inventor_seq"></xsl:value-of>-2</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdC">                        
								<fo:block>                           
									Residence:                           
									<fo:block></fo:block>                           
									(city and either US state, if applicable, or country)                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdR">                        
								<fo:block padding-top="1pt">                           
									<fo:inline font-weight="bold">                              
										<xsl:value-of select=".//us-residence//city"></xsl:value-of>                              
										<xsl:if test=".//us-residence//city/text()">                              
											<xsl:text>, </xsl:text>                          
										</xsl:if>                              
										<xsl:choose>                                 
											<xsl:when test=".//us-residence/us">                                    
												<xsl:value-of select=".//us-residence//state"></xsl:value-of>                                 
											</xsl:when>                                 
											<xsl:otherwise>                                    
												<xsl:call-template name="country_ChoiceText">
													<xsl:with-param name="country" select=".//us-residence//country"></xsl:with-param>                                    
												</xsl:call-template>       
											</xsl:otherwise>                              
										</xsl:choose>                           
									</fo:inline>                        
								</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>                  
						<xsl:choose>                     
							<xsl:when test=".//addressbook/address">                        
								<fo:table-row>                           
									<fo:table-cell xsl:use-attribute-sets="tdL">                              
										<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- <xsl:value-of select="$inventor_seq"></xsl:value-of>-3</fo:block>                           
									</fo:table-cell>                           
									<fo:table-cell xsl:use-attribute-sets="tdC">                              
										<fo:block>                                 
											Mailing Address:                               
										</fo:block>                           
									</fo:table-cell>                           
									<fo:table-cell xsl:use-attribute-sets="tdR">                              
										<fo:block padding-top="1pt">                                 
											<fo:inline font-weight="bold">                                    
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														<xsl:if test=".//addressbook[1]/address/country">
															<fo:block>
																<xsl:call-template name="country_ChoiceText">
																	<xsl:with-param name="country" select=".//addressbook[1]/address/country"></xsl:with-param>
																</xsl:call-template>
															</fo:block>
														</xsl:if>
														<xsl:if test=".//addressbook[1]/address/state">
															<fo:block>
																<xsl:value-of select=".//addressbook[1]/address/state"></xsl:value-of>
															</fo:block>
														</xsl:if>
														<xsl:for-each select=".//addressbook[1]/address//*[not(name(.)='country' or name(.)='state')]">
															<xsl:choose>
																<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																	<fo:block white-space="pre" wrap-option="wrap">
																		<xsl:value-of select="."></xsl:value-of>
																	</fo:block>
																</xsl:when>
																<xsl:otherwise>
																	<fo:block white-space-collapse="false" wrap-option="wrap">															
																		<xsl:value-of select="."></xsl:value-of>   
																	</fo:block>
																</xsl:otherwise>
															</xsl:choose>
														</xsl:for-each>
													</xsl:when>
													<xsl:otherwise>
														<xsl:for-each select=".//addressbook[1]/address/*">   
															<xsl:choose>                                          
																<xsl:when test="name(.)='city' or name(.)='state'">                                             
																	<xsl:value-of select="."></xsl:value-of>                                             
																	<xsl:text> </xsl:text>                                       
																</xsl:when>  
																<xsl:when test="name(.)='country'">
																	<xsl:call-template name="country_ChoiceText">
																		<xsl:with-param name="country" select="."></xsl:with-param>
																	</xsl:call-template>  
																</xsl:when>                                          
																<xsl:otherwise>                                             
																	<xsl:choose>
																		<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																			<fo:block white-space="pre" wrap-option="wrap">
																				<xsl:value-of select="."></xsl:value-of>
																			</fo:block>
																		</xsl:when>
																		<xsl:otherwise>
																			<fo:block white-space-collapse="false" wrap-option="wrap">															
																				<xsl:value-of select="."></xsl:value-of>   
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																	<fo:block></fo:block>                                          
																</xsl:otherwise>                                       
															</xsl:choose>                                    
														</xsl:for-each>                                 
													</xsl:otherwise>
												</xsl:choose>                                    
											</fo:inline>                              
										</fo:block>                           
									</fo:table-cell>                        
								</fo:table-row>                     
								<xsl:if test="./addressbook[2]">  
									<xsl:if test="./addressbook[@lang='en']">  
										<fo:table-row>                        
											<fo:table-cell xsl:use-attribute-sets="tdL">                           
												<fo:block></fo:block>                        
											</fo:table-cell>                        
											<fo:table-cell xsl:use-attribute-sets="tdC">                           
												<fo:block>                              
													Mailing Address:                           
												</fo:block>                        
											</fo:table-cell>                        
											<fo:table-cell xsl:use-attribute-sets="tdR">                           
												<fo:block padding-top="1pt">                              
													<fo:inline font-weight="bold">        
														<xsl:choose>
															<xsl:when test="$lang='ja'">
																<xsl:for-each select="./addressbook[2]/address//*[not(name(.)='country' or name(.)='state')]">
																	<xsl:choose>
																		<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																			<fo:block white-space="pre" wrap-option="wrap">
																				<xsl:value-of select="."></xsl:value-of>
																			</fo:block>
																		</xsl:when>
																		<xsl:otherwise>
																			<fo:block white-space-collapse="false" wrap-option="wrap">															
																				<xsl:value-of select="."></xsl:value-of>   
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:for-each>
																<xsl:if test="./addressbook[2]/address/state">
																	<fo:block>
																		<xsl:value-of select="./addressbook[2]/address/state"></xsl:value-of>
																	</fo:block>
																</xsl:if>
																<xsl:if test="./addressbook[2]/address/country">
																	<fo:block>
																		<xsl:call-template name="enCountry_ChoiceText">
																			<xsl:with-param name="country" select="./addressbook[2]/address/country"></xsl:with-param>
																		</xsl:call-template>
																	</fo:block>
																</xsl:if>
															</xsl:when>
															<xsl:otherwise>
																<xsl:for-each select="./addressbook[2]/address/*">                                    
																	<xsl:choose>                                       
																		<xsl:when test="name(.)='city' or name(.)='state'">                                          
																			<xsl:value-of select="."></xsl:value-of>                                          
																			<xsl:text> </xsl:text>                                       
																		</xsl:when> 
																		<xsl:when test="name(.)='country'">
																			<xsl:call-template name="enCountry_ChoiceText">
																				<xsl:with-param name="country" select="."></xsl:with-param>
																			</xsl:call-template> 
																		</xsl:when>                                       
																		<xsl:otherwise>                                          
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select="."></xsl:value-of>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">															
																						<xsl:value-of select="."></xsl:value-of>   
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block></fo:block>                                       
																		</xsl:otherwise>                                    
																	</xsl:choose>                                 
																</xsl:for-each>                              
															</xsl:otherwise>
														</xsl:choose>                         
													</fo:inline>                           
												</fo:block>                        
											</fo:table-cell>                     
										</fo:table-row>                  
									</xsl:if>  
								</xsl:if>  
							</xsl:when>                  
						</xsl:choose>                  
						<fo:table-row>                     
							<fo:table-cell xsl:use-attribute-sets="tdL">                        
								<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- <xsl:value-of select="$inventor_seq"></xsl:value-of>-4</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdC">                        
								<fo:block>                           
									Inventor’s Signature:                           
									<fo:block></fo:block>                           
									(The signature must be that of the inventor, not that of the agent)                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdR">                        
								<fo:block padding-top="1pt">                           
									<fo:inline font-weight="bold">                              
										<xsl:choose>                                 
											<xsl:when test="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/fax-image"> 
												<fo:external-graphic>
													<xsl:if test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
														<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>											
														<xsl:attribute name="width">100mm</xsl:attribute>											
													</xsl:if>										
													<!-- NOTE: XEP will not load files in same directory if 'file:///' is prepended -->
													<xsl:attribute name="src">   
														<xsl:choose>  
															<xsl:when test="contains(ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/fax-image/@file,'/') or contains(ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/fax-image/@file,'\') or contains(ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/fax-image/@file,':')"> 
																<xsl:value-of select="concat('file:///',ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/fax-image/@file)"></xsl:value-of>  
															</xsl:when>  
															<xsl:otherwise> 
																<xsl:choose>
																	<xsl:when test="$baseDir != ''"> 
																		<xsl:value-of select="concat('file:///', $baseDir, ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/fax-image/@file)"></xsl:value-of>  
																	</xsl:when>
																	<xsl:otherwise>
																		<xsl:value-of select="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/fax-image/@file"></xsl:value-of>
																	</xsl:otherwise>
																</xsl:choose>
															</xsl:otherwise>   
														</xsl:choose>
													</xsl:attribute> 
												</fo:external-graphic>                                 
											</xsl:when>                                 
											<xsl:when test="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/click-wrap">                                    
												(Applicant clicked "Yes")                                 
											</xsl:when>                                 
											<xsl:when test="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/text-string">                                    
												<xsl:value-of select="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]//text-string"></xsl:value-of>                                 
											</xsl:when>                                 
											<xsl:when test="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature//pkcs7">                                    
												(PKCS7 Digital Signature)                                 
											</xsl:when>                              
										</xsl:choose>                           
									</fo:inline>                        
								</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>                  
						<fo:table-row>                     
							<fo:table-cell xsl:use-attribute-sets="tdBL">                        
								<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- <xsl:value-of select="$inventor_seq"></xsl:value-of>-5</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdBC">                        
								<fo:block>                           
									Date:                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdBR">                        
								<fo:block padding-top="1pt">                           
									<fo:inline font-weight="bold">                  
										<xsl:if test="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/@date">                                 
											<xsl:call-template name="format_date">                                 
												<xsl:with-param name="date" select="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/@date"></xsl:with-param>                                 
												<xsl:with-param name="show_date" select="1"></xsl:with-param>   
												<xsl:with-param name="text" select="1"></xsl:with-param>   
												<xsl:with-param name="lang" select="$lang"></xsl:with-param>   
												<xsl:with-param name="date_too" select="1"></xsl:with-param>
											</xsl:call-template>                           
										</xsl:if>                           
									</fo:inline>                        
								</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>
					</fo:table-body> 
				</fo:table>         
			</xsl:for-each>      
		</xsl:if>   
	</xsl:template>
	<xsl:template name="process_dec5">
		<xsl:variable name="lack_seq" select="@sequence"></xsl:variable>
		<fo:table table-layout="fixed" border-collapse="separate">
			<fo:table-column column-width="12mm"></fo:table-column>
			<fo:table-column column-width="53mm"></fo:table-column>
			<fo:table-column column-width="105mm"></fo:table-column>
			<fo:table-body>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTL">
						<fo:block>
						<xsl:element name="fo:block">
							<fo:inline font-weight="bold">VIII-5-<xsl:value-of select="$lack_seq"></xsl:value-of>
							</fo:inline>
						</xsl:element>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							<fo:inline font-weight="bold">
								Declaration: Non-prejudicial disclosure or exceptions to lack of novelty
							</fo:inline>
							<fo:block></fo:block>
							Declaration as to non-prejudicial disclosures or exceptions to lack of novelty (Rules 4.17(v) and 51bis.1(a)(v)):
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTR">
						<fo:block padding-before="9mm">
							<fo:inline font-weight="bold">
								In relation to 
								<xsl:choose>
									<xsl:when test=".//application-reference">
										<xsl:if test="not($lang='ja')">
											the international application No.
										</xsl:if>
										<xsl:value-of select=".//country"></xsl:value-of>
										<xsl:text>
										</xsl:text>
										<xsl:value-of select=".//doc-number"></xsl:value-of>
										<xsl:if test="$lang='ja'">
											the international application No.
										</xsl:if>
									</xsl:when>
									<xsl:otherwise>
										this international application
									</xsl:otherwise>
								</xsl:choose>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell>
						<fo:block></fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdC">
						<fo:block>
							<xsl:call-template name="nameType">
								<xsl:with-param name="nam" select="."></xsl:with-param>
							</xsl:call-template>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdR">
						<fo:block padding-top="1pt">
							<fo:inline font-weight="bold">
								<xsl:call-template name="format_name">
									<xsl:with-param name="name_arg" select="."></xsl:with-param>
								</xsl:call-template>
							</fo:inline>
						</fo:block>
						<fo:block>
							<fo:inline font-weight="bold">
								 declares that the subject matter claimed in this international application was disclosed as follows:
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<xsl:for-each select=".//method-of-disclosure">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdTL">
							<fo:block>VIII-5-<xsl:value-of select="$lack_seq"></xsl:value-of></fo:block>
							<fo:block>(i)</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<fo:block>
								Kind of disclosure:
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:choose>
										<xsl:when test="./international-exhibition/text()">
											<xsl:value-of select="./international-exhibition"></xsl:value-of>
										</xsl:when>
										<xsl:when test="./international-exhibition">
											International exhibition
										</xsl:when>
										<xsl:when test="./publication/text()">
											<xsl:value-of select="./publication"></xsl:value-of>
										</xsl:when>
										<xsl:when test="./publication">
											Publication
										</xsl:when>
										<xsl:when test="./abuse/text()">
											<xsl:value-of select="./abuse"></xsl:value-of>
										</xsl:when>
										<xsl:when test="./abuse">
											Abuse
										</xsl:when>
										<xsl:when test="./other">
											Other: 
											<xsl:value-of select="./other"></xsl:value-of>
										</xsl:when>
									</xsl:choose>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>VIII-5-<xsl:value-of select="$lack_seq"></xsl:value-of></fo:block>
							<fo:block>(ii)</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>
								Date of disclosure:
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:call-template name="format_date">
										<xsl:with-param name="date" select="preceding-sibling::date[1]"></xsl:with-param>
										<xsl:with-param name="lang" select="$lang"></xsl:with-param>
										<xsl:with-param name="show_date" select="1"></xsl:with-param>
										<xsl:with-param name="text" select="1"></xsl:with-param>
										<xsl:with-param name="date_too" select="1"></xsl:with-param>
									</xsl:call-template>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>VIII-5-<xsl:value-of select="$lack_seq"></xsl:value-of></fo:block>
							<fo:block>(iii)</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>
								Title of disclosure:
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:value-of select="preceding-sibling::title-of-disclosure[1]"></xsl:value-of>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>VIII-5-<xsl:value-of select="$lack_seq"></xsl:value-of></fo:block>
							<fo:block>(iv)</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>
								Place of disclosure:
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:choose>
										<xsl:when test="not($lang='ja')">
											<xsl:choose>
												<xsl:when test="name(.)='city' or name(.)='state'">
													<xsl:value-of select="."></xsl:value-of>
													<xsl:text> 
													</xsl:text>
												</xsl:when>
												<xsl:when test="name(.)='country'">
													<xsl:call-template name="country_ChoiceText">
														<xsl:with-param name="country" select="."></xsl:with-param>
													</xsl:call-template>
												</xsl:when>
												<xsl:otherwise>
				                                    <xsl:value-of select="following-sibling::address[1]/text"></xsl:value-of>
													<fo:block></fo:block>
												</xsl:otherwise>
											</xsl:choose>
										</xsl:when>
										<xsl:when test="$lang='ja' and (following-sibling::*[1][name()='address'] or contains($software_name,'SAFE'))">
											<xsl:value-of select="following-sibling::address[1]/text"></xsl:value-of>
										</xsl:when>
										<!-- JA address precedes other elements and uses <text> instead of subelements -->
										<xsl:otherwise>
											<xsl:value-of select="preceding-sibling::address[1]/text"></xsl:value-of>
										</xsl:otherwise>
									</xsl:choose>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell number-columns-spanned="3" border-top="solid black 0.25pt">
							<fo:block></fo:block>
						</fo:table-cell>
					</fo:table-row>
				</xsl:for-each>
			</fo:table-body>
		</fo:table>
	</xsl:template>
	<xsl:template 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 of applicant
									</xsl:when>
									<xsl:otherwise>
										Signature of applicant, agent or common representative  
									</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">                                 
										(Applicant clicked "Yes")
									</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 Digital Signature)
									</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>                     
									Name
								</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>                     
									Name (LAST, First)
								</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>         
								Name of signatory 
							</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>         
							Capacity (if such capacity is not obvious from reading the request)
						</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="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:key name="allCharge" match="//charge" use="."></xsl:key><xsl:key name="allPostal" match="//postal-order" use="."></xsl:key><xsl:key name="allCash" match="//cash" use="."></xsl:key><xsl:key name="allCoupons" match="//coupons" use="."></xsl:key><xsl:key name="allCheque" match="//cheque" use="."></xsl:key><xsl:key name="allBank" match="//bank-draft" use="."></xsl:key><xsl:key name="allStamps" match="//stamps" use="."></xsl:key><xsl:key name="allOther" match="//other" use="."></xsl:key><xsl:key name="allCur" match="//*/@currency" use="."></xsl:key><xsl:key name="fee-currency" match="prescribed-fees/* | amount-grand-total" use="@currency"></xsl:key><xsl:template name="fee_info">      
		<xsl:choose>         
			<xsl:when test="$fee_doc != ''">         
				<xsl:for-each select="document($fee_doc)/*">
					<xsl:choose>   
						<xsl:when test="document($fee_doc)//doc-page">  
							<xsl:for-each select="document($fee_doc)//doc-page"> 
								<xsl:apply-templates select="."></xsl:apply-templates>  
							</xsl:for-each>   
						</xsl:when>   
						<xsl:otherwise>  
							<xsl:call-template name="process_fee_info"></xsl:call-template>   
						</xsl:otherwise>
					</xsl:choose>
				</xsl:for-each>  
			</xsl:when>      
			<!-- when no fee parameter (e.g., fee-sheet document) -->
			<xsl:otherwise>            
				<xsl:choose>               
					<xsl:when test="./doc-page">                  
						<xsl:for-each select="./doc-page">                     
							<xsl:apply-templates select="doc-page"></xsl:apply-templates>                  
						</xsl:for-each>               
					</xsl:when>               
					<xsl:otherwise>
						<xsl:call-template name="process_fee_info"></xsl:call-template>        
					</xsl:otherwise>            
				</xsl:choose>         
			</xsl:otherwise>      
		</xsl:choose>   
		<xsl:call-template name="remarks"></xsl:call-template>       
	</xsl:template><xsl:template name="process_fee_info">    
		<!-- get the currencies used -->
		<xsl:variable name="uCharge" select="//charge[generate-id(.)=generate-id(key('allCharge',.))]"></xsl:variable>   
		<xsl:variable name="uPostal" select="//postal-order[generate-id(.)=generate-id(key('allPostal',.))]"></xsl:variable>   
		<xsl:variable name="uCash" select="//cash[generate-id(.)=generate-id(key('allCash',.))]"></xsl:variable>   
		<xsl:variable name="uCoupons" select="//coupons[generate-id(.)=generate-id(key('allCoupons',.))]"></xsl:variable>   
		<xsl:variable name="uCheque" select="//cheque[generate-id(.)=generate-id(key('allCheque',.))]"></xsl:variable>   
		<xsl:variable name="uBank" select="//bank-draft[generate-id(.)=generate-id(key('allBank',.))]"></xsl:variable>   
		<xsl:variable name="uStamps" select="//stamps[generate-id(.)=generate-id(key('allStamps',.))]"></xsl:variable>   
		<xsl:variable name="uOther" select="//other[generate-id(.)=generate-id(key('allOther',.))]"></xsl:variable>   
		<!-- variable to store the number of different payment modes; used in box 12-19 -->
		<xsl:variable name="pModes" select="count($uCharge) + count($uPostal) + count($uCash) + count($uCoupons) + count($uCheque) + count($uBank) + count($uStamps) + count($uOther)"></xsl:variable>
		<xsl:variable name="curCount" select="count(.//*/@currency[generate-id(.)=generate-id(key('allCur',.))])"></xsl:variable>      
		<xsl:variable name="unique-currencies" select=".//prescribed-fees/*[count( . | key('fee-currency', @currency)[1]) = 1] | .//amount-grand-total[count( . | key('fee-currency', @currency)[1]) = 1]"></xsl:variable>      
		<fo:table table-layout="fixed" border-collapse="separate" space-after="5mm">         
			<fo:table-column column-width="12mm"></fo:table-column>         
			<fo:table-column column-width="53mm"></fo:table-column>         
			<fo:table-column column-width="105mm"></fo:table-column>         
			<fo:table-body>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdTL">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>0</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTC">                  
						<fo:block space-after="1.5mm">                     
							<fo:inline font-weight="bold">                        
								For receiving Office use only                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTL">                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdBL">                  
						<fo:block>                     
							<xsl:text>0-1</xsl:text>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBC">                  
						<fo:block>                     
							International Application No.                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBR">
						<fo:block>
						<xsl:choose>
							<xsl:when test="document($rrri_doc)//doc-number">
									<xsl:value-of select="document($rrri_doc)//doc-number"></xsl:value-of>
							</xsl:when>
							<xsl:when test="$ia_number">
									<xsl:value-of select="$ia_number"></xsl:value-of>
							</xsl:when>
						</xsl:choose>
						</fo:block>    
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdBL">                  
						<fo:block space-after="2.5mm">                     
							<fo:inline font-weight="bold">                        
								<xsl:text>0-2</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBC">                  
						<fo:block>                     
							Date stamp of the receiving Office                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderBottom">                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>         
			</fo:table-body>      
		</fo:table>      
		<fo:table table-layout="fixed" border-collapse="separate">         
			<fo:table-column column-width="12mm"></fo:table-column>         
			<fo:table-column column-width="48mm"></fo:table-column>         
			<fo:table-column column-width="5mm"></fo:table-column>         
			<fo:table-column column-width="31mm"></fo:table-column>         
			<fo:table-column column-width="41mm"></fo:table-column>         
			<fo:table-column column-width="33mm"></fo:table-column>         
			<fo:table-body>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdTL">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>0-4</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								Form PCT/RO/101 (Annex)                        
								<fo:block space-before=".5mm"></fo:block>                        
								PCT Fee Calculation Sheet                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTop" number-columns-spanned="3">                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdBL">                  
						<fo:block>                     
							<xsl:text>0-4-1</xsl:text>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBC" number-columns-spanned="2">                  
						<fo:block>                     
							Prepared Using                  
						</fo:block>               
					</fo:table-cell>   
					<fo:table-cell xsl:use-attribute-sets="tdBR" number-columns-spanned="3">                  
						<fo:block>                  
							<fo:inline font-weight="bold"> 
								<xsl:value-of select="$software_name"></xsl:value-of> 
								<fo:block></fo:block>
								<xsl:value-of select="$software_version"></xsl:value-of> 
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>            
				</fo:table-row>   
            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdBL">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>0-9</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBC" number-columns-spanned="2">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								Applicant's or agent's file reference                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBR" number-columns-spanned="3">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:value-of select=".//file-reference-id"></xsl:value-of>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>2</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdC" number-columns-spanned="2">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								Applicant                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdR" number-columns-spanned="3">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:choose>                           
									<xsl:when test=".//applicant-name/name">                              
										<xsl:call-template name="uppercaser">                                 
											<xsl:with-param name="string" select=".//applicant-name/name"></xsl:with-param>                              
										</xsl:call-template>                           
									</xsl:when>                           
									<xsl:otherwise>                              
										<xsl:call-template name="uppercaser">                                 
											<xsl:with-param name="string" select=".//applicant-name/last-name"></xsl:with-param>                              
										</xsl:call-template>                                
                              
										<xsl:text>, </xsl:text>                              
										<xsl:value-of select=".//applicant-name/first-name"></xsl:value-of>                           
									</xsl:otherwise>                        
								</xsl:choose>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdTL" text-align="left">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>12</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								Calculation of prescribed fees                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTL" text-align="center">                  
						<fo:block>                     
							Fee amount/multiplier                  
						</fo:block>               
					</fo:table-cell>
					<xsl:for-each select=".//prescribed-fees/*">
						<xsl:sort select="@currency"></xsl:sort>
						<xsl:if test="not(@currency = preceding-sibling::*/@currency)"> 
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">   
							<!--202001 show equivalent amount !-->
								<xsl:choose>
									<xsl:when test="@currency = 'EQF'">
										<fo:block>
											Total amounts   
										</fo:block>
										<fo:block>
											(equivalent in 
											<xsl:choose>
												<xsl:when test="..//transmittal-fee/@currency != 'EQF'">
													<xsl:value-of select="..//transmittal-fee/@currency"></xsl:value-of>
												</xsl:when>
												<xsl:when test="..//search-fee/@currency != 'EQF'">
													<xsl:value-of select="..//search-fee/@currency"></xsl:value-of>															
												</xsl:when>
												<xsl:when test="..//international-fee/@currency != 'EQF'">
													<xsl:value-of select="..//international-fee/@currency"></xsl:value-of>															
												</xsl:when>
												<xsl:when test="..//pdoc-fee/@currency != 'EQF'">
													<xsl:value-of select="..//pdoc-fee/@currency"></xsl:value-of>
												</xsl:when>
												<xsl:when test="..//restoration-fee/@currency != 'EQF'">
													<xsl:value-of select="..//restoration-fee/@currency"></xsl:value-of>															
												</xsl:when>
												<xsl:when test="..//earlier-search-document-fee/@currency != 'EQF'">
													<xsl:value-of select="..//earlier-search-document-fee/@currency"></xsl:value-of>
												</xsl:when>
											</xsl:choose>
											 of CHF)
										</fo:block>	
									</xsl:when>
									<xsl:when test="@currency = 'EQU'">
										<fo:block>
											Total amounts   
										</fo:block>
										<fo:block>
											(equivalent in 
											<xsl:choose>
												<xsl:when test="..//transmittal-fee/@currency != 'EQU'">
													<xsl:value-of select="..//transmittal-fee/@currency"></xsl:value-of>
												</xsl:when>
												<xsl:when test="..//search-fee/@currency != 'EQU'">
													<xsl:value-of select="..//search-fee/@currency"></xsl:value-of>															
												</xsl:when>
												<xsl:when test="..//international-fee/@currency != 'EQU'">
													<xsl:value-of select="..//international-fee/@currency"></xsl:value-of>															
												</xsl:when>
												<xsl:when test="..//pdoc-fee/@currency != 'EQU'">
													<xsl:value-of select="..//pdoc-fee/@currency"></xsl:value-of>
												</xsl:when>
												<xsl:when test="..//restoration-fee/@currency != 'EQU'">
													<xsl:value-of select="..//restoration-fee/@currency"></xsl:value-of>															
												</xsl:when>
												<xsl:when test="..//earlier-search-document-fee/@currency != 'EQU'">
													<xsl:value-of select="..//earlier-search-document-fee/@currency"></xsl:value-of>
												</xsl:when>
											</xsl:choose>
											 of USD)
										</fo:block>	
									</xsl:when>
									<xsl:otherwise>	
										<fo:block>   
											Total amounts    (<xsl:value-of select="@currency"></xsl:value-of>)
										</fo:block>
									</xsl:otherwise>
								</xsl:choose>
							</fo:table-cell> 
						</xsl:if>
					</xsl:for-each> 
					<xsl:if test="$curCount = 1">
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
							<fo:block></fo:block>
						</fo:table-cell> 
					</xsl:if> 			 
            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL">                  
						<fo:block text-align="center">12-1</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
						<fo:block>                  
							Transmittal fee                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>T</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTL">                  
						<fo:block font-size="11pt" font-family="ZapfDingbats" text-align="center">➪</fo:block>               
					</fo:table-cell> 
					<xsl:for-each select=".//transmittal-fee"> 
						<xsl:variable name="this-fee" select="."></xsl:variable> 
						<xsl:for-each select="$unique-currencies"> 
							<xsl:sort select="@currency"></xsl:sort> 
							<!-- use with 'if' test below to trap NaN values -->
							 
							<xsl:variable name="fNum">
								<xsl:value-of select="$this-fee[@currency = current()/@currency]/amount-total"></xsl:value-of> 
							</xsl:variable>   
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="right">   
								<fo:block>   
									<xsl:if test="boolean(number($fNum))">
										<fo:inline font-weight="bold">   
											<xsl:if test="$fNum &gt; 0">
												<xsl:value-of select="$fNum"></xsl:value-of>   
											</xsl:if>
										</fo:inline>
									</xsl:if>
								</fo:block>   
							</fo:table-cell> 
						</xsl:for-each> 
					</xsl:for-each> 
					<xsl:if test="$curCount = 1">
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
							<fo:block></fo:block>
						</fo:table-cell> 
					</xsl:if>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                  
						<fo:block>12-2<xsl:if test=".//isa">-1</xsl:if>
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
						<fo:block>                  
							Search fee                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>S</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTL" text-align="center">                  
						<fo:block font-family="ZapfDingbats" font-size="11pt" padding="1pt">➪</fo:block>               
					</fo:table-cell> 
					<xsl:for-each select=".//search-fee"> 
						<xsl:variable name="this-fee" select="."></xsl:variable> 
						<xsl:for-each select="$unique-currencies"> 
							<xsl:sort select="@currency"></xsl:sort> 
							<!-- use with 'if' test below to trap NaN values -->
							 
							<xsl:variable name="fNum">
								<xsl:value-of select="$this-fee[@currency = current()/@currency]/amount-total"></xsl:value-of> 
							</xsl:variable> 
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="right">   
								<fo:block>   
									<xsl:if test="boolean(number($fNum))">
										<fo:inline font-weight="bold">   
											<xsl:if test="$fNum &gt; 0">
												<xsl:value-of select="$fNum"></xsl:value-of>   
											</xsl:if>
										</fo:inline>
									</xsl:if>
								</fo:block> 
							</fo:table-cell> 
						</xsl:for-each> 
					</xsl:for-each> 
					<xsl:if test="$curCount = 1">
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
							<fo:block></fo:block>
						</fo:table-cell> 
					</xsl:if>            
				</fo:table-row>            
				<xsl:if test=".//isa">
					<fo:table-row>   
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">  
							<fo:block>12-2-2</fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" border-right="solid black 0.5pt" text-align="left" number-columns-spanned="2">  
							<fo:block>
								International search to be carried out by   
							</fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdTR">  
							<fo:block>  
								<fo:inline font-weight="bold">  
									<xsl:value-of select="translate(.//isa,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:value-of>
								</fo:inline>  
							</fo:block>   
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" number-columns-spanned="2">               
							<fo:block></fo:block>               
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<fo:table-row>   
					<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">  
						<fo:block>12-3</fo:block>   
					</fo:table-cell>   
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" border-right="solid black 0.5pt" text-align="left" number-columns-spanned="2">  
						<fo:block>
							International filing fee   
						</fo:block>   
					</fo:table-cell>   
					<!--
					<fo:table-cell xsl:use-attribute-sets = "tdBorderTopRight"> 
					-->
					<fo:table-cell xsl:use-attribute-sets="tdTR">  
						<fo:block></fo:block>   
					</fo:table-cell>               
					<xsl:choose>               
						<xsl:when test=".//isa">               
							<fo:table-cell number-columns-spanned="2" xsl:use-attribute-sets="tdBorderLeft"><fo:block></fo:block> </fo:table-cell>
						</xsl:when>               
						<xsl:otherwise>               
							<fo:table-cell number-columns-spanned="2" xsl:use-attribute-sets="tdBorderTopLeft"><fo:block></fo:block> </fo:table-cell> 
						</xsl:otherwise>               
					</xsl:choose>
				</fo:table-row>            
				<xsl:if test="($mode='v1.0' or $mode='v1.1')">
					<fo:table-row>               
						<fo:table-cell xsl:use-attribute-sets="tdL">                  
							<fo:block></fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
							<fo:block space-after="1mm" start-indent="3mm">
								<xsl:text>     
								</xsl:text>                     
								Basic fee                  
							</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderRight">                  
							<fo:block></fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdR">                  
							<fo:block></fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
							<fo:block></fo:block>               
						</fo:table-cell>               
						<fo:table-cell>                  
							<fo:block></fo:block>               
						</fo:table-cell>            
					</fo:table-row>            
				</xsl:if>
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL">                  
						<fo:block></fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
						<fo:block start-indent="5mm">                     
							(first 30 sheets)                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderRight" text-align="center">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:choose>
									<xsl:when test="not($mode='v1.0' or $mode='v1.1')">
										<xsl:text>i1</xsl:text>                     
									</xsl:when>
									<xsl:otherwise>
										<xsl:text>b1</xsl:text>                     
									</xsl:otherwise>
								</xsl:choose>
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdR" text-align="right">                  
						<fo:block>                     
							<fo:inline font-weight="bold">  
								<xsl:value-of select=".//basic-fee/amount-each"></xsl:value-of>  
								<xsl:if test="$curCount &gt; 1">  	 
									<!-- 202001	 
									<xsl:value-of select = ".//international-fee/@currency"/>  !-->
								</xsl:if>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
						<fo:block></fo:block>               
					</fo:table-cell>               
					<fo:table-cell>                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                  
						<fo:block>12-4</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
						<fo:block start-indent="5mm">                  
							Remaining sheets                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
						<fo:block></fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTR">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:choose>                           
									<xsl:when test=".//sheets-over-30">
										<xsl:value-of select=".//sheets-over-30"></xsl:value-of>                           
									</xsl:when>                           
									<xsl:otherwise>                              
										<xsl:text>0</xsl:text>                              
                           
									</xsl:otherwise>                        
								</xsl:choose>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                  
						<fo:block>12-5</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
						<fo:block start-indent="5mm">                  
							Additional amount                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
						<fo:block>                     
							<fo:inline font-weight="bold" font-size="7pt">                        
								<xsl:text>(X)</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTR">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:choose>                           
									<xsl:when test=".//additional-amount/amount-each">  
										<xsl:value-of select=".//additional-amount/amount-each"></xsl:value-of>                           
									</xsl:when>                           
									<xsl:otherwise>                              
										<xsl:text>0</xsl:text>                              
                           
									</xsl:otherwise>                        
								</xsl:choose>                        
								<xsl:if test="$curCount &gt; 1">                        
									<!-- 2020 equivalent                         
									<xsl:value-of select = ".//international-fee/@currency"/> !-->                   
								</xsl:if>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
						<fo:block></fo:block>               
					</fo:table-cell>               
					<fo:table-cell>                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                  
						<fo:block>12-6</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
						<fo:block start-indent="5mm">                  
							Total additional amount                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:choose>
									<xsl:when test="not($mode='v1.0' or $mode='v1.1')">
										<xsl:text>i2</xsl:text>                     
									</xsl:when>
									<xsl:otherwise>
										<xsl:text>b2</xsl:text>                     
									</xsl:otherwise>
								</xsl:choose>
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="right">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:choose>                           
									<xsl:when test=".//total-additional-amount">  
										<xsl:value-of select=".//total-additional-amount"></xsl:value-of>                           
									</xsl:when>                           
									<xsl:otherwise>                              
										<xsl:text>0</xsl:text>                           
									</xsl:otherwise>                        
								</xsl:choose>                        
								<xsl:if test="$curCount &gt; 1">                        
									<!--
									<xsl:value-of select = ".//international-fee/@currency"/> !-->                       
								</xsl:if>                        
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
						<fo:block></fo:block>               
					</fo:table-cell>               
					<fo:table-cell>                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                  
						<fo:block>12-7</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
						<fo:block start-indent="5mm">
							<xsl:choose>
								<xsl:when test="not($mode='v1.0' or $mode='v1.1')">
									<xsl:text>i1 + i2 =</xsl:text>                     
								</xsl:when>
								<xsl:otherwise>
									<xsl:text>b1 + b2 =</xsl:text>                     
								</xsl:otherwise>
							</xsl:choose>
						</fo:block>
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:choose>
									<xsl:when test="not($mode='v1.0' or $mode='v1.1')">
										<xsl:text>i</xsl:text>                     
									</xsl:when>
									<xsl:otherwise>
										<xsl:text>B</xsl:text>                     
									</xsl:otherwise>
								</xsl:choose>
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="right">                  
						<fo:block>                  
							<fo:inline font-weight="bold">                        
								<xsl:choose>                           
									<xsl:when test=".//basic-fee/amount-total">  
										<xsl:value-of select=".//basic-fee/amount-total"></xsl:value-of>                           
									</xsl:when>                           
									<xsl:otherwise>  
										<xsl:value-of select="number(translate(.//basic-fee/amount-each,' .,:-','')) + number(.//total-additional-amount)"></xsl:value-of>
									</xsl:otherwise>                        
								</xsl:choose>                        
								<xsl:if test="$curCount &gt; 1">                        
									<!--
									<xsl:value-of select = ".//international-fee/@currency"/>   !-->                     
								</xsl:if>                      
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
						<fo:block></fo:block>               
					</fo:table-cell>               
					<fo:table-cell>                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<xsl:if test="(.//designation-fee) and ($mode='v1.0' or $mode='v1.1')">               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                     
							<fo:block>12-8</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                     
							<fo:block space-after="1mm" start-indent="3mm">                     
								Designation fees                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderTop">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell>                     
							<fo:block></fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row>                  
						<fo:table-cell>                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdC" number-columns-spanned="2">                     
							<fo:block start-indent="5mm">                     
								Number of designations contained in international application                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdR">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                           
									<xsl:value-of select=".//number-of-designation"></xsl:value-of>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell>                     
							<fo:block></fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                     
							<fo:block>12-9</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                     
							<fo:block start-indent="5mm">                     
								Number of designation fees payable (maximum 5)                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                           
									<xsl:value-of select=".//designation-fee-payable"></xsl:value-of>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell>                     
							<fo:block></fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                     
							<fo:block>12-10</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                     
							<fo:block start-indent="5mm">                     
								Amount of designation fee                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                     
							<fo:block>                        
								<fo:inline font-weight="bold" font-size="7pt">                           
									<xsl:text>(X)</xsl:text>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="left">                     
							<fo:block>                        
								<fo:inline font-weight="bold">  
									<xsl:value-of select=".//designation-fee/amount-each"></xsl:value-of>  
									<xsl:if test="$curCount &gt; 1">                        
										<!-- 
										<xsl:value-of select = ".//international-fee/@currency"/>  !-->
									</xsl:if>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell>                     
							<fo:block></fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                     
							<fo:block>12-11</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                     
							<fo:block start-indent="5mm">                     
								Total desigation fees                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                           
									<xsl:text>D</xsl:text>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="right">                     
							<fo:block>                        
								<fo:inline font-weight="bold">
									<xsl:value-of select=".//designation-fee/amount-total"></xsl:value-of>
									<xsl:if test="$curCount &gt; 1">
										<!-- 
										<xsl:value-of select = ".//international-fee/@currency"/> !-->
									</xsl:if>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell>                     
							<fo:block></fo:block>                  
						</fo:table-cell>               
					</fo:table-row>            
				</xsl:if>            
				<xsl:for-each select=".//fee-reduction">
					<fo:table-row>               
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                  
							<fo:block>12-12</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
							<fo:block start-indent="3mm">                  
								<xsl:choose>
									<xsl:when test="$mode='v1.0' or $mode='v1.1'">
										<xsl:value-of select="$fee_reduction"></xsl:value-of>
									</xsl:when>
									<xsl:otherwise>
										<xsl:call-template name="reduction_type">
											<xsl:with-param name="reduction" select="@reduction-type"></xsl:with-param>
										</xsl:call-template>
									</xsl:otherwise>
								</xsl:choose>
							</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
							<fo:block>                     
								<fo:inline font-weight="bold">                        
									<xsl:text>R</xsl:text>                     
								</fo:inline>                  
							</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="right">                  
							<fo:block>                  
								<fo:inline font-weight="bold">
									<!--
									<xsl:if test = "$curCount > 1">
										<xsl:value-of select = "translate(parent::international-fee/@currency,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
									</xsl:if> !-->
									<xsl:value-of select="./amount-each"></xsl:value-of>
								</fo:inline>                                
							</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
							<fo:block></fo:block>               
						</fo:table-cell>               
						<fo:table-cell>                  
							<fo:block></fo:block>               
						</fo:table-cell>            
					</fo:table-row>         
				</xsl:for-each>   
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                  
						<fo:block>12-13</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
						<fo:block>                  
							<xsl:choose>
								<xsl:when test="not($mode='v1.0' or $mode='v1.1')">
									Total International filing fee (i-R)                  
								</xsl:when>
								<xsl:otherwise>
									Total International filing fee (B+D+R)                  
								</xsl:otherwise>
							</xsl:choose>
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>I</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTR">                  
						<fo:block font-size="11pt" font-family="ZapfDingbats" text-align="center">➪</fo:block>               
					</fo:table-cell> 
					<xsl:for-each select=".//international-fee"> 
						<xsl:variable name="this-fee" select="."></xsl:variable> 
						<xsl:for-each select="$unique-currencies"> 
							<xsl:sort select="@currency"></xsl:sort> 
							<!-- use with 'if' test below to trap NaN values -->
							<xsl:variable name="fNum">
								<xsl:value-of select="$this-fee[@currency = current()/@currency]/amount-total"></xsl:value-of> 
							</xsl:variable>   
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="right">   
								<fo:block>   
									<xsl:if test="boolean(number($fNum))">
										<fo:inline font-weight="bold">   
											<xsl:if test="$fNum &gt; 0"> 
												<xsl:value-of select="$fNum"></xsl:value-of>   
											</xsl:if>
										</fo:inline>
									</xsl:if>
								</fo:block>   
							</fo:table-cell> 
						</xsl:for-each> 
					</xsl:for-each> 
					<xsl:if test="$curCount = 1">
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
							<fo:block></fo:block>
						</fo:table-cell> 
					</xsl:if>            
				</fo:table-row>
				<xsl:if test=".//pdoc-fee">				
					<xsl:if test="not($lang='ja')">
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">
								<fo:block>12-14</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">
								<fo:block space-after="1mm">
									Fee for priority document
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderTop">
								<fo:block></fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" number-columns-spanned="2">
								<fo:block></fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell>
								<fo:block></fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdC" number-columns-spanned="2">
								<fo:block start-indent="5mm">
									Number of priority documents requested
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block>
									<fo:inline font-weight="bold">
										<xsl:value-of select=".//pdoc-quantity"></xsl:value-of>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">
								<fo:block></fo:block>
							</fo:table-cell>
							<fo:table-cell>
								<fo:block></fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">
								<fo:block>12-15</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">
								<fo:block start-indent="5mm">
									Fee per document
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">
								<fo:block>
									<fo:inline font-weight="bold">(X)</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTR">
								<fo:block>
									<fo:inline font-weight="bold">
										<xsl:value-of select=".//pdoc-fee/amount-each"></xsl:value-of>
										<xsl:if test="$curCount &gt; 1">
											<!--
											<xsl:value-of select = ".//pdoc-fee/@currency"/> !-->
										</xsl:if>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">
								<fo:block></fo:block>
							</fo:table-cell>
							<fo:table-cell>
								<fo:block></fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">
								<fo:block>12-16</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">
								<fo:block>
									Total priority document fee: 
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">
								<fo:block>
									<fo:inline font-weight="bold">P</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTL" text-align="center">
								<fo:block font-size="11pt" font-family="ZapfDingbats">➪</fo:block>
							</fo:table-cell> 
							<xsl:for-each select=".//pdoc-fee"> 
								<xsl:variable name="this-fee" select="."></xsl:variable> 
								<xsl:for-each select="$unique-currencies">     
									<xsl:sort select="@currency"></xsl:sort> 
									<!-- use with 'if' test below to trap NaN values -->
									<xsl:variable name="fNum">
										<xsl:value-of select="$this-fee[@currency = current()/@currency]/amount-total"></xsl:value-of> 
									</xsl:variable>   
									<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="right">   
										<fo:block>   	  
											<xsl:if test="boolean(number($fNum))">
												<fo:inline font-weight="bold">   
													<xsl:if test="$fNum &gt; 0">  
														<xsl:value-of select="$fNum"></xsl:value-of>   
													</xsl:if>
												</fo:inline>  
											</xsl:if>
										</fo:block>   
									</fo:table-cell> 
								</xsl:for-each> 
							</xsl:for-each> 
							<xsl:if test="$curCount = 1">
								<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
									<fo:block></fo:block>
								</fo:table-cell> 
							</xsl:if>
						</fo:table-row>
					</xsl:if>
				</xsl:if>
				<xsl:if test=".//restoration-fee">
					<fo:table-row>   
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">  
							<fo:block>12-17</fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">  
							<fo:block>
								Fee for restoration of priority rights
							</fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight" border-right="solid black 0.5pt">
							<fo:block>
								<fo:inline font-weight="bold">RP</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTL">  
							<fo:block></fo:block>   
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
							<fo:block></fo:block>   
						</fo:table-cell> 
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
							<fo:block></fo:block>   
						</fo:table-cell> 
					</fo:table-row>
					<fo:table-row>   
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">  
							<fo:block></fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft" border-right="solid black 0.5pt" text-align="left" number-columns-spanned="2">  
							<fo:block padding-top="1pt" start-indent="5mm">
								Number of requests for restoration of priority rights
							</fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdR" text-align="left">                  
							<fo:block>                     
								<fo:inline font-weight="bold">                        
									<xsl:choose>                           
										<xsl:when test=".//restoration-quantity">
											<xsl:value-of select=".//restoration-quantity"></xsl:value-of>                           
										</xsl:when>                           
										<xsl:otherwise>                              
											<xsl:text></xsl:text>                              
										</xsl:otherwise>                        
									</xsl:choose>                     
								</fo:inline>                  
							</fo:block>                     
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
							<fo:block>                     
							</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">  
							<fo:block> 
							</fo:block>   
						</fo:table-cell>               
					</fo:table-row>
					<fo:table-row>   
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">  
							<fo:block></fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" border-right="solid black 0.5pt" text-align="left" number-columns-spanned="2">  
							<fo:block>
								Total amount of fees for restoration of priority rights
							</fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdTL">  
							<fo:block> 
							</fo:block>   
						</fo:table-cell>               
						<xsl:for-each select=".//restoration-fee"> 
							<xsl:variable name="this-fee" select="."></xsl:variable> 
							<xsl:for-each select="$unique-currencies"> 
								<xsl:sort select="@currency"></xsl:sort> 
								<!-- use with 'if' test below to trap NaN values -->
								<xsl:variable name="fNum">
									<xsl:value-of select="$this-fee[@currency = current()/@currency]/amount-total"></xsl:value-of> 
								</xsl:variable>   
								<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="right">   
									<fo:block>   
										<xsl:if test="boolean(number($fNum))">
											<fo:inline font-weight="bold">   
												<xsl:if test="$fNum &gt; 0">
													<xsl:value-of select="$fNum"></xsl:value-of>   
												</xsl:if>
											</fo:inline>
										</xsl:if>
									</fo:block>   
								</fo:table-cell> 
							</xsl:for-each> 
						</xsl:for-each> 
						<xsl:if test="$curCount = 1">
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
								<fo:block></fo:block>
							</fo:table-cell> 
						</xsl:if>
					</fo:table-row>
				</xsl:if>
				<xsl:if test=".//earlier-search-document-fee">
					<fo:table-row>   
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">
							<fo:block>12-18</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">
							<fo:block>
								Fee for earlier search documents                     
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">
							<fo:block>
								<fo:inline font-weight="bold">ES</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="left">                  
							<fo:block>                     
								<fo:inline font-weight="bold">                        
									<xsl:choose>                           
										<xsl:when test=".//earlier-search-document-quantity">
											<xsl:value-of select=".//earlier-search-document-quantity"></xsl:value-of>                           
										</xsl:when>                           
										<xsl:otherwise>                              
											<xsl:text></xsl:text>                              
										</xsl:otherwise>                        
									</xsl:choose>                     
								</fo:inline>                  
							</fo:block>                     
						</fo:table-cell>               
						<xsl:for-each select=".//earlier-search-document-fee"> 
							<xsl:variable name="this-fee" select="."></xsl:variable> 
							<xsl:for-each select="$unique-currencies"> 
								<xsl:sort select="@currency"></xsl:sort> 
								<!-- use with 'if' test below to trap NaN values -->
								<xsl:variable name="fNum">
									<xsl:value-of select="$this-fee[@currency = current()/@currency]/amount-total"></xsl:value-of> 
								</xsl:variable>   
								<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="right">   
									<fo:block>   
										<xsl:if test="boolean(number($fNum))">
											<fo:inline font-weight="bold">   
												<xsl:if test="$fNum &gt; 0">
													<xsl:value-of select="$fNum"></xsl:value-of>   
												</xsl:if>
											</fo:inline>
										</xsl:if>
									</fo:block>   
								</fo:table-cell> 
							</xsl:for-each> 
						</xsl:for-each> 
						<xsl:if test="$curCount = 1">
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
								<fo:block></fo:block>
							</fo:table-cell> 
						</xsl:if>              
					</fo:table-row>
				</xsl:if>
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdTL">                  
						<fo:block>                     
							<fo:inline font-weight="bold">12-19</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                  
						<fo:block>
						<xsl:if test=".//restoration-fee">
							<xsl:if test=".//earlier-search-document-fee">
									<fo:inline font-weight="bold">                        
										TOTAL FEES PAYABLE (T+S+I+P+RP+ES)                     
									</fo:inline>                  
							</xsl:if>
							<xsl:if test="not(.//earlier-search-document-fee)">
									<fo:inline font-weight="bold">                        
										TOTAL FEES PAYABLE (T+S+I+P+RP)                     
									</fo:inline>                  
							</xsl:if>
						</xsl:if>
						<xsl:if test="not(.//restoration-fee)">
							<xsl:if test=".//earlier-search-document-fee">
									<fo:inline font-weight="bold">                        
										TOTAL FEES PAYABLE (T+S+I+P+ES)                     
									</fo:inline>                  
							</xsl:if>
							<xsl:if test="not(.//earlier-search-document-fee)">
									<fo:inline font-weight="bold">                        
										TOTAL FEES PAYABLE (T+S+I+P)                     
									</fo:inline>                  
							</xsl:if>
						</xsl:if>
						</fo:block>
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTL" text-align="center">                  
						<fo:block font-size="11pt" font-family="ZapfDingbats">➪</fo:block>               
					</fo:table-cell> 
					<xsl:for-each select=".//amount-grand-total">     
						<xsl:sort select="@currency"></xsl:sort> 
						<xsl:variable name="this-fee" select="."></xsl:variable> 
						<xsl:for-each select="$unique-currencies"> 
							<xsl:variable name="fNum">
								<xsl:value-of select="$this-fee[@currency = current()/@currency]/."></xsl:value-of> 
							</xsl:variable>   
							<xsl:if test="boolean(number($fNum))">   
								<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="right">   
									<fo:block>
										<fo:inline font-weight="bold">
											<xsl:value-of select="$fNum"></xsl:value-of>
										</fo:inline>
									</fo:block>   
								</fo:table-cell>   
							</xsl:if> 
						</xsl:for-each> 
					</xsl:for-each> 
					<xsl:if test="$curCount = 1">
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
							<fo:block></fo:block>
						</fo:table-cell> 
					</xsl:if>            
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell border-top="solid black 0.25pt" number-columns-spanned="6"><fo:block></fo:block></fo:table-cell>
				</fo:table-row>         
			</fo:table-body>       
		</fo:table>            
		<fo:table table-layout="fixed" border-collapse="separate">         
			<fo:table-column column-width="12mm"></fo:table-column>         
			<fo:table-column column-width="48mm"></fo:table-column>         
			<fo:table-column column-width="5mm"></fo:table-column>         
			<fo:table-column column-width="35mm"></fo:table-column>         
			<fo:table-column column-width="35mm"></fo:table-column>         
			<fo:table-column column-width="35mm"></fo:table-column>         
			<fo:table-body>            
			<!-- NOTE: not used after 2004 -->
				<!--xsl:if test = "not(.//designation-fee)">               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets = "tdTL">                     
							<fo:block>                        
								<fo:inline font-weight = "bold">12-20</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets = "tdTC" number-columns-spanned = "2">                     
							<fo:block>                        
								<fo:inline font-weight = "bold">                           
									<inc file = "commonText.xml" toTranslate = "desFeesNotPaid_Text"/>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets = "tdTL" number-columns-spanned = "3">                     
							<fo:block font-size = "11pt" font-family = "ZapfDingbats">✓</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>            
				</xsl:if-->            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdTBL">                  
						<fo:block>                     
							<fo:inline font-weight="bold">12-21</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTBC" number-columns-spanned="2">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								Mode of payment                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTBR" number-columns-spanned="3">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                     
								<xsl:choose>
									<xsl:when test="$pModes &gt; 1">
										Transmittal fee:   <xsl:call-template name="paymentMode">
											<xsl:with-param name="pType" select=".//transmittal-fee/payment-mode"></xsl:with-param>   
										</xsl:call-template>
										<fo:block></fo:block>
										Search fee: <xsl:call-template name="paymentMode">
											<xsl:with-param name="pType" select=".//search-fee/payment-mode"></xsl:with-param>   
										</xsl:call-template>
										<fo:block></fo:block>
										International filing fee :   <xsl:call-template name="paymentMode">
											<xsl:with-param name="pType" select=".//international-fee/payment-mode"></xsl:with-param>   
										</xsl:call-template>
										<xsl:if test=".//pdoc-fee/amount-total &gt; 0">   
											<fo:block></fo:block>   
											Priority document fee:   <xsl:call-template name="paymentMode">
												<xsl:with-param name="pType" select=".//pdoc-fee/payment-mode"></xsl:with-param>   
											</xsl:call-template>
										</xsl:if>
									</xsl:when>
									<xsl:otherwise>
										<!-- otherwise, all payment types are the same; use any -->
										<xsl:call-template name="paymentMode">
											<xsl:with-param name="pType" select=".//transmittal-fee/payment-mode"></xsl:with-param>   
										</xsl:call-template>
									</xsl:otherwise>
								</xsl:choose>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<xsl:if test=".//deposit-account/account-no/text()">               
					<fo:table-row keep-with-next="always">                  
						<fo:table-cell xsl:use-attribute-sets="tdTL">                     
							<fo:block>                        
								<fo:inline font-weight="bold">12-22</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                     
							<fo:block space-after="2mm">                        
								<fo:inline font-weight="bold">                           
									Deposit or current account instructions                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR" number-columns-spanned="3">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                           
									<!--inc file = "commonText.xml" toTranslate = "charge_Text"/-->									                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row keep-with-next="always">                  
						<fo:table-cell>                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdC" number-columns-spanned="2">                     
							<fo:block>                        
								The receiving Office                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdR" number-columns-spanned="3">                     
							<fo:block>                        
								<fo:inline font-weight="bold">
									<xsl:choose>
										<xsl:when test="$lang='ar'">
											<fo:bidi-override unicode-bidi="embed" direction="rtl">
												<xsl:call-template name="officeName_ChoiceText">
													<xsl:with-param name="office" select=".//@ro"></xsl:with-param>
												</xsl:call-template>
											</fo:bidi-override>
										</xsl:when>
										<xsl:otherwise>
											<xsl:call-template name="officeName_ChoiceText">
												<xsl:with-param name="office" select=".//@ro"></xsl:with-param>
											</xsl:call-template>											
										</xsl:otherwise>
									</xsl:choose>
									<fo:inline keep-together.within-line="always">
										<xsl:text>(RO/</xsl:text>
										<xsl:value-of select="translate(.//@ro,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:value-of>
										<xsl:text>)</xsl:text>
									</fo:inline>
								</fo:inline>                 
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<xsl:if test=".//deposit-account/authorization/total-fee">                  
						<fo:table-row keep-with-next="always">                  
							<fo:table-cell xsl:use-attribute-sets="tdTL">                        
								<fo:block>12-22-1</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                        
								<fo:block>                           
									Authorization to charge the total fees indicated above                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTL" number-columns-spanned="3">                        
								<fo:block font-size="11pt" font-family="ZapfDingbats">✓</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>               
					</xsl:if>               
					<xsl:if test=".//deposit-account/authorization/deficiency-credit">                  
						<fo:table-row keep-with-next="always">                  
							<fo:table-cell xsl:use-attribute-sets="tdTL">                        
								<fo:block>12-22-2</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                        
								<fo:block>                           
									Authorization to charge any deficiency or credit any overpayment in the total fees indicated above                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTL" number-columns-spanned="3">                        
								<fo:block font-size="11pt" font-family="ZapfDingbats">✓</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>               
					</xsl:if>               
					<xsl:if test=".//deposit-account/authorization/fee-for-pdoc">                  
						<fo:table-row keep-with-previous="always">                  
							<fo:table-cell xsl:use-attribute-sets="tdTL">                        
								<fo:block>12-22-3</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                        
								<fo:block>                           
									Authorization to charge the fee for priority document                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTL" number-columns-spanned="3">                        
								<fo:block font-size="11pt" font-family="ZapfDingbats">✓</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>               
					</xsl:if>               
					<xsl:if test=".//deposit-account/authorization/automatic-debit">
						<fo:table-row>                     
							<fo:table-cell xsl:use-attribute-sets="tdTL">                        
								<fo:block>12-22-4</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                        
								<fo:block>                           
									The Office in its capacity as receiving Office (RO), as International Searching Authority (ISA), and, where applicable, in its capacity as International Preliminary Examining Authority (IPEA) is authorized to automatically debit, under the terms of the Office's automatic debit procedure, the identified account with any fees due in the processing of this International Application.                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTL" number-columns-spanned="3">                        
								<fo:block font-size="11pt" font-family="ZapfDingbats">✓</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>               
					</xsl:if>                  

					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdTL">                     
							<fo:block>                        
								<fo:inline font-weight="bold">12-23</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                     
							<fo:block>                        
								Deposit or current account No.                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR" number-columns-spanned="3">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                           
									<xsl:value-of select=".//account-no"></xsl:value-of>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdTBL">                     
							<fo:block>                        
								<fo:inline font-weight="bold">12-24</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTBC" number-columns-spanned="2">                     
							<fo:block>                        
								Date                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTBR" number-columns-spanned="3">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                           
									<xsl:call-template name="format_date">                              
										<xsl:with-param name="lang" select="$lang"></xsl:with-param>                              
										<xsl:with-param name="date" select=".//date"></xsl:with-param>                              
										<xsl:with-param name="show_date" select="1"></xsl:with-param>                              
										<xsl:with-param name="date_too" select="1"></xsl:with-param>                              
										<xsl:with-param name="text" select="1"></xsl:with-param>                           
									</xsl:call-template>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row keep-with-next="always">                  
						<fo:table-cell xsl:use-attribute-sets="tdTL">                     
							<fo:block>                        
								<fo:inline font-weight="bold">12-25</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                     
							<fo:block space-after="12mm">                        
								Name and signature                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR" number-columns-spanned="3">                     
							<fo:block>                        
								<fo:inline font-weight="bold">
									<!-- TODO: determine whether to show deposit-account name or signatory name -->
									 
									<xsl:call-template name="format_name">
										<xsl:with-param name="name_arg" select=".//deposit-account"></xsl:with-param> 
									</xsl:call-template>           						 
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row keep-with-previous="always">                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderBottom">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBC" number-columns-spanned="2">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBR" number-columns-spanned="3">                     
							<fo:block>   
								<xsl:choose>  
									<xsl:when test=".//signatory[1]/electronic-signature/basic-signature/fax-image"> 
										<fo:external-graphic>
											<xsl:if test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
												<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>											
												<xsl:attribute name="width">100mm</xsl:attribute>											
											</xsl:if>										
											<!-- NOTE: XEP will not load files in same directory if 'file:///' is prepended -->
											<xsl:attribute name="src">   
												<xsl:choose>  
													<xsl:when test="contains(.//signatory[1]/electronic-signature/basic-signature/fax-image/@file,'/') or contains(.//signatory[1]/electronic-signature/basic-signature/fax-image/@file,'\') or contains(.//signatory[1]/electronic-signature/basic-signature/fax-image/@file,':')"> 
														<xsl:value-of select="concat('file:///',.//signatory[1]/electronic-signature/basic-signature/fax-image/@file)"></xsl:value-of>  
													</xsl:when>  
													<xsl:otherwise> 
														<xsl:value-of select=".//signatory[1]/electronic-signature/basic-signature/fax-image/@file"></xsl:value-of>  
													</xsl:otherwise>   
												</xsl:choose>
											</xsl:attribute> 
										</fo:external-graphic>  
									</xsl:when>  
									<xsl:when test=".//signatory[1]/electronic-signature/basic-signature/click-wrap"> 
										<fo:inline font-weight="bold"> 
											(Applicant clicked "Yes") 
										</fo:inline>  
									</xsl:when>  
									<xsl:when test=".//signatory[1]/electronic-signature/basic-signature/text-string"> 
										<fo:inline font-weight="bold"> 
											<xsl:value-of select=".//signatory[1]//text-string"></xsl:value-of> 
										</fo:inline>  
									</xsl:when>  
									<xsl:when test=".//signatory[1]/enhanced-signature/pkcs7">
										<fo:inline font-weight="bold"> 
											(PKCS7 Digital Signature)
										</fo:inline>  
									</xsl:when>   
								</xsl:choose>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>            
				</xsl:if>        
				<xsl:if test="(.//payment-mode/credit-card) or (.//payment-mode/bank-draft and .//payment-contact/email/text()) or (.//@ro='IB' and .//payment-contact/email/text())">
					<xsl:if test="not(.//@ro='EP')">
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdTBL">
								<fo:block>
									<fo:inline font-weight="bold">12-22</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTBC" number-columns-spanned="2">
								<fo:block>
									<fo:inline font-weight="bold">
										Payment contact
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTBR" number-columns-spanned="3">
								<fo:block>
									<fo:inline font-weight="bold">
										<xsl:value-of select=".//payment-contact/email"></xsl:value-of>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
					</xsl:if>
				</xsl:if>
				<xsl:if test=".//reimbursement-deposit-account">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdTBL">
							<fo:block>
								<fo:inline font-weight="bold">12-26</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBC" number-columns-spanned="2">
							<fo:block>
								<fo:inline font-weight="bold">
									Reimbursement instructions
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBR" number-columns-spanned="3">
							<fo:block></fo:block>
						</fo:table-cell>
					</fo:table-row>
					<xsl:for-each select=".//reimbursement-deposit-account">
						<xsl:variable name="seq" select="position()"></xsl:variable>
						<fo:table-row keep-with-previous="always">
							<fo:table-cell xsl:use-attribute-sets="tdTL">
								<fo:block>
									<fo:inline>12-26-<xsl:value-of select="$seq"></xsl:value-of>-1</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">
								<fo:block>
									<fo:inline>
										Office processing the reimbursement
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTR" number-columns-spanned="3">
								<fo:block>
									<fo:inline font-weight="bold">
										<xsl:value-of select="./ip-office"></xsl:value-of>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row keep-with-previous="always">
							<fo:table-cell xsl:use-attribute-sets="tdTL">
								<fo:block>
									<fo:inline>12-26-<xsl:value-of select="$seq"></xsl:value-of>-2</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">
								<fo:block>
									<fo:inline>
										Reimbursement, if any, to be made to the deposit or current account No.
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTR" number-columns-spanned="3">
								<fo:block>
									<fo:inline font-weight="bold">
										<xsl:value-of select="./account-no"></xsl:value-of>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row keep-with-previous="always">
							<fo:table-cell xsl:use-attribute-sets="tdTL">
								<fo:block>
									<fo:inline>12-26-<xsl:value-of select="$seq"></xsl:value-of>-3</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">
								<fo:block>
									<fo:inline>
										Account holder
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTR" number-columns-spanned="3">
								<fo:block>
									<fo:inline font-weight="bold">
										<xsl:value-of select="./name"></xsl:value-of>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>                  
							<fo:table-cell xsl:use-attribute-sets="tdTBL">                     
								<fo:block>                        
										<fo:inline>12-26-<xsl:value-of select="$seq"></xsl:value-of>-4</fo:inline>
								</fo:block>                  
							</fo:table-cell>                  
							<fo:table-cell xsl:use-attribute-sets="tdTBC" number-columns-spanned="2">                     
								<fo:block>                        
									Date                     
								</fo:block>                  
							</fo:table-cell>                  
							<fo:table-cell xsl:use-attribute-sets="tdTBR" number-columns-spanned="3">                     
								<fo:block>                        
									<fo:inline font-weight="bold">                           
										<xsl:call-template name="format_date">                              
											<xsl:with-param name="lang" select="$lang"></xsl:with-param>                              
											<xsl:with-param name="date" select=".//date"></xsl:with-param>                              
											<xsl:with-param name="show_date" select="1"></xsl:with-param>                              
											<xsl:with-param name="date_too" select="1"></xsl:with-param>                              
											<xsl:with-param name="text" select="1"></xsl:with-param>                           
										</xsl:call-template>                        
									</fo:inline>                     
								</fo:block>                  
							</fo:table-cell>               
						</fo:table-row>  
					</xsl:for-each>
				</xsl:if>
			</fo:table-body>      
		</fo:table>   
	</xsl:template><xsl:template name="reduction_type">
		<xsl:param name="reduction"></xsl:param>
		<xsl:choose>
			<xsl:when test="$reduction='PCT-SAFE reduction (full)'">
				Electronic Filing reduction (Full)
			</xsl:when>
			<xsl:when test="$reduction='PCT-SAFE reduction (image)'">
				Electronic Filing reduction (Image)
			</xsl:when>
			<xsl:when test="$reduction='PCT-SAFE reduction (EASY)'">
				EASY Filing reduction
			</xsl:when>
			<xsl:when test="$reduction='electronic-application-form'">
				EASY Filing reduction
			</xsl:when>
			<xsl:when test="$reduction='electronic-filing-image-description'">
				Electronic Filing reduction (Image)
			</xsl:when>
			<xsl:when test="$reduction='electronic-filing-full-xml'">
				Electronic Filing reduction (XML)
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="$reduction"></xsl:value-of>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template><xsl:template name="remarks">
		<!-- render <dtext> remarks; currently, JA only -->
		<xsl:if test="(document($request_doc)//dtext) or (.//dtext)">
			<fo:table table-layout="fixed" border-collapse="separate" space-after="5mm" space-before="5mm">         
				<fo:table-column column-width="12mm"></fo:table-column>         
				<fo:table-column column-width="53mm"></fo:table-column>         
				<fo:table-column column-width="105mm"></fo:table-column>         
				<fo:table-body>            
					<fo:table-row>
						<fo:table-cell font-size="10pt" vertical-align="top" padding="1.5pt" number-columns-spanned="3" padding-bottom="4mm">
							<fo:block text-align="center">  
								<fo:inline font-weight="bold">  
									REMARKS
								</fo:inline>  
							</fo:block>       
						</fo:table-cell>
					</fo:table-row>        
					<xsl:for-each select="document($request_doc)//dtext | .//dtext">
						<xsl:variable name="seq" select="position()"></xsl:variable>
						<fo:table-row>               
							<fo:table-cell xsl:use-attribute-sets="tdTL">                  
								<fo:block>                     
									<fo:inline font-weight="bold">13-1-<xsl:value-of select="$seq"></xsl:value-of>
									</fo:inline>                  
								</fo:block>               
							</fo:table-cell>               
							<fo:table-cell xsl:use-attribute-sets="tdTC">                  
								<fo:block space-after="1.5mm">                     
									<fo:inline font-weight="bold">                        
										Applicant Remarks
									</fo:inline>                  
								</fo:block>               
							</fo:table-cell>               
							<fo:table-cell xsl:use-attribute-sets="tdTL">                  
								<fo:block padding-bottom="3mm">
									<xsl:value-of select="."></xsl:value-of>
								</fo:block>               
							</fo:table-cell>            
						</fo:table-row>            
					</xsl:for-each>
					<fo:table-row>
						<fo:table-cell number-columns-spanned="3" border-top="solid black 0.5pt">
							<fo:block></fo:block>
						</fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
		</xsl:if>
	</xsl:template><xsl:template name="paymentMode">   	 
		<xsl:param name="pType"></xsl:param>
		<xsl:choose>
			<xsl:when test="name($pType/*)='charge'">
				<xsl:choose>
					<xsl:when test=".//deposit-account/authorization/automatic-debit">
						Authorization to automatically debit deposit or current account											
					</xsl:when>
					<xsl:otherwise>
						Authorization to charge deposit or current account
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="name($pType/*)='credit-card'">
				Credit card
			</xsl:when>
			<xsl:when test="name($pType/*)='postal-order'">
				Postal money order
			</xsl:when>
			<xsl:when test="name($pType/*)='cash'">
				Cash
			</xsl:when>
			<xsl:when test="name($pType/*)='coupons'">
				Coupons
			</xsl:when>
			<xsl:when test="name($pType/*)='cheque'">
				Cheque
			</xsl:when>
			<xsl:when test="name($pType/*)='bank-draft'">
				Bank transfer
			</xsl:when>
			<xsl:when test="name($pType/*)='stamps'">
				Revenue stamps
			</xsl:when>
			<xsl:when test="name($pType/*)='other'">
				Other : 
				<xsl:choose>
					<xsl:when test="$pType='credit card'">
						Credit card
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$pType"></xsl:value-of>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
		</xsl:choose> 
	</xsl:template>
	<xsl:template name="indication_bio_deposit">      
		<xsl:choose>         
			<xsl:when test="$bio_doc != ''">         
				<xsl:for-each select="document($bio_doc)/*">
					<xsl:choose>   
						<xsl:when test="document($bio_doc)//doc-page">  
							<xsl:for-each select="document($bio_doc)//doc-page"> 
								<xsl:apply-templates select="."></xsl:apply-templates>  
							</xsl:for-each>   
						</xsl:when>   
						<xsl:otherwise>  
							<xsl:call-template name="process_bio"></xsl:call-template>   
						</xsl:otherwise>
					</xsl:choose>
				</xsl:for-each>         
			</xsl:when>      
			<!-- when no bio parameter (e.g., bio-deposit document) -->
			<xsl:otherwise>            
				<xsl:choose>               
					<xsl:when test="./doc-page">                  
						<xsl:for-each select="./doc-page">                     
							<xsl:apply-templates select="."></xsl:apply-templates>                  
						</xsl:for-each>               
					</xsl:when>               
					<xsl:otherwise>
						<xsl:call-template name="process_bio"></xsl:call-template>               
					</xsl:otherwise>            
				</xsl:choose>         
			</xsl:otherwise>      
		</xsl:choose>   
	</xsl:template><xsl:template name="process_bio">      
		<fo:table table-layout="fixed" border-collapse="separate" space-after="5mm" 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">0-1</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTC">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                     
								Form PCT/RO/134<fo:block /> Indications Relating to Deposited Microorganism(s) or Other Biological Material (PCT Rule 13bis)                     
							</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="tdBL">                  
						<fo:block>0-1-1</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBC">                  
						<fo:block space-after="5mm">                  
							Prepared Using                  
						</fo:block> 
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBR">                  
						<fo:block padding-top="1pt">                     
							<fo:inline font-weight="bold">                        
								<xsl:value-of select="$software_name"></xsl:value-of>                        
								<fo:block></fo:block>                        
								<xsl:value-of select="$software_version"></xsl:value-of>
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL" padding-bottom="5mm">                  
						<fo:block>                     
							<fo:inline font-weight="bold">0-2</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdC">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                     
								International Application No.                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdR">                  
						<fo:block>
						<xsl:choose>
							<xsl:when test="document($rrri_doc)//doc-number">
									<xsl:value-of select="document($rrri_doc)//doc-number"></xsl:value-of>
							</xsl:when>
							<xsl:when test="$ia_number">
									<xsl:value-of select="$ia_number"></xsl:value-of>
							</xsl:when>
						</xsl:choose>             
						</fo:block>
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdTBL">                  
						<fo:block>                     
							<fo:inline font-weight="bold">0-3</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTBC">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								Applicant's or agent's file reference                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTBR">                  
						<fo:block padding-top="1pt">                     
							<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-body>        
		</fo:table>       
		<xsl:for-each select=".//bio-deposit">         
			<xsl:variable name="bio_seq" select="@num"></xsl:variable> 
			<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">         
				<fo:table-column column-width="12mm"></fo:table-column>         
				<fo:table-column column-width="53mm"></fo:table-column>         
				<fo:table-column column-width="105mm"></fo:table-column> 
				<fo:table-body>               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdTL">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                           
									<xsl:value-of select="$bio_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">                        
									The indications made below relate to the deposited microorganism(s) or other biological material referred to in the description on:                        
								</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>               
					<xsl:choose>
						<xsl:when test="contains(../para-number,'|')">
							<fo:table-row>                  
								<fo:table-cell xsl:use-attribute-sets="tdL">                     
									<fo:block>                        
										<fo:inline font-weight="bold">                           
											<xsl:value-of select="$bio_seq"></xsl:value-of>-1</fo:inline>                     
									</fo:block>                  
								</fo:table-cell>                  
								<fo:table-cell xsl:use-attribute-sets="tdC">                     
									<fo:block>                        
										<fo:inline font-weight="bold">  
											page                         
										</fo:inline>                     
									</fo:block>                  
								</fo:table-cell>                  
								<fo:table-cell xsl:use-attribute-sets="tdR">                     
									<fo:block padding-top="1pt">                        
										<fo:inline font-weight="bold">                           
											<xsl:value-of select="substring-before(preceding-sibling::para-number,'|')"></xsl:value-of>                        
										</fo:inline>                     
									</fo:block>                  
								</fo:table-cell>               
							</fo:table-row>
							<fo:table-row>                  
								<fo:table-cell xsl:use-attribute-sets="tdL">                     
									<fo:block>                        
										<fo:inline font-weight="bold">                           
											<xsl:value-of select="$bio_seq"></xsl:value-of>-2</fo:inline>                     
									</fo:block>                  
								</fo:table-cell>                  
								<fo:table-cell xsl:use-attribute-sets="tdC">                     
									<fo:block>                        
										<fo:inline font-weight="bold">  
											line                         
										</fo:inline>                     
									</fo:block>                  
								</fo:table-cell>                  
								<fo:table-cell xsl:use-attribute-sets="tdR">                     
									<fo:block padding-top="1pt">                        
										<fo:inline font-weight="bold">                           
											<xsl:value-of select="substring-after(preceding-sibling::para-number,'|')"></xsl:value-of>                        
										</fo:inline>                     
									</fo:block>                  
								</fo:table-cell>               
							</fo:table-row>
						</xsl:when>
						<xsl:otherwise>
							<!-- SAFE mode, use paragraph number -->
							<fo:table-row>                  
								<fo:table-cell xsl:use-attribute-sets="tdL">                     
									<fo:block>                        
										<fo:inline font-weight="bold">                           
											<xsl:value-of select="$bio_seq"></xsl:value-of>-1</fo:inline>                     
									</fo:block>                  
								</fo:table-cell>                  
								<fo:table-cell xsl:use-attribute-sets="tdC">                     
									<fo:block>                        
										<fo:inline font-weight="bold">  
											Paragraph number                        
										</fo:inline>                     
									</fo:block>                  
								</fo:table-cell>                  
								<fo:table-cell xsl:use-attribute-sets="tdR">                     
									<fo:block padding-top="1pt">                        
										<fo:inline font-weight="bold">                           
											<xsl:value-of select="preceding-sibling::para-number"></xsl:value-of>
										</fo:inline>                     
									</fo:block>                  
								</fo:table-cell>               
							</fo:table-row>
						</xsl:otherwise>  
					</xsl:choose>
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdTL">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                           
									<xsl:value-of select="$bio_seq"></xsl:value-of>-3</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTC">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                        
									Identification of deposit                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR">                     
							<fo:block></fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<xsl:if test="depositary/text()">   
						<fo:table-row>  
							<fo:table-cell xsl:use-attribute-sets="tdL"> 
								<fo:block>   
									<xsl:value-of select="$bio_seq"></xsl:value-of>-3-1
						 
								</fo:block>  
							</fo:table-cell>  
							<fo:table-cell xsl:use-attribute-sets="tdC"> 
								<fo:block> 
									Name of depositary institution 
								</fo:block>  
							</fo:table-cell>  
							<fo:table-cell xsl:use-attribute-sets="tdR"> 
								<fo:block padding-top="1pt">
									<fo:inline font-weight="bold">   
										<xsl:value-of select="depositary/text()"></xsl:value-of>
									</fo:inline> 
								</fo:block>  
							</fo:table-cell>   
						</fo:table-row>   
					</xsl:if>               
					<xsl:if test="depositary/address">                  
						<fo:table-row>                     
							<fo:table-cell xsl:use-attribute-sets="tdL">                        
								<fo:block>                              
									<xsl:value-of select="$bio_seq"></xsl:value-of>-3-2
                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdC">                        
								<fo:block>                        
									Address of depositary institution                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdR">                        
								<fo:block padding-top="1pt">                           
									<fo:inline font-weight="bold">
										<!-- test whether #PCDATA, <text>, or <address> sub-elements used -->
										<xsl:choose>
											<xsl:when test="not(depositary/address/text)">
												<xsl:choose>
													<xsl:when test="$lang = 'ko'">
														<fo:block>
															<xsl:call-template name="country_ChoiceText">
																<xsl:with-param name="country" select="depositary/address/country"></xsl:with-param>
															</xsl:call-template>
														</fo:block>													
														<xsl:for-each select="depositary/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:otherwise>
																	<xsl:if test="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:if>
																</xsl:otherwise> 
															</xsl:choose>
														</xsl:for-each> 
													</xsl:when>
													<xsl:otherwise>
														<xsl:for-each select="depositary/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(.)='country'">
																	<xsl:call-template name="country_ChoiceText">
																		<xsl:with-param name="country" select="."></xsl:with-param>
																	</xsl:call-template>
																</xsl:when>
																<xsl:otherwise>  
																	<xsl:choose>
																		<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																			<fo:block white-space="pre" wrap-option="wrap">
																				<xsl:value-of select="."></xsl:value-of>
																			</fo:block>
																		</xsl:when>
																		<xsl:otherwise>
																			<fo:block white-space-collapse="false" wrap-option="wrap">															
																				<xsl:value-of select="."></xsl:value-of>   
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:otherwise> 
															</xsl:choose>
														</xsl:for-each> 
													</xsl:otherwise>
												</xsl:choose>
											</xsl:when> 
											<xsl:otherwise>
												<xsl:choose>
													<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
														<fo:block white-space="pre" wrap-option="wrap">
															<xsl:value-of select="depositary/address/text"></xsl:value-of> 
														</fo:block>
													</xsl:when>
													<xsl:otherwise>
														<fo:block white-space-collapse="false" wrap-option="wrap">															
															<xsl:value-of select="depositary/address/text"></xsl:value-of> 
														</fo:block>
													</xsl:otherwise>
												</xsl:choose>
											</xsl:otherwise>
										</xsl:choose>                           
									</fo:inline>                        
								</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>               
					</xsl:if>               
					<xsl:if test="date">                  
						<fo:table-row>                     
							<fo:table-cell xsl:use-attribute-sets="tdL">                        
								<fo:block>                              
									<xsl:value-of select="$bio_seq"></xsl:value-of>-3-3
                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdC">                        
								<fo:block>                        
									Date of deposit                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdR">                        
								<fo:block padding-top="1pt">                           
									<fo:inline font-weight="bold">    
										<xsl:call-template name="format_date">                                 
											<xsl:with-param name="date" select="date"></xsl:with-param>                                 
											<xsl:with-param name="lang" select="$lang"></xsl:with-param>                                 
											<xsl:with-param name="text" select="1"></xsl:with-param>                                 
											<xsl:with-param name="show_date" select="1"></xsl:with-param>                                 
											<xsl:with-param name="date_too" select="1"></xsl:with-param>                              
										</xsl:call-template>                           
									</fo:inline>                        
								</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>               
					</xsl:if>               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdL">                     
							<fo:block>                           
								<xsl:value-of select="$bio_seq"></xsl:value-of>-3-4
                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdC">                     
							<fo:block>                     
								Accession Number                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdR">                     
							<fo:block padding-top="1pt">                        
								<fo:inline font-weight="bold">                           
									<xsl:value-of select="bio-accno"></xsl:value-of>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<xsl:if test="name(following-sibling::*[position()=1])='additional-indication'">                  
						<fo:table-row>                     
							<fo:table-cell xsl:use-attribute-sets="tdTL">                        
								<fo:block>                           
									<fo:inline font-weight="bold">                              
										<xsl:value-of select="$bio_seq"></xsl:value-of>-4</fo:inline>                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTC">                        
								<fo:block>                           
									<fo:inline font-weight="bold">                           
										Additional Indications                           
									</fo:inline>                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTR">                        
								<fo:block padding-top="1pt">                           
									<fo:inline font-weight="bold">                              
										<xsl:value-of select="following-sibling::additional-indication"></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="tdTBL">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                           
									<xsl:value-of select="$bio_seq"></xsl:value-of>-5</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTBC">                     
							<fo:block padding-left="4mm">                        
								<fo:inline font-weight="bold">                        
									Designated States for Which Indications are Made                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTBR">                     
							<fo:block padding-top="1pt">                        
								<fo:inline font-weight="bold">                           
									<xsl:choose>                              
										<xsl:when test="name(following-sibling::*[position()=1])='all-designations' or name(following-sibling::*[position()=2])='all-designations'">                                  
											 All designations                               
										</xsl:when>                              
										<xsl:when test="name(following-sibling::*[position()=1])='designated-states' or name(following-sibling::*[position()=2])='designated-states'">
											<!-- do region: (countries); countries -->
											<xsl:for-each select="following-sibling::designated-states[1]/region">
												<xsl:sort select="."></xsl:sort>
												<xsl:variable name="reg_name" select="./country"></xsl:variable>
												<xsl:value-of select="concat(translate(.,'abdefghijklmnopqrstuvwxyz','ABDEFGHIJKLMNOPQRSTUVWXYZ'),': ')"></xsl:value-of>(<xsl:for-each select="following-sibling::country[preceding-sibling::region[1]/country=$reg_name]">
													<xsl:sort select="."></xsl:sort>
													<xsl:call-template name="caseCH"></xsl:call-template>
												</xsl:for-each>
												<xsl:text>) </xsl:text>
												<xsl:if test="./designated-states/country[not(preceding-sibling::region)]">
													<xsl:text>;</xsl:text>
												</xsl:if></xsl:for-each>
											<xsl:for-each select="following-sibling::designated-states[1]/country[not(preceding-sibling::region)]">
												<xsl:sort select="."></xsl:sort>
												<xsl:call-template name="caseCH"></xsl:call-template>
											</xsl:for-each>
										</xsl:when>
									</xsl:choose>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<xsl:if test="following-sibling::separate-indications">                  
						<fo:table-row>                     
							<fo:table-cell xsl:use-attribute-sets="tdL">                        
								<fo:block>                           
									<fo:inline font-weight="bold">                              
										<xsl:value-of select="$bio_seq"></xsl:value-of>-6</fo:inline>                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdC">                        
								<fo:block padding-left="4mm">                            
									<fo:inline font-weight="bold">                           
										Separate Furnishing of Indications                           
									</fo:inline>                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdR">                        
								<fo:block padding-top="1pt">                           
									<fo:inline font-weight="bold">                              
										<xsl:value-of select="following-sibling::separate-indications"></xsl:value-of>                           
									</fo:inline>                        
								</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>                  
						<fo:table-row>                     
							<fo:table-cell xsl:use-attribute-sets="tdBL">                        
								<fo:block></fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdBC">                        
								<fo:block padding-left="4mm">                      
									These indications will be submitted to the International Bureau later                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdBR">                        
								<fo:block></fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>               
					</xsl:if> 
				</fo:table-body>  
			</fo:table>       
		</xsl:for-each> 
		<fo:block>
			<xsl:text> </xsl:text>
		</fo:block>      
		<fo:table table-layout="fixed" border-collapse="separate" space-before="5mm" 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 font-size="10pt" vertical-align="top" padding="1.5pt" number-columns-spanned="3">
						<fo:block text-align="center" padding-after="5mm">  
							<fo:inline font-weight="bold">
								FOR RECEIVING OFFICE USE ONLY  
							</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">0-4</fo:inline> 
						</fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdTC"> 
						<fo:block padding-left="4mm"> 
							<fo:inline font-weight="bold">
								This form was received with the international application:
							</fo:inline> 
						</fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdTR"> 
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:call-template name="disp_received_with_ia"></xsl:call-template>
							</fo:inline>
						</fo:block>
					</fo:table-cell>   
				</fo:table-row>   
				<fo:table-row>  
					<fo:table-cell xsl:use-attribute-sets="tdL"> 
						<fo:block></fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdC"> 
						<fo:block padding-left="4mm">
							(yes or no) 
						</fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdR"> 
						<fo:block></fo:block>  
					</fo:table-cell>   
				</fo:table-row>   
				<fo:table-row>  
					<fo:table-cell xsl:use-attribute-sets="tdTL"> 
						<fo:block>0-4-1</fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdTC"> 
						<fo:block space-after="5mm">
							Authorized officer 
						</fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdTR"> 
						<fo:block></fo:block>  
					</fo:table-cell>   
				</fo:table-row>   
				<fo:table-row>  
					<fo:table-cell border-top="solid black 0.5pt" number-columns-spanned="3">  
						<fo:block></fo:block>  
					</fo:table-cell>   
				</fo:table-row>         
			</fo:table-body>  
		</fo:table>      
		<fo:table table-layout="fixed" border-collapse="separate" space-before="5mm" 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 font-size="10pt" vertical-align="top" padding="1.5pt" number-columns-spanned="3">
						<fo:block text-align="center" padding-after="5mm">  
							<fo:inline font-weight="bold">  
								FOR INTERNATIONAL BUREAU USE ONLY  
							</fo:inline>  
						</fo:block>   
					</fo:table-cell>
				</fo:table-row>   
				<fo:table-row>  
					<fo:table-cell xsl:use-attribute-sets="tdTL"> 
						<fo:block space-after="5mm">
							<fo:inline font-weight="bold">0-5</fo:inline> 
						</fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdTC"> 
						<fo:block padding-left="4mm"> 
							<fo:inline font-weight="bold">
								This form was received by the international Bureau on:
							</fo:inline> 
						</fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdTR"> 
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:variable name="bio_software_name">
									<xsl:choose>
										<xsl:when test="$bio_doc != ''">
											<xsl:value-of select="normalize-space( document($bio_doc)/processing-instruction('software_name') )"></xsl:value-of>
										</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select="normalize-space( /processing-instruction('software_name') )"></xsl:value-of>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:variable>
								<xsl:call-template name="format_date">
									<xsl:with-param name="date">
										<xsl:choose>
											<xsl:when test="$bio_software_name = 'ePCT-Filing' and translate(/*/@ro,'abdefghijklmnopqrstuvwxyz','ABDEFGHIJKLMNOPQRSTUVWXYZ') = 'IB'">
												<xsl:value-of select="document($rrri_doc)//date-of-actual-receipt/date"></xsl:value-of>
											</xsl:when>
											<xsl:when test="$bio_software_name = 'ePCT' and $bio_doc != ''">
												<xsl:value-of select="document($bio_doc)/processing-instruction('received_by_ib_on')"></xsl:value-of>
											</xsl:when>
											<xsl:when test="$bio_software_name = 'ePCT'">
												<xsl:value-of select="/processing-instruction('received_by_ib_on')"></xsl:value-of>
											</xsl:when>
										</xsl:choose>
									</xsl:with-param>
									<xsl:with-param name="lang" select="$lang"></xsl:with-param>
									<xsl:with-param name="text" select="1"></xsl:with-param>
									<xsl:with-param name="show_date" select="1"></xsl:with-param>
									<xsl:with-param name="date_too" select="1"></xsl:with-param>
								</xsl:call-template>
							</fo:inline>
						</fo:block>
					</fo:table-cell>   
				</fo:table-row>   
				<fo:table-row>  
					<fo:table-cell xsl:use-attribute-sets="tdTL"> 
						<fo:block>0-5-1</fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdTC"> 
						<fo:block space-after="5mm">
							Authorized officer 
						</fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdTR"> 
						<fo:block></fo:block>  
					</fo:table-cell>   
				</fo:table-row>   
				<fo:table-row>  
					<fo:table-cell xsl:use-attribute-sets="tdBL"> 
						<fo:block></fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdBC"> 
						<fo:block padding-left="4mm"></fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdBR"> 
						<fo:block></fo:block>  
					</fo:table-cell>   
				</fo:table-row>         
			</fo:table-body>  
		</fo:table>     
	</xsl:template><xsl:template name="disp_received_with_ia">
		<xsl:variable name="bio_software_name">
			<xsl:choose>
				<xsl:when test="$bio_doc != ''">
					<xsl:value-of select="normalize-space( document($bio_doc)/processing-instruction('software_name') )"></xsl:value-of>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="normalize-space( /processing-instruction('software_name') )"></xsl:value-of>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="yes_or_no_or_none">
			<xsl:choose>
				<xsl:when test="$bio_software_name = 'ePCT-Filing'">yes</xsl:when>
				<xsl:when test="$bio_software_name = 'ePCT'">no</xsl:when>
			</xsl:choose>
		</xsl:variable>
		<xsl:choose>
			<xsl:when test="$yes_or_no_or_none='yes'">
				Yes
			</xsl:when>
			<xsl:when test="$yes_or_no_or_none='no'">
				No
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<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">
								PCT Power of Attorney (for an international application filed under the Patent Cooperation Treaty) (PCT Rule 90.4)
							</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>
							Prepared Using
						</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">
								The undersigned applicant(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">
									hereby appoints (appoint) the following person
								</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">
								 as
							</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'">
										Agent
									</xsl:when>
									<xsl:when test=".//attorney-or-agent[1]/@rep-type='attorney'">
										Attorney
									</xsl:when>
									<xsl:when test=".//attorney-or-agent[1]/@rep-type='common-representative'">
										Common representative 
									</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">
								to represent the undersigned before
							</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'">
										all the competent International Authorities
									</xsl:when>
									<xsl:when test="name(.//represent-before/*)='isa-only'">
										the International Searching Authority only
									</xsl:when>
									<xsl:when test="name(.//represent-before/*)='ipea-only'">
										the International Preliminary Examining Authority only
									</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">
								in connection with the international application identified below:
							</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">
								Title of 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">
								Applicant's or agent's file reference
							</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">
								International application number (if already available)
							</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">
								filed with the following Office as receiving Office
							</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">
								and to make or receive payments on behalf of the undersigned
							</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="applicant[@sequence='1']">
		<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">         
			<fo:table-column column-width="12mm"></fo:table-column>         
			<fo:table-column column-width="53mm"></fo:table-column>         
			<fo:table-column column-width="105mm"></fo:table-column>  
			<fo:table-body>
				<fo:table-row>  
					<fo:table-cell xsl:use-attribute-sets="tdTL">
						<fo:block>  
							<fo:inline font-weight="bold">
								<xsl:text>II</xsl:text>  
							</fo:inline>
						</fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>  
							<fo:inline font-weight="bold">
								Applicant  
							</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="tdL">
						<fo:block>  
							<xsl:text>II-1</xsl:text>
						</fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdC">
						<fo:block>  
							This person is
						</fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdR">
						<fo:block padding-top="1pt">  
							<fo:inline font-weight="bold">  
								<xsl:call-template name="applicantType_ChoiceText">
									<xsl:with-param name="app-type" select="@app-type"></xsl:with-param>  
								</xsl:call-template>  
								<xsl:if test="$lang='ru' or $lang='ja' or $lang='zh' or $lang='ko'">(<xsl:call-template name="applicantTypeEn_ChoiceText">
										<xsl:with-param name="app-type" select="@app-type"></xsl:with-param>
									</xsl:call-template>)</xsl:if>  
							</fo:inline>
						</fo:block>  
					</fo:table-cell>
				</fo:table-row>
				<xsl:for-each select="./us-rights">  
					<fo:table-row>
						<fo:table-cell>  
							<fo:block></fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">  
							<fo:block></fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">  
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:choose>
										<xsl:when test="$lang='ja'">
											<!-- NOTE: order should be name deceased_Text @to-dead-inventor @kind -->
											<xsl:call-template name="inventorName">
												<xsl:with-param name="name" select="@to-dead-inventor"></xsl:with-param>
											</xsl:call-template>
											 (deceased) 
											<xsl:call-template name="kind_ChoiceText">
												<xsl:with-param name="kind" select="@kind"></xsl:with-param>
											</xsl:call-template>                    
											<!-- repeat info in English -->
											<fo:block></fo:block>
											<xsl:choose>
												<xsl:when test="@to-dead-inventor=''">
													(<xsl:value-of select="@kind"></xsl:value-of> of deceased inventor.) 
												</xsl:when>
												<xsl:otherwise>
													(<xsl:value-of select="@kind"></xsl:value-of> of <xsl:value-of select="@to-dead-inventor"></xsl:value-of> (deceased)) 
												</xsl:otherwise>
											</xsl:choose>
										</xsl:when>
										<xsl:when test="$lang='ru'">
											<xsl:call-template name="kind_ChoiceText">
												<xsl:with-param name="kind" select="@kind"></xsl:with-param>
											</xsl:call-template>                    
											 of   
											<xsl:value-of select="@to-dead-inventor"></xsl:value-of>                    
											 (deceased) 
											<!-- repeat info in English -->
											<fo:block></fo:block>
											<xsl:choose>
												<xsl:when test="@to-dead-inventor=''">
													(<xsl:value-of select="@kind"></xsl:value-of> of deceased inventor.) 
												</xsl:when>
												<xsl:otherwise>
													(<xsl:value-of select="@kind"></xsl:value-of> of <xsl:value-of select="@to-dead-inventor"></xsl:value-of> (deceased)) 
												</xsl:otherwise>
											</xsl:choose>
										</xsl:when>
										<xsl:when test="$lang='zh'">					
											<xsl:call-template name="inventorName">	
												<xsl:with-param name="name" select="@to-dead-inventor"></xsl:with-param>
											</xsl:call-template>	
												 (deceased) 
												 of 
											<xsl:call-template name="kind_ChoiceText">	
												<xsl:with-param name="kind" select="@kind"></xsl:with-param>
											</xsl:call-template>	
											<!-- repeat info in English -->	
											<fo:block></fo:block>
											<xsl:choose>
												<xsl:when test="@to-dead-inventor=''">
													(<xsl:value-of select="@kind"></xsl:value-of> of deceased inventor.) 
												</xsl:when>
												<xsl:otherwise>
													(<xsl:value-of select="@kind"></xsl:value-of> of <xsl:value-of select="@to-dead-inventor"></xsl:value-of> (deceased)) 
												</xsl:otherwise>
											</xsl:choose>
										</xsl:when>
										<xsl:when test="$lang='ko'">					
											<xsl:call-template name="inventorName">	
												<xsl:with-param name="name" select="@to-dead-inventor"></xsl:with-param>
											</xsl:call-template>	
												 (deceased) 
												 of 
											<xsl:call-template name="kind_ChoiceText">	
												<xsl:with-param name="kind" select="@kind"></xsl:with-param>
											</xsl:call-template>
										</xsl:when>
										<xsl:when test="$lang='en'">		
											<xsl:call-template name="kind_ChoiceText">
												<xsl:with-param name="kind" select="@kind"></xsl:with-param>
											</xsl:call-template>                    
											 of  
											<xsl:choose>
												<xsl:when test="@to-dead-inventor=''">
													<xsl:text>deceased inventor.</xsl:text>
												</xsl:when> 
												<xsl:otherwise>
													<xsl:value-of select="@to-dead-inventor"></xsl:value-of>                    
													 (deceased) 
												</xsl:otherwise>
											</xsl:choose>
										</xsl:when>
										<xsl:when test="$lang='de'">		
											<xsl:call-template name="kind_ChoiceText">
												<xsl:with-param name="kind" select="@kind"></xsl:with-param>
											</xsl:call-template>                    
											von
											<xsl:value-of select="@to-dead-inventor"></xsl:value-of>                    
											 (deceased) 
										</xsl:when>										
										<xsl:otherwise>
											<xsl:call-template name="kind_ChoiceText">
												<xsl:with-param name="kind" select="@kind"></xsl:with-param>
											</xsl:call-template>                    
											 of   
											<xsl:value-of select="@to-dead-inventor"></xsl:value-of>                    
											 (deceased) 
										</xsl:otherwise>										
									</xsl:choose>
								</fo:inline>  
							</fo:block>
						</fo:table-cell>  
					</fo:table-row>
				</xsl:for-each>
				<fo:table-row>  
					<fo:table-cell xsl:use-attribute-sets="tdL">
						<fo:block>  
							<xsl:text>II-2</xsl:text>
						</fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdC">
						<fo:block>  
							Applicant for
						</fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdR">
						<fo:block padding-top="1pt">  
							<fo:inline font-weight="bold">
								<xsl:call-template name="designation_ChoiceText">
									<xsl:with-param name="designation" select="."></xsl:with-param>
								</xsl:call-template>            
								<xsl:if test="($lang='ja' or $lang='ru' or $lang='zh' or $lang='ko') and (@designation != 'as-indicated')">(<xsl:call-template name="designationEn_ChoiceText">
										<xsl:with-param name="designation" select="."></xsl:with-param>
									</xsl:call-template>)</xsl:if>
							</fo:inline>
						</fo:block>  
					</fo:table-cell>
				</fo:table-row>
				<!-- II-3 -->
				<xsl:if test="./designated-states-as-inventor//country/text()">
					<fo:table-row>  
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>  
								<xsl:text>II-3</xsl:text>
							</fo:block>  
						</fo:table-cell>  
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>  
								Inventor for
							</fo:block>  
						</fo:table-cell>  
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">  
								<fo:inline font-weight="bold">
									<!-- do region: (countries); countries -->
									<xsl:for-each select="./designated-states-as-inventor/region">
										<xsl:sort select="."></xsl:sort>
										<xsl:variable name="pos" select="position() +1"></xsl:variable>
										<xsl:value-of select="concat(translate(normalize-space(.),'abdefghijklmnopqrstuvwxyz','ABDEFGHIJKLMNOPQRSTUVWXYZ'),': ','(')"></xsl:value-of> 
										<xsl:for-each select="following-sibling::country[not(preceding-sibling::region[$pos])]">
											<xsl:sort select="."></xsl:sort>   
											<xsl:choose>   
												<xsl:when test="text()='ch' or text() = 'CH'">  
													<xsl:text>CH&amp;LI </xsl:text>   
												</xsl:when>   
												<xsl:when test="text() = 'li' or text() = 'LI'"></xsl:when>   
												<xsl:otherwise>   
													<xsl:value-of select="translate(.,'abdefghijklmnopqrstuvwxyz','ABDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:value-of>   
													<xsl:if test="following-sibling::country[not(preceding-sibling::region[$pos])]">
														<xsl:text> 
														</xsl:text>   
													</xsl:if>   
												</xsl:otherwise>   
											</xsl:choose>
										</xsl:for-each>);<xsl:text> </xsl:text>
									 </xsl:for-each>
									<xsl:for-each select="./designated-states-as-inventor/country[not(preceding-sibling::region)]">
										<xsl:sort select="."></xsl:sort>   
										<xsl:choose>   
											<xsl:when test="text()='ch' or text() = 'CH'">  
												<xsl:text>CH&amp;LI </xsl:text>   
											</xsl:when>   
											<xsl:when test="text() = 'li' or text() = 'LI'"></xsl:when>   
											<xsl:otherwise>   
												<xsl:value-of select="translate(.,'abdefghijklmnopqrstuvwxyz','ABDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:value-of>   
												<xsl:text> 
												</xsl:text>   
											</xsl:otherwise>   
										</xsl:choose>
									</xsl:for-each>  
								</fo:inline>
							</fo:block>  
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>    
				<!-- if text is all that's entered display that below in II-5 using 'showAddress' -->
				
				<!-- test for multi-language addressbooks (ru, ja, zh, ko only) -->
				<xsl:choose>
					<xsl:when test="$lang='ja' or $lang='zh' or $lang='ru' or $lang='ko'">  
						<xsl:if test="not(./addressbook[1]/text)">  
							<!-- first native language, then english -->
							<fo:table-row> 
								<fo:table-cell xsl:use-attribute-sets="tdL">
									<fo:block>
										<xsl:text>II-4</xsl:text>
										<xsl:if test="./addressbook[@lang='en']">
											<xsl:value-of select="$lang"></xsl:value-of>
										</xsl:if>
									</fo:block> 
								</fo:table-cell> 
								<fo:table-cell xsl:use-attribute-sets="tdC"> 
									<fo:block>
										<xsl:call-template name="nameType">
											<xsl:with-param name="nam" select="./addressbook[@lang=$lang]"></xsl:with-param>
										</xsl:call-template> 
									</fo:block> 
								</fo:table-cell> 
								<fo:table-cell xsl:use-attribute-sets="tdR">
									<fo:block padding-top="1pt">
										<fo:inline font-weight="bold">   
											<xsl:call-template name="format_name">  
												<xsl:with-param name="name_arg" select="./addressbook[@lang=$lang]"></xsl:with-param>   
											</xsl:call-template>
										</fo:inline>
									</fo:block> 
								</fo:table-cell>  
							</fo:table-row>  
							<!-- make sure that there is an English version to display -->
							<xsl:if test="./addressbook[@lang='en']">  
								<fo:table-row> 
									<fo:table-cell xsl:use-attribute-sets="tdL">
										<fo:block>
											<xsl:text>II-4en</xsl:text>
										</fo:block> 
									</fo:table-cell> 
									<fo:table-cell xsl:use-attribute-sets="tdC">
										<fo:block>
											<xsl:choose>
												<xsl:when test="./addressbook[@lang='en']/name[@name-type='legal']">  
													<xsl:text>Name: </xsl:text>
												</xsl:when>
												<xsl:otherwise>
													<xsl:text>Name (LAST, First): </xsl:text>
												</xsl:otherwise>
											</xsl:choose>
										</fo:block> 
									</fo:table-cell> 
									<fo:table-cell xsl:use-attribute-sets="tdR">
										<fo:block padding-top="1pt"> 
											<fo:inline font-weight="bold">   
												<xsl:call-template name="format_name">  
													<xsl:with-param name="name_arg" select="./addressbook[@lang='en']"></xsl:with-param>   
												</xsl:call-template>
											</fo:inline>
										</fo:block> 
									</fo:table-cell>  
								</fo:table-row>  
							</xsl:if>  
						</xsl:if>
					</xsl:when>
					<!-- application is en, de, es, or fr; only show one addressbook -->
					<xsl:otherwise>  
						<!-- if text is all that's entered display that below in II-5 using 'showAddress' -->
						<xsl:if test="not(./addressbook[1]/text)">  
							<fo:table-row> 
								<fo:table-cell xsl:use-attribute-sets="tdL">
									<fo:block>
										<xsl:text>II-4</xsl:text>
									</fo:block> 
								</fo:table-cell> 
								<fo:table-cell xsl:use-attribute-sets="tdC">
									<fo:block>
										<xsl:call-template name="nameType">
											<xsl:with-param name="nam" select="./addressbook[1]"></xsl:with-param>
										</xsl:call-template>
									</fo:block> 
								</fo:table-cell> 
								<fo:table-cell xsl:use-attribute-sets="tdR">
									<fo:block padding-top="1pt">
										<fo:inline font-weight="bold">   
											<xsl:call-template name="format_name">  
												<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>   
											</xsl:call-template>
										</fo:inline>
									</fo:block> 
								</fo:table-cell>  
							</fo:table-row>  
						</xsl:if> 
					</xsl:otherwise>
				</xsl:choose>
				<!-- test for multi-language addressbooks (ja only) -->
				<xsl:choose>
					<xsl:when test="$lang='ja'">  
						<fo:table-row> 
							<fo:table-cell xsl:use-attribute-sets="tdL">
								<fo:block>
									<xsl:text>II-5</xsl:text>
									<xsl:if test="./addressbook[@lang='en']">
										<xsl:value-of select="$lang"></xsl:value-of>
									</xsl:if>
								</fo:block> 
							</fo:table-cell> 
							<fo:table-cell xsl:use-attribute-sets="tdC">
								<fo:block>
									Address
								</fo:block> 
							</fo:table-cell> 
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block padding-top="1pt">
									<fo:inline font-weight="bold">   
										<xsl:call-template name="showJaAddress"></xsl:call-template>   
									</fo:inline>
								</fo:block> 
							</fo:table-cell>  
						</fo:table-row>  
						<xsl:if test="./addressbook[@lang='en']">  
							<fo:table-row> 
								<fo:table-cell xsl:use-attribute-sets="tdL">
									<fo:block>
										<xsl:text>II-5en</xsl:text>
									</fo:block> 
								</fo:table-cell> 
								<fo:table-cell xsl:use-attribute-sets="tdC">
									<fo:block>
										<xsl:text>Address: </xsl:text>
									</fo:block> 
								</fo:table-cell> 
								<fo:table-cell xsl:use-attribute-sets="tdR">
									<fo:block padding-top="1pt">
										<fo:inline font-weight="bold">   
											<xsl:call-template name="showEnAddress"></xsl:call-template>   
										</fo:inline>
									</fo:block> 
								</fo:table-cell>  
							</fo:table-row>   
						</xsl:if>
					</xsl:when>
					<!-- test for multi-language addressbooks (ru only) -->
					<xsl:when test="$lang='ru'">  
						<fo:table-row> 
							<fo:table-cell xsl:use-attribute-sets="tdL">
								<fo:block>
									<xsl:text>II-5</xsl:text>
									<xsl:if test="./addressbook[@lang='en']">
										<xsl:value-of select="$lang"></xsl:value-of>
									</xsl:if>
								</fo:block> 
							</fo:table-cell> 
							<fo:table-cell xsl:use-attribute-sets="tdC">
								<fo:block>
									Address
								</fo:block> 
							</fo:table-cell> 
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block padding-top="1pt">
									<fo:inline font-weight="bold">   
										<xsl:call-template name="showNativeAddress"></xsl:call-template>   
									</fo:inline>
								</fo:block> 
							</fo:table-cell>  
						</fo:table-row>  
						<xsl:if test="./addressbook[@lang='en']">  
							<fo:table-row> 
								<fo:table-cell xsl:use-attribute-sets="tdL">
									<fo:block>
										<xsl:text>II-5en</xsl:text>
									</fo:block> 
								</fo:table-cell> 
								<fo:table-cell xsl:use-attribute-sets="tdC">
									<fo:block>
										<xsl:text>Address: </xsl:text>
									</fo:block> 
								</fo:table-cell> 
								<fo:table-cell xsl:use-attribute-sets="tdR">
									<fo:block padding-top="1pt">
										<fo:inline font-weight="bold">   
											<xsl:call-template name="showEnAddress"></xsl:call-template>   
										</fo:inline>
									</fo:block> 
								</fo:table-cell>  
							</fo:table-row>   
						</xsl:if>
					</xsl:when>
					<!-- test for multi-language addressbooks (zh only) -->
					<xsl:when test="$lang='zh'">  
						<fo:table-row> 
							<fo:table-cell xsl:use-attribute-sets="tdL">
								<fo:block>
									<xsl:text>II-5</xsl:text>
									<xsl:if test="./addressbook[@lang='en']">
										<xsl:value-of select="$lang"></xsl:value-of>
									</xsl:if>
								</fo:block> 
							</fo:table-cell> 
							<fo:table-cell xsl:use-attribute-sets="tdC">
								<fo:block>
									Address
								</fo:block> 
							</fo:table-cell> 
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block padding-top="1pt">
									<fo:inline font-weight="bold">   
										<xsl:call-template name="showZhAddress"></xsl:call-template>   
									</fo:inline>
								</fo:block> 
							</fo:table-cell>  
						</fo:table-row>  
						<xsl:if test="./addressbook[@lang='en']">  
							<fo:table-row> 
								<fo:table-cell xsl:use-attribute-sets="tdL">
									<fo:block>
										<xsl:text>II-5en</xsl:text>
									</fo:block> 
								</fo:table-cell> 
								<fo:table-cell xsl:use-attribute-sets="tdC">
									<fo:block>
										<xsl:text>Address </xsl:text>
									</fo:block> 
								</fo:table-cell> 
								<fo:table-cell xsl:use-attribute-sets="tdR">
									<fo:block padding-top="1pt">
										<fo:inline font-weight="bold">   
											<xsl:call-template name="showEnAddress"></xsl:call-template>   
										</fo:inline>
									</fo:block> 
								</fo:table-cell>  
							</fo:table-row>   
						</xsl:if>
					</xsl:when>
					<!-- test for multi-language addressbooks (ko only) -->
					<xsl:when test="$lang='ko'">  
						<fo:table-row> 
							<fo:table-cell xsl:use-attribute-sets="tdL">
								<fo:block>
									<xsl:text>II-5</xsl:text>
									<xsl:if test="./addressbook[@lang='en']">
										<xsl:value-of select="$lang"></xsl:value-of>
									</xsl:if>
								</fo:block> 
							</fo:table-cell> 
							<fo:table-cell xsl:use-attribute-sets="tdC">
								<fo:block>
									Address
								</fo:block> 
							</fo:table-cell> 
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block padding-top="1pt">
									<fo:inline font-weight="bold">   
										<xsl:call-template name="showKoAddress"></xsl:call-template>   
									</fo:inline>
								</fo:block> 
							</fo:table-cell>  
						</fo:table-row>  
						<xsl:if test="./addressbook[@lang='en']">  
							<fo:table-row> 
								<fo:table-cell xsl:use-attribute-sets="tdL">
									<fo:block>
										<xsl:text>II-5en</xsl:text>
									</fo:block> 
								</fo:table-cell> 
								<fo:table-cell xsl:use-attribute-sets="tdC">
									<fo:block>
										<xsl:text>Address: </xsl:text>
									</fo:block> 
								</fo:table-cell> 
								<fo:table-cell xsl:use-attribute-sets="tdR">
									<fo:block padding-top="1pt">
										<fo:inline font-weight="bold">   
											<xsl:call-template name="showEnAddress"></xsl:call-template>   
										</fo:inline>
									</fo:block> 
								</fo:table-cell>  
							</fo:table-row>   
						</xsl:if>
					</xsl:when>
					<!-- application is en, de, es, or fr; only show one addressbook -->
					<xsl:otherwise>  
						<fo:table-row> 
							<fo:table-cell xsl:use-attribute-sets="tdL">
								<fo:block>
									<xsl:text>II-5</xsl:text>
								</fo:block> 
							</fo:table-cell> 
							<fo:table-cell xsl:use-attribute-sets="tdC">
								<fo:block>
									Address
								</fo:block> 
							</fo:table-cell> 
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block padding-top="1pt">
									<fo:inline font-weight="bold">   
										<xsl:call-template name="showAddress"></xsl:call-template>   
									</fo:inline>
								</fo:block> 
							</fo:table-cell>  
						</fo:table-row>
					</xsl:otherwise>
				</xsl:choose>
				<fo:table-row>  
					<fo:table-cell xsl:use-attribute-sets="tdL">
						<fo:block>  
							<xsl:text>II-6</xsl:text>
						</fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdC">
						<fo:block>  
							State of nationality
						</fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdR">
						<fo:block padding-top="1pt">  
							<fo:inline font-weight="bold">
								<xsl:if test="$lang='ja' or $lang='zh' or $lang='ru' or $lang='ko'">
									<xsl:call-template name="country_ChoiceText">
										<xsl:with-param name="country" select="./nationality/country"></xsl:with-param>
									</xsl:call-template>
								</xsl:if>
								<xsl:call-template name="uppercaser">  
									<xsl:with-param name="string" select="./nationality/country"></xsl:with-param>
								</xsl:call-template>  
							</fo:inline>
						</fo:block>  
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>  
					<fo:table-cell xsl:use-attribute-sets="tdL">
						<fo:block>  
							<xsl:text>II-7</xsl:text>
						</fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdC">
						<fo:block>  
							State of residence
						</fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdR">
						<fo:block padding-top="1pt">  
							<fo:inline font-weight="bold">
								<xsl:if test="$lang='ja' or $lang='zh' or $lang='ru' or $lang='ko'">
									<xsl:call-template name="country_ChoiceText">
										<xsl:with-param name="country" select="./residence/country"></xsl:with-param>
									</xsl:call-template>
								</xsl:if>
								<xsl:value-of select="./residence/country"></xsl:value-of>
							</fo:inline>
						</fo:block>  
					</fo:table-cell>
				</fo:table-row>
				<xsl:if test="./addressbook[1]/phone">  
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">  
							<fo:block>
								<xsl:text>II-8</xsl:text>  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">  
							<fo:block>
								Telephone No.  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">  
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">  
									<xsl:value-of select="./addressbook[1]/phone"></xsl:value-of>
								</fo:inline>  
							</fo:block>
						</fo:table-cell>  
					</fo:table-row>
				</xsl:if>
				<xsl:if test="./addressbook[1]/fax">  
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">  
							<fo:block>
								<xsl:text>II-9</xsl:text>  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">  
							<fo:block>
								Facsimile No.  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">  
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">  
									<xsl:value-of select="./addressbook[1]/fax"></xsl:value-of>
								</fo:inline>  
							</fo:block>
						</fo:table-cell>  
					</fo:table-row>
				</xsl:if>
				<xsl:if test="./addressbook[1]/email">  
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">  
							<fo:block>
								<xsl:text>II-10</xsl:text>  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">  
							<fo:block>
								e-mail  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">  
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">  
									<xsl:value-of select="./addressbook[1]/email"></xsl:value-of>
								</fo:inline>  
							</fo:block>
						</fo:table-cell>  
					</fo:table-row>
				</xsl:if>
				<xsl:if test="./addressbook[1]/email/@email-purpose='advance'">  
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">  
							<fo:block>
								<xsl:text>II-10(a)</xsl:text>  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">  
							<fo:block>
								E-mail authorization  
							</fo:block>
							<fo:block>
								The receiving Office, the International Searching Authority, the International Bureau and the International Preliminary Examining Authority are authorized to use this e-mail address, if the Office or Authority so wishes, to send notifications issued in respect of this international application:  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">  
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">  
									<fo:block>
										as advance copies followed by paper notifications  
									</fo:block>
								</fo:inline>  
							</fo:block>
						</fo:table-cell>  
					</fo:table-row>
				</xsl:if>
				<xsl:if test="./addressbook[1]/email/@email-purpose='main'">  
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">  
							<fo:block>
								<xsl:text>II-10(a)</xsl:text>  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">  
							<fo:block>
								E-mail authorization  
							</fo:block>
							<fo:block>
								The receiving Office, the International Searching Authority, the International Bureau and the International Preliminary Examining Authority are authorized to use this e-mail address, if the Office or Authority so wishes, to send notifications issued in respect of this international application:  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<fo:block>
										<xsl:variable name="email-address" select="./addressbook[1]/email[@email-purpose='main']"/>
										<xsl:variable name="matching-pis" select="//node()[self::processing-instruction() and name() = 'communication_attachment' and contains(concat(' ', ., ' '), concat(' ', $email-address, ' '))]"/>
										<xsl:variable name="communication_method" select="substring-after($matching-pis, ' ')"/>
										<xsl:choose>
											<xsl:when test="starts-with($software_name, 'ePCT')">
												<xsl:choose>
													<xsl:when test="$communication_method='epct'">
														ePCT (email with a link to view and download the document in ePCT)
													</xsl:when>
													<xsl:otherwise>
														Email (with PDF attachment)
													</xsl:otherwise>
												</xsl:choose>
											</xsl:when>
											<xsl:otherwise>
												exclusively in electronic form (no paper notifications will be sent)
											</xsl:otherwise>
										</xsl:choose>
									</fo:block>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<xsl:if test="./addressbook[1]/registered-number">  
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">  
							<fo:block>
								<xsl:text>II-11</xsl:text>  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">  
							<fo:block>
								Applicant's registration No. with the Office  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">  
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">  
									<xsl:value-of select="./addressbook[1]/registered-number"></xsl:value-of>
								</fo:inline>  
							</fo:block>
						</fo:table-cell>  
					</fo:table-row>
				</xsl:if>
				<fo:table-row>
					<fo:table-cell number-columns-spanned="3" border-top="solid black 0.25pt">
						<fo:block></fo:block>
					</fo:table-cell>
				</fo:table-row>
			</fo:table-body>
		</fo:table>
	</xsl:template>
	<xsl:template name="other_applicants">    
		<!-- applicant (not first), inventors, deceased inventors -->
		<!-- 20061204 : To avoid xalan2.4.1 bug, the following sentence is separated into 2 lines.
			<xsl:for-each select = ".//applicant[@sequence != '1'] | .//inventor | .//deceased-inventor[@sequence != following-sibling::deceased-inventor[1]/@sequence] | .//deceased-inventor[position() = last()]">
		-->
		<xsl:variable name="tmpQR" select=".//applicant[@sequence != '1'] | .//inventor | .//deceased-inventor[@sequence != following-sibling::deceased-inventor[1]/@sequence] | .//deceased-inventor[position() = last()]"></xsl:variable>
		<xsl:for-each select="$tmpQR">
			<xsl:variable name="seq" select="position()"></xsl:variable>      
			<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">         
				<fo:table-column column-width="12mm"></fo:table-column>         
				<fo:table-column column-width="53mm"></fo:table-column>         
				<fo:table-column column-width="105mm"></fo:table-column>        
				<fo:table-body>          
					<fo:table-row>            
						<fo:table-cell xsl:use-attribute-sets="tdTL">              
							<fo:block>                
								<fo:inline font-weight="bold">III-<xsl:value-of select="$seq"></xsl:value-of>
								</fo:inline>              
							</fo:block>            
						</fo:table-cell>            
						<fo:table-cell xsl:use-attribute-sets="tdTC">              
							<fo:block>                
								<fo:inline font-weight="bold">                  
									Applicant and/or inventor                
								</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="tdL">              
							<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>-1</fo:block>            
						</fo:table-cell>            
						<fo:table-cell xsl:use-attribute-sets="tdC">              
							<fo:block>                
								This person is              
							</fo:block>            
						</fo:table-cell>            
						<fo:table-cell xsl:use-attribute-sets="tdR">              
							<fo:block padding-top="1pt">                
								<fo:inline font-weight="bold">                  
									<xsl:choose>                    
										<xsl:when test="name() = 'applicant'">  
											<xsl:call-template name="applicantType_ChoiceText">
												<xsl:with-param name="app-type" select="@app-type"></xsl:with-param>  
											</xsl:call-template>  
											<xsl:if test="$lang='ru' or $lang='ja' or $lang='zh' or $lang='ko'">(<xsl:call-template name="applicantTypeEn_ChoiceText">
													<xsl:with-param name="app-type" select="@app-type"></xsl:with-param>  	 						 
												</xsl:call-template>)					  </xsl:if>  
										</xsl:when>                    
										<xsl:when test="name() = 'inventor'">                      
											Inventor only  
											<xsl:if test="$lang='ja' or $lang='zh' or $lang='ru' or $lang='ko'">(inventor only)</xsl:if>                  
										</xsl:when>                    
										<xsl:when test="name()='deceased-inventor'">                
											Inventor only (deceased)                       
										</xsl:when>                  
									</xsl:choose>                
								</fo:inline>              
							</fo:block>            
						</fo:table-cell>          
					</fo:table-row>          
					<xsl:for-each select="us-rights">            
						<fo:table-row>              
							<fo:table-cell>                
								<fo:block></fo:block>              
							</fo:table-cell>              
							<fo:table-cell xsl:use-attribute-sets="tdC">                
								<fo:block></fo:block>              
							</fo:table-cell>              
							<fo:table-cell xsl:use-attribute-sets="tdR">                
								<fo:block padding-top="1pt">                  
									<fo:inline font-weight="bold">
										<xsl:choose>
											<xsl:when test="$lang='ja'">
												<!-- NOTE: order should be name deceased_Text @to-dead-inventor @kind -->
												<xsl:call-template name="inventorName">
													<xsl:with-param name="name" select="@to-dead-inventor"></xsl:with-param>
												</xsl:call-template>
												 (deceased) 
												<xsl:call-template name="kind_ChoiceText">
													<xsl:with-param name="kind" select="@kind"></xsl:with-param>
												</xsl:call-template>                    
												<!-- repeat info in English -->
												<fo:block></fo:block> 
												<xsl:choose>
													<xsl:when test="@to-dead-inventor=''">
														(<xsl:value-of select="@kind"></xsl:value-of> of deceased inventor.) 
													</xsl:when>
													<xsl:otherwise>
														(<xsl:value-of select="@kind"></xsl:value-of> of <xsl:value-of select="@to-dead-inventor"></xsl:value-of> (deceased)) 
													</xsl:otherwise>
												</xsl:choose>
											</xsl:when>
											<xsl:when test="$lang='ru'">
												<xsl:call-template name="kind_ChoiceText">
													<xsl:with-param name="kind" select="@kind"></xsl:with-param>
												</xsl:call-template>                    
												 of 
												<xsl:value-of select="@to-dead-inventor"></xsl:value-of>                    
												 (deceased) 
												<!-- repeat info in English -->
												<fo:block></fo:block>
												<xsl:choose>
													<xsl:when test="@to-dead-inventor=''">
														(<xsl:value-of select="@kind"></xsl:value-of> of deceased inventor.) 
													</xsl:when>
													<xsl:otherwise>
														(<xsl:value-of select="@kind"></xsl:value-of> of <xsl:value-of select="@to-dead-inventor"></xsl:value-of> (deceased)) 
													</xsl:otherwise>
												</xsl:choose>
											</xsl:when>
											<xsl:when test="$lang='zh'">
												<xsl:call-template name="inventorName">	
													<xsl:with-param name="name" select="@to-dead-inventor"></xsl:with-param>
												</xsl:call-template>	
													 (deceased) 
													 of 
												<xsl:call-template name="kind_ChoiceText">	
													<xsl:with-param name="kind" select="@kind"></xsl:with-param>
												</xsl:call-template>	
												<!-- repeat info in English -->	
												<fo:block></fo:block>	
												<xsl:choose>
													<xsl:when test="@to-dead-inventor=''">
														(<xsl:value-of select="@kind"></xsl:value-of> of deceased inventor.) 
													</xsl:when>
													<xsl:otherwise>
														(<xsl:value-of select="@kind"></xsl:value-of> of <xsl:value-of select="@to-dead-inventor"></xsl:value-of> (deceased)) 
													</xsl:otherwise>
												</xsl:choose>
											</xsl:when>
											<xsl:when test="$lang='ko'">
												<xsl:call-template name="inventorName">	
													<xsl:with-param name="name" select="@to-dead-inventor"></xsl:with-param>
												</xsl:call-template>	
													 (deceased) 
													 of 
												<xsl:call-template name="kind_ChoiceText">	
													<xsl:with-param name="kind" select="@kind"></xsl:with-param>
												</xsl:call-template>
											</xsl:when>
											<xsl:when test="$lang='en'">
												<xsl:call-template name="kind_ChoiceText">
													<xsl:with-param name="kind" select="@kind"></xsl:with-param>
												</xsl:call-template>                    
												 of 
												<xsl:choose>
													<xsl:when test="@to-dead-inventor=''">
														<xsl:text>deceased inventor.</xsl:text>
													</xsl:when> 
													<xsl:otherwise>
														<xsl:value-of select="@to-dead-inventor"></xsl:value-of>                    
														 (deceased) 
													</xsl:otherwise>
												</xsl:choose>
											</xsl:when>
											<xsl:when test="$lang='de'">		
												<xsl:call-template name="kind_ChoiceText">
													<xsl:with-param name="kind" select="@kind"></xsl:with-param>
												</xsl:call-template>                    
												von
												<xsl:value-of select="@to-dead-inventor"></xsl:value-of>                    
												 (deceased) 
											</xsl:when>		
											<xsl:otherwise>
												<xsl:call-template name="kind_ChoiceText">
													<xsl:with-param name="kind" select="@kind"></xsl:with-param>
												</xsl:call-template>                    
												 of 
												<xsl:value-of select="@to-dead-inventor"></xsl:value-of>                    
												 (deceased) 
											</xsl:otherwise>											
										</xsl:choose>
									</fo:inline>                
								</fo:block>              
							</fo:table-cell>            
						</fo:table-row>          
					</xsl:for-each>          
          
					<xsl:if test="name() = 'applicant'">
						<fo:table-row>  
							<fo:table-cell xsl:use-attribute-sets="tdL">
								<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>-2</fo:block>  
							</fo:table-cell>  
							<fo:table-cell xsl:use-attribute-sets="tdC">
								<fo:block>  
									Applicant for  
								</fo:block>  
							</fo:table-cell>  
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block padding-top="1pt">  
									<fo:inline font-weight="bold">
										<xsl:call-template name="designation_ChoiceText">
											<xsl:with-param name="designation" select="."></xsl:with-param>
										</xsl:call-template>
										<xsl:if test="($lang='ja' or $lang='ru' or $lang='zh' or $lang='ko') and (@designation != 'as-indicated')">(<xsl:call-template name="designationEn_ChoiceText">
												<xsl:with-param name="designation" select="."></xsl:with-param>
											</xsl:call-template>)</xsl:if>  
									</fo:inline>
								</fo:block>  
							</fo:table-cell>
						</fo:table-row>        
					</xsl:if> 
					<!-- III-3 Applicant-Inventor -->
					<xsl:if test="./designated-states-as-inventor//country/text()">
						<fo:table-row>  
							<fo:table-cell xsl:use-attribute-sets="tdL">
								<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>-3</fo:block>  
							</fo:table-cell>  
							<fo:table-cell xsl:use-attribute-sets="tdC">
								<fo:block>  
									Inventor for
								</fo:block>  
							</fo:table-cell>  
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block padding-top="1pt">  
									<fo:inline font-weight="bold">  
										<!-- do region: (countries); countries -->
										  
										<xsl:for-each select="./designated-states-as-inventor/region">  
											<xsl:sort select="."></xsl:sort>
											<xsl:variable name="pos" select="position() +1"></xsl:variable>
											<xsl:value-of select="concat(translate(normalize-space(.),'abdefghijklmnopqrstuvwxyz','ABDEFGHIJKLMNOPQRSTUVWXYZ'),': ','(')"></xsl:value-of> 
											<xsl:for-each select="following-sibling::country[not(preceding-sibling::region[$pos])]">
												<xsl:sort select="."></xsl:sort>   
												<xsl:choose>   
													<xsl:when test="text()='ch' or text() = 'CH'">  
														<xsl:text>CH&amp;LI </xsl:text>   
													</xsl:when>   
													<xsl:when test="text() = 'li' or text() = 'LI'"></xsl:when>   
													<xsl:otherwise>   
														<xsl:value-of select="translate(.,'abdefghijklmnopqrstuvwxyz','ABDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:value-of>   
														<xsl:if test="following-sibling::country[not(preceding-sibling::region[$pos])]">
															<xsl:text> 
															</xsl:text>   
														</xsl:if>   
													</xsl:otherwise>   
												</xsl:choose>
											</xsl:for-each>);<xsl:text> 
											</xsl:text>
										</xsl:for-each>  
										<xsl:for-each select="./designated-states-as-inventor/country[not(preceding-sibling::region)]">  
											<xsl:sort select="."></xsl:sort>   
											<xsl:choose>   
												<xsl:when test="text()='ch' or text() = 'CH'">  
													<xsl:text>CH&amp;LI </xsl:text>   
												</xsl:when>   
												<xsl:when test="text() = 'li' or text() = 'LI'"></xsl:when>   
												<xsl:otherwise>   
													<xsl:value-of select="translate(.,'abdefghijklmnopqrstuvwxyz','ABDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:value-of>   
													<xsl:text> 
													</xsl:text>   
												</xsl:otherwise>   
											</xsl:choose>
										</xsl:for-each>  
									</fo:inline>
								</fo:block>  
							</fo:table-cell>
						</fo:table-row>
					</xsl:if>    
					
					<!-- III-3 Inventor-->
					<xsl:if test="name() = 'inventor'">
						<fo:table-row>  
							<fo:table-cell xsl:use-attribute-sets="tdL">
								<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>-3</fo:block>  
							</fo:table-cell>  
							<fo:table-cell xsl:use-attribute-sets="tdC">
								<fo:block>  
									Inventor for  
								</fo:block>  
							</fo:table-cell>  
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block padding-top="1pt">  
									<fo:inline font-weight="bold">
										<xsl:call-template name="designation_ChoiceText">
											<xsl:with-param name="designation" select="."></xsl:with-param>
										</xsl:call-template>
										<xsl:if test="($lang='ja' or $lang='ru' or $lang='zh' or $lang='ko') and (@designation != 'as-indicated')">(<xsl:call-template name="designationEn_ChoiceText">
												<xsl:with-param name="designation" select="."></xsl:with-param>
											</xsl:call-template>)</xsl:if>  
									</fo:inline>
								</fo:block>  
							</fo:table-cell>
						</fo:table-row>        
					</xsl:if> 

					<!-- test for multi-language addressbooks (ru, ja, zh, ko only) -->
					<xsl:choose>  
						<xsl:when test="($lang='ja' or $lang='zh' or $lang='ru' or $lang='ko')                            or (name(.) = 'deceased-inventor' and $lang='ja' or $lang='zh' or $lang='ru' or $lang='ko'                              and @sequence != following-sibling::deceased-inventor[1]/@sequence                                            or position() = last() and $lang='ja' or $lang='zh' or $lang='ru')">
							<xsl:if test="not(addressbook[1]/text)">  
								<!-- first native language, then english -->
								<fo:table-row>
									<fo:table-cell xsl:use-attribute-sets="tdL">
										<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>
											<xsl:text>-4</xsl:text>
											<xsl:if test=".//addressbook[@lang='en'] or preceding-sibling::*[1]/@sequence = @sequence">
												<xsl:value-of select="$lang"></xsl:value-of>
											</xsl:if>
										</fo:block> 
									</fo:table-cell> 
									<fo:table-cell xsl:use-attribute-sets="tdC"> 
										<fo:block>
											<xsl:choose>
												<xsl:when test="name(.) = 'deceased-inventor'">
													<xsl:call-template name="nameType">
														<xsl:with-param name="nam" select="."></xsl:with-param>
													</xsl:call-template>
												</xsl:when>
												<xsl:otherwise>
													<xsl:call-template name="nameType">
														<xsl:with-param name="nam" select="./addressbook[@lang=$lang]"></xsl:with-param>
													</xsl:call-template>
												</xsl:otherwise>
											</xsl:choose>
										</fo:block> 
									</fo:table-cell> 
									<fo:table-cell xsl:use-attribute-sets="tdR"> 
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">   
												<xsl:choose>
													<xsl:when test="name(.) = 'deceased-inventor'">
														<xsl:choose>
															<xsl:when test="./name">
																<xsl:value-of select="preceding-sibling::deceased-inventor[1][@sequence = @sequence]/name"></xsl:value-of>
															</xsl:when>
															<xsl:otherwise>
																<xsl:call-template name="format_name">  
																	<xsl:with-param name="name_arg" select="preceding-sibling::deceased-inventor[1][@sequence = @sequence][@lang = $lang]"></xsl:with-param>   
																</xsl:call-template>
															</xsl:otherwise>
														</xsl:choose>
													</xsl:when>
													<xsl:otherwise>
														<xsl:call-template name="format_name">  
															<xsl:with-param name="name_arg" select="./addressbook[@lang=$lang]"></xsl:with-param>   
														</xsl:call-template>
													</xsl:otherwise>
												</xsl:choose>
											</fo:inline>
										</fo:block> 
									</fo:table-cell>  
								</fo:table-row>  
								<!-- make sure that there is an English version to display -->
								<xsl:if test="addressbook[@lang='en'] or @lang='en'">  
									<fo:table-row>
										<fo:table-cell xsl:use-attribute-sets="tdL">
											<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>-4en</fo:block>
										</fo:table-cell> 
										<fo:table-cell xsl:use-attribute-sets="tdC"> 
											<fo:block>
												<xsl:choose>
													<xsl:when test="./addressbook[@lang='en']/name[@name-type='legal']">  
														<xsl:text>Name: </xsl:text>
													</xsl:when>
													<xsl:otherwise>
														<xsl:text>Name (LAST, First): </xsl:text>
													</xsl:otherwise>
												</xsl:choose>
											</fo:block> 
										</fo:table-cell> 
										<fo:table-cell xsl:use-attribute-sets="tdR"> 
											<fo:block padding-top="1pt">
												<fo:inline font-weight="bold">   
													<xsl:choose>
														<xsl:when test="name(.)= 'deceased-inventor'">
															<xsl:choose>
																<xsl:when test="./name">
																	<xsl:value-of select="./name"></xsl:value-of>
																</xsl:when>
																<xsl:otherwise>
																	<xsl:call-template name="format_name">  
																		<xsl:with-param name="name_arg" select="."></xsl:with-param>   
																	</xsl:call-template>
																</xsl:otherwise>
															</xsl:choose>
														</xsl:when>
														<xsl:otherwise>
															<xsl:call-template name="format_name">  
																<xsl:with-param name="name_arg" select="./addressbook[@lang='en']"></xsl:with-param>   
															</xsl:call-template>
														</xsl:otherwise>
													</xsl:choose>
												</fo:inline>
											</fo:block> 
										</fo:table-cell>  
									</fo:table-row>  
								</xsl:if>  
							</xsl:if>  
						</xsl:when>  
						<!-- application is en, de, es, or fr; only show one addressbook -->
						<xsl:otherwise>  
							<!-- if text is all that's entered display that below in III-5 using 'showAddress' -->
							<xsl:if test="not(addressbook[1]/text)">  
								<fo:table-row> 
									<fo:table-cell xsl:use-attribute-sets="tdL">
										<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>-4</fo:block> 
									</fo:table-cell> 
									<fo:table-cell xsl:use-attribute-sets="tdC"> 
										<fo:block>
											<xsl:choose>
												<xsl:when test="name()='deceased-inventor'">
													<xsl:call-template name="nameType">
														<xsl:with-param name="nam" select="."></xsl:with-param>
													</xsl:call-template>
												</xsl:when>
												<xsl:otherwise>
													<xsl:call-template name="nameType">
														<xsl:with-param name="nam" select="./addressbook[1]"></xsl:with-param>
													</xsl:call-template>
												</xsl:otherwise>
											</xsl:choose>
										</fo:block> 
									</fo:table-cell> 
									<fo:table-cell xsl:use-attribute-sets="tdR"> 
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">
												<xsl:choose>
													<xsl:when test="name()='deceased-inventor'">  
														<xsl:choose>
															<xsl:when test="./name">
																<xsl:value-of select="./name"></xsl:value-of>
															</xsl:when>
															<xsl:otherwise>
																<xsl:call-template name="format_name">  
																	<xsl:with-param name="name_arg" select="."></xsl:with-param>   
																</xsl:call-template>
															</xsl:otherwise>
														</xsl:choose>
													</xsl:when>
													<xsl:otherwise>   
														<xsl:call-template name="format_name">  
															<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>   
														</xsl:call-template>
													</xsl:otherwise>
												</xsl:choose>
											</fo:inline>
										</fo:block> 
									</fo:table-cell>  
								</fo:table-row>  
							</xsl:if> 
						</xsl:otherwise>
					</xsl:choose>              
					<!-- test for multi-language addressbooks (ja only) -->
					<xsl:if test="name() = 'applicant' or name() = 'inventor'">
						<xsl:choose>
							<xsl:when test="$lang='ja'">  
								<fo:table-row> 
									<fo:table-cell xsl:use-attribute-sets="tdL"> 
										<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>
											<xsl:text>-5</xsl:text>
											<xsl:if test="./addressbook[@lang='en']">
												<xsl:value-of select="$lang"></xsl:value-of>
											</xsl:if>
										</fo:block> 
									</fo:table-cell> 
									<fo:table-cell xsl:use-attribute-sets="tdC"> 
										<fo:block>
											Address
										</fo:block> 
									</fo:table-cell> 
									<fo:table-cell xsl:use-attribute-sets="tdR"> 
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">  
												<xsl:call-template name="showJaAddress"></xsl:call-template>
											</fo:inline>
										</fo:block> 
									</fo:table-cell>  
								</fo:table-row>  
								<xsl:if test="./addressbook[@lang='en']">  
									<fo:table-row> 
										<fo:table-cell xsl:use-attribute-sets="tdL"> 
											<fo:block> 	III-<xsl:value-of select="$seq"></xsl:value-of>-5en</fo:block> 
										</fo:table-cell> 
										<fo:table-cell xsl:use-attribute-sets="tdC"> 
											<fo:block>
												<xsl:text>Address: </xsl:text>
											</fo:block> 
										</fo:table-cell> 
										<fo:table-cell xsl:use-attribute-sets="tdR"> 
											<fo:block padding-top="1pt">
												<fo:inline font-weight="bold">  
													<xsl:call-template name="showEnAddress"></xsl:call-template>
												</fo:inline>
											</fo:block> 
										</fo:table-cell>  
									</fo:table-row>   
								</xsl:if>
							</xsl:when>
							<!-- test for multi-language addressbooks (ru only) -->
							<xsl:when test="$lang='ru'">  
								<fo:table-row> 
									<fo:table-cell xsl:use-attribute-sets="tdL"> 
										<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>
											<xsl:text>-5</xsl:text>
											<xsl:if test="./addressbook[@lang='en']">
												<xsl:value-of select="$lang"></xsl:value-of>
											</xsl:if>
										</fo:block> 
									</fo:table-cell> 
									<fo:table-cell xsl:use-attribute-sets="tdC"> 
										<fo:block>
											Address
										</fo:block> 
									</fo:table-cell> 
									<fo:table-cell xsl:use-attribute-sets="tdR"> 
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">  
												<xsl:call-template name="showNativeAddress"></xsl:call-template>
											</fo:inline>
										</fo:block> 
									</fo:table-cell>  
								</fo:table-row>  
								<xsl:if test="./addressbook[@lang='en']">  
									<fo:table-row> 
										<fo:table-cell xsl:use-attribute-sets="tdL"> 
											<fo:block> 	III-<xsl:value-of select="$seq"></xsl:value-of>-5en</fo:block> 
										</fo:table-cell> 
										<fo:table-cell xsl:use-attribute-sets="tdC"> 
											<fo:block>
												<xsl:text>Address: </xsl:text>
											</fo:block> 
										</fo:table-cell> 
										<fo:table-cell xsl:use-attribute-sets="tdR"> 
											<fo:block padding-top="1pt">
												<fo:inline font-weight="bold">  
													<xsl:call-template name="showEnAddress"></xsl:call-template>
												</fo:inline>
											</fo:block> 
										</fo:table-cell>  
									</fo:table-row>   
								</xsl:if>
							</xsl:when>
							<!-- test for multi-language addressbooks (ko only) -->
							<xsl:when test="$lang='ko'">  
								<fo:table-row> 
									<fo:table-cell xsl:use-attribute-sets="tdL"> 
										<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>
											<xsl:text>-5</xsl:text>
											<xsl:if test="./addressbook[@lang='en']">
												<xsl:value-of select="$lang"></xsl:value-of>
											</xsl:if>
										</fo:block> 
									</fo:table-cell> 
									<fo:table-cell xsl:use-attribute-sets="tdC"> 
										<fo:block>
											Address
										</fo:block> 
									</fo:table-cell> 
									<fo:table-cell xsl:use-attribute-sets="tdR"> 
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">  
												<xsl:call-template name="showKoAddress"></xsl:call-template>
											</fo:inline>
										</fo:block> 
									</fo:table-cell>  
								</fo:table-row>  
								<xsl:if test="./addressbook[@lang='en']">  
									<fo:table-row> 
										<fo:table-cell xsl:use-attribute-sets="tdL"> 
											<fo:block> 	III-<xsl:value-of select="$seq"></xsl:value-of>-5en</fo:block> 
										</fo:table-cell> 
										<fo:table-cell xsl:use-attribute-sets="tdC"> 
											<fo:block>
												<xsl:text>Address: </xsl:text>
											</fo:block> 
										</fo:table-cell> 
										<fo:table-cell xsl:use-attribute-sets="tdR"> 
											<fo:block padding-top="1pt">
												<fo:inline font-weight="bold">  
													<xsl:call-template name="showEnAddress"></xsl:call-template>
												</fo:inline>
											</fo:block> 
										</fo:table-cell>  
									</fo:table-row>   
								</xsl:if>
							</xsl:when>
							<!-- test for multi-language addressbooks (zh only) -->
							<xsl:when test="$lang='zh'">  
								<fo:table-row> 
									<fo:table-cell xsl:use-attribute-sets="tdL"> 
										<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>
											<xsl:text>-5</xsl:text>
											<xsl:if test="./addressbook[@lang='en']">
												<xsl:value-of select="$lang"></xsl:value-of>
											</xsl:if>
										</fo:block> 
									</fo:table-cell> 
									<fo:table-cell xsl:use-attribute-sets="tdC"> 
										<fo:block>
											Address
										</fo:block> 
									</fo:table-cell> 
									<fo:table-cell xsl:use-attribute-sets="tdR"> 
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">  
												<xsl:call-template name="showZhAddress"></xsl:call-template>
											</fo:inline>
										</fo:block> 
									</fo:table-cell>  
								</fo:table-row>  
								<xsl:if test="./addressbook[@lang='en']">  
									<fo:table-row> 
										<fo:table-cell xsl:use-attribute-sets="tdL"> 
											<fo:block> 	III-<xsl:value-of select="$seq"></xsl:value-of>-5en</fo:block> 
										</fo:table-cell> 
										<fo:table-cell xsl:use-attribute-sets="tdC"> 
											<fo:block>
												<xsl:text>Address </xsl:text>
											</fo:block> 
										</fo:table-cell> 
										<fo:table-cell xsl:use-attribute-sets="tdR"> 
											<fo:block padding-top="1pt">
												<fo:inline font-weight="bold">  
													<xsl:call-template name="showEnAddress"></xsl:call-template>
												</fo:inline>
											</fo:block> 
										</fo:table-cell>  
									</fo:table-row>   
								</xsl:if>
							</xsl:when>
							<!-- application is en, de, es, or fr; only show one addressbook -->
							<xsl:otherwise>  
								<fo:table-row> 
									<fo:table-cell xsl:use-attribute-sets="tdL"> 
										<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>-5</fo:block> 
									</fo:table-cell> 
									<fo:table-cell xsl:use-attribute-sets="tdC"> 
										<fo:block>
											Address
										</fo:block> 
									</fo:table-cell> 
									<fo:table-cell xsl:use-attribute-sets="tdR"> 
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">  
												<xsl:call-template name="showAddress"></xsl:call-template>
											</fo:inline>
										</fo:block> 
									</fo:table-cell>  
								</fo:table-row>
							</xsl:otherwise>
						</xsl:choose>         
					</xsl:if>          
					<xsl:if test="name() = 'applicant'">            
						<fo:table-row>              
							<fo:table-cell xsl:use-attribute-sets="tdL">                
								<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>-6</fo:block>              
							</fo:table-cell>              
							<fo:table-cell xsl:use-attribute-sets="tdC">                
								<fo:block>                  
									State of nationality                  
								</fo:block>              
							</fo:table-cell>              
							<fo:table-cell xsl:use-attribute-sets="tdR">                
								<fo:block padding-top="1pt">                  
									<fo:inline font-weight="bold">                  
										<xsl:if test="$lang='ja' or $lang='zh' or $lang='ru' or $lang='ko'">
											<xsl:call-template name="country_ChoiceText">
												<xsl:with-param name="country" select="nationality/country"></xsl:with-param>
											</xsl:call-template>
										</xsl:if>
										<xsl:call-template name="uppercaser">                      
											<xsl:with-param name="string" select="nationality/country"></xsl:with-param>                    
										</xsl:call-template>                  
									</fo:inline>                
								</fo:block>              
							</fo:table-cell>            
						</fo:table-row>          
					</xsl:if>          
					<xsl:if test="name() = 'applicant'">            
						<fo:table-row>              
							<fo:table-cell xsl:use-attribute-sets="tdL">                
								<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>-7</fo:block>              
							</fo:table-cell>              
							<fo:table-cell xsl:use-attribute-sets="tdC">                
								<fo:block>                  
									State of residence                  
								</fo:block>              
							</fo:table-cell>              
							<fo:table-cell xsl:use-attribute-sets="tdR">                
								<fo:block padding-top="1pt">                  
									<fo:inline font-weight="bold">    
										<xsl:if test="$lang='ja' or $lang='zh' or $lang='ru' or $lang='ko'">
											<xsl:call-template name="country_ChoiceText">
												<xsl:with-param name="country" select="residence/country"></xsl:with-param>
											</xsl:call-template>
										</xsl:if>
										<xsl:value-of select="residence/country"></xsl:value-of>                    
									</fo:inline>                
								</fo:block>              
							</fo:table-cell>            
						</fo:table-row>          
					</xsl:if>          
					<xsl:if test="addressbook[1]/phone">            
						<fo:table-row>              
							<fo:table-cell xsl:use-attribute-sets="tdL">                
								<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>-8</fo:block>              
							</fo:table-cell>              
							<fo:table-cell xsl:use-attribute-sets="tdC">                
								<fo:block>                  
									Telephone No.                
								</fo:block>              
							</fo:table-cell>              
							<fo:table-cell xsl:use-attribute-sets="tdR">                
								<fo:block padding-top="1pt">                  
									<fo:inline font-weight="bold">                    
										<xsl:value-of select="addressbook[1]/phone"></xsl:value-of>                  
									</fo:inline>                
								</fo:block>              
							</fo:table-cell>            
						</fo:table-row>          
					</xsl:if>          
					<xsl:if test="addressbook[1]/fax">            
						<fo:table-row>              
							<fo:table-cell xsl:use-attribute-sets="tdL">                
								<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>-9</fo:block>              
							</fo:table-cell>              
							<fo:table-cell xsl:use-attribute-sets="tdC">                
								<fo:block>                  
									Facsimile No.                
								</fo:block>              
							</fo:table-cell>              
							<fo:table-cell xsl:use-attribute-sets="tdR">                
								<fo:block padding-top="1pt">                  
									<fo:inline font-weight="bold">                    
										<xsl:value-of select="addressbook[1]/fax"></xsl:value-of>                  
									</fo:inline>                
								</fo:block>              
							</fo:table-cell>            
						</fo:table-row>          
					</xsl:if>          
					<xsl:if test="addressbook[1]/email">            
						<fo:table-row>              
							<fo:table-cell xsl:use-attribute-sets="tdL">                
								<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>-10</fo:block>              
							</fo:table-cell>              
							<fo:table-cell xsl:use-attribute-sets="tdC">                
								<fo:block>                  
									e-mail                
								</fo:block>              
							</fo:table-cell>              
							<fo:table-cell xsl:use-attribute-sets="tdR">                
								<fo:block padding-top="1pt">                  
									<fo:inline font-weight="bold">                    
										<xsl:value-of select="addressbook[1]/email"></xsl:value-of>                  
									</fo:inline>                
								</fo:block>              
							</fo:table-cell>            
						</fo:table-row>          
					</xsl:if>          
					<xsl:if test="addressbook[1]/email/@email-purpose='advance'">            
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL">  
								<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>-10(a)</fo:block>              
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdC">  
								<fo:block>
									E-mail authorization  
								</fo:block>
								<fo:block>
									The receiving Office, the International Searching Authority, the International Bureau and the International Preliminary Examining Authority are authorized to use this e-mail address, if the Office or Authority so wishes, to send notifications issued in respect of this international application:  
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdR">  
								<fo:block padding-top="1pt">
									<fo:inline font-weight="bold">  
										<fo:block>
											as advance copies followed by paper notifications  
										</fo:block>
									</fo:inline>  
								</fo:block>
							</fo:table-cell>  
						</fo:table-row>
					</xsl:if>
					<xsl:if test="addressbook[1]/email/@email-purpose='main'">            
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL">  
								<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>-10(a)</fo:block>              
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdC">  
								<fo:block>
									E-mail authorization  
								</fo:block>
								<fo:block>
									The receiving Office, the International Searching Authority, the International Bureau and the International Preliminary Examining Authority are authorized to use this e-mail address, if the Office or Authority so wishes, to send notifications issued in respect of this international application:  
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block padding-top="1pt">
									<fo:inline font-weight="bold">
										<fo:block>
											<xsl:variable name="email-address" select="./addressbook[1]/email[@email-purpose='main']"/>
											<xsl:variable name="matching-pis" select="//node()[self::processing-instruction() and name() = 'communication_attachment' and contains(concat(' ', ., ' '), concat(' ', $email-address, ' '))]"/>
											<xsl:variable name="communication_method" select="substring-after($matching-pis, ' ')"/>
											<xsl:choose>
												<xsl:when test="starts-with($software_name, 'ePCT')">
													<xsl:choose>
														<xsl:when test="$communication_method='epct'">
															ePCT (email with a link to view and download the document in ePCT)
														</xsl:when>
														<xsl:otherwise>
															Email (with PDF attachment)
														</xsl:otherwise>
													</xsl:choose>
												</xsl:when>
												<xsl:otherwise>
													exclusively in electronic form (no paper notifications will be sent)
												</xsl:otherwise>
											</xsl:choose>
										</fo:block>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
					</xsl:if>
					<xsl:if test="addressbook[1]/registered-number">            
						<fo:table-row>              
							<fo:table-cell xsl:use-attribute-sets="tdL">                
								<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>-11</fo:block>              
							</fo:table-cell>              
							<fo:table-cell xsl:use-attribute-sets="tdC">                
								<fo:block>                  
									Applicant's registration No. with the Office                
								</fo:block>              
							</fo:table-cell>              
							<fo:table-cell xsl:use-attribute-sets="tdR">                
								<fo:block padding-top="1pt">                  
									<fo:inline font-weight="bold">                    
										<xsl:value-of select="addressbook[1]/registered-number"></xsl:value-of>                  
									</fo:inline>                
								</fo:block>              
							</fo:table-cell>            
						</fo:table-row>          
					</xsl:if>          
					<fo:table-row>            
						<fo:table-cell border-top="solid black 0.25pt" number-columns-spanned="3">              
							<fo:block></fo:block>            
						</fo:table-cell>          
					</fo:table-row>        
				</fo:table-body>      
			</fo:table>      
			<!--  end other applicant's info  -->
		</xsl:for-each>  
	</xsl:template>
	<xsl:template name="first_agent">  
		<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always"> 
			<fo:table-column column-width="12mm"></fo:table-column> 
			<fo:table-column column-width="53mm"></fo:table-column> 
			<fo:table-column column-width="105mm"></fo:table-column>
			<fo:table-body>
				<fo:table-row>  
					<fo:table-cell xsl:use-attribute-sets="tdTL">
						<fo:block>  
							<fo:inline font-weight="bold">
								<fo:inline font-weight="bold">IV-1</fo:inline>  
							</fo:inline>
						</fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>  
							<fo:inline font-weight="bold">
								Agent or common representative; or address for correspondence  
							</fo:inline>
						</fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdTR">
						<fo:block> 
						</fo:block>  
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>  
					<fo:table-cell xsl:use-attribute-sets="tdL">
						<fo:block> 
						</fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdC">
						<fo:block>  
							<xsl:choose>
								<xsl:when test=".//agent">
									The person identified below is hereby/has been appointed to act on behalf of the applicant(s) before the competent International Authorities as:
								</xsl:when>
								<xsl:when test=".//correspondence-address">
									No agent or common representative is/has been appointed; the following special address should be used as:
								</xsl:when>
							</xsl:choose>
						</fo:block>  
					</fo:table-cell>  
					<fo:table-cell xsl:use-attribute-sets="tdR">
						<fo:block padding-top="1pt">  
							<fo:inline font-weight="bold">
								<xsl:choose>
									<xsl:when test=".//agent">  
										<xsl:call-template name="agentType_ChoiceText">
											<xsl:with-param name="rep-type" select=".//agent[@sequence='1']/@rep-type"></xsl:with-param>  
										</xsl:call-template>            
										<xsl:if test="$lang='ja' or $lang='ru' or $lang='zh'"> (<xsl:call-template name="agentTypeEn_ChoiceText">
												<xsl:with-param name="rep-type" select=".//agent[@sequence='1']/@rep-type"></xsl:with-param> 
											</xsl:call-template>)</xsl:if>
									</xsl:when>
									<xsl:otherwise>
										Address for correspondence
											<xsl:if test="$lang='ja' or $lang='zh' or $lang='ru' or $lang='ko'">(Address for correspondence)</xsl:if>
									</xsl:otherwise>
								</xsl:choose>  
							</fo:inline>
						</fo:block>  
					</fo:table-cell>
				</fo:table-row>
				<!-- test for multi-language addressbooks (ru, ja, zh, ko only) -->
				<xsl:choose>
					<xsl:when test="$lang='ja' or $lang='zh' or $lang='ru' or $lang='ko'">  
						<xsl:if test="not(.//agent[@sequence='1']/addressbook[1]/text)">  
							<!-- first native language, then english -->
							  
							<fo:table-row>  
								<fo:table-cell xsl:use-attribute-sets="tdL">
									<fo:block>
										<xsl:text>IV-1-1</xsl:text>
										<xsl:if test=".//agent[@sequence='1']/addressbook[@lang='en'] or .//correspondence-address/addressbook[@lang='en']">
											<xsl:value-of select="$lang"></xsl:value-of>
										</xsl:if>
									</fo:block> 
								</fo:table-cell> 
								<fo:table-cell xsl:use-attribute-sets="tdC">
									<fo:block>
										<xsl:choose>
											<xsl:when test=".//agent[@sequence='1']">
												<xsl:call-template name="nameType">
													<xsl:with-param name="nam" select=".//agent[@sequence='1']/addressbook[@lang=$lang]"></xsl:with-param>
												</xsl:call-template>
											</xsl:when>
											<xsl:otherwise>
												<xsl:call-template name="nameType">
													<xsl:with-param name="nam" select=".//correspondence-address/addressbook[@lang=$lang]"></xsl:with-param>
												</xsl:call-template>
											</xsl:otherwise>
										</xsl:choose>
									</fo:block> 
								</fo:table-cell> 
								<fo:table-cell xsl:use-attribute-sets="tdR">
									<fo:block padding-top="1pt">
										<fo:inline font-weight="bold">   
											<xsl:choose>
												<xsl:when test=".//agent[@sequence='1']">
													<xsl:call-template name="format_name">  
														<xsl:with-param name="name_arg" select=".//agent[@sequence='1']/addressbook[@lang=$lang]"></xsl:with-param>   
													</xsl:call-template>
												</xsl:when>
												<xsl:otherwise>
													<xsl:call-template name="format_name">  
														<xsl:with-param name="name_arg" select=".//correspondence-address/addressbook[@lang=$lang]"></xsl:with-param>   
													</xsl:call-template>
												</xsl:otherwise>
											</xsl:choose>
										</fo:inline>
									</fo:block> 
								</fo:table-cell>  
							</fo:table-row>  
							<!-- make sure that there is an English version to display -->
							  
							<xsl:if test=".//agent[@sequence='1']/addressbook[@lang='en'] or .//correspondence-address">  
								<fo:table-row> 
									<fo:table-cell xsl:use-attribute-sets="tdL">
										<fo:block>
											<xsl:text>IV-1-1en</xsl:text>
										</fo:block> 
									</fo:table-cell> 
									<fo:table-cell xsl:use-attribute-sets="tdC">
										<fo:block>
											<xsl:choose>
												<xsl:when test=".//agent[@sequence='1']/addressbook[@lang='en']/name[@name-type='legal'] or .//correspondence-address/addressbook/name[@name-type='legal']">  
													<xsl:text>Name: </xsl:text>
												</xsl:when>
												<xsl:otherwise>
													<xsl:text>Name (LAST, First): </xsl:text>
												</xsl:otherwise>
											</xsl:choose>
										</fo:block> 
									</fo:table-cell> 
									<fo:table-cell xsl:use-attribute-sets="tdR">
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">   
												<xsl:choose>
													<xsl:when test=".//agent[@sequence='1']">
														<xsl:call-template name="format_name">  
															<xsl:with-param name="name_arg" select=".//agent[@sequence='1']/addressbook[@lang='en']"></xsl:with-param>   
														</xsl:call-template>
													</xsl:when>
													<xsl:otherwise>
														<xsl:call-template name="format_name">  
															<xsl:with-param name="name_arg" select=".//correspondence-address/addressbook[@lang='en']"></xsl:with-param>   
														</xsl:call-template>
													</xsl:otherwise>
												</xsl:choose>
											</fo:inline>
										</fo:block> 
									</fo:table-cell>  
								</fo:table-row>  
							</xsl:if>
							<fo:table-row> 
								<fo:table-cell xsl:use-attribute-sets="tdL">
									<fo:block>
										<xsl:text>IV-1-2</xsl:text>
										<xsl:if test=".//agent[@sequence='1']/addressbook[@lang='en'] or .//correspondence-address/addressbook[@lang='en']">
											<xsl:value-of select="$lang"></xsl:value-of>
										</xsl:if>
									</fo:block> 
								</fo:table-cell> 
								<fo:table-cell xsl:use-attribute-sets="tdC">
									<fo:block>
										Address
									</fo:block> 
								</fo:table-cell> 
								<fo:table-cell xsl:use-attribute-sets="tdR">
									<fo:block padding-top="1pt">
										<fo:inline font-weight="bold">   
											<xsl:for-each select=".//agent[@sequence='1'] | .//correspondence-address">  
												<xsl:choose>
													<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="showNativeAddress"></xsl:call-template>   
													</xsl:otherwise>
												</xsl:choose>
											</xsl:for-each>
										</fo:inline>
									</fo:block> 
								</fo:table-cell>  
							</fo:table-row>  
							<xsl:if test=".//agent[@sequence='1']/addressbook[@lang='en'] or .//correspondence-address/addressbook[@lang='en']">  
								<fo:table-row> 
									<fo:table-cell xsl:use-attribute-sets="tdL">
										<fo:block>
											<xsl:text>IV-1-2en</xsl:text>
										</fo:block> 
									</fo:table-cell> 
									<fo:table-cell xsl:use-attribute-sets="tdC">
										<fo:block>
											<xsl:text>Address: </xsl:text>
										</fo:block> 
									</fo:table-cell> 
									<fo:table-cell xsl:use-attribute-sets="tdR">
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">   
												<xsl:for-each select=".//agent[@sequence='1'] | .//correspondence-address">  
													<xsl:call-template name="showEnAddress"></xsl:call-template>   
												</xsl:for-each>
											</fo:inline>
										</fo:block> 
									</fo:table-cell>  
								</fo:table-row>   
							</xsl:if>  
						</xsl:if>
					</xsl:when>
					<!-- application is en, de, es, or fr; only show one addressbook -->
					<xsl:otherwise>  
						<!-- if text is all that's entered display that below in II-5 using 'showAddress' -->
						<xsl:if test="not(.//agent[@sequence='1']/addressbook[1]/text)">  
							<fo:table-row> 
								<fo:table-cell xsl:use-attribute-sets="tdL">
									<fo:block>
										<xsl:text>IV-1-1</xsl:text>
									</fo:block> 
								</fo:table-cell> 
								<fo:table-cell xsl:use-attribute-sets="tdC">
									<fo:block>
										<xsl:choose>
											<xsl:when test=".//agent[@sequence='1']">
												<xsl:call-template name="nameType">
													<xsl:with-param name="nam" select=".//agent[@sequence='1']/addressbook[1]"></xsl:with-param>
												</xsl:call-template>
											</xsl:when>
											<xsl:otherwise>
												<xsl:call-template name="nameType">
													<xsl:with-param name="nam" select=".//correspondence-address/addressbook[1]"></xsl:with-param>
												</xsl:call-template>
											</xsl:otherwise>
										</xsl:choose>
									</fo:block> 
								</fo:table-cell> 
								<fo:table-cell xsl:use-attribute-sets="tdR">
									<fo:block padding-top="1pt">
										<fo:inline font-weight="bold">   
											<xsl:choose>
												<xsl:when test=".//agent[@sequence='1']">
													<xsl:call-template name="format_name">  
														<xsl:with-param name="name_arg" select=".//agent[@sequence='1']/addressbook[1]"></xsl:with-param>   
													</xsl:call-template>
												</xsl:when>
												<xsl:otherwise>
													<xsl:call-template name="format_name">  
														<xsl:with-param name="name_arg" select=".//correspondence-address/addressbook[1]"></xsl:with-param>   
													</xsl:call-template>
												</xsl:otherwise>
											</xsl:choose>
										</fo:inline>
									</fo:block> 
								</fo:table-cell>  
							</fo:table-row>
							<fo:table-row> 
								<fo:table-cell xsl:use-attribute-sets="tdL">
									<fo:block>
										<xsl:text>IV-1-2</xsl:text>
									</fo:block> 
								</fo:table-cell> 
								<fo:table-cell xsl:use-attribute-sets="tdC">
									<fo:block>
										Address
									</fo:block> 
								</fo:table-cell> 
								<fo:table-cell xsl:use-attribute-sets="tdR">
									<fo:block padding-top="1pt">
										<fo:inline font-weight="bold">   
											<xsl:for-each select=".//agent[@sequence='1'] | .//correspondence-address">  
												<xsl:call-template name="showAddress"></xsl:call-template>   
											</xsl:for-each>
										</fo:inline>
									</fo:block> 
								</fo:table-cell>  
							</fo:table-row>  
						</xsl:if> 
					</xsl:otherwise>
				</xsl:choose>
				<xsl:if test=".//agent[@sequence='1']//phone | .//correspondence-address//phone">  
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">  
							<fo:block>
								<xsl:text>IV-1-3</xsl:text>  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">  
							<fo:block>
								Telephone No.  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">  
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">  
									<xsl:value-of select=".//agent[@sequence='1']//phone | .//correspondence-address//phone"></xsl:value-of>
								</fo:inline>  
							</fo:block>
						</fo:table-cell>  
					</fo:table-row>
				</xsl:if>
				<xsl:if test=".//agent[@sequence='1']//fax | .//correspondence-address//fax">  
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">  
							<fo:block>
								<xsl:text>IV-1-4</xsl:text>  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">  
							<fo:block>
								Facsimile No.  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">  
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">  
									<xsl:value-of select=".//agent[@sequence='1']//fax | .//correspondence-address//fax"></xsl:value-of>
								</fo:inline>  
							</fo:block>
						</fo:table-cell>  
					</fo:table-row>
				</xsl:if>
				<xsl:if test=".//agent[@sequence='1']//email | .//correspondence-address//email">  
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">  
							<fo:block>
								<xsl:text>IV-1-5</xsl:text>  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">  
							<fo:block>
								e-mail  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">  
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">  
									<xsl:value-of select=".//agent[@sequence='1']//email | .//correspondence-address//email"></xsl:value-of>
								</fo:inline>  
							</fo:block>
						</fo:table-cell>  
					</fo:table-row>
				</xsl:if>
				<xsl:if test=".//agent[@sequence='1']//email/@email-purpose='advance' or .//correspondence-address//email/@email-purpose='advance'">  
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">  
							<fo:block>
								<xsl:text>IV-1-5(a)</xsl:text>  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">  
							<fo:block>
								E-mail authorization  
							</fo:block>
							<fo:block>
								The receiving Office, the International Searching Authority, the International Bureau and the International Preliminary Examining Authority are authorized to use this e-mail address, if the Office or Authority so wishes, to send notifications issued in respect of this international application:  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">  
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">  
									<fo:block>
										as advance copies followed by paper notifications  
									</fo:block>
								</fo:inline>  
							</fo:block>
						</fo:table-cell>  
					</fo:table-row>
				</xsl:if>
				<xsl:if test=".//agent[@sequence='1']//email/@email-purpose='main' or .//correspondence-address//email/@email-purpose='main'">  
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">  
							<fo:block>
								<xsl:text>IV-1-5(a)</xsl:text>  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">  
							<fo:block>
								E-mail authorization  
							</fo:block>
							<fo:block>
								The receiving Office, the International Searching Authority, the International Bureau and the International Preliminary Examining Authority are authorized to use this e-mail address, if the Office or Authority so wishes, to send notifications issued in respect of this international application:  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<fo:block>
										<xsl:variable name="email-address" select=".//agent[@sequence='1']//email | .//correspondence-address//email"/>
										<xsl:variable name="matching-pis" select="//node()[self::processing-instruction() and name() = 'communication_attachment' and contains(concat(' ', ., ' '), concat(' ', $email-address, ' '))]"/>
										<xsl:variable name="communication_method" select="substring-after($matching-pis, ' ')"/>
										<xsl:choose>
											<xsl:when test="starts-with($software_name, 'ePCT')">
												<xsl:choose>
													<xsl:when test="$communication_method='epct'">
														ePCT (email with a link to view and download the document in ePCT)
													</xsl:when>
													<xsl:otherwise>
														Email (with PDF attachment)
													</xsl:otherwise>
												</xsl:choose>
											</xsl:when>
											<xsl:otherwise>
												exclusively in electronic form (no paper notifications will be sent)
											</xsl:otherwise>
										</xsl:choose>
									</fo:block>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<xsl:if test=".//agent[@sequence='1']//registered-number | .//correspondence-address//registered-number">  
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdBL">  
							<fo:block>
								<xsl:text>IV-1-6</xsl:text>  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBC">  
							<fo:block>
								Agent's registration No.  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBR">  
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">  
									<xsl:value-of select=".//agent[@sequence='1']//registered-number | .//correspondence-address//registered-number"></xsl:value-of>
								</fo:inline>  
							</fo:block>
						</fo:table-cell>  
					</fo:table-row>
				</xsl:if>  
				<fo:table-row>            
					<fo:table-cell border-top="solid black 0.25pt" number-columns-spanned="3">              
						<fo:block></fo:block>            
					</fo:table-cell>          
				</fo:table-row>        
			</fo:table-body>
		</fo:table>  
		<xsl:call-template name="testSameAgent"></xsl:call-template>
	</xsl:template><xsl:template name="testSameAgent">
		<xsl:variable name="firstAdd">
			<xsl:value-of select="concat(.//agent[1]//address-1,',',.//agent[1]//address-2,',',.//agent[1]//address-3,',',.//agent[1]//mailcode,',',.//agent[1]//pobox,',',.//agent[1]//room,',',.//agent[1]//address-floor,',',.//agent[1]//building,',',.//agent[1]//street,',',.//agent[1]//city,',',.//agent[1]//county,',',.//agent[1]//state,',',.//agent[1]//postcode,',',.//agent[1]//country,',',.//agent[1]//phone,',',.//agent[1]//fax,',',.//agent[1]//email)"></xsl:value-of>
		</xsl:variable>
		<xsl:variable name="firstAdd_en">
			<xsl:value-of select="concat(.//agent[1]/addressbook[@lang='en']//address-1,',',.//agent[1]/addressbook[@lang='en']//address-2,',',.//agent[1]/addressbook[@lang='en']//address-3,',',.//agent[1]/addressbook[@lang='en']//mailcode,',',.//agent[1]/addressbook[@lang='en']//pobox,',',.//agent[1]/addressbook[@lang='en']//room,',',.//agent[1]/addressbook[@lang='en']//address-floor,',',.//agent[1]/addressbook[@lang='en']//building,',',.//agent[1]/addressbook[@lang='en']//street,',',.//agent[1]/addressbook[@lang='en']//city,',',.//agent[1]/addressbook[@lang='en']//county,',',.//agent[1]/addressbook[@lang='en']//state,',',.//agent[1]/addressbook[@lang='en']//postcode,',',.//agent[1]/addressbook[@lang='en']//country,',',.//agent[1]/addressbook[@lang='en']//phone,',',.//agent[1]/addressbook[@lang='en']//fax,',',.//agent[1]/addressbook[@lang='en']//email)"></xsl:value-of>
		</xsl:variable>
		<xsl:variable name="difTest">
			<xsl:for-each select=".//agent[@sequence != '1']">
				<xsl:variable name="curAdd">
					<xsl:value-of select="concat(.//address-1,',',.//address-2,',',.//address-3,',',.//mailcode,',',.//pobox,',',.//room,',',.//address-floor,',',.//building,',',.//street,',',.//city,',',.//county,',',.//state,',',.//postcode,',',.//country,',',.//phone,',',.//fax,',',.//email)"></xsl:value-of>
				</xsl:variable>
				<xsl:variable name="curAdd_en">
					<xsl:value-of select="concat(.//addressbook[@lang='en']//address-1,',',.//addressbook[@lang='en']//address-2,',',.//addressbook[@lang='en']//address-3,',',.//addressbook[@lang='en']//mailcode,',',.//addressbook[@lang='en']//pobox,',',.//addressbook[@lang='en']//room,',',.//addressbook[@lang='en']//address-floor,',',.//addressbook[@lang='en']//building,',',.//addressbook[@lang='en']//street,',',.//addressbook[@lang='en']//city,',',.//addressbook[@lang='en']//county,',',.//addressbook[@lang='en']//state,',',.//addressbook[@lang='en']//postcode,',',.//addressbook[@lang='en']//country,',',.//addressbook[@lang='en']//phone,',',.//addressbook[@lang='en']//fax,',',.//addressbook[@lang='en']//email)"></xsl:value-of>
				</xsl:variable>
				<xsl:choose>
					<xsl:when test="$curAdd=$firstAdd and $curAdd_en=$firstAdd_en">1</xsl:when>
					<xsl:otherwise>0</xsl:otherwise>
				</xsl:choose>
			</xsl:for-each>
		</xsl:variable>
		<xsl:choose>
			<xsl:when test="contains($difTest,1)">
				<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always"> 
					<fo:table-column column-width="12mm"></fo:table-column> 
					<fo:table-column column-width="53mm"></fo:table-column> 
					<fo:table-column column-width="105mm"></fo:table-column>
					<fo:table-body>
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdTL">
								<fo:block>
									<fo:inline font-weight="bold">IV-2</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTC">
								<fo:block>
									<fo:inline font-weight="bold">
										Additional agent(s)
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTR">
								<fo:block>
									<fo:inline font-weight="bold">
										additional agent(s) with same address as first named agent
										<xsl:if test="$lang='ja' or $lang='ru' or $lang='zh'"> 
											<!-- repeat text in English -->
											<fo:block></fo:block>
											<xsl:text> (additional agent(s) with the same address as first named agent)</xsl:text>
										</xsl:if>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<xsl:call-template name="showSameAgentAddress"></xsl:call-template>
						<fo:table-row>
							<fo:table-cell border-top="solid black 0.25pt" number-columns-spanned="3">  
								<fo:block></fo:block>
							</fo:table-cell>  
						</fo:table-row>
					</fo:table-body>
				</fo:table>
			</xsl:when>
			<!--xsl:otherwise>  
				<xsl:call-template name = "agentType_ChoiceText">
					<xsl:with-param name = "rep-type" select = "@rep-type"/>  
				</xsl:call-template>  
				<xsl:if test = "$lang='ja' or $lang='ru' or $lang='zh'">(<xsl:call-template name = "agentTypeEn_ChoiceText">
						<xsl:with-param name = "rep-type" select = "@rep-type"/> 
					</xsl:call-template>)</xsl:if>
			</xsl:otherwise-->
		</xsl:choose>
	</xsl:template><xsl:template name="showSameAgentAddress">
		<!-- shows names of agents sharing address info -->
		<xsl:variable name="firstAdd">
			<xsl:value-of select="concat(.//agent[1]//address-1,',',.//agent[1]//address-2,',',.//agent[1]//address-3,',',.//agent[1]//mailcode,',',.//agent[1]//pobox,',',.//agent[1]//room,',',.//agent[1]//address-floor,',',.//agent[1]//building,',',.//agent[1]//street,',',.//agent[1]//city,',',.//agent[1]//county,',',.//agent[1]//state,',',.//agent[1]//postcode,',',.//agent[1]//country,',',.//agent[1]//phone,',',.//agent[1]//fax,',',.//agent[1]//email)"></xsl:value-of>
		</xsl:variable>
		<xsl:variable name="firstAdd_en">
			<xsl:value-of select="concat(.//agent[1]/addressbook[@lang='en']//address-1,',',.//agent[1]/addressbook[@lang='en']//address-2,',',.//agent[1]/addressbook[@lang='en']//address-3,',',.//agent[1]/addressbook[@lang='en']//mailcode,',',.//agent[1]/addressbook[@lang='en']//pobox,',',.//agent[1]/addressbook[@lang='en']//room,',',.//agent[1]/addressbook[@lang='en']//address-floor,',',.//agent[1]/addressbook[@lang='en']//building,',',.//agent[1]/addressbook[@lang='en']//street,',',.//agent[1]/addressbook[@lang='en']//city,',',.//agent[1]/addressbook[@lang='en']//county,',',.//agent[1]/addressbook[@lang='en']//state,',',.//agent[1]/addressbook[@lang='en']//postcode,',',.//agent[1]/addressbook[@lang='en']//country,',',.//agent[1]/addressbook[@lang='en']//phone,',',.//agent[1]/addressbook[@lang='en']//fax,',',.//agent[1]/addressbook[@lang='en']//email)"></xsl:value-of>
		</xsl:variable>
		<xsl:choose>
			<xsl:when test="$lang='ja' or $lang='zh' or $lang='ru' or $lang='ko'">
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdL">
						<fo:block>
							<xsl:text>IV-2-1</xsl:text>
							<xsl:value-of select="$lang"></xsl:value-of>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdC">
						<fo:block>
							Name(s) 
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdR">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:for-each select=".//agent[@sequence != 1][concat(.//address-1,',',              .//address-2,',',              .//address-3,',',              .//mailcode,',',              .//pobox,',',              .//room,',',              .//address-floor,',',              .//building,',',              .//street,',',              .//city,',',              .//county,',',              .//state,',',              .//postcode,',',              .//country,',',              .//phone,',',              .//fax,',',              .//email)=$firstAdd and concat(.//addressbook[@lang='en']//address-1,',',              .//addressbook[@lang='en']//address-2,',',              .//addressbook[@lang='en']//address-3,',',              .//addressbook[@lang='en']//mailcode,',',              .//addressbook[@lang='en']//pobox,',',              .//addressbook[@lang='en']//room,',',              .//addressbook[@lang='en']//address-floor,',',              .//addressbook[@lang='en']//building,',',              .//addressbook[@lang='en']//street,',',              .//addressbook[@lang='en']//city,',',              .//addressbook[@lang='en']//county,',',              .//addressbook[@lang='en']//state,',',              .//addressbook[@lang='en']//postcode,',',              .//addressbook[@lang='en']//country,',',              .//addressbook[@lang='en']//phone,',',              .//addressbook[@lang='en']//fax,',',              .//addressbook[@lang='en']//email)=$firstAdd_en]">
									<xsl:choose>
										<xsl:when test=".//last-name">
											<xsl:value-of select=".//addressbook[@lang = $lang]//last-name"></xsl:value-of>
											<xsl:choose>
												<xsl:when test=".//addressbook[@lang = 'zh']">
													<xsl:text> </xsl:text>            
												</xsl:when>
												<xsl:when test=".//addressbook[@lang = 'ko']">
													<xsl:text></xsl:text>            
												</xsl:when>
												<xsl:when test=".//addressbook[@lang = 'ja']">
													<xsl:text>　</xsl:text>            
												</xsl:when>
												<xsl:otherwise> 
													<xsl:text>, </xsl:text>            
												</xsl:otherwise>
											</xsl:choose>
											<xsl:value-of select=".//addressbook[@lang = $lang]//first-name"></xsl:value-of>
										</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select=".//addressbook[@lang = $lang]//name"></xsl:value-of>
										</xsl:otherwise>
									</xsl:choose>
									<xsl:if test=".//registered-number">(<xsl:value-of select=".//registered-number"></xsl:value-of>)</xsl:if>
									<xsl:if test="following-sibling::agent[concat(.//address-1,',',            .//address-2,',',            .//address-3,',',            .//mailcode,',',            .//pobox,',',            .//room,',',            .//address-floor,',',            .//building,',',            .//street,',',            .//city,',',            .//county,',',            .//state,',',            .//postcode,',',            .//country,',',            .//phone,',',            .//fax,',',            .//email) = $firstAdd]">
										<xsl:text>; </xsl:text>
									</xsl:if>
								</xsl:for-each>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdL">
						<fo:block>
							<xsl:text>IV-2-1en</xsl:text>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdC">
						<fo:block>Name(s)</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdR">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:for-each select=".//agent[@sequence != 1][concat(.//address-1,',',              .//address-2,',',              .//address-3,',',              .//mailcode,',',              .//pobox,',',              .//room,',',              .//address-floor,',',              .//building,',',              .//street,',',              .//city,',',              .//county,',',              .//state,',',              .//postcode,',',              .//country,',',              .//phone,',',              .//fax,',',              .//email)=$firstAdd and concat(.//addressbook[@lang='en']//address-1,',',              .//addressbook[@lang='en']//address-2,',',              .//addressbook[@lang='en']//address-3,',',              .//addressbook[@lang='en']//mailcode,',',              .//addressbook[@lang='en']//pobox,',',              .//addressbook[@lang='en']//room,',',              .//addressbook[@lang='en']//address-floor,',',              .//addressbook[@lang='en']//building,',',              .//addressbook[@lang='en']//street,',',              .//addressbook[@lang='en']//city,',',              .//addressbook[@lang='en']//county,',',              .//addressbook[@lang='en']//state,',',              .//addressbook[@lang='en']//postcode,',',              .//addressbook[@lang='en']//country,',',              .//addressbook[@lang='en']//phone,',',              .//addressbook[@lang='en']//fax,',',              .//addressbook[@lang='en']//email)=$firstAdd_en]">
									<xsl:choose>
										<xsl:when test=".//addressbook[@lang='en']//last-name">
											<xsl:value-of select=".//addressbook[@lang='en']//last-name"></xsl:value-of>, <xsl:value-of select=".//addressbook[@lang='en']//first-name"></xsl:value-of>
										</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select=".//addressbook[@lang = 'en']//name"></xsl:value-of>
										</xsl:otherwise>
									</xsl:choose>
									<xsl:if test=".//registered-number">(<xsl:value-of select=".//registered-number"></xsl:value-of>)</xsl:if>
									<xsl:if test="following-sibling::agent[concat(.//address-1,',',            .//address-2,',',            .//address-3,',',            .//mailcode,',',            .//pobox,',',            .//room,',',            .//address-floor,',',            .//building,',',            .//street,',',            .//city,',',            .//county,',',            .//state,',',            .//postcode,',',            .//country,',',            .//phone,',',            .//fax,',',            .//email) = $firstAdd]">
										<xsl:text>; </xsl:text>
									</xsl:if>
								</xsl:for-each>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
			</xsl:when>
			<xsl:otherwise>
				<!-- app is in en, de, es, fr; show one name -->
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdL">
						<fo:block>IV-2-1</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdC">
						<fo:block>
							Name(s) 
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdR">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:for-each select=".//agent[@sequence != 1][concat(.//address-1,',',              .//address-2,',',              .//address-3,',',              .//mailcode,',',              .//pobox,',',              .//room,',',              .//address-floor,',',              .//building,',',              .//street,',',              .//city,',',              .//county,',',              .//state,',',              .//postcode,',',              .//country,',',              .//phone,',',              .//fax,',',              .//email)=$firstAdd and concat(.//addressbook[@lang='en']//address-1,',',              .//addressbook[@lang='en']//address-2,',',              .//addressbook[@lang='en']//address-3,',',              .//addressbook[@lang='en']//mailcode,',',              .//addressbook[@lang='en']//pobox,',',              .//addressbook[@lang='en']//room,',',              .//addressbook[@lang='en']//address-floor,',',              .//addressbook[@lang='en']//building,',',              .//addressbook[@lang='en']//street,',',              .//addressbook[@lang='en']//city,',',              .//addressbook[@lang='en']//county,',',              .//addressbook[@lang='en']//state,',',              .//addressbook[@lang='en']//postcode,',',              .//addressbook[@lang='en']//country,',',              .//addressbook[@lang='en']//phone,',',              .//addressbook[@lang='en']//fax,',',              .//addressbook[@lang='en']//email)=$firstAdd_en]">
									<xsl:choose>
										<xsl:when test=".//last-name">
											<xsl:value-of select=".//last-name"></xsl:value-of>, <xsl:value-of select=".//first-name"></xsl:value-of>
										</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select=".//addressbook//name"></xsl:value-of>
										</xsl:otherwise>
									</xsl:choose>
									<xsl:if test=".//registered-number">(<xsl:value-of select=".//registered-number"></xsl:value-of>)</xsl:if>
									<xsl:if test="following-sibling::agent[concat(.//address-1,',',            .//address-2,',',            .//address-3,',',            .//mailcode,',',            .//pobox,',',            .//room,',',            .//address-floor,',',            .//building,',',            .//street,',',            .//city,',',            .//county,',',            .//state,',',            .//postcode,',',            .//country,',',            .//phone,',',            .//fax,',',            .//email) = $firstAdd]">
										<xsl:text>; </xsl:text>
									</xsl:if>
								</xsl:for-each>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="matter">
		<!-- NOTE: there are many tests for text() nodes, as software implementation includes many empty elements to satisfy content model -->
		
		<!-- NOTE: Japanese and other languages use different markup for matter.  Should be standardized and/or usage made consistent.  This area of the DTD is quite bad -->
		<xsl:param name="matter"></xsl:param>   
		<!-- JA always shows date first -->
		<xsl:if test="./date and $lang='ja'">
			<xsl:call-template name="format_date"> 
				<xsl:with-param name="date" select="./date"></xsl:with-param> 
				<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
				<xsl:with-param name="show_date" select="1"></xsl:with-param> 
				<xsl:with-param name="text" select="1"></xsl:with-param> 
				<xsl:with-param name="date_too" select="1"></xsl:with-param>  
			</xsl:call-template>  
			<xsl:text>付で、</xsl:text>
			<fo:block></fo:block>
		</xsl:if>
		<xsl:if test="./date and $lang='ko'">
			<xsl:call-template name="format_date"> 
				<xsl:with-param name="date" select="./date"></xsl:with-param> 
				<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
				<xsl:with-param name="show_date" select="1"></xsl:with-param> 
				<xsl:with-param name="text" select="1"></xsl:with-param> 
				<xsl:with-param name="date_too" select="1"></xsl:with-param>  
			</xsl:call-template>  
				dated
			<fo:block></fo:block>
		</xsl:if>
		<xsl:choose>  
			<xsl:when test="$matter='i'">
				<!-- inventor -->
				<xsl:choose>
					<xsl:when test="$lang='ja'">
						<!-- show address then name in JA (possibly others) -->
						<xsl:if test="./addressbook">
							<xsl:if test="./addressbook//address-1/text()">
								<xsl:choose>
									<xsl:when test="not(./addressbook//country/text())">
										<xsl:value-of select="./addressbook//address-1"></xsl:value-of><fo:block></fo:block>
									</xsl:when>
									<xsl:otherwise>
										<xsl:call-template name="showAddress"></xsl:call-template>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:if>
						</xsl:if>
						<!-- 2019.09.30 Transliteration address for Declaration 2(i) for non-latin language(added following 4lines) -->
						<xsl:if test=".//addressbook[2][@lang='en']/address">
							<xsl:call-template name="showEnAddress">															
							</xsl:call-template>
						</xsl:if>
						<xsl:if test="./addressbook/name/text()">
							<xsl:text>在住の</xsl:text>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="./matter-name[1]/name/text()">
								<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
							</xsl:when>
							<xsl:otherwise>
								<xsl:call-template name="format_name">   
									<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
								</xsl:call-template>
							</xsl:otherwise>
						</xsl:choose>
						<xsl:choose>
							<xsl:when test="parent::entitlement-to-claim-priority">
								the applicant is the inventor of the subject matter for which protection was sought by way of the earlier application 
							</xsl:when>
							<xsl:otherwise>
								<xsl:text>は、</xsl:text>
								<fo:block></fo:block>
								is the inventor of the subject matter for which protection is sought by way of this international application 
							</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:when test="$lang='ko'">
						<xsl:choose>
							<xsl:when test="./matter-name[1]/name">
								<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
							</xsl:when>
							<xsl:when test="./addressbook[1]">
								<xsl:call-template name="format_name">   
									<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
								</xsl:call-template>
							</xsl:when>
						</xsl:choose>
						<xsl:if test=".//addressbook/address/*/text()">
							<fo:block></fo:block>
								<xsl:choose>
									<xsl:when test="not(./addressbook//country/text())">
<!-- 2019.05.31 braket removed
										<xsl:text> (</xsl:text>
-->
										<xsl:for-each select=".//addressbook/address/*">
										<xsl:value-of select="."></xsl:value-of>
										</xsl:for-each>
<!-- 2019.05.31 braket removed
										<xsl:text>) </xsl:text>
-->
									</xsl:when>
									<xsl:otherwise>
<!-- 2019.05.31 braket removed
										<xsl:text> (</xsl:text>									
-->
											<xsl:call-template name="showAddress"></xsl:call-template>
<!-- 2019.05.31 braket removed
										<xsl:text>) </xsl:text>
-->
									</xsl:otherwise>
								</xsl:choose>
							<fo:block></fo:block>
						</xsl:if>
						<!-- 2019.09.30 Transliteration address for Declaration 2(i) for non-latin language(added following 4lines) -->
						<xsl:if test=".//addressbook[2][@lang='en']/address">
							<xsl:call-template name="showEnAddress">															
							</xsl:call-template>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="parent::entitlement-to-claim-priority">
								the applicant is the inventor of the subject matter for which protection was sought by way of the earlier application 
							</xsl:when>
							<xsl:otherwise>
								is the inventor of the subject matter for which protection is sought by way of this international application 
							</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:when test="$lang='zh'">
						<xsl:choose>
							<xsl:when test="./matter-name[1]/name">
								<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
							</xsl:when>
							<xsl:when test="./addressbook[1]">
								<xsl:if test="parent::entitlement-to-be-granted-patent">
									<xsl:call-template name="format_name">   
										<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
									</xsl:call-template>
								</xsl:if>
							</xsl:when>
						</xsl:choose>
						<xsl:if test="parent::entitlement-to-be-granted-patent">
							<xsl:if test=".//addressbook/address/*/text()">
									<xsl:text> 住在</xsl:text>
									<fo:block></fo:block>
									<xsl:choose>
										<xsl:when test="not(./addressbook//country/text())">
											<xsl:for-each select=".//addressbook/address/*">
												<xsl:value-of select="."></xsl:value-of>
											</xsl:for-each>
										</xsl:when>
										<xsl:otherwise>
											<xsl:call-template name="showAddress"></xsl:call-template>
										</xsl:otherwise>
									</xsl:choose>
							</xsl:if>
							<!-- 2019.09.30 Transliteration address for Declaration 2(i) for non-latin language(added following 4lines) -->
							<xsl:if test=".//addressbook[2][@lang='en']/address">
								<xsl:call-template name="showEnAddress">															
								</xsl:call-template>
							</xsl:if>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="parent::entitlement-to-claim-priority">
								the applicant is the inventor of the subject matter for which protection was sought by way of the earlier application 
							</xsl:when>
							<xsl:otherwise>
								is the inventor of the subject matter for which protection is sought by way of this international application 
							</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:when test="$lang='ru'">
						<xsl:choose>
							<xsl:when test="./matter-name[1]/name">
								<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
							</xsl:when>
							<xsl:when test="./addressbook[1]">
								<xsl:call-template name="format_name">   
									<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
								</xsl:call-template>
							</xsl:when>
						</xsl:choose>
						<xsl:if test=".//addressbook/address/*/text()">
							<fo:block></fo:block>
							<xsl:choose>
								<xsl:when test="not(./addressbook//country/text())">
									<xsl:for-each select=".//addressbook/address/*">
									<xsl:value-of select="."></xsl:value-of>
								</xsl:for-each>
								</xsl:when>
								<xsl:otherwise>
									<xsl:call-template name="showAddress"></xsl:call-template>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:if>
						<!-- 2019.09.30 Transliteration address for Declaration 2(i) for non-latin language(added following 4lines) -->
						<xsl:if test=".//addressbook[2][@lang='en']/address">
							<xsl:call-template name="showEnAddress">															
							</xsl:call-template>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="parent::entitlement-to-claim-priority">
								the applicant is the inventor of the subject matter for which protection was sought by way of the earlier application 
							</xsl:when>
							<xsl:otherwise>
								is the inventor of the subject matter for which protection is sought by way of this international application 
							</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:when test="$lang='pt'">
						<xsl:text>o facto de </xsl:text>
						<xsl:choose>
							<xsl:when test="./matter-name[1]/name">
								<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
							</xsl:when>
							<xsl:when test="./addressbook[1]">
								<xsl:call-template name="format_name">   
									<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
								</xsl:call-template>
							</xsl:when>
						</xsl:choose>
						<xsl:if test=".//addressbook/address/*/text()">
							<xsl:if test="$lang != 'de'">
								 of 
							</xsl:if>
							<fo:block></fo:block>
							<xsl:call-template name="showAddress"></xsl:call-template>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="parent::entitlement-to-claim-priority">
								the applicant is the inventor of the subject matter for which protection was sought by way of the earlier application 
							</xsl:when>
							<xsl:otherwise>
								is the inventor of the subject matter for which protection is sought by way of this international application 
							</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<!-- 2019.09.30 Transliteration address for Declaration 2(i) for non-latin language -->
					<xsl:when test="$lang='ar'">					
						<xsl:choose>
							<xsl:when test="./matter-name[1]/name">
								<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
							</xsl:when>
							<xsl:when test="./addressbook[1]">
								<xsl:call-template name="format_name">   
									<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
								</xsl:call-template>
							</xsl:when>
						</xsl:choose>
						<xsl:if test=".//addressbook/address/*/text()">
							 of 
							<fo:block></fo:block>
							<xsl:call-template name="showAddress"></xsl:call-template>
						</xsl:if>
						<xsl:if test=".//addressbook[2][@lang='en']/address">
							<xsl:call-template name="showEnAddress">															
							</xsl:call-template>
						</xsl:if>						
						<xsl:choose>
							<xsl:when test="parent::entitlement-to-claim-priority">
								the applicant is the inventor of the subject matter for which protection was sought by way of the earlier application 
							</xsl:when>
							<xsl:otherwise>
								is the inventor of the subject matter for which protection is sought by way of this international application 
							</xsl:otherwise>
						</xsl:choose>	
					</xsl:when>				
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when test="./matter-name[1]/name">
								<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
							</xsl:when>
							<xsl:when test="./addressbook[1]">
								<xsl:call-template name="format_name">   
									<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
								</xsl:call-template>
							</xsl:when>
						</xsl:choose>
						<xsl:if test=".//addressbook/address/*/text()">
							 of 
							<fo:block></fo:block>
							<xsl:call-template name="showAddress"></xsl:call-template>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="parent::entitlement-to-claim-priority">
								the applicant is the inventor of the subject matter for which protection was sought by way of the earlier application 
							</xsl:when>
							<xsl:otherwise>
								is the inventor of the subject matter for which protection is sought by way of this international application 
							</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="$matter='ii'">
				<!-- employer -->
				<xsl:if test="$lang='fr'">
					<!-- same text for is/was in FR version -->
					is entitled as employer of the inventor,
				</xsl:if>
				<xsl:if test="$lang='pt'">
					<!-- same text for is/was in FR version -->
					<xsl:text>o facto de </xsl:text>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./matter-name[2]/name and $lang='ja'">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
					<xsl:when test="./addressbook[2] and $lang='ja'">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="parent::entitlement-to-be-granted-patent/name and $lang != 'ja'">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
					<xsl:when test="parent::entitlement-to-claim-priority/name and $lang != 'ja'">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="@tense='was' and not($lang='fr')">
						was entitled as employer of the inventor,
					</xsl:when>
					<xsl:when test="@tense='is' and not($lang='fr')">
						is entitled as employer of the inventor,
					</xsl:when>
					<xsl:when test="@tense='was' and $lang='fr'">
						
					</xsl:when>
					<xsl:when test="@tense='is' and $lang='fr'">
						
					</xsl:when>
				</xsl:choose>
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./matter-name[2]/name and $lang = 'ja'">
						<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
					</xsl:when>
					<xsl:when test="./addressbook[2] and $lang = 'ja'">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[2]/name and $lang != 'ja'">
						<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
					</xsl:when>
					<xsl:when test="./addressbook[2] and $lang != 'ja'">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="$lang='ja' or $lang='zh' or $lang='ko'">
					<xsl:choose>
						<xsl:when test="@tense='was'">
							
						</xsl:when>
						<xsl:otherwise>
							
						</xsl:otherwise>
					</xsl:choose>
				</xsl:if>
			</xsl:when> 
			<xsl:when test="$matter='iii'">
				<!-- agreement -->
				<xsl:if test="not($lang='ja' or $lang='ko' or $lang='zh')">
					an agreement between    
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[1]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[1]/name">
						<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="$lang='ja'">
						<xsl:text>と</xsl:text>
						<fo:block></fo:block>
					</xsl:when>
					<xsl:otherwise>
						 and 
					</xsl:otherwise>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="./addressbook[2]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[2]/name">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="./date and $lang='zh'">
					dated
					<xsl:call-template name="format_date"> 
						<xsl:with-param name="date" select="./date"></xsl:with-param> 
						<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
						<xsl:with-param name="show_date" select="1"></xsl:with-param> 
						<xsl:with-param name="text" select="1"></xsl:with-param> 
						<xsl:with-param name="date_too" select="1"></xsl:with-param>  
					</xsl:call-template>  
				</xsl:if>
				<xsl:if test="$lang='zh'">
					an agreement between    
				</xsl:if>
				<xsl:if test="$lang='ja' or $lang='ko'">
					<fo:block></fo:block>
					an agreement between    
				</xsl:if>
			</xsl:when>  
			<xsl:when test="$matter='iv'">
				<!-- assignment -->
				<xsl:if test="not($lang='ja' or $lang='ko' or $lang='zh')">
					an assignment from 
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[1]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[1]/name">
						<xsl:value-of select="./matter-name/name[1]"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="./date and $lang='zh'">
					dated
					<xsl:call-template name="format_date"> 
						<xsl:with-param name="date" select="./date"></xsl:with-param> 
						<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
						<xsl:with-param name="show_date" select="1"></xsl:with-param> 
						<xsl:with-param name="text" select="1"></xsl:with-param> 
						<xsl:with-param name="date_too" select="1"></xsl:with-param>  
					</xsl:call-template>  
				</xsl:if>
				 to 
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[2]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[2]/name">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="$lang='zh'">
					an assignment from 
				</xsl:if>
				<xsl:if test="$lang='ja' or $lang='ko'">
					<fo:block></fo:block>
					an assignment from 
				</xsl:if>
			</xsl:when>
			<xsl:when test="$matter='v'">
				<!-- consent -->
				<xsl:if test="not($lang='ja' or $lang='ko' or $lang='zh')">
					consent from 
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[1]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[1]/name">
						<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="./date and $lang='zh'">
					dated
					<xsl:call-template name="format_date"> 
						<xsl:with-param name="date" select="./date"></xsl:with-param> 
						<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
						<xsl:with-param name="show_date" select="1"></xsl:with-param> 
						<xsl:with-param name="text" select="1"></xsl:with-param> 
						<xsl:with-param name="date_too" select="1"></xsl:with-param>  
					</xsl:call-template>  
				</xsl:if>
				 in favor of 
				<xsl:choose>
					<xsl:when test="./addressbook[2]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[2]/name">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="$lang='zh'">
					consent from 
				</xsl:if>
				<xsl:if test="$lang='ja' or $lang='ko'">
					<fo:block></fo:block>
					consent from 
				</xsl:if>
			</xsl:when>  
			<xsl:when test="$matter='vi'">
				<!-- court order -->
				<xsl:if test="not($lang='ja' or $lang='ko' or $lang='zh')">
					a court order issued by 
				</xsl:if>
				<xsl:value-of select="./court-name"></xsl:value-of>
				<xsl:if test="$lang='en'">
					<xsl:text>, </xsl:text>
				</xsl:if>
				<xsl:if test="./date and ($lang='zh' or $lang='de')">
					dated
					<xsl:call-template name="format_date"> 
						<xsl:with-param name="date" select="./date"></xsl:with-param> 
						<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
						<xsl:with-param name="show_date" select="1"></xsl:with-param> 
						<xsl:with-param name="text" select="1"></xsl:with-param> 
						<xsl:with-param name="date_too" select="1"></xsl:with-param>  
					</xsl:call-template>  
				</xsl:if>
				 effecting a transfer from 
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[1]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[1]/name">
						<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="$lang='ru'">
						 to 
					</xsl:when>
					<xsl:otherwise>
						 to 
					</xsl:otherwise>
				</xsl:choose>
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[2]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[2]/name">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="$lang = 'de'">
					
				</xsl:if>
				<xsl:if test="$lang='ja' or $lang='ko' or $lang='zh'">
					<fo:block></fo:block>
					a court order issued by 
				</xsl:if>
			</xsl:when>  
			<xsl:when test="$matter='vii'">
				<!-- transfer -->
				<xsl:if test="./date and $lang='zh'">
					dated
					<xsl:call-template name="format_date"> 
						<xsl:with-param name="date" select="./date"></xsl:with-param> 
						<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
						<xsl:with-param name="show_date" select="1"></xsl:with-param> 
						<xsl:with-param name="text" select="1"></xsl:with-param> 
						<xsl:with-param name="date_too" select="1"></xsl:with-param>  
					</xsl:call-template>  
				</xsl:if>
				<xsl:choose>
					<xsl:when test="$lang='ja' or $lang='ko'">
						<xsl:value-of select="./kind-of-transfer"></xsl:value-of>
						 by way of 
						<fo:block></fo:block>
					</xsl:when>
					<xsl:when test="$lang='zh'">
						 by way of 
					</xsl:when>
					<xsl:otherwise>
						transfer of entitlement from 
					</xsl:otherwise>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="./addressbook[1]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[1]/name">
						<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				 to 
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[2]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[2]/name">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="$lang='ja' or $lang='ko'">
						<fo:block></fo:block>
						transfer of entitlement from 
					</xsl:when>
					<xsl:when test="$lang='zh'">
						transfer of entitlement from 
						<xsl:text>(</xsl:text>
						<xsl:value-of select="./kind-of-transfer"></xsl:value-of>
						<xsl:text>)</xsl:text>
					</xsl:when>
					<xsl:otherwise>
						 by way of 
						<xsl:value-of select="./kind-of-transfer"></xsl:value-of>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="$matter='viii'">
				<!-- name change -->
				<xsl:if test="./date and $lang='zh'">
					<xsl:call-template name="format_date"> 
						<xsl:with-param name="date" select="./date"></xsl:with-param> 
						<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
						<xsl:with-param name="show_date" select="1"></xsl:with-param> 
						<xsl:with-param name="text" select="1"></xsl:with-param> 
						<xsl:with-param name="date_too" select="1"></xsl:with-param>  
					</xsl:call-template>  
				</xsl:if>
				the applicant's name changed from 
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:if test="$lang ='de'">
					<xsl:call-template name="format_date"> 
						<xsl:with-param name="date" select="./date"></xsl:with-param> 
						<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
						<xsl:with-param name="show_date" select="1"></xsl:with-param> 
						<xsl:with-param name="text" select="1"></xsl:with-param> 
						<xsl:with-param name="date_too" select="1"></xsl:with-param>  
					</xsl:call-template>  
					von
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[1]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[1]/name">
						<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="$lang='zh'">
						 on 
					</xsl:when>
					<xsl:when test="$lang='de'">
						in
					</xsl:when>
					<xsl:when test="$lang='fr'">
						en
					</xsl:when>
					<xsl:otherwise>
						 to 
					</xsl:otherwise>
				</xsl:choose>
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[2]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[2]/name">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="$lang='de'">
						
					</xsl:when>
					<xsl:when test="$lang='zh'"></xsl:when>
					<xsl:when test="$lang='es'">
						
					</xsl:when>
					<xsl:otherwise>
						 on 
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when> 
		</xsl:choose>  
		<xsl:if test="./date and not($lang='ja' or $lang='ko' or $lang='zh')">
			<xsl:if test="not($matter='vi' and $lang='de') and not($matter='viii' and $lang='de')">
				<xsl:if test="not($matter='viii')"> 
					<xsl:text>, </xsl:text>
					<xsl:choose>
						<xsl:when test="$lang='ru' and $matter='vi'">
							dated
						</xsl:when>
						<xsl:otherwise>
							dated
						</xsl:otherwise>
					</xsl:choose>
				</xsl:if>  
				<xsl:call-template name="format_date"> 
					<xsl:with-param name="date" select="./date"></xsl:with-param> 
					<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
					<xsl:with-param name="show_date" select="1"></xsl:with-param> 
					<xsl:with-param name="text" select="1"></xsl:with-param> 
					<xsl:with-param name="date_too" select="1"></xsl:with-param>  
				</xsl:call-template>  
			</xsl:if>
		</xsl:if>
	</xsl:template>
	<xsl:template name="testSameAddress">
		<xsl:param name="seq"></xsl:param>
		<!-- test for multi-language addressbooks (ru, ja, zh, ko only) -->
		<xsl:choose>
			<xsl:when test="$lang='ja' or $lang='zh' or $lang='ru' or $lang='ko'">  
				<xsl:if test="not(./addressbook[1]/text)">  
					<!-- first native language, then english -->
					<fo:table-row> 
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>IV-<xsl:value-of select="$seq"></xsl:value-of>
								<xsl:text>-2</xsl:text>
								<xsl:if test="./addressbook[@lang='en']">
									<xsl:value-of select="$lang"></xsl:value-of>
								</xsl:if>
							</fo:block> 
						</fo:table-cell> 
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>
								Address
							</fo:block> 
						</fo:table-cell> 
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">   
									<xsl:choose>
										<xsl:when test="$lang='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="showNativeAddress"></xsl:call-template>   
										</xsl:otherwise>
									</xsl:choose>
								</fo:inline>
							</fo:block> 
						</fo:table-cell>  
					</fo:table-row>  
					<xsl:if test="./addressbook[@lang='en']">  
						<fo:table-row> 
							<fo:table-cell xsl:use-attribute-sets="tdL">
								<fo:block>IV-<xsl:value-of select="$seq"></xsl:value-of>-2en</fo:block> 
							</fo:table-cell> 
							<fo:table-cell xsl:use-attribute-sets="tdC">
								<fo:block>
									<xsl:text>Address: </xsl:text>
								</fo:block> 
							</fo:table-cell> 
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block padding-top="1pt">
									<fo:inline font-weight="bold">   
										<xsl:call-template name="showEnAddress"></xsl:call-template>   
									</fo:inline>
								</fo:block> 
							</fo:table-cell>  
						</fo:table-row>   
					</xsl:if>  
				</xsl:if>
			</xsl:when>
			<!-- application is en, de, es, or fr; only show one addressbook -->
			<xsl:otherwise>  
				<!-- if text is all that's entered display that below in IV-5 using 'showAddress' -->
				<xsl:if test="not(.//agent[@sequence='1']/addressbook[1]/text)">  
					<fo:table-row> 
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>IV-<xsl:value-of select="$seq"></xsl:value-of>-2</fo:block> 
						</fo:table-cell> 
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>
								Address
							</fo:block> 
						</fo:table-cell> 
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">   
									<xsl:call-template name="showAddress"></xsl:call-template>   
								</fo:inline>
							</fo:block> 
						</fo:table-cell>  
					</fo:table-row>  
				</xsl:if> 
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template><xsl:template name="other_agents">
		<!-- get first named agent's info -->
		<xsl:variable name="firstAdd">
			<xsl:value-of select="concat(.//agent[1]//address-1,',',.//agent[1]//address-2,',',.//agent[1]//address-3,',',.//agent[1]//mailcode,',',.//agent[1]//pobox,',',.//agent[1]//room,',',.//agent[1]//address-floor,',',.//agent[1]//building,',',.//agent[1]//street,',',.//agent[1]//city,',',.//agent[1]//county,',',.//agent[1]//state,',',.//agent[1]//postcode,',',.//agent[1]//country,',',.//agent[1]//phone,',',.//agent[1]//fax,',',.//agent[1]//email)"></xsl:value-of>
		</xsl:variable>
		<xsl:variable name="firstAdd_en">
			<xsl:value-of select="concat(.//agent[1]/addressbook[@lang='en']//address-1,',',.//agent[1]/addressbook[@lang='en']//address-2,',',.//agent[1]/addressbook[@lang='en']//address-3,',',.//agent[1]/addressbook[@lang='en']//mailcode,',',.//agent[1]/addressbook[@lang='en']//pobox,',',.//agent[1]/addressbook[@lang='en']//room,',',.//agent[1]/addressbook[@lang='en']//address-floor,',',.//agent[1]/addressbook[@lang='en']//building,',',.//agent[1]/addressbook[@lang='en']//street,',',.//agent[1]/addressbook[@lang='en']//city,',',.//agent[1]/addressbook[@lang='en']//county,',',.//agent[1]/addressbook[@lang='en']//state,',',.//agent[1]/addressbook[@lang='en']//postcode,',',.//agent[1]/addressbook[@lang='en']//country,',',.//agent[1]/addressbook[@lang='en']//phone,',',.//agent[1]/addressbook[@lang='en']//fax,',',.//agent[1]/addressbook[@lang='en']//email)"></xsl:value-of>
		</xsl:variable>
		<!-- compare with each following agent's info -->
		<xsl:variable name="difTest">
			<xsl:for-each select=".//agent[@sequence != '1']">
				<xsl:variable name="curAdd">
					<xsl:value-of select="concat(.//address-1,',',.//address-2,',',.//address-3,',',.//mailcode,',',.//pobox,',',.//room,',',.//address-floor,',',.//building,',',.//street,',',.//city,',',.//county,',',.//state,',',.//postcode,',',.//country,',',.//phone,',',.//fax,',',.//email)"></xsl:value-of>
				</xsl:variable>
				<xsl:variable name="curAdd_en">
					<xsl:value-of select="concat(.//addressbook[@lang='en']//address-1,',',.//addressbook[@lang='en']//address-2,',',.//addressbook[@lang='en']//address-3,',',.//addressbook[@lang='en']//mailcode,',',.//addressbook[@lang='en']//pobox,',',.//addressbook[@lang='en']//room,',',.//addressbook[@lang='en']//address-floor,',',.//addressbook[@lang='en']//building,',',.//addressbook[@lang='en']//street,',',.//addressbook[@lang='en']//city,',',.//addressbook[@lang='en']//county,',',.//addressbook[@lang='en']//state,',',.//addressbook[@lang='en']//postcode,',',.//addressbook[@lang='en']//country,',',.//addressbook[@lang='en']//phone,',',.//addressbook[@lang='en']//fax,',',.//addressbook[@lang='en']//email)"></xsl:value-of>
				</xsl:variable>
				<xsl:choose>
					<xsl:when test="$curAdd=$firstAdd and $curAdd_en=$firstAdd_en">1</xsl:when>
					<xsl:otherwise>0</xsl:otherwise>
				</xsl:choose>
			</xsl:for-each>
		</xsl:variable>
		<!-- determine what to display in box (e.g, IV-2 or IV-3) -->
		<xsl:variable name="seqtest">
			<xsl:choose>
				<xsl:when test="contains($difTest,'1')">2</xsl:when>
				<xsl:otherwise>1</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:for-each select=".//agent[@sequence != '1'][concat(.//address-1,',',.//address-2,',',.//address-3,',',.//mailcode,',',.//pobox,',',.//room,',',.//address-floor,',',.//building,',',.//street,',',.//city,',',.//county,',',.//state,',',.//postcode,',',.//country,',',.//phone,',',.//fax,',',.//email) != $firstAdd or concat(.//addressbook[@lang='en']//address-1,',',.//addressbook[@lang='en']//address-2,',',.//addressbook[@lang='en']//address-3,',',.//addressbook[@lang='en']//mailcode,',',.//addressbook[@lang='en']//pobox,',',.//addressbook[@lang='en']//room,',',.//addressbook[@lang='en']//address-floor,',',.//addressbook[@lang='en']//building,',',.//addressbook[@lang='en']//street,',',.//addressbook[@lang='en']//city,',',.//addressbook[@lang='en']//county,',',.//addressbook[@lang='en']//state,',',.//addressbook[@lang='en']//postcode,',',.//addressbook[@lang='en']//country,',',.//addressbook[@lang='en']//phone,',',.//addressbook[@lang='en']//fax,',',.//addressbook[@lang='en']//email)!= $firstAdd_en]">
			<xsl:variable name="seq">
				<xsl:value-of select="position() + $seqtest"></xsl:value-of>
			</xsl:variable>
			<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">         
				<fo:table-column column-width="12mm"></fo:table-column>         
				<fo:table-column column-width="53mm"></fo:table-column>         
				<fo:table-column column-width="105mm"></fo:table-column>
				<fo:table-body>  
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdTL">  
							<fo:block>
								<fo:inline font-weight="bold">IV-<xsl:value-of select="$seq"></xsl:value-of>
								</fo:inline>  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">  
							<fo:block>
								<fo:inline font-weight="bold">  
									Additional agent(s)
								</fo:inline>  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR">  
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:call-template name="agentType_ChoiceText">
										<xsl:with-param name="rep-type" select="@rep-type"></xsl:with-param>  
									</xsl:call-template>  
									<xsl:if test="$lang='ja' or $lang='ru' or $lang='zh'">(<xsl:call-template name="agentTypeEn_ChoiceText">
											<xsl:with-param name="rep-type" select="@rep-type"></xsl:with-param> 
										</xsl:call-template>)</xsl:if>
								</fo:inline>  
							</fo:block>
						</fo:table-cell>  
					</fo:table-row> 
					<!-- If <addressbook><text> has been used, will have been displayed in Name area above -->
					  
					<xsl:if test="not(./addressbook[1]/text)">
						<!-- test for multi-language addressbooks (ru, ja, zh only) -->
						<xsl:choose>
							<xsl:when test="$lang='ja' or $lang='zh' or $lang='ru' or $lang='ko'">  
								<xsl:if test="not(.//agent[@sequence='1']/addressbook[1]/text)">  
									<!-- first native language, then english -->
									<fo:table-row>  
										<fo:table-cell xsl:use-attribute-sets="tdL">
											<fo:block>IV-<xsl:value-of select="$seq"></xsl:value-of>
												<xsl:text>-1</xsl:text>
												<xsl:if test="./addressbook[@lang='en']">
													<xsl:value-of select="$lang"></xsl:value-of>
												</xsl:if>
											</fo:block> 
										</fo:table-cell> 
										<fo:table-cell xsl:use-attribute-sets="tdC">
											<fo:block>
												<xsl:call-template name="nameType">
													<xsl:with-param name="nam" select="./addressbook[@lang=$lang]"></xsl:with-param>
												</xsl:call-template>
											</fo:block> 
										</fo:table-cell> 
										<fo:table-cell xsl:use-attribute-sets="tdR">
											<fo:block padding-top="1pt">
												<fo:inline font-weight="bold">   
													<xsl:call-template name="format_name">  
														<xsl:with-param name="name_arg" select="./addressbook[@lang=$lang]"></xsl:with-param>   
													</xsl:call-template>
												</fo:inline>
											</fo:block> 
										</fo:table-cell>  
									</fo:table-row>  
									<!-- make sure that there is an English version to display -->
									<xsl:if test="./addressbook[@lang='en']">  
										<fo:table-row> 
											<fo:table-cell xsl:use-attribute-sets="tdL">
												<fo:block>IV-<xsl:value-of select="$seq"></xsl:value-of>-1en</fo:block> 
											</fo:table-cell> 
											<fo:table-cell xsl:use-attribute-sets="tdC">
												<fo:block>
													<xsl:choose>
														<xsl:when test="./addressbook[@lang='en']/name[@name-type='legal']">  
															<xsl:text>Name: </xsl:text>
														</xsl:when>
														<xsl:otherwise>
															<xsl:text>Name (LAST, First): </xsl:text>
														</xsl:otherwise>
													</xsl:choose>
												</fo:block> 
											</fo:table-cell> 
											<fo:table-cell xsl:use-attribute-sets="tdR">
												<fo:block padding-top="1pt">
													<fo:inline font-weight="bold">   
														<xsl:call-template name="format_name">  
															<xsl:with-param name="name_arg" select="./addressbook[@lang='en']"></xsl:with-param>   
														</xsl:call-template>
													</fo:inline>
												</fo:block> 
											</fo:table-cell>  
										</fo:table-row>  
									</xsl:if>
								</xsl:if>
							</xsl:when>
							<!-- application is en, de, es, or fr; only show one addressbook -->
							<xsl:otherwise>  
								<!-- if text is all that's entered display that below in IV-5 using 'showAddress' -->
								<xsl:if test="not(./addressbook[1]/text)">  
									<fo:table-row> 
										<fo:table-cell xsl:use-attribute-sets="tdL">
											<fo:block>IV-<xsl:value-of select="$seq"></xsl:value-of>-1</fo:block> 
										</fo:table-cell> 
										<fo:table-cell xsl:use-attribute-sets="tdC">
											<fo:block>
												<xsl:call-template name="nameType">
													<xsl:with-param name="nam" select="./addressbook[1]"></xsl:with-param>
												</xsl:call-template>
											</fo:block> 
										</fo:table-cell> 
										<fo:table-cell xsl:use-attribute-sets="tdR">
											<fo:block padding-top="1pt">
												<fo:inline font-weight="bold">   
													<xsl:call-template name="format_name">  
														<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>   
													</xsl:call-template>
												</fo:inline>
											</fo:block> 
										</fo:table-cell>  
									</fo:table-row>
								</xsl:if> 
							</xsl:otherwise>
						</xsl:choose>  
					</xsl:if>  
					<!-- get address info -->
					  
					<xsl:call-template name="testSameAddress"> 
						<xsl:with-param name="seq" select="$seq"></xsl:with-param>  
					</xsl:call-template>  
					<!--xsl:if test = "addressbook[1]/phone and addressbook[1]/phone/text() != //agent[1]/addressbook[1]/phone/text()"-->
					<fo:table-row>  
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>IV-<xsl:value-of select="$seq"></xsl:value-of>-3</fo:block>  
						</fo:table-cell>  
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>  
								Telephone No.
							</fo:block>  
						</fo:table-cell>  
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">  
								<fo:inline font-weight="bold">
									<xsl:value-of select="addressbook[1]/phone"></xsl:value-of>  
								</fo:inline>
							</fo:block>  
						</fo:table-cell>
					</fo:table-row>  
					<!--/xsl:if>  
					<xsl:if test = "addressbook[1]/fax and addressbook[1]/fax/text() != //agent[1]/addressbook[1]/fax/text()"-->
					<fo:table-row>  
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>IV-<xsl:value-of select="$seq"></xsl:value-of>-4</fo:block>  
						</fo:table-cell>  
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>  
								Facsimile No.
							</fo:block>  
						</fo:table-cell>  
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">  
								<fo:inline font-weight="bold">
									<xsl:value-of select="addressbook[1]/fax"></xsl:value-of>  
								</fo:inline>
							</fo:block>  
						</fo:table-cell>
					</fo:table-row>  
					<!--/xsl:if>  
					<xsl:if test = "addressbook[1]/email and addressbook[1]/email/text() != //agent[1]/addressbook[1]/email/text()"-->
					<fo:table-row>  
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>IV-<xsl:value-of select="$seq"></xsl:value-of>-5</fo:block>  
						</fo:table-cell>  
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>  
								e-mail
							</fo:block>  
						</fo:table-cell>  
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">  
								<fo:inline font-weight="bold">
									<xsl:value-of select="addressbook[1]/email"></xsl:value-of>  
								</fo:inline>
							</fo:block>  
						</fo:table-cell>
					</fo:table-row>  
					<!--/xsl:if>  
					<xsl:if test = "addressbook[1]/email and addressbook[1]/email/text() != //agent[1]/addressbook[1]/email/text()"-->
					<xsl:if test="addressbook[1]/email/@email-purpose='advance'">            
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL">  
								<fo:block>IV-<xsl:value-of select="$seq"></xsl:value-of>-5(a)</fo:block>  
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdC">  
								<fo:block>
									E-mail authorization  
								</fo:block>
								<fo:block>
									The receiving Office, the International Searching Authority, the International Bureau and the International Preliminary Examining Authority are authorized to use this e-mail address, if the Office or Authority so wishes, to send notifications issued in respect of this international application:  
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdR">  
								<fo:block padding-top="1pt">
									<fo:inline font-weight="bold">  
										<fo:block>
											as advance copies followed by paper notifications  
										</fo:block>
									</fo:inline>  
								</fo:block>
							</fo:table-cell>  
						</fo:table-row>
					</xsl:if>
					<xsl:if test="addressbook[1]/email/@email-purpose='main'">            
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL">  
								<fo:block>IV-<xsl:value-of select="$seq"></xsl:value-of>-5(a)</fo:block>  
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdC">  
								<fo:block>
									E-mail authorization  
								</fo:block>
								<fo:block>
									The receiving Office, the International Searching Authority, the International Bureau and the International Preliminary Examining Authority are authorized to use this e-mail address, if the Office or Authority so wishes, to send notifications issued in respect of this international application:  
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block padding-top="1pt">
									<fo:inline font-weight="bold">
										<fo:block>
											<xsl:variable name="email-address" select="./addressbook[1]/email[@email-purpose='main']"/>
											<xsl:variable name="matching-pis" select="//node()[self::processing-instruction() and name() = 'communication_attachment' and contains(concat(' ', ., ' '), concat(' ', $email-address, ' '))]"/>
											<xsl:variable name="communication_method" select="substring-after($matching-pis, ' ')"/>
											<xsl:choose>
												<xsl:when test="starts-with($software_name, 'ePCT')">
													<xsl:choose>
														<xsl:when test="$communication_method='epct'">
															ePCT (email with a link to view and download the document in ePCT)
														</xsl:when>
														<xsl:otherwise>
															Email (with PDF attachment)
														</xsl:otherwise>
													</xsl:choose>
												</xsl:when>
												<xsl:otherwise>
													exclusively in electronic form (no paper notifications will be sent)
												</xsl:otherwise>
											</xsl:choose>
										</fo:block>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
					</xsl:if>
					<!--/xsl:if>  
					<xsl:if test = "addressbook[1]/registered-number and addressbook[1]/registered-number/text() != //agent[1]/addressbook[1]/registered-number/text()"-->
					<fo:table-row>  
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>IV-<xsl:value-of select="$seq"></xsl:value-of>-6</fo:block>  
						</fo:table-cell>  
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>
								Agent's registration No.
							</fo:block>  
						</fo:table-cell>  
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">  
								<fo:inline font-weight="bold">
									<xsl:value-of select="addressbook[1]/registered-number"></xsl:value-of>  
								</fo:inline>
							</fo:block>  
						</fo:table-cell>
					</fo:table-row>  
					<!--/xsl:if-->
					<fo:table-row>  
						<fo:table-cell border-top="solid black 0.25pt" number-columns-spanned="3">
							<fo:block></fo:block>  
						</fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>  
		</xsl:for-each>    
	</xsl:template>
	<xsl:template match="request">
		<xsl:choose>
			<xsl:when test="./doc-page">
				<xsl:apply-templates select="./doc-page"></xsl:apply-templates>
			</xsl:when>
			<xsl:otherwise>
				<xsl:if test="not($officeUse='1')">
					<fo:table table-layout="fixed" border-collapse="separate" padding-bottom="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 padding-after="1mm">
										<fo:inline font-weight="bold">0</fo:inline>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdTC">
									<fo:block padding-after="1mm">
										<fo:inline font-weight="bold">
											For receiving Office use only
										</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="tdL">
									<fo:block padding-after="2.5mm">
										<fo:inline font-weight="bold">0-1</fo:inline>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdC">
									<fo:block padding-after="2.5mm">
										International Application No.
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdR">
									<fo:block>
									<xsl:choose>
										<xsl:when test="document($rrri_doc)//doc-number">
												<fo:inline font-weight="bold">
													<xsl:value-of select="document($rrri_doc)//doc-number"></xsl:value-of>
												</fo:inline>
										</xsl:when>
										<xsl:when test="$ia_number">
												<fo:inline font-weight="bold">
													<xsl:value-of select="$ia_number"></xsl:value-of>
												</fo:inline>
										</xsl:when>
									</xsl:choose>
									</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">
											<xsl:text>0-2</xsl:text>
										</fo:inline>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdTC">
									<fo:block padding-bottom="8mm">
										International Filing Date
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdTR">
									<fo:block padding-bottom="5mm">
										<xsl:if test="document($rrri_doc)//document-id/date">
											<fo:inline font-weight="bold">
												<xsl:call-template name="format_date">
													<xsl:with-param name="date" select="document($rrri_doc)//document-id/date"></xsl:with-param>
													<xsl:with-param name="lang" select="$lang"></xsl:with-param>
													<xsl:with-param name="show_date" select="1"></xsl:with-param>
													<xsl:with-param name="text" select="1"></xsl:with-param>
													<xsl:with-param name="date_too" select="1"></xsl:with-param>
												</xsl:call-template>
											</fo:inline>
										</xsl:if>
									</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">0-3</fo:inline>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdTBC">
									<fo:block padding-bottom="5mm">
										Name of receiving Office and "PCT International Application"
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdTBR">
									<fo:block>
										<xsl:if test="$rrri != ''">
										<!--20191008 show office name in full text and added "PCT International Application" for RO/KR-->
											<xsl:choose>
												<xsl:when test="document($rrri_doc)//@ro='KR'">
													<fo:inline font-weight="bold">
														<xsl:call-template name="officeName_ChoiceText">
															<xsl:with-param name="office" select=".//@ro"></xsl:with-param>
														</xsl:call-template>											
													</fo:inline>
													<fo:block></fo:block>
													<fo:inline font-weight="bold">	
														PCT International Application
													</fo:inline>
												</xsl:when>
												<xsl:otherwise>
													<fo:inline font-weight="bold">
														<xsl:text>RO/</xsl:text>
														<xsl:value-of select="document($rrri_doc)//@ro"></xsl:value-of>
													</fo:inline>
												</xsl:otherwise>
											</xsl:choose>
										</xsl:if>
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</fo:table-body>
					</fo:table>
				</xsl:if>
				<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">
										<xsl:text>0-4</xsl:text>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTC">
								<fo:block>
									<fo:inline font-weight="bold">
										Form PCT/RO/101 PCT Request
									</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="tdL">
								<fo:block padding-before="1mm">
									<xsl:text>0-4-1</xsl:text>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdC">
								<fo:block padding-before="1mm">
									Prepared Using
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block padding-before="1mm">
									<fo:inline font-weight="bold">
										<xsl:value-of select="$software_name"></xsl:value-of>
										<fo:block></fo:block>
										<xsl:value-of select="$software_version"></xsl:value-of>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdTL">
								<fo:block>
									<fo:inline font-weight="bold">
										<xsl:text>0-5</xsl:text>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftNoCenter" number-columns-spanned="2">
								<fo:block wrap-option="wrap">
									<fo:inline font-weight="bold" padding-bottom="2mm">
										Petition
									</fo:inline>
								</fo:block>
								<fo:block padding-before="1.5mm">
									<xsl:choose>
										<xsl:when test="./request-petition/text()">
											<xsl:value-of select="./request-petition"></xsl:value-of>
										</xsl:when>
										<xsl:otherwise>
											The undersigned requests that the present international application be processed according to the Patent Cooperation Treaty
										</xsl:otherwise>
									</xsl:choose>
								</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">
										<xsl:text>0-6</xsl:text>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTC">
								<fo:block>
									<fo:inline font-weight="bold">
										Receiving Office (specified by the applicant)
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTR">
								<fo:block padding-top="1pt">
									<fo:inline font-weight="bold">
										<xsl:choose>
											<xsl:when test="$lang='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="tdTL">
								<fo:block>
									<fo:inline font-weight="bold">
										<xsl:text>0-7</xsl:text>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTC">
								<fo:block>
									<fo:inline font-weight="bold">
										Applicant's or agent's file reference
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTR">
								<fo:block padding-top="1pt">
									<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 number-columns-spanned="3" border-top="solid black 0.25pt">
								<fo:block></fo:block>
							</fo:table-cell>
						</fo:table-row>
					</fo:table-body>
				</fo:table>
				<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">
										<xsl:text>I</xsl:text>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTBC">
								<fo:block>
									<fo:inline font-weight="bold">
										Title of Invention
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTBR" hyphenate="false">
								<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-body>
				</fo:table>
				<!-- GET FIRST APPLICANT -->
				<xsl:apply-templates select=".//applicant[@sequence='1']"></xsl:apply-templates>
				<!-- OTHER APPLICANTS/INVENTORS -->
				<xsl:if test=".//inventors | .//applicant[position() &gt; 1] | .//deceased-inventor">
					<xsl:call-template name="other_applicants"></xsl:call-template>
				</xsl:if>
				<!-- FIRST ATTORNEY OR AGENT -->
				<xsl:if test=".//agents | .//correspondence-address">
					<xsl:call-template name="first_agent"></xsl:call-template>
				</xsl:if>
				<!-- OTHER AGENTS -->
				<xsl:if test="count(//agent) &gt; 1">
					<xsl:call-template name="other_agents"></xsl:call-template>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="not($mode='v1.0' or $mode='v1.1')">
						<xsl:apply-templates select="./designation-of-states" mode="v1.2"></xsl:apply-templates>
					</xsl:when>
					<xsl:otherwise>
						<xsl:apply-templates select="./designation-of-states"></xsl:apply-templates>
					</xsl:otherwise>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="./priority-claims">
						<xsl:call-template name="priority_claims"></xsl:call-template>
					</xsl:when>
					<xsl:otherwise>
						<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">
							<fo:table-column column-width="12mm"></fo:table-column>
							<fo:table-column column-width="53mm"></fo:table-column>
							<fo:table-column column-width="105mm"></fo:table-column>
							<fo:table-body>
								<fo:table-row>
									<fo:table-cell xsl:use-attribute-sets="tdTBL">
										<fo:block>
											<fo:inline font-weight="bold">
												<xsl:text>VI-1</xsl:text>
											</fo:inline>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdTBC">
										<fo:block>
											<fo:inline font-weight="bold">
												Priority Claim
											</fo:inline>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdTBR">
										<fo:block>
											<fo:inline font-weight="bold">
												NONE
												<xsl:if test="$lang='ja' or $lang='zh' or $lang='ru'">
													<xsl:text> (NONE)</xsl:text>
												</xsl:if>
											</fo:inline>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
							</fo:table-body>
						</fo:table>
					</xsl:otherwise>
				</xsl:choose>
				<xsl:if test="./search-authority">
					<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">
						<fo:table-column column-width="12mm"></fo:table-column>
						<fo:table-column column-width="53mm"></fo:table-column>
						<fo:table-column column-width="105mm"></fo:table-column>
						<fo:table-body>
							<fo:table-row>
								<fo:table-cell xsl:use-attribute-sets="tdTBL">
									<fo:block>
										<fo:inline font-weight="bold">
											<xsl:text>VII-1</xsl:text>
										</fo:inline>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdTBC">
									<fo:block>
										<fo:inline font-weight="bold">
											International Searching Authority Chosen
										</fo:inline>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdTBR">
									<fo:block padding-top="1pt">
										<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="./search-authority/isa/country"></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="./search-authority/isa/country"></xsl:with-param>
													</xsl:call-template>											
												</xsl:otherwise>
											</xsl:choose>
											<fo:inline keep-together.within-line="always">
												<xsl:text>(ISA/</xsl:text>
												<xsl:value-of select="translate(./search-authority/isa/country,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:value-of>
												<xsl:text>)</xsl:text>
											</fo:inline>
										</fo:inline>
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</fo:table-body>
					</fo:table>
				</xsl:if>
				<xsl:if test=".//earlier-search-request">
					<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>
							<xsl:for-each select=".//earlier-search-request/document-id">
								<xsl:variable name="seq" select="position() + 1"></xsl:variable>
								<xsl:variable name="seq_id" select="position()"></xsl:variable>
								<fo:table-row>
									<fo:table-cell xsl:use-attribute-sets="tdTL">
										<fo:block>
											<fo:inline font-weight="bold">VII-<xsl:value-of select="$seq"></xsl:value-of>
											</fo:inline>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdTC">
										<fo:block>
											<fo:inline font-weight="bold">
												Request to use results of earlier search; reference to that search
											</fo:inline>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdTR">
										<fo:block></fo:block>
									</fo:table-cell>
								</fo:table-row>
								<fo:table-row>
									<fo:table-cell xsl:use-attribute-sets="tdL">
										<fo:block>
											<fo:inline font-weight="bold">VII-<xsl:value-of select="$seq"></xsl:value-of>-1
						  
											</fo:inline>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdC">
										<fo:block>
											Filing date
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdR">
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">
												<xsl:call-template name="format_date">
													<xsl:with-param name="date" select="normalize-space(date)"></xsl:with-param>
													<xsl:with-param name="show_date" select="1"></xsl:with-param>
													<xsl:with-param name="text" select="1"></xsl:with-param>
													<xsl:with-param name="lang" select="substring(translate(ancestor::request/@lang,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),1,2)"></xsl:with-param>
													<xsl:with-param name="date_too" select="1"></xsl:with-param>
												</xsl:call-template>
											</fo:inline>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
								<fo:table-row>
									<fo:table-cell xsl:use-attribute-sets="tdL">
										<fo:block>VII-<xsl:value-of select="$seq"></xsl:value-of>-2</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdC">
										<fo:block>
											Application Number
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdR">
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">
												<xsl:value-of select="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="tdL">
										<fo:block>VII-<xsl:value-of select="$seq"></xsl:value-of>-3</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdC">
										<fo:block>
											Country (or regional Office)
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdR">
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">
												<xsl:if test="$lang='ja' or $lang='zh' or $lang='ru'">
													<xsl:call-template name="country_ChoiceText">
														<xsl:with-param name="country" select="country"></xsl:with-param>
													</xsl:call-template>
												</xsl:if>
												<xsl:value-of select="country"></xsl:value-of>
											</fo:inline>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
								<xsl:if test="name(following-sibling::*[position()=1])='substantially-equivalent'">
									<fo:table-row>
										<fo:table-cell xsl:use-attribute-sets="tdL">
											<fo:block>VII-<xsl:value-of select="$seq"></xsl:value-of>-4</fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdC">
											<fo:block>
												Statement (Rule 4.12(ii)):
											</fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdR">
											<fo:block padding-top="1pt">
												<fo:inline font-weight="bold">
													This international application is the same, or substantially the same, as the application in respect of which the earlier search was carried out except, where applicable, that it is filed in a different language.
												</fo:inline>
											</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</xsl:if>
								<xsl:if test="../earlier-search-documents[$seq_id]/@available-at-isa = 'yes'">
									<fo:table-row>
										<fo:table-cell xsl:use-attribute-sets="tdL">
											<fo:block>VII-<xsl:value-of select="$seq"></xsl:value-of>-5</fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdC">
											<fo:block>
												Documents are available to the ISA in a form and a manner acceptable to it, and therefore do not need to be submitted by the applicant to the receiving Office, or to the ISA (Rules 12bis1.(c) and (d) and 12bis.2(b)):
											</fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdR">
											<xsl:if test="../earlier-search-documents[$seq_id]/@results-of-earlier-search = 'yes'">
												<fo:block padding-top="1pt">
													<fo:inline font-weight="bold">
														A copy of the results of the earlier search
													</fo:inline>
												</fo:block>
											</xsl:if>
											<xsl:if test="../earlier-search-documents[$seq_id]/@earlier-application = 'yes'">
												<fo:block padding-top="3pt">
													<fo:inline font-weight="bold">
														A copy of the earlier application
													</fo:inline>
												</fo:block>
											</xsl:if>
											<xsl:if test="../earlier-search-documents[$seq_id]/@translation-of-earlier-application = 'yes'">
												<fo:block padding-top="3pt">
													<fo:inline font-weight="bold">
														A translation of the earlier application into a language which is accepted by the ISA
													</fo:inline>
												</fo:block>
											</xsl:if>
											<xsl:if test="../earlier-search-documents[$seq_id]/@translation-of-results-of-earlier-search = 'yes'">
												<fo:block padding-top="3pt">
													<fo:inline font-weight="bold">
														A translation of the results of the earlier search into a language which is accepted by the ISA
													</fo:inline>
												</fo:block>
											</xsl:if>
											<xsl:if test="../earlier-search-documents[$seq_id]/@documents-cited-in-earlier-search-results = 'yes'">
												<fo:block padding-top="3pt">
													<fo:inline font-weight="bold">
														A copy of any document cited in the earlier search results
													</fo:inline>
												</fo:block>
											</xsl:if>
											<xsl:if test="not(../earlier-search-documents[$seq_id]/@results-of-earlier-search = 'yes' or ../earlier-search-documents[$seq_id]/@earlier-application = 'yes' or ../earlier-search-documents[$seq_id]/@translation-of-earlier-application = 'yes' or ../earlier-search-documents[$seq_id]/@translation-of-results-of-earlier-search = 'yes' or ../earlier-search-documents[$seq_id]/@documents-cited-in-earlier-search-results = 'yes')">
												<fo:block></fo:block>
											</xsl:if>
										</fo:table-cell>
									</fo:table-row>
								</xsl:if>
								<xsl:if test="../earlier-search-documents[$seq_id]/@request-ro-to-transmit-to-isa = 'yes'">
									<fo:table-row>
										<fo:table-cell xsl:use-attribute-sets="tdL">
											<fo:block>VII-<xsl:value-of select="$seq"></xsl:value-of>-6</fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdC">
											<fo:block>
												The applicant requests the receiving Office to prepare and transmit to the ISA a copy of the earlier search results (Rule 12bis.1(b) and (d)).
											</fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdR">
											<xsl:if test="../earlier-search-documents[$seq_id]/@results-of-earlier-search = 'yes'">
												<fo:block padding-top="1pt">
													<fo:inline font-weight="bold">
														A copy of the results of the earlier search
													</fo:inline>
												</fo:block>
											</xsl:if>
											<xsl:if test="../earlier-search-documents[$seq_id]/@earlier-application = 'yes'">
												<fo:block padding-top="3pt">
													<fo:inline font-weight="bold">
														A copy of the earlier application
													</fo:inline>
												</fo:block>
											</xsl:if>
											<xsl:if test="../earlier-search-documents[$seq_id]/@documents-cited-in-earlier-search-results = 'yes'">
												<fo:block padding-top="3pt">
													<fo:inline font-weight="bold">
														A copy of any document cited in the earlier search results
													</fo:inline>
												</fo:block>
											</xsl:if>
											<xsl:if test="not(../earlier-search-documents[$seq_id]/@results-of-earlier-search = 'yes' or ../earlier-search-documents[$seq_id]/@earlier-application = 'yes' or ../earlier-search-documents[$seq_id]/@documents-cited-in-earlier-search-results = 'yes')">
												<fo:block></fo:block>
											</xsl:if>
										</fo:table-cell>
									</fo:table-row>
								</xsl:if>
								<fo:table-row>
									<fo:table-cell xsl:use-attribute-sets="tdBL">
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdBC">
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdBR">
										<fo:block></fo:block>
									</fo:table-cell>
								</fo:table-row>
							</xsl:for-each>
						</fo:table-body>
					</fo:table>
				</xsl:if>
				<xsl:if test=".//earlier-search-authorization">
					<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">
						<fo:table-column column-width="12mm"></fo:table-column>
						<fo:table-column column-width="53mm"></fo:table-column>
						<fo:table-column column-width="105mm"></fo:table-column>
						<fo:table-body>
							<xsl:for-each select=".//earlier-search-authorization">
								<xsl:variable name="seq" select="count(/request//earlier-search-request/document-id) + position() + 1"></xsl:variable>
								<xsl:variable name="seq_id" select="position()"></xsl:variable>
								<fo:table-row>
									<fo:table-cell xsl:use-attribute-sets="tdTL">
										<fo:block>
											<fo:inline font-weight="bold">VII-<xsl:value-of select="$seq"></xsl:value-of>
											</fo:inline>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdTC" hyphenate="false">
										<fo:block>
											<fo:inline font-weight="bold">
												Use of earlier search and classification results
											</fo:inline>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdTR">
										<fo:block></fo:block>
									</fo:table-cell>
								</fo:table-row>
								<fo:table-row>
									<fo:table-cell xsl:use-attribute-sets="tdL">
										<fo:block>
											<fo:inline font-weight="bold">VII-<xsl:value-of select="$seq"></xsl:value-of>-1
						  
											</fo:inline>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdC">
										<fo:block>
											Filing date
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdR">
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">
												<xsl:call-template name="format_date">
													<xsl:with-param name="date" select="normalize-space(./document-id/date)"></xsl:with-param>
													<xsl:with-param name="show_date" select="1"></xsl:with-param>
													<xsl:with-param name="text" select="1"></xsl:with-param>
													<xsl:with-param name="lang" select="substring(translate(ancestor::request/@lang,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),1,2)"></xsl:with-param>
													<xsl:with-param name="date_too" select="1"></xsl:with-param>
												</xsl:call-template>
											</fo:inline>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
								<fo:table-row>
									<fo:table-cell xsl:use-attribute-sets="tdL">
										<fo:block>VII-<xsl:value-of select="$seq"></xsl:value-of>-2</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdC">
										<fo:block>
											Application Number
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdR">
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">
												<xsl:value-of select="./document-id/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="tdL">
										<fo:block>VII-<xsl:value-of select="$seq"></xsl:value-of>-3</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdC">
										<fo:block>
											Country (or regional Office)
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdR">
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">
												<xsl:if test="$lang='ja' or $lang='zh' or $lang='ru'">
													<xsl:call-template name="country_ChoiceText">
														<xsl:with-param name="country" select="./document-id/country"></xsl:with-param>
													</xsl:call-template>
												</xsl:if>
												<xsl:value-of select="./document-id/country"></xsl:value-of>
											</fo:inline>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
								<xsl:if test="./@request-ro-not-transmit = 'yes'">
									<fo:table-row>
										<fo:table-cell xsl:use-attribute-sets="tdL">
											<fo:block>VII-<xsl:value-of select="$seq"></xsl:value-of>-7</fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdC">
											<fo:block>
												The applicant requests that the receiving Office DOES NOT transmit the results of the earlier search to the ISA (Rule 23bis.2(b)).
											</fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdR">
											<fo:block></fo:block>
										</fo:table-cell>
									</fo:table-row>
								</xsl:if>
								<xsl:if test="./@applicant-authorizes-ro-transmit = 'yes' and not(starts-with(./document-id/doc-number/text(), 'PCT') or ./document-id/country = 'IB' or ./document-idcountry = 'WO')">
									<fo:table-row>
										<fo:table-cell xsl:use-attribute-sets="tdL">
											<fo:block>VII-<xsl:value-of select="$seq"></xsl:value-of>-8</fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdC">
											<fo:block>
												The applicant authorizes the receiving Office to transmit the results of the earlier search and classification to the ISA (Rule 23bis.2(e)).
											</fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdR">
											<fo:block></fo:block>
										</fo:table-cell>
									</fo:table-row>
								</xsl:if>
								<xsl:if test="./@applicant-authorizes-ro-transmit = 'yes' and (starts-with(./document-id/doc-number/text(), 'PCT') or ./document-id/country = 'IB' or ./document-idcountry = 'WO')">
									<fo:table-row>
										<fo:table-cell xsl:use-attribute-sets="tdL">
											<fo:block>VII-<xsl:value-of select="$seq"></xsl:value-of>-9</fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdC">
											<fo:block>
												The applicant authorizes the receiving Office to transmit the results of the earlier international search and classification to the ISA (Rule 23bis.2(a) and Article 30(2)(a) and (3)).
											</fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdR">
											<fo:block></fo:block>
										</fo:table-cell>
									</fo:table-row>
								</xsl:if>
								<fo:table-row>
									<fo:table-cell xsl:use-attribute-sets="tdBL">
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdBC">
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdBR">
										<fo:block></fo:block>
									</fo:table-cell>
								</fo:table-row>
							</xsl:for-each>
						</fo:table-body>
					</fo:table>
				</xsl:if>
				<!-- INSERT DECLARATIONS -->
				<xsl:call-template name="declarations"></xsl:call-template>
				<!-- INSERT CHECK LIST -->
				<xsl:call-template name="checklist"></xsl:call-template>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template><xsl:template match="designation-of-states">
		<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">
			<fo:table-column column-width="12mm"></fo:table-column>
			<fo:table-column column-width="53mm"></fo:table-column>
			<fo:table-column column-width="105mm"></fo:table-column>
			<fo:table-body>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTL">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:text>V</xsl:text>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							<fo:inline font-weight="bold">
								Designation of States
							</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>
				<!-- IF ITS A REGIONAL PATENT APP -->
				<xsl:if test=".//designation-pct/regional">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdBL">
							<fo:block>
								<fo:inline font-weight="bold">
									<xsl:text>V-1</xsl:text>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBC">
							<fo:block>
								Regional Patent
								<fo:block></fo:block>
								(other kinds of protection or treatment, if any, are specified between parentheses after the designation(s) concerned)
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBR">
							<fo:block padding-top="1pt">
								<xsl:for-each select=".//designation-pct/regional">
									<xsl:sort select="."></xsl:sort>
									<xsl:variable name="lookup" select="document('')"></xsl:variable>
									<!-- count of countries making up Org in document instance -->
									<xsl:variable name="countries" select="./country"></xsl:variable>
									<xsl:variable name="docOrgCount" select="count(./country)"></xsl:variable>
									<xsl:variable name="organization" select="./region/country"></xsl:variable>
									<xsl:variable name="org-state" select="$lookup//LU:organization[@name=$organization]"></xsl:variable>
									<!-- count of countries that make up Organization -->
									<xsl:variable name="lookupOrgCount" select="count($org-state/LU:state)"></xsl:variable>
									<fo:inline font-weight="bold">
										<xsl:value-of select="translate(./region/country,'abdefghijklmnopqrstuvwxyz','ABDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:value-of>: 
										<!-- loop through countries in XML document -->
										<xsl:for-each select="./region/following-sibling::country">
											<xsl:call-template name="caseCH"></xsl:call-template>
										</xsl:for-each>
										<xsl:if test="./any-other-state">
											 and any other State which is a 
											<xsl:choose>
												<xsl:when test="$organization='AP'">
													 Contracting State of the Harare Protocol and
												</xsl:when>
												<xsl:when test="$organization='EA'">
													 Contracting State of the Eurasian Patent Convention and 
												</xsl:when>
												<xsl:when test="$organization='EP'">
													 Contracting State of the European Patent Convention and 
												</xsl:when>
												<xsl:when test="$organization='OA'">
													 member State of OAPI and a Contracting State 
												</xsl:when>
											</xsl:choose>
											<xsl:text>
											</xsl:text>
											 of the PCT
										</xsl:if>
										<!-- test here to show "(except {state code})" if a state 
							  is missing from the organization -->
										<xsl:if test="$docOrgCount != $lookupOrgCount">(except 
											<xsl:for-each select="$org-state//LU:state[not(@name=$countries)]">
												<xsl:choose>
													<xsl:when test="@name='ch' or @name = 'CH'">
														<xsl:text>CH&amp;LI</xsl:text>
													</xsl:when>
													<xsl:when test="@name = 'li' or @name = 'LI'"></xsl:when>
													<xsl:otherwise>
														<xsl:value-of select="translate(@name,'abdefghijklmnopqrstuvwxyz','ABDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:value-of>
													</xsl:otherwise>
												</xsl:choose>
												<xsl:if test="not(position()=last())">
													<xsl:text>
													</xsl:text>
												</xsl:if>
											</xsl:for-each>
											<xsl:text>)</xsl:text>
										</xsl:if>
										<xsl:text>
										</xsl:text>
										<xsl:if test=".//protection-request">(
											<xsl:call-template name="kind-of-protection">
												<xsl:with-param name="kind-text">
													<xsl:value-of select=".//protection-request/kind-of-protection"></xsl:value-of>
												</xsl:with-param>
											</xsl:call-template>
										)</xsl:if>
										<xsl:text>
										</xsl:text>
									</fo:inline>
									<fo:block></fo:block>
								</xsl:for-each>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<!-- NATIONAL APP -->
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTBL">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:text>V-2</xsl:text>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTBC">
						<fo:block>
							National Patent
							<fo:block></fo:block>
							(other kinds of protection or treatment, if any, are specified between parentheses after the designations concerned)
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTBR">
						<fo:block padding-top="1pt">
							<fo:inline font-weight="bold">
								<xsl:choose>
									<xsl:when test=".//designation-pct/national">
										<xsl:for-each select=".//designation-pct/national/country | .//designation-pct/new-designation-country">
											<xsl:sort select="."></xsl:sort>
											<!--xsl:for-each select = "."-->
											<xsl:call-template name="caseCH"></xsl:call-template>
											<xsl:if test="name(following-sibling::*)='protection-request'">(
											<xsl:call-template name="kind-of-protection">
													<xsl:with-param name="kind-text">
														<xsl:value-of select="following-sibling::protection-request/kind-of-protection"></xsl:value-of>
													</xsl:with-param>
												</xsl:call-template>											
											)</xsl:if>
										</xsl:for-each>
									</xsl:when>
									<xsl:otherwise>
										<xsl:text>--</xsl:text>
									</xsl:otherwise>
								</xsl:choose>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<!-- V-3 -->
				<xsl:if test=".//designation-pct/new-designation-country">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdTBL">
							<fo:block>
								<fo:inline font-weight="bold">
									<xsl:text>V-3</xsl:text>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBC">
							<fo:block>
								National Patent
								<fo:block></fo:block>
								(States which have become party to the PCT after the issuance of this version of PCT-SAFE)
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:for-each select=".//designation-pct/new-designation-country">
										<xsl:sort select="."></xsl:sort>
										<xsl:call-template name="uppercaser">
											<xsl:with-param name="string" select="."></xsl:with-param>
										</xsl:call-template>
										<xsl:text>
										</xsl:text>
									</xsl:for-each>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
			</fo:table-body>
		</fo:table>
		<xsl:for-each select=".//regional[child::protection-request] | .//national[child::protection-request]">
			<xsl:variable name="seq" select="position()"></xsl:variable>
			<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">
				<fo:table-column column-width="12mm"></fo:table-column>
				<fo:table-column column-width="53mm"></fo:table-column>
				<fo:table-column column-width="105mm"></fo:table-column>
				<fo:table-body>
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdTL">
							<fo:block>
								<fo:inline font-weight="bold">
									<xsl:text>V-4</xsl:text>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<fo:block>
								<fo:inline font-weight="bold">
									Identification of parent application or patent grant
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR">
							<fo:block>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>
								<fo:inline font-weight="bold"> V-4-<xsl:value-of select="$seq"></xsl:value-of>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>
								<fo:inline font-weight="bold">
									Designation
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:value-of select=".//country"></xsl:value-of>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block> V-4-<xsl:value-of select="$seq"></xsl:value-of>-1</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>
								Kind of parent application or grant
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:call-template name="kind-of-protection">
										<xsl:with-param name="kind-text">
											<xsl:value-of select=".//kind-of-protection"></xsl:value-of>
										</xsl:with-param>
									</xsl:call-template>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>V-4-<xsl:value-of select="$seq"></xsl:value-of>-2</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>
								Parent application or grant No.
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:value-of select=".//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="tdBL">
							<fo:block>   V-4-<xsl:value-of select="$seq"></xsl:value-of>-3</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBC">
							<fo:block>
								Parent application or grant date
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:call-template name="format_date">
										<xsl:with-param name="date" select="normalize-space(.//date)"></xsl:with-param>
										<xsl:with-param name="show_date" select="1"></xsl:with-param>
										<xsl:with-param name="text" select="1"></xsl:with-param>
										<xsl:with-param name="lang" select="substring(translate(ancestor::request/@lang,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),1,2)"></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:for-each>
		<xsl:if test=".//precautionary-designation-statement">
			<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">
				<fo:table-column column-width="12mm"></fo:table-column>
				<fo:table-column column-width="53mm"></fo:table-column>
				<fo:table-column column-width="105mm"></fo:table-column>
				<fo:table-body>
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdTBL">
							<fo:block>
								<fo:inline font-weight="bold">
									<xsl:text>V-5</xsl:text>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBC">
							<fo:block>
								<fo:inline font-weight="bold">
									Precautionary Designation Statement
								</fo:inline>
							</fo:block>
							<fo:block padding-before="2mm">
								In addition to the designations made under items V-1, V-2 and V-3, the applicant also makes under Rule 4.9(b) all designations which would be permitted under the PCT except any designation(s) of the State(s) indicated under item V-6 below.  The applicant declares that those additional designations are subject to confirmation and that any designation which is not confirmed before the expiration of 15 months from the priority date is to be regarded as withdrawn by the applicant at the expiration of that time limit.
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBR">
							<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">
									<xsl:text>V-6</xsl:text>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<fo:block>
								<fo:inline font-weight="bold">
									Exclusion(s) from precautionary designations
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:choose>
										<xsl:when test=".//exclusion-from-designation">
											<xsl:for-each select=".//exclusion-from-designation/*">
												<xsl:choose>
													<xsl:when test="name(.)='regional'">
														<xsl:call-template name="uppercaser">
															<xsl:with-param name="string" select="./region/country"></xsl:with-param>
														</xsl:call-template>
														<xsl:text>: </xsl:text>
														<xsl:for-each select="./region/following-sibling::country">(<xsl:call-template name="uppercaser">
																<xsl:with-param name="string" select="."></xsl:with-param>
															</xsl:call-template>
															<xsl:if test="following-sibling::country">
																<xsl:text>
																</xsl:text>
															</xsl:if>);</xsl:for-each>
													</xsl:when>
													<xsl:when test="name(.)='national'">
														<xsl:call-template name="uppercaser">
															<xsl:with-param name="string" select="./country"></xsl:with-param>
														</xsl:call-template>
													</xsl:when>
												</xsl:choose>
											</xsl:for-each>
										</xsl:when>
										<xsl:otherwise>
											NONE
											<xsl:if test="$lang='ja' or $lang='ru' or $lang='zh'">(NONE) </xsl:if>
										</xsl:otherwise>
									</xsl:choose>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell number-columns-spanned="3" border-top="solid black 0.5pt">
							<fo:block></fo:block>
						</fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
		</xsl:if>
	</xsl:template><xsl:template match="designation-of-states" mode="v1.2">
		<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">
			<fo:table-column column-width="12mm"></fo:table-column>
			<fo:table-column column-width="53mm"></fo:table-column>
			<fo:table-column column-width="105mm"></fo:table-column>
			<fo:table-body>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTL">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:text>V</xsl:text>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							<fo:inline font-weight="bold">
								DESIGNATIONS 
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTR">
						<fo:block></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">
								<xsl:text>V-1</xsl:text>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftNoCenter" number-columns-spanned="2">
						<fo:block>
							<fo:inline font-weight="bold">
								The filing of this request constitutes under Rule 4.9(a), the designation of all Contracting States bound by the PCT on the international filing date, for the grant of every kind of protection available and, where applicable, for the grant of both regional and national patents.
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<!--  V-2 EXCLUSIONS (IN 2004 VERSION) -->
				<xsl:if test=".//exclusion-from-designation">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdTBL">
							<fo:block>
								<fo:inline font-weight="bold">
									<xsl:text>V-2</xsl:text>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBC_hyp">
							<fo:block>
								<fo:inline font-weight="bold">
									<!--inc file = "commonText.xml" toTranslate = "exclusions_Text"/-->
									Item V-2 may only be used to exclude (irrevocably) the designations concerned if, at the time of filing or subsequently under Rule 26bis.1, the international application contains in Box No. VI a priority claim to an earlier national application filed in the particular State concerned, in order to avoid the ceasing of the effect, under the national law, of this earlier national application.
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:for-each select=".//exclusion-from-designation/*">
										<xsl:choose>
											<xsl:when test="name(.)='regional'">
												<xsl:call-template name="uppercaser">
													<xsl:with-param name="string" select="./region/country"></xsl:with-param>
												</xsl:call-template>
												<xsl:text>: </xsl:text>
												<xsl:for-each select="./region/following-sibling::country">(<xsl:call-template name="uppercaser">
														<xsl:with-param name="string" select="."></xsl:with-param>
													</xsl:call-template>
													<xsl:if test="following-sibling::country">
														<xsl:text>
														</xsl:text>
													</xsl:if>);</xsl:for-each>
											</xsl:when>
											<xsl:when test="name(.)='national'">
												<xsl:for-each select="./country">
													<xsl:call-template name="uppercaser">
														<xsl:with-param name="string" select="."></xsl:with-param>
													</xsl:call-template>
													<xsl:text>
													</xsl:text>
												</xsl:for-each>
											</xsl:when>
										</xsl:choose>
									</xsl:for-each>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell number-columns-spanned="3" border-top="solid black 0.5pt">
							<fo:block></fo:block>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
			</fo:table-body>
		</fo:table>
		<!-- V-3 NATIONAL APP (PROTECTION REQUESTS IN 2004 VERSION) -->
		<xsl:for-each select=".//designation-pct/regional">
			<xsl:if test="./region/country[text()='OA']">
				<xsl:variable name="seq">
					<xsl:value-of select="position()"></xsl:value-of>
				</xsl:variable>
				<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">
					<fo:table-column column-width="12mm"></fo:table-column>
					<fo:table-column column-width="53mm"></fo:table-column>
					<fo:table-column column-width="105mm"></fo:table-column>
					<fo:table-body>
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdTL">
								<fo:block>
									<fo:inline font-weight="bold">
										<xsl:text>V-3</xsl:text>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTC">
								<fo:block>
									<fo:inline font-weight="bold">
										Identification of parent application or patent grant
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTR">
								<fo:block>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL">
								<fo:block>
									<fo:inline font-weight="bold"> V-3-<xsl:value-of select="$seq"></xsl:value-of>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdC">
								<fo:block>
									<fo:inline font-weight="bold">
										Designation
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block padding-top="1pt">
									<fo:inline font-weight="bold">
										<xsl:value-of select=".//country"></xsl:value-of>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL">
								<fo:block> V-3-<xsl:value-of select="$seq"></xsl:value-of>-1</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdC">
								<fo:block>
									Kind of parent application or grant
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block padding-top="1pt">
									<fo:inline font-weight="bold">
										<xsl:call-template name="kind-of-protection">
											<xsl:with-param name="kind-text">
												<xsl:value-of select=".//kind-of-protection"></xsl:value-of>
											</xsl:with-param>
										</xsl:call-template>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<xsl:if test=".//doc-number/text()">
							<fo:table-row>
								<fo:table-cell xsl:use-attribute-sets="tdL">
									<fo:block>V-3-<xsl:value-of select="$seq"></xsl:value-of>-2</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdC">
									<fo:block>
										Parent application or grant No.
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdR">
									<fo:block padding-top="1pt">
										<fo:inline font-weight="bold">
											<xsl:value-of select=".//doc-number"></xsl:value-of>
										</fo:inline>
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</xsl:if>
						<!--xsl:if test = "./designation-pct/regional//date"-->
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdBL">
								<fo:block>V-3-<xsl:value-of select="$seq"></xsl:value-of>-3</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBC">
								<fo:block>
									Parent application or grant date
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBR">
								<fo:block padding-top="1pt">
									<xsl:if test=".//date">
										<fo:inline font-weight="bold">
											<xsl:call-template name="format_date">
												<xsl:with-param name="date" select="normalize-space(.//date)"></xsl:with-param>
												<xsl:with-param name="show_date" select="1"></xsl:with-param>
												<xsl:with-param name="text" select="1"></xsl:with-param>
												<xsl:with-param name="lang" select="substring(translate(ancestor::request/@lang,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),1,2)"></xsl:with-param>
												<xsl:with-param name="date_too" select="1"></xsl:with-param>
											</xsl:call-template>
										</fo:inline>
									</xsl:if>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<!--/xsl:if-->
					</fo:table-body>
				</fo:table>
			</xsl:if>
		</xsl:for-each>
		<xsl:if test=".//protection-request[not(parent::regional)]">
			<xsl:for-each select=".//protection-request[not(parent::regional)]">
				<xsl:variable name="seq">
					<xsl:choose>
						<xsl:when test="ancestor::national/preceding-sibling::regional/region/country[text()='OA']">
							<xsl:value-of select="position() + count(ancestor::national/preceding-sibling::regional[./region/country[text()='OA']])"></xsl:value-of>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="position()"></xsl:value-of>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:variable>
				<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">
					<fo:table-column column-width="12mm"></fo:table-column>
					<fo:table-column column-width="53mm"></fo:table-column>
					<fo:table-column column-width="105mm"></fo:table-column>
					<fo:table-body>
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdTL">
								<fo:block>
									<fo:inline font-weight="bold">
										<xsl:text>V-3</xsl:text>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTC">
								<fo:block>
									<fo:inline font-weight="bold">
										Identification of parent application or patent grant
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTR">
								<fo:block>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL">
								<fo:block>
									<fo:inline font-weight="bold"> V-3-<xsl:value-of select="$seq"></xsl:value-of>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdC">
								<fo:block>
									<fo:inline font-weight="bold">
										Designation
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block padding-top="1pt">
									<fo:inline font-weight="bold">
										<xsl:value-of select="preceding-sibling::country[1]"></xsl:value-of>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL">
								<fo:block> V-3-<xsl:value-of select="$seq"></xsl:value-of>-1</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdC">
								<fo:block>
									Kind of parent application or grant
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block padding-top="1pt">
									<fo:inline font-weight="bold">
										<xsl:call-template name="kind-of-protection">
											<xsl:with-param name="kind-text">
												<xsl:value-of select=".//kind-of-protection"></xsl:value-of>
											</xsl:with-param>
										</xsl:call-template>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<xsl:if test=".//doc-number">
							<fo:table-row>
								<fo:table-cell xsl:use-attribute-sets="tdL">
									<fo:block>V-3-<xsl:value-of select="$seq"></xsl:value-of>-2</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdC">
									<fo:block>
										Parent application or grant No.
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdR">
									<fo:block padding-top="1pt">
										<fo:inline font-weight="bold">
											<xsl:value-of select=".//doc-number"></xsl:value-of>
										</fo:inline>
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</xsl:if>
						<!--xsl:if test=".//date"-->
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdBL">
								<fo:block>V-3-<xsl:value-of select="$seq"></xsl:value-of>-3</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBC">
								<fo:block>
									Parent application or grant date
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBR">
								<fo:block padding-top="1pt">
									<xsl:if test=".//date">
										<fo:inline font-weight="bold">
											<xsl:call-template name="format_date">
												<xsl:with-param name="date" select="normalize-space(.//date)"></xsl:with-param>
												<xsl:with-param name="show_date" select="1"></xsl:with-param>
												<xsl:with-param name="text" select="1"></xsl:with-param>
												<xsl:with-param name="lang" select="substring(translate(ancestor::request/@lang,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),1,2)"></xsl:with-param>
												<xsl:with-param name="date_too" select="1"></xsl:with-param>
											</xsl:call-template>
										</fo:inline>
									</xsl:if>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<!--/xsl:if-->
					</fo:table-body>
				</fo:table>
			</xsl:for-each>
		</xsl:if>
	</xsl:template><xsl:template name="declarations">
		<!-- creates declarations table in request -->
		<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="52mm"></fo:table-column>
			<fo:table-column column-width="53mm"></fo:table-column>
			<fo:table-body>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTL">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:text>VIII</xsl:text>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							<fo:inline font-weight="bold">
								Declarations
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">
						<fo:block>
							Number of declarations
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTop" font-size="8pt" vertical-align="top" padding="1pt" text-align="center">
						<fo:block>
							<xsl:if test="/processing-instruction('attached_declaration1_quantity') or&#xA;  												 /processing-instruction('attached_declaration2_quantity') or &#xA;  												 /processing-instruction('attached_declaration3_quantity') or &#xA;  												 /processing-instruction('attached_declaration4_quantity') or &#xA;  												 /processing-instruction('attached_declaration5_quantity')">
								Electronic file(s) attached
							</xsl:if>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdL">
						<fo:block>
							<xsl:text>VIII-1</xsl:text>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							Declaration as to the identity of the inventor
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRightData">
						<fo:block padding-top="1pt">
							<fo:inline font-weight="bold">
								<xsl:choose>
									<xsl:when test=".//declaration1">
										<xsl:value-of select=".//declaration1/@quantity"></xsl:value-of>
									</xsl:when>
									<xsl:otherwise>-</xsl:otherwise>
								</xsl:choose>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTop" font-size="8pt" vertical-align="top" padding="1pt" text-align="center">
						<fo:block>
							<xsl:if test="/processing-instruction('attached_declaration1_quantity') or&#xA;  												 /processing-instruction('attached_declaration2_quantity') or &#xA;  												 /processing-instruction('attached_declaration3_quantity') or &#xA;  												 /processing-instruction('attached_declaration4_quantity') or &#xA;  												 /processing-instruction('attached_declaration5_quantity')">
								<xsl:choose>
									<xsl:when test="/processing-instruction('attached_declaration1_quantity') &gt; 0">
										<fo:block font-size="10pt" font-family="ZapfDingbats">✓</fo:block>
									</xsl:when>
									<xsl:otherwise>
										<fo:inline font-weight="bold" font-size="12pt" font-family="{$courier_font}">-</fo:inline>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:if>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdL">
						<fo:block>
							<xsl:text>VIII-2</xsl:text>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							Declaration as to the applicant's entitlement, as at the international filing date, to apply for and be granted a patent
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRightData">
						<fo:block padding-top="1pt">
							<fo:inline font-weight="bold">
								<xsl:choose>
									<xsl:when test=".//declaration2">
										<xsl:value-of select=".//declaration2/@quantity"></xsl:value-of>
									</xsl:when>
									<xsl:otherwise>-</xsl:otherwise>
								</xsl:choose>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTop" font-size="8pt" vertical-align="top" padding="1pt" text-align="center">
						<fo:block>
							<xsl:if test="/processing-instruction('attached_declaration1_quantity') or&#xA;  												 /processing-instruction('attached_declaration2_quantity') or &#xA;  												 /processing-instruction('attached_declaration3_quantity') or &#xA;  												 /processing-instruction('attached_declaration4_quantity') or &#xA;  												 /processing-instruction('attached_declaration5_quantity')">
								<xsl:choose>
									<xsl:when test="/processing-instruction('attached_declaration2_quantity') &gt; 0">
										<fo:block font-size="10pt" font-family="ZapfDingbats">✓</fo:block>
									</xsl:when>
									<xsl:otherwise>
										<fo:inline font-weight="bold" font-size="12pt" font-family="{$courier_font}">-</fo:inline>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:if>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdL">
						<fo:block>
							<xsl:text>VIII-3</xsl:text>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							Declaration as to the applicant's entitlement, as at the international filing date, to claim the priority of the earlier application
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRightData">
						<fo:block padding-top="1pt">
							<fo:inline font-weight="bold">
								<xsl:choose>
									<xsl:when test=".//declaration3">
										<xsl:value-of select=".//declaration3/@quantity"></xsl:value-of>
									</xsl:when>
									<xsl:otherwise>-</xsl:otherwise>
								</xsl:choose>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTop" font-size="8pt" vertical-align="top" padding="1pt" text-align="center">
						<fo:block>
							<xsl:if test="/processing-instruction('attached_declaration1_quantity') or&#xA;  												 /processing-instruction('attached_declaration2_quantity') or &#xA;  												 /processing-instruction('attached_declaration3_quantity') or &#xA;  												 /processing-instruction('attached_declaration4_quantity') or &#xA;  												 /processing-instruction('attached_declaration5_quantity')">
								<xsl:choose>
									<xsl:when test="/processing-instruction('attached_declaration3_quantity') &gt; 0">
										<fo:block font-size="10pt" font-family="ZapfDingbats">✓</fo:block>
									</xsl:when>
									<xsl:otherwise>
										<fo:inline font-weight="bold" font-size="12pt" font-family="{$courier_font}">-</fo:inline>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:if>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdL">
						<fo:block>
							<xsl:text>VIII-4</xsl:text>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							Declaration of inventorship (only for the purposes of the designation of the United States of America)
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRightData">
						<fo:block padding-top="1pt">
							<fo:inline font-weight="bold">
								<xsl:choose>
									<xsl:when test=".//declaration4">
										<xsl:value-of select=".//declaration4/@quantity"></xsl:value-of>
									</xsl:when>
									<xsl:otherwise>-</xsl:otherwise>
								</xsl:choose>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTop" font-size="8pt" vertical-align="top" padding="1pt" text-align="center">
						<fo:block>
							<xsl:if test="/processing-instruction('attached_declaration1_quantity') or&#xA;  												 /processing-instruction('attached_declaration2_quantity') or &#xA;  												 /processing-instruction('attached_declaration3_quantity') or &#xA;  												 /processing-instruction('attached_declaration4_quantity') or &#xA;  												 /processing-instruction('attached_declaration5_quantity')">
								<xsl:choose>
									<xsl:when test="/processing-instruction('attached_declaration4_quantity') &gt; 0">
										<fo:block font-size="10pt" font-family="ZapfDingbats">✓</fo:block>
									</xsl:when>
									<xsl:otherwise>
										<fo:inline font-weight="bold" font-size="12pt" font-family="{$courier_font}">-</fo:inline>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:if>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdBL">
						<fo:block>
							<xsl:text>VIII-5</xsl:text>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTBC">
						<fo:block>
							Declaration as to non-prejudicial disclosures or exceptions to lack of novelty
						</fo:block>
					</fo:table-cell>
					<fo:table-cell border-bottom="solid black 0.5pt" xsl:use-attribute-sets="tdBorderTopRightData">
						<fo:block padding-top="1pt">
							<fo:inline font-weight="bold">
								<xsl:choose>
									<xsl:when test=".//declaration5">
										<xsl:value-of select=".//declaration5/@quantity"></xsl:value-of>
									</xsl:when>
									<xsl:otherwise>-</xsl:otherwise>
								</xsl:choose>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTB" font-size="8pt" vertical-align="top" padding="1pt" text-align="center">
						<fo:block>
							<xsl:if test="/processing-instruction('attached_declaration1_quantity') or&#xA;  												 /processing-instruction('attached_declaration2_quantity') or &#xA;  												 /processing-instruction('attached_declaration3_quantity') or &#xA;  												 /processing-instruction('attached_declaration4_quantity') or &#xA;  												 /processing-instruction('attached_declaration5_quantity')">
								<xsl:choose>
									<xsl:when test="/processing-instruction('attached_declaration5_quantity') &gt; 0">
										<fo:block font-size="10pt" font-family="ZapfDingbats">✓</fo:block>
									</xsl:when>
									<xsl:otherwise>
										<fo:inline font-weight="bold" font-size="12pt" font-family="{$courier_font}">-</fo:inline>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:if>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
			</fo:table-body>
		</fo:table>
		<!-- GET INFO FROM DECLARATIONS DOCUMENT(S) IF SUPPLIED AS PARAMETER -->
		<!-- NOTE: $declarations will be a parameter that stores a 
	               document with multiple declarations -->
		<!--fo:block id="declarationSec"/-->
		<xsl:if test="$declarations != ''">
			<xsl:call-template name="declaration_info"></xsl:call-template>
		</xsl:if>
		<xsl:if test="$declaration1 != ''">
			<xsl:call-template name="declaration_1"></xsl:call-template>
		</xsl:if>
		<xsl:if test="$declaration2 != ''">
			<xsl:call-template name="declaration_2"></xsl:call-template>
		</xsl:if>
		<xsl:if test="$declaration3 != ''">
			<xsl:call-template name="declaration_3"></xsl:call-template>
		</xsl:if>
		<xsl:if test="$declaration4 != ''">
			<xsl:call-template name="declaration_4"></xsl:call-template>
		</xsl:if>
		<xsl:if test="$declaration5 != ''">
			<xsl:call-template name="declaration_5"></xsl:call-template>
		</xsl:if>
	</xsl:template><xsl:template name="declaration_info">
		<xsl:call-template name="declaration_1"></xsl:call-template>
		<xsl:call-template name="declaration_2"></xsl:call-template>
		<xsl:call-template name="declaration_3"></xsl:call-template>
		<xsl:call-template name="declaration_4"></xsl:call-template>
		<xsl:call-template name="declaration_5"></xsl:call-template>
	</xsl:template><xsl:template name="declaration_1">
		<xsl:if test="$dec_doc != '' or $dec1_doc != ''">
			<xsl:if test="document($dec_doc)//identity-of-inventor                or document($dec1_doc)//identity-of-inventor">
				<fo:block id="declarationSec"></fo:block>
			</xsl:if>
			<!-- TODO: get page breaking beyond first declaration1 doc working -->
			<xsl:if test="document($dec_doc)//identity-of-inventor                or document($dec1_doc)//identity-of-inventor">
				<xsl:for-each select="document($dec_doc)//identity-of-inventor | document($dec1_doc)//identity-of-inventor">
					<xsl:choose>
						<xsl:when test="./doc-page">
							<xsl:apply-templates select="doc-page"></xsl:apply-templates>
						</xsl:when>
						<xsl:otherwise>
							<fo:block break-before="page"></fo:block>
							<xsl:call-template name="process_dec1"></xsl:call-template>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:for-each>
			</xsl:if>
		</xsl:if>
	</xsl:template><xsl:template name="declaration_2">
		<xsl:if test="(document($dec_doc)//entitlement-to-be-granted-patent      or document($dec2_doc)//entitlement-to-be-granted-patent)">
			<!-- if there is no dec1, insert bookmark here -->
			<xsl:if test="not(document($dec_doc)//identity-of-inventor          or document($dec1_doc)//identity-of-inventor)        and (document($dec_doc)//entitlement-to-be-granted-patent          or document($dec2_doc)//entitlement-to-be-granted-patent)">
				<fo:block id="declarationSec"></fo:block>
			</xsl:if>
		</xsl:if>
		<xsl:if test="$dec_doc != '' or $dec2_doc != ''">
			<xsl:for-each select="document($dec_doc)//entitlement-to-be-granted-patent | document($dec2_doc)//entitlement-to-be-granted-patent">
				<xsl:choose>
					<xsl:when test="./doc-page">
						<xsl:apply-templates select="doc-page"></xsl:apply-templates>
					</xsl:when>
					<xsl:otherwise>
						<fo:block break-before="page">
							<xsl:call-template name="process_dec2"></xsl:call-template>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:for-each>
		</xsl:if>
	</xsl:template><xsl:template name="declaration_3">
		<xsl:if test="(document($dec_doc)//entitlement-to-claim-priority                    or document($dec3_doc)//entitlement-to-claim-priority)">
			<!-- if no prior declarations, insert bookmark here -->
			<xsl:if test="not(document($dec_doc)//identity-of-inventor          or document($dec1_doc)//identity-of-inventor          or document($dec_doc)//entitlement-to-be-granted-patent          or document($dec2_doc)//entitlement-to-be-granted-patent)        and (document($dec_doc)//entitlement-to-claim-priority          or document($dec3_doc)//entitlement-to-claim-priority)">
				<fo:block id="declarationSec"></fo:block>
			</xsl:if>
		</xsl:if>
		<xsl:if test="$dec_doc != '' or $dec3_doc != '' ">
			<xsl:for-each select="document($dec_doc)//entitlement-to-claim-priority | document($dec3_doc)//entitlement-to-claim-priority">
				<xsl:choose>
					<xsl:when test="./doc-page">
						<xsl:apply-templates select="doc-page"></xsl:apply-templates>
					</xsl:when>
					<xsl:otherwise>
						<fo:block break-before="page">
							<xsl:call-template name="process_dec3"></xsl:call-template>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:for-each>
		</xsl:if>
	</xsl:template><xsl:template name="declaration_4">
		<xsl:if test="(document($dec_doc)//inventorship      or document($dec4_doc)//inventorship)">
			<!-- if there is no prior declaration, insert bookmark here -->
			<xsl:if test="not(document($dec_doc)//identity-of-inventor          or document($dec1_doc)//identity-of-inventor          or document($dec_doc)//entitlement-to-be-granted-patent          or document($dec2_doc)//entitlement-to-be-granted-patent          or document($dec_doc)//entitlement-to-claim-priority          or document($dec3_doc)//entitlement-to-claim-priority)        and (document($dec_doc)//inventorship          or document($dec4_doc)//inventorship)">
				<fo:block id="declarationSec"></fo:block>
			</xsl:if>
		</xsl:if>
		<xsl:if test="$dec_doc != '' or $dec4_doc != ''">
			<xsl:for-each select="document($dec_doc)//inventorship | document($dec4_doc)//inventorship">
				<xsl:choose>
					<xsl:when test="./doc-page">
						<xsl:apply-templates select="doc-page"></xsl:apply-templates>
					</xsl:when>
					<xsl:otherwise>
						<fo:block break-before="page">
							<xsl:call-template name="process_dec4"></xsl:call-template>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:for-each>
		</xsl:if>
	</xsl:template><xsl:template name="declaration_5">
		<xsl:if test="(document($dec_doc)//lack-of-novelty                  or document($dec5_doc)//lack-of-novelty)">
			<!-- if there is no prior declaration, insert bookmark here -->
			<xsl:if test="not(document($dec_doc)//identity-of-inventor          or document($dec1_doc)//identity-of-inventor          or document($dec_doc)//entitlement-to-be-granted-patent          or document($dec2_doc)//entitlement-to-be-granted-patent          or document($dec_doc)//entitlement-to-claim-priority          or document($dec3_doc)//entitlement-to-claim-priority          or document($dec_doc)//inventorship          or document($dec4_doc)//inventorship)        and (document($dec_doc)//lack-of-novelty          or document($dec5_doc)//lack-of-novelty)">
				<fo:block id="declarationSec"></fo:block>
			</xsl:if>
		</xsl:if>
		<xsl:if test="$dec_doc != '' or $dec5_doc != ''">
			<xsl:for-each select="document($dec_doc)//lack-of-novelty | document($dec5_doc)//lack-of-novelty">
				<xsl:choose>
					<xsl:when test="./doc-page">
						<xsl:apply-templates select="doc-page"></xsl:apply-templates>
					</xsl:when>
					<xsl:otherwise>
						<fo:block break-before="page">
							<xsl:call-template name="process_dec5">
								<xsl:with-param name="lack_seq" select="position()"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:for-each>
		</xsl:if>
	</xsl:template><xsl:template name="checklist">
		<fo:table table-layout="fixed" keep-together.within-page="always">
			<xsl:if test="$declarations != '' or $declaration1 != '' or $declaration2 != '' or $declaration3 != '' or $declaration4 != '' or $declaration5 != '' ">
				<xsl:attribute name="break-before">page</xsl:attribute>
			</xsl:if>
			<fo:table-column column-width="12mm"></fo:table-column>
			<fo:table-column column-width="53mm"></fo:table-column>
			<fo:table-column column-width="52mm"></fo:table-column>
			<fo:table-column column-width="53mm"></fo:table-column>
			<fo:table-body>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTL">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:text>IX</xsl:text>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							<fo:inline font-weight="bold">
								Check list 
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC" text-align="center">
						<fo:block>
							Number of sheets
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTL" text-align="center">
						<fo:block>
							Electronic file(s) attached
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdL">
						<fo:block>
							<xsl:text>IX-1</xsl:text>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							Request (including declaration sheets)
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRightData" text-align="center">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:choose>
									<xsl:when test=".//cl-request">
										<xsl:value-of select=".//cl-request/@page-count"></xsl:value-of>
									</xsl:when>
									<xsl:otherwise>0</xsl:otherwise>
								</xsl:choose>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
						<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdL">
						<fo:block>
							<xsl:text>IX-2</xsl:text>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							Description 
							<xsl:if test=".//cl-sequence-listing[@page-count] or .//processing-instruction('seqlist')">
								(excluding sequence listing part)
							</xsl:if>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRightData" text-align="center">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:choose>
									<xsl:when test=".//cl-description">
										<xsl:value-of select=".//cl-description/@page-count"></xsl:value-of>
									</xsl:when>
									<xsl:otherwise>0</xsl:otherwise>
								</xsl:choose>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
						<fo:block>
							<xsl:choose>
								<xsl:when test="$EASY != 1 and .//cl-description">
									<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdL">
						<fo:block>
							<xsl:text>IX-3</xsl:text>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							Claims
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRightData" text-align="center">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:choose>
									<xsl:when test=".//cl-claims">
										<xsl:value-of select=".//cl-claims/@page-count"></xsl:value-of>
									</xsl:when>
									<xsl:otherwise>0</xsl:otherwise>
								</xsl:choose>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
						<fo:block>
							<xsl:choose>
								<xsl:when test="$EASY != 1 and .//cl-claims">
									<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdL">
						<fo:block>
							<xsl:text>IX-4</xsl:text>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							Abstract
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRightData" text-align="center">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:choose>
									<xsl:when test=".//cl-abstract">
										<xsl:value-of select=".//cl-abstract/@page-count"></xsl:value-of>
									</xsl:when>
									<xsl:otherwise>0</xsl:otherwise>
								</xsl:choose>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
						<xsl:choose>
							<xsl:when test="$EASY = 1 and .//cl-abstract">
								<fo:block font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
							</xsl:when>
							<xsl:otherwise>
								<fo:block>
									<xsl:choose>
										<xsl:when test="$EASY != 1 and .//cl-abstract">
											<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
										</xsl:when>
										<xsl:otherwise>
											<fo:block>
												<fo:inline font-weight="bold">-</fo:inline>
											</fo:block>
										</xsl:otherwise>
									</xsl:choose>
								</fo:block>
							</xsl:otherwise>
						</xsl:choose>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdL">
						<fo:block>
							<xsl:text>IX-5</xsl:text>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							Drawings
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRightData" text-align="center">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:choose>
									<xsl:when test=".//cl-drawings">
										<xsl:value-of select=".//cl-drawings/@page-count"></xsl:value-of>
									</xsl:when>
									<xsl:otherwise>0</xsl:otherwise>
								</xsl:choose>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
						<fo:block>
							<xsl:choose>
								<xsl:when test="$EASY != 1 and .//cl-drawings and .//cl-drawings/@page-count &gt; 0">
									<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<xsl:if test=".//cl-sequence-listing[@page-count] or .//cl-sequence-listing-table[@page-count]">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>
								<xsl:text>IX-7a</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<fo:block>
								Sub-total number of sheets
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopRightData" text-align="center">
							<fo:block>
								<fo:inline font-weight="bold">
									<xsl:value-of select="sum(.//*[not(name()='cl-sequence-listing' or name()='cl-sequence-listing-table' or name()='cl-other-document')]/@page-count[. != ''])"></xsl:value-of>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
							<fo:block></fo:block>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<!--20191003 Always show Sequence listing in the checklist 
				<xsl:if test="$seqlist != 0 or .//cl-sequence-listing[@page-count] or .//cl-sequence-listing/@for-search-only = 'no'"> -->
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<xsl:choose>
								<xsl:when test=".//cl-sequence-listing[@page-count]">
									<fo:block>
										<xsl:text>IX-6</xsl:text>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<xsl:text>IX-6a</xsl:text>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<xsl:choose>
								<xsl:when test="$EASY = '1'">
									<fo:block>
										<!-- 20090701 RuleChange
										<xsl:call-template name = "seq_ChoiceText">
											<xsl:with-param name = "sequence" select = ".//cl-sequence-listing"/>
										</xsl:call-template>
-->
										<xsl:choose>
											<xsl:when test=".//cl-sequence-listing[@page-count]">
												<fo:block>
													Sequence listing part of the description
												</fo:block>
											</xsl:when>
											<xsl:otherwise>
												<fo:block>
													Sequence listing part of the description
												</fo:block>
											</xsl:otherwise>
										</xsl:choose>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<xsl:choose>
										<xsl:when test=".//cl-sequence-listing[@page-count]">
											<fo:block>
												Sequence listing part of the description
											</fo:block>
										</xsl:when>
										<xsl:otherwise>
											<fo:block>
												Sequence listing part of the description
											</fo:block>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopRightData" text-align="center">
							<fo:block>
								<fo:inline font-weight="bold">
									<xsl:choose>
										<xsl:when test=".//cl-sequence-listing/@page-count != 0">
											<xsl:value-of select=".//cl-sequence-listing/@page-count"></xsl:value-of>
										</xsl:when>
										<xsl:otherwise>-</xsl:otherwise>
									</xsl:choose>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
							<xsl:choose>
								<xsl:when test="$seqlist != '0'">
									<xsl:choose>
										<xsl:when test="$EASY = '1'">
											<fo:block>
												<!-- 20090701 RuleChange
												<fo:inline font-weight = "bold">
													<xsl:value-of select = "$seqlist"/>
												</fo:inline>
-->
												<xsl:choose>
													<xsl:when test="$seqlist = ''">
														<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
													</xsl:when>
													<xsl:otherwise>
														<fo:inline font-weight="bold">
															<xsl:value-of select="$seqlist"></xsl:value-of>
														</fo:inline>
													</xsl:otherwise>
												</xsl:choose>
											</fo:block>
										</xsl:when>
										<xsl:otherwise>
											<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
								<xsl:when test=".//cl-sequence-listing and $EASY = '1' and .//cl-sequence-listing/@carriers-type and not(.//cl-sequence-listing/@page-count) and .//cl-sequence-listing/@carriers = 'external-electronic' and .//cl-sequence-listing/@for-search-only = 'no'">
									<fo:block>
										<fo:inline font-weight="bold">
											<xsl:call-template name="carriersInfo_ChoiceText">
												<xsl:with-param name="carriers_type" select=".//cl-sequence-listing/@carriers-type"></xsl:with-param>
												<xsl:with-param name="carriers_quantity" select=".//cl-sequence-listing/@carriers-quantity"></xsl:with-param>
											</xsl:call-template>
										</fo:inline>
									</fo:block>
								</xsl:when>
								<xsl:when test=".//cl-sequence-listing and $EASY != '1'">
									<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:when>
								<xsl:when test=".//cl-sequence-listing and not(.//cl-sequence-listing[@page-count]) and $EFSWEB = '1'">
									<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
					</fo:table-row>
				<!--20191003 Always show Sequence listing in the checklist 
				</xsl:if>-->
				<xsl:if test="$seqtab != 0 or .//cl-sequence-listing-table[@page-count]">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>
								<xsl:text>IX-6b</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<xsl:choose>
								<xsl:when test="$EASY = '1'">
									<fo:block>
										Tables in electronic form related to sequence listings
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										Tables related to sequence listing part of description
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopRightData" text-align="center">
							<fo:block>
								<fo:inline font-weight="bold">
									<xsl:choose>
										<xsl:when test=".//cl-sequence-listing-table/@page-count">
											<xsl:value-of select=".//cl-sequence-listing-table/@page-count"></xsl:value-of>
										</xsl:when>
										<xsl:otherwise>-</xsl:otherwise>
									</xsl:choose>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
							<xsl:choose>
								<xsl:when test="$seqtab != '0'">
									<xsl:choose>
										<xsl:when test="$EASY = '1'">
											<fo:block>
												<fo:inline font-weight="bold">
													<xsl:value-of select="$seqtab"></xsl:value-of>
												</fo:inline>
											</fo:block>
										</xsl:when>
										<xsl:otherwise>
											<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
								<xsl:when test=".//cl-sequence-listing-table and $EASY != '1'">
									<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdBL">
						<fo:block>
							<xsl:text>IX-7</xsl:text>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTBC">
						<fo:block start-indent="3mm">
							TOTAL
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTBR" number-columns-spanned="1" text-align="center">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:value-of select="sum(.//*[not(name()='cl-other-document')]/@page-count[. != ''])"></xsl:value-of>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTB" number-columns-spanned="1" text-align="center">
						<fo:block>
							<fo:inline font-weight="bold">
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<!--<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
						<fo:block>
							<fo:inline/>
						</fo:block>
					</fo:table-cell>-->
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell number-columns-spanned="3" border-top="solid black 0.25pt">
						<fo:block></fo:block>
					</fo:table-cell>
				</fo:table-row>
			</fo:table-body>
		</fo:table>
		<!-- NOTE: PCT-SAFE only allows for electronic file attachments; therefore, all
           documents will appear in the 'electronic files attached' column UNLESS
           filing in EASY mode ($EASY = 1) -->
		<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="52mm"></fo:table-column>
			<fo:table-column column-width="53mm"></fo:table-column>
			<fo:table-body>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTL">
						<fo:block>
							<xsl:text>
							</xsl:text>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							<fo:inline font-weight="bold">
								Accompanying Items
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTL" text-align="center">
						<fo:block>
							Paper document(s) attached
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
						<fo:block>
							Electronic file(s) attached
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<xsl:if test=".//cl-fee-calculation">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>
								<xsl:text>IX-8</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<fo:block>
								Fee calculation sheet
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY = '1'">
									<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY = '1'">
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<xsl:if test=".//cl-separate-power-of-attorney">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>
								<xsl:text>IX-9</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<fo:block>
								Original separate power of attorney
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY = '1'">
									<fo:block font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY = '1'">
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<xsl:if test=".//cl-general-power-of-attorney">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>
								<xsl:text>IX-10</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<fo:block>
								Original general power of attorney
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY = '1'">
									<fo:block font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY = '1'">
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<xsl:for-each select=".//cl-copy-general-power-of-attorney/ref-number">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>
								<xsl:text>IX-11</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<fo:block>
								Copy of general power of attorney
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR">
							<xsl:choose>
								<xsl:when test="$EASY = '1'">
									<xsl:choose>
										<xsl:when test="string-length(text()) &gt; 0">
											<fo:block>
												<fo:inline font-weight="bold">
													Reference no. 
													<xsl:value-of select="text()"></xsl:value-of>
												</fo:inline>
											</fo:block>
										</xsl:when>
										<xsl:otherwise>
											<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats">✓</fo:block>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
								<xsl:otherwise>
									<fo:block text-align="center">
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
									<!--fo:block font-size = "10pt" font-family = "ZapfDingbats">✓</fo:block-->
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY = '1'">
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<xsl:choose>
										<xsl:when test="string-length(text()) &gt; 0">
											<fo:block>
												<fo:inline font-weight="bold">
													Reference no. 
													<xsl:value-of select="text()"></xsl:value-of>
												</fo:inline>
											</fo:block>
										</xsl:when>
										<xsl:otherwise>
											<fo:block font-size="10pt" font-family="ZapfDingbats" text-align="center">✓</fo:block>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
					</fo:table-row>
				</xsl:for-each>
				<xsl:if test=".//cl-lack-of-signature">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>
								<xsl:text>IX-12</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<fo:block>
								Statement explaining lack of signature
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY='1'">
									<fo:block font-size="10pt" font-family="ZapfDingbats">✓</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY='1'">
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block font-size="10pt" font-family="ZapfDingbats">✓</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<xsl:if test=".//cl-priority-document">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>
								<xsl:text>IX-13</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<fo:block>
								Priority document(s)
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR">
							<xsl:choose>
								<xsl:when test="$EASY='1'">
									<fo:block>
										<fo:inline font-weight="bold">
											<xsl:if test=".//cl-priority-document/sequence-number">
												Item(s) 
												<xsl:for-each select=".//cl-priority-document/sequence-number">
													VI-<xsl:value-of select="."></xsl:value-of>
													<xsl:text>
													</xsl:text>
												</xsl:for-each>
											</xsl:if>
										</fo:inline>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block text-align="center">
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY='1'">
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight="bold">
											<xsl:if test=".//cl-priority-document/sequence-number">
												Item(s) 
												<xsl:for-each select=".//cl-priority-document/sequence-number">
													VI-<xsl:value-of select="."></xsl:value-of>
													<xsl:text>
													</xsl:text>
												</xsl:for-each>
											</xsl:if>
										</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<xsl:if test=".//cl-restore-rights-reason">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>
								<xsl:text>IX-13(A)</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<fo:block>
									Statement for restoration of the right of priority
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY='1'">
									<fo:block font-size="10pt" font-family="ZapfDingbats">✓</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY='1'">
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block font-size="10pt" font-family="ZapfDingbats">✓</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<xsl:if test=".//cl-translation-of-application">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>
								<xsl:text>IX-14</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<fo:block>
								Translation of international application into
								<xsl:text>
								</xsl:text>
								<fo:inline font-weight="bold">
									<xsl:call-template name="language_ChoiceText">
										<xsl:with-param name="lang" select="substring(translate(.//cl-translation-of-application/@lang,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),1,2)"></xsl:with-param>
									</xsl:call-template>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY='1'">
									<fo:block font-size="10pt" font-family="ZapfDingbats">✓</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY='1'">
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block font-size="10pt" font-family="ZapfDingbats">✓</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<xsl:if test=".//cl-biological-material">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>
								<xsl:text>IX-15</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<fo:block>
								Separate indications concerning deposited microorganism or other biological material
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY='1'">
									<fo:block font-size="10pt" font-family="ZapfDingbats">✓</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY='1'">
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats">✓</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<!-- 20090701 RuleChange
				<xsl:if test = "$seqlist-search != 0 or .//processing-instruction('seqlist-additional') or .//cl-sequence-listing/@for-search-only = 'yes' or .//cl-sequence-listing/@additional-copies-including-search-copy = 'yes' or .//cl-sequence-listing/@with-identity-statement = 'yes'">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets = "tdL">
							<fo:block>
								<xsl:text>IX-16(A)</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets = "tdTC">
							<xsl:choose>
								<xsl:when test = "$EASY='1'">
									<fo:block>
										<inc file = "commonText.xml" toTranslate = "seqList_Text"/>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<inc file = "commonText.xml" toTranslate = "seqListElec_Text"/>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets = "tdTR" text-align = "center">
							<xsl:choose>
								<xsl:when test = "$EASY = '1'">
									<fo:block> </fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight = "bold">-</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets = "tdBorderTopLeftData" text-align = "center">
							<xsl:choose>
								<xsl:when test = "$EASY = '1'">
									<fo:block> </fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block text-align = "center" font-size = "10pt" font-family = "ZapfDingbats" padding-top = "1pt">✓</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>          
					</fo:table-row>
				</xsl:if>
-->
<!-- bug fix 20170928: When there are two SLs IX16 appear even though those SL are submitted as a part of IAs.
				<xsl:if test="$seqlist-search != 0 or .//cl-sequence-listing/@for-search-only = 'yes' or .//cl-sequence-listing/@quantity = '2'">
-->
				<xsl:if test="$seqlist-search != 0 or .//cl-sequence-listing/@for-search-only = 'yes'">
					<!-- 20090701 RuleChange
					<xsl:choose>
						<xsl:when test = "$EASY='1'">
-->
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>
								<xsl:text>IX-16</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<!-- 20090701 RuleChange
									<fo:block start-indent = "3mm">
										<inc file = "commonText.xml" toTranslate = "seqlistSearchOnly_Text"/>
									</fo:block>
-->
							<xsl:choose>
								<xsl:when test=".//cl-sequence-listing/@for-search-only = 'yes'">
									<fo:block>
										Sequence listing in electronic form (Annex C/ST.25 text file) furnished only for the purposes of international search under Rule 13ter
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										Sequence listing submitted for the purposes of international search under Rule 13ter
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
							<fo:block>
								<fo:inline font-weight="bold">-</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
							<xsl:choose>
								<!-- 20090701 RuleChange
										<xsl:when test="$seqlist-search = '0'">
-->
								<xsl:when test=".//cl-sequence-listing[@carriers-type] and $EASY = '1' and .//cl-sequence-listing/@carriers = 'external-electronic' and (.//cl-sequence-listing[@page-count] or .//cl-sequence-listing/@for-search-only = 'yes')">
									<fo:block>
										<fo:inline font-weight="bold">
											<xsl:call-template name="carriersInfo_ChoiceText">
												<xsl:with-param name="carriers_type" select=".//cl-sequence-listing/@carriers-type"></xsl:with-param>
												<xsl:with-param name="carriers_quantity" select=".//cl-sequence-listing/@carriers-quantity"></xsl:with-param>
											</xsl:call-template>
										</fo:inline>
									</fo:block>
								</xsl:when>
								<xsl:when test="$seqlist-search = '0' or $seqlist-search = ''">
									<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight="bold">
											<xsl:value-of select="$seqlist-search"></xsl:value-of>
										</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
					</fo:table-row>
					<!-- 20090701 RuleChange
						</xsl:when>
						<xsl:otherwise/>
					</xsl:choose>
-->
				</xsl:if>
				<xsl:if test=".//processing-instruction('seqlist-additional') or .//cl-sequence-listing/@additional-copies-including-search-copy = 'yes'">
					<xsl:choose>
						<xsl:when test="$EASY='1'">
							<fo:table-row>
								<fo:table-cell xsl:use-attribute-sets="tdL">
									<fo:block>
										<xsl:text>IX-16(A)-(ii)</xsl:text>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdTC">
									<fo:block start-indent="3mm">
										Additional copies including, where applicable, the copy for the purposes of international search under Rule 13ter
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
									<xsl:choose>
										<xsl:when test=".//processing-instruction('seqlist-additional')">
											<fo:block>
												<fo:inline font-weight="bold">
													<xsl:value-of select=".//processing-instruction('seqlist-additional')"></xsl:value-of>
												</fo:inline>
											</fo:block>
										</xsl:when>
										<xsl:otherwise>
											<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
										</xsl:otherwise>
									</xsl:choose>
								</fo:table-cell>
							</fo:table-row>
						</xsl:when>
						<xsl:otherwise></xsl:otherwise>
					</xsl:choose>
				</xsl:if>
				<xsl:if test=".//cl-sequence-listing/@with-identity-statement = 'yes'">
					<xsl:choose>
						<xsl:when test="$EASY='1'">
							<fo:table-row>
								<fo:table-cell xsl:use-attribute-sets="tdL">
									<fo:block>
										<xsl:text>IX-16(A)-(iii)</xsl:text>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdTC">
									<fo:block start-indent="3mm">
										the information recorded in electronic form is identical to the sequence listing as contained in the application
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
									<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</xsl:when>
						<xsl:otherwise></xsl:otherwise>
					</xsl:choose>
				</xsl:if>
				<xsl:if test="$seqtab-search != 0 or .//processing-instruction('seqtab-additional')">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>
								<xsl:text>IX-16(B)</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<xsl:choose>
								<xsl:when test="$EASY='1'">
									<fo:block>
										Tables in electronic form related to sequence listings
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										Tables related to sequence listing submitted under item IX-16(A)
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY = '1'">
									<fo:block> </fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY = '1'">
									<fo:block> </fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<xsl:if test="$seqtab-search != 0">
					<xsl:choose>
						<xsl:when test="$EASY='1'">
							<fo:table-row>
								<fo:table-cell xsl:use-attribute-sets="tdL">
									<fo:block>
										<xsl:text>IX-16(B)-(i)</xsl:text>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdTC">
									<fo:block start-indent="3mm">
										Copy submitted for the purposes of international search under Rule 13ter only (and not as part of the international application)
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
									<fo:block>
										<fo:inline font-weight="bold">
											<xsl:value-of select="$seqtab-search"></xsl:value-of>
										</fo:inline>
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</xsl:when>
						<xsl:otherwise></xsl:otherwise>
					</xsl:choose>
				</xsl:if>
				<xsl:if test=".//processing-instruction('seqtab-additional')">
					<xsl:choose>
						<xsl:when test="$EASY='1'">
							<fo:table-row>
								<fo:table-cell xsl:use-attribute-sets="tdL">
									<fo:block>
										<xsl:text>IX-16(B)-(ii)</xsl:text>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdTC">
									<fo:block start-indent="3mm">
										Additional copies including, where applicable, the copy for the purposes of international search
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
									<fo:block>
										<fo:inline font-weight="bold">
											<xsl:value-of select=".//processing-instruction('seqtab-additional')"></xsl:value-of>
										</fo:inline>
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</xsl:when>
						<xsl:otherwise></xsl:otherwise>
					</xsl:choose>
				</xsl:if>
				<xsl:if test=".//cl-earlier-search-document">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>
								<xsl:text>IX-17</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<fo:block>
								Copy of the results of earlier search(es)
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY = '1'">
									<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY = '1'">
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<xsl:if test="$EFSWEB != '1' and $EASY='1'">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>
								<xsl:text>IX-18</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBC">
							<fo:block>
								PCT-SAFE physical media
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBR" text-align="center">
							<fo:block>
								<fo:inline font-weight="bold">-</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopBottomLeftData" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY='1'">
									<fo:block font-size="10pt" font-family="ZapfDingbats">✓</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block text-align="center">
										<fo:inline font-weight="bold">-
											<!--xsl:value-of select = "$physical_media"/-->
										</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<xsl:if test=".//cl-sequence-listing and .//cl-sequence-listing/@with-identifying-statement = 'yes'">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>
								<xsl:text>IX-19</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<fo:block>
								A statement confirming that “the information in Annex C/ST.25 text format submitted under Rule 13ter is identical to the sequence listing as contained in the international application"
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY = '1'">
									<fo:block font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY = '1'">
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<xsl:for-each select=".//cl-other-document">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>
								<xsl:text>IX-19</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBC">
							<fo:block>
								Other
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBR">
							<fo:block>
								<fo:inline font-weight="bold">
									<xsl:value-of select="."></xsl:value-of>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopBottomLeftData" text-align="center">
							<fo:block>
							<xsl:if test="not($EASY = '1')">
								<fo:block font-size="10pt" font-family="ZapfDingbats">✓</fo:block>
							</xsl:if>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
				</xsl:for-each>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTL">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:text>IX-20</xsl:text>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							<fo:inline font-weight="bold">
								Figure of the drawings which should accompany the abstract
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTR" number-columns-spanned="2">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:value-of select="./figure-to-publish/fig-number"></xsl:value-of>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTBL">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:text>IX-21</xsl:text>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTBC">
						<fo:block>
							<fo:inline font-weight="bold">
								Language of filing of the international application
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTBR" number-columns-spanned="2">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:call-template name="language_ChoiceText">
									<xsl:with-param name="lang" select="substring(translate(./language-of-filing,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),1,2)"></xsl:with-param>
								</xsl:call-template>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<xsl:if test="./store-in-digital-library">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdTBL">
							<fo:block>
								<fo:inline font-weight="bold">
									<xsl:text>IX-22</xsl:text>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBC">
							<fo:block>
								<fo:inline font-weight="bold">
									The receiving Office is requested to make this international application available to the Priority Document Access Service (DAS) (provided that an international application number and international filing date is accorded to this purported international application.)
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBR" number-columns-spanned="2">
							<fo:block>
								<fo:inline font-weight="bold">
									Yes
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
			</fo:table-body>
		</fo:table>
		<xsl:if test=".//signatory">
			<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">X</xsl:with-param>
				</xsl:call-template>
			</xsl:for-each>
			<xsl:if test="not($officeUse='1')">
				<xsl:call-template name="office_info"></xsl:call-template>
			</xsl:if>
		</xsl:if>
	</xsl:template><xsl:template name="office_info">
		<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always" space-before="5mm">
			<fo:table-column column-width="12mm"></fo:table-column>
			<fo:table-column column-width="53mm"></fo:table-column>
			<fo:table-column column-width="105mm"></fo:table-column>
			<fo:table-body>
				<fo:table-row>
					<fo:table-cell font-size="10pt" vertical-align="top" padding="1.5pt" number-columns-spanned="3" space-before="5mm" padding-top="4mm" padding-bottom="4mm">
						<fo:block text-align="center">
							<fo:inline font-weight="bold">
								FOR RECEIVING OFFICE USE ONLY
							</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">
								<xsl:text>10-1</xsl:text>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block padding-bottom="5mm">
							<fo:inline font-weight="bold">
								Date of actual receipt of the purported international application
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTR">
						<fo:block>
							<xsl:if test="document($rrri_doc)//date-of-actual-receipt/date">
								<fo:inline font-weight="bold">
									<xsl:call-template name="format_date">
										<xsl:with-param name="date" select="document($rrri_doc)//date-of-actual-receipt/date"></xsl:with-param>
										<xsl:with-param name="lang" select="$lang"></xsl:with-param>
										<xsl:with-param name="show_date" select="1"></xsl:with-param>
										<xsl:with-param name="text" select="1"></xsl:with-param>
										<xsl:with-param name="date_too" select="1"></xsl:with-param>
									</xsl:call-template>
								</fo:inline>
							</xsl:if>
						</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">
								<xsl:text>10-2</xsl:text>
							</fo:inline>
						</fo:block>
						<fo:block padding-before="1.5mm">
							<xsl:text>10-2-1</xsl:text>
						</fo:block>
						<fo:block padding-before="1.5mm">
							<xsl:text>10-2-2</xsl:text>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							<fo:inline font-weight="bold">
								Drawings:
							</fo:inline>
						</fo:block>
						<fo:block padding-before="1.5mm">
							Received
						</fo:block>
						<fo:block padding-before="1.5mm">
							Not received
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTop">
						<fo:block>
						<xsl:if test="document($rrri_doc)//drawings-not-received">
							<fo:block text-align="left" font-size="10pt" font-family="ZapfDingbats" padding-before="9mm">✓</fo:block>
						</xsl:if>
						</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">
								<xsl:text>10-3</xsl:text>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							<fo:inline font-weight="bold">
								Corrected date of actual receipt due to later but timely received papers or drawings completing the purported international application
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTR">
						<fo:block>
							<xsl:if test="document($rrri_doc)//corrected-date-receipt/date">
								<fo:inline font-weight="bold">
									<xsl:call-template name="format_date">
										<xsl:with-param name="date" select="document($rrri_doc)//corrected-date-receipt/date"></xsl:with-param>
										<xsl:with-param name="lang" select="$lang"></xsl:with-param>
										<xsl:with-param name="show_date" select="1"></xsl:with-param>
										<xsl:with-param name="text" select="1"></xsl:with-param>
										<xsl:with-param name="date_too" select="1"></xsl:with-param>
									</xsl:call-template>
								</fo:inline>
							</xsl:if>
						</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">
								<xsl:text>10-4</xsl:text>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							<fo:inline font-weight="bold">
								Date of timely receipt of the required corrections under PCT Article 11(2)
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTR">
						<fo:block>
							<xsl:if test="document($rrri_doc)//receipt-pct11-2/date">
								<fo:inline font-weight="bold">
									<xsl:call-template name="format_date">
										<xsl:with-param name="date" select="document($rrri_doc)//receipt-pct11-2/date"></xsl:with-param>
										<xsl:with-param name="lang" select="$lang"></xsl:with-param>
										<xsl:with-param name="show_date" select="1"></xsl:with-param>
										<xsl:with-param name="text" select="1"></xsl:with-param>
										<xsl:with-param name="date_too" select="1"></xsl:with-param>
									</xsl:call-template>
								</fo:inline>
							</xsl:if>
						</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">
								<xsl:text>10-5</xsl:text>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							<fo:inline font-weight="bold">
								International Searching Authority 
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTR">
						<fo:block padding-top="1pt">
							<fo:inline font-weight="bold">                ISA/<xsl:call-template name="uppercaser">
									<xsl:with-param name="string" select=".//isa/country"></xsl:with-param>
								</xsl:call-template>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTBL">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:text>10-6</xsl:text>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTBC">
						<fo:block>
							<fo:inline font-weight="bold">
								Transmittal of search copy delayed until search fee is paid
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTB">
					<fo:block>
						<xsl:if test="document($rrri_doc)//search-copy-delayed">
							<fo:block text-align="left" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
						</xsl:if>
					</fo:block>
					</fo:table-cell>
				</fo:table-row>
			</fo:table-body>
		</fo:table>
		<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">
			<fo:table-column column-width="12mm"></fo:table-column>
			<fo:table-column column-width="53mm"></fo:table-column>
			<fo:table-column column-width="105mm"></fo:table-column>
			<fo:table-body>
				<fo:table-row>
					<fo:table-cell font-size="10pt" vertical-align="top" padding="1.5pt" number-columns-spanned="3" padding-top="4mm" padding-bottom="4mm">
						<fo:block text-align="center">
							<fo:inline font-weight="bold">
								FOR INTERNATIONAL BUREAU USE ONLY
							</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">11-1</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTBC">
						<fo:block>
							<fo:inline font-weight="bold">
								Date of receipt of the record copy by the International Bureau
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTBR" padding="4mm">
						<fo:block>
							<xsl:text>
							</xsl:text>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
			</fo:table-body>
		</fo:table>
	</xsl:template><xsl:template name="priority_claims">
		<xsl:for-each select=".//priority-claim">
			<xsl:variable name="prio_claims_seq" select="position()"></xsl:variable>
			<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">
				<fo:table-column column-width="12mm"></fo:table-column>
				<fo:table-column column-width="53mm"></fo:table-column>
				<fo:table-column column-width="105mm"></fo:table-column>
				<fo:table-body>
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdTL">
							<fo:block>
								<fo:inline font-weight="bold">VI-<xsl:value-of select="$prio_claims_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">
									<xsl:choose>
										<xsl:when test="@kind='regional'">
											Priority claim of earlier regional application
										</xsl:when>
										<xsl:when test="@kind='national'">
											Priority claim of earlier national application
										</xsl:when>
										<xsl:when test="@kind='international'">
											Priority claim of earlier international application
										</xsl:when>
									</xsl:choose>
								</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="tdL">
							<fo:block>VI-<xsl:value-of select="$prio_claims_seq"></xsl:value-of>-1</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>
								Filing date
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:call-template name="format_date">
										<xsl:with-param name="date" select="normalize-space(date)"></xsl:with-param>
										<xsl:with-param name="show_date" select="1"></xsl:with-param>
										<xsl:with-param name="text" select="1"></xsl:with-param>
										<xsl:with-param name="lang" select="substring(translate(//request/@lang,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz'),1,2)"></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>
					<xsl:if test=".//doc-number">
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL">
								<fo:block>VI-<xsl:value-of select="$prio_claims_seq"></xsl:value-of>-2</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdC">
								<fo:block>
									Number
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block padding-top="1pt">
									<fo:inline font-weight="bold">
										<xsl:value-of select=".//doc-number"></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="tdL">
							<fo:block>VI-<xsl:value-of select="$prio_claims_seq"></xsl:value-of>-3</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>
								<xsl:choose>
									<xsl:when test="@kind='international'">
										PCT receiving Office
									</xsl:when>
									<xsl:when test="@kind='national'">
										Country or Member of WTO
									</xsl:when>
									<xsl:when test="@kind='regional'">
										Regional Office 
									</xsl:when>
								</xsl:choose>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:if test="$lang='ja' or $lang='zh' or $lang='ru'">
										<xsl:call-template name="country_ChoiceText">
											<xsl:with-param name="country" select=".//country"></xsl:with-param>
										</xsl:call-template>
									</xsl:if>
									<xsl:value-of select=".//country"></xsl:value-of>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<xsl:if test="./office-of-filing">
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL">
								<fo:block>VI-<xsl:value-of select="$prio_claims_seq"></xsl:value-of>-4</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdC">
								<fo:block>
									Country Party to Paris Convention for Protection of Industrial Property or Member of the World Trade Organization for which earlier application was filed
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block padding-top="1pt">
									<fo:inline font-weight="bold">
										<xsl:call-template name="uppercaser">
											<xsl:with-param name="string" select="./office-of-filing//country"></xsl:with-param>
										</xsl:call-template>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
					</xsl:if>
					<xsl:if test=".//restore-rights">
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL">
								<fo:block>VI-<xsl:value-of select="$prio_claims_seq"></xsl:value-of>-5</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdC">
								<fo:block>
									Restore the right of priority
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block padding-top="1pt">
									<fo:inline font-weight="bold">
										The receiving Office is requested to restore the right of priority
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
					</xsl:if>
					<fo:table-row>
						<fo:table-cell border-top="solid black 0.5pt" number-columns-spanned="3">
							<fo:block></fo:block>
						</fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
		</xsl:for-each>
		<xsl:if test=".//priority-doc-from-library[@action-by='IB']">
			<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">
				<fo:table-column column-width="12mm"></fo:table-column>
				<fo:table-column column-width="53mm"></fo:table-column>
				<fo:table-column column-width="105mm"></fo:table-column>
				<fo:table-body>
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdTBL">
							<fo:block>
								<fo:inline font-weight="bold">VI-<xsl:value-of select="count(.//priority-claim) + 1"></xsl:value-of>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBC">
							<fo:block>
								<fo:inline font-weight="bold">
									Priority document request
								</fo:inline>
							</fo:block>
							<fo:block padding-before="2mm">
								The International Bureau is requested to obtain from a digital library a certified copy of the earlier application(s) identified above as item(s), using, where applicable, the access code(s) indicated:
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBR">
							<fo:block padding-before="6mm">
								<xsl:for-each select=".//priority-doc-from-library[@action-by='IB']">
									<fo:block font-weight="bold">
										VI-<xsl:value-of select="parent::priority-claim/@sequence"></xsl:value-of>
										<xsl:if test="./@priority-doc-access-code">
											Access code: 
											<xsl:value-of select="./@priority-doc-access-code"></xsl:value-of>
										</xsl:if>
									</fo:block>
								</xsl:for-each>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
		</xsl:if>
		<xsl:if test=".//priority-doc-from-library[@action-by='RO']">
			<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">
				<fo:table-column column-width="12mm"></fo:table-column>
				<fo:table-column column-width="53mm"></fo:table-column>
				<fo:table-column column-width="105mm"></fo:table-column>
				<fo:table-body>
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdTBL">
							<fo:block>
								<xsl:if test=".//priority-doc-from-library[@action-by='IB']">
									<fo:inline font-weight="bold">VI-<xsl:value-of select="count(.//priority-claim) + 2"></xsl:value-of>
									</fo:inline>
								</xsl:if>
								<xsl:if test="not(.//priority-doc-from-library[@action-by='IB'])">
									<fo:inline font-weight="bold">VI-<xsl:value-of select="count(.//priority-claim) + 1"></xsl:value-of>
									</fo:inline>
								</xsl:if>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBC">
							<fo:block>
								<fo:inline font-weight="bold">
									Priority document request
								</fo:inline>
							</fo:block>
							<fo:block padding-before="2mm">
								The receiving Office is requested to obtain from a digital library and transmit to the International Bureau a certified copy of the earlier application(s) identified above as item(s):
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBR">
							<fo:block padding-before="6mm">
								<xsl:for-each select=".//priority-doc-from-library[@action-by='RO']">
									<fo:block font-weight="bold">
										VI-<xsl:value-of select="parent::priority-claim/@sequence"></xsl:value-of>
										<xsl:if test="./@priority-doc-access-code">
											Access code: 
											<xsl:value-of select="./@priority-doc-access-code"></xsl:value-of>
										</xsl:if>
									</fo:block>
								</xsl:for-each>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
		</xsl:if>
		<xsl:if test=".//priority-doc-requested">
			<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">
				<fo:table-column column-width="12mm"></fo:table-column>
				<fo:table-column column-width="53mm"></fo:table-column>
				<fo:table-column column-width="105mm"></fo:table-column>
				<fo:table-body>
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdTBL">
							<fo:block>
								<xsl:choose>
									<xsl:when test="not(.//priority-doc-from-library)">
										<fo:inline font-weight="bold">VI-<xsl:value-of select="count(.//priority-claim) + 1"></xsl:value-of>
										</fo:inline>
									</xsl:when>
									<xsl:when test="(.//priority-doc-from-library[@action-by='IB']) and (.//priority-doc-from-library[@action-by='RO'])">
										<fo:inline font-weight="bold">VI-<xsl:value-of select="count(.//priority-claim) + 3"></xsl:value-of>
										</fo:inline>
									</xsl:when>
									<xsl:otherwise>
										<fo:inline font-weight="bold">VI-<xsl:value-of select="count(.//priority-claim) + 2"></xsl:value-of>
										</fo:inline>
									</xsl:otherwise>
								</xsl:choose>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBC">
							<fo:block>
								<fo:inline font-weight="bold">
									Priority document request
								</fo:inline>
							</fo:block>
							<fo:block padding-before="2mm">
								The receiving Office is requested to prepare and transmit to the International Bureau a certified copy of the earlier application(s) identified above as item(s):
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBR">
							<fo:block padding-before="6mm">
								<xsl:for-each select=".//priority-doc-requested">
									<fo:block font-weight="bold">
										VI-<xsl:value-of select="parent::priority-claim/@sequence"></xsl:value-of>
									</fo:block>
								</xsl:for-each>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
		</xsl:if>
		<xsl:if test=".//incorporation-by-reference">
			<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">
				<fo:table-column column-width="12mm"></fo:table-column>
				<fo:table-column column-width="53mm"></fo:table-column>
				<fo:table-column column-width="105mm"></fo:table-column>
				<fo:table-body>
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdTBL">
							<fo:block>
								<xsl:if test=".//priority-doc-requested">
									<xsl:choose>
										<xsl:when test="not(.//priority-doc-from-library)">
											<fo:inline font-weight="bold">VI-<xsl:value-of select="count(.//priority-claim) + 2"></xsl:value-of>
											</fo:inline>
										</xsl:when>
										<xsl:when test="(.//priority-doc-from-library[@action-by='IB']) and (.//priority-doc-from-library[@action-by='RO'])">
											<fo:inline font-weight="bold">VI-<xsl:value-of select="count(.//priority-claim) + 4"></xsl:value-of>
											</fo:inline>
										</xsl:when>
										<xsl:otherwise>
											<fo:inline font-weight="bold">VI-<xsl:value-of select="count(.//priority-claim) + 3"></xsl:value-of>
											</fo:inline>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:if>
								<xsl:if test="not(.//priority-doc-requested)">
									<xsl:choose>
										<xsl:when test="not(.//priority-doc-from-library)">
											<fo:inline font-weight="bold">VI-<xsl:value-of select="count(.//priority-claim) + 1"></xsl:value-of>
											</fo:inline>
										</xsl:when>
										<xsl:when test="(.//priority-doc-from-library[@action-by='IB']) and (.//priority-doc-from-library[@action-by='RO'])">
											<fo:inline font-weight="bold">VI-<xsl:value-of select="count(.//priority-claim) + 3"></xsl:value-of>
											</fo:inline>
										</xsl:when>
										<xsl:otherwise>
											<fo:inline font-weight="bold">VI-<xsl:value-of select="count(.//priority-claim) + 2"></xsl:value-of>
											</fo:inline>
										</xsl:otherwise>
									</xsl:choose>
								</xsl:if>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftNoCenter" number-columns-spanned="2">
							<fo:block>
								<fo:inline font-weight="bold">
									Incorporation by reference : 
								</fo:inline>
							</fo:block>
							<fo:block padding-before="2mm">
								where an element of the international application referred to in Article 11(1)(iii)(d) or (e) or a part of the description, claims or drawings referred to in Rule 20.5(a), or an element or part of the description, claims or drawings referred to in Rule 20.5bis(a) is not otherwise contained in this international application but is completely contained in an earlier application whose priority is claimed on the date on which one or more elements referred to in Article 11(1)(iii) were first received by the receiving Office, that element or part is, subject to confirmation under Rule 20.6, incorporated by reference in this international application for the purposes of Rule 20.6.
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
		</xsl:if>
	</xsl:template><xsl:template name="kind-of-protection">
		<xsl:param name="kind-text"></xsl:param>
		<xsl:choose>
			<xsl:when test="$kind-text = 'continuation-in-part'">
				continuation-in-part
			</xsl:when>
			<xsl:when test="$kind-text = 'certificate-of-addition'">
				certificate of addition
			</xsl:when>
			<xsl:when test="$kind-text = 'continuation'">
				continuation
			</xsl:when>
			<xsl:when test="$kind-text = 'inventors-certificate-of-addition'">
				inventor's certificate of addition
			</xsl:when>
			<xsl:when test="$kind-text = 'patent-of-addition'">
				patent of addition
			</xsl:when>
			<xsl:when test="$kind-text = 'utility-certificate-of-addition'">
				utility certificate of addition
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="$kind-text"></xsl:value-of>
			</xsl:otherwise>
		</xsl:choose>
	</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>
	<LU:organizations>
		<LU:organization name="AP">
			<LU:state name="BW"></LU:state>
			<LU:state name="GH"></LU:state>
			<LU:state name="GM"></LU:state>
			<LU:state name="KE"></LU:state>
			<LU:state name="LR"></LU:state>
			<LU:state name="LS"></LU:state>
			<LU:state name="MW"></LU:state>
			<LU:state name="MZ"></LU:state>
			<LU:state name="NA"></LU:state>
			<LU:state name="SD"></LU:state>
			<LU:state name="SL"></LU:state>
			<LU:state name="SZ"></LU:state>
			<LU:state name="TZ"></LU:state>
			<LU:state name="UG"></LU:state>
			<LU:state name="ZM"></LU:state>
			<LU:state name="ZW"></LU:state>
		</LU:organization>
		<LU:organization name="EA">
			<LU:state name="AM"></LU:state>
			<LU:state name="AZ"></LU:state>
			<LU:state name="BY"></LU:state>
			<LU:state name="KG"></LU:state>
			<LU:state name="KZ"></LU:state>
			<LU:state name="MD"></LU:state>
			<LU:state name="RU"></LU:state>
			<LU:state name="TJ"></LU:state>
			<LU:state name="TM"></LU:state>
		</LU:organization>
		<LU:organization name="EP">
			<LU:state name="AL"></LU:state>
			<LU:state name="AT"></LU:state>
			<LU:state name="BE"></LU:state>
			<LU:state name="BG"></LU:state>
			<LU:state name="CH"></LU:state>
			<LU:state name="LI"></LU:state>
			<LU:state name="CY"></LU:state>
			<LU:state name="CZ"></LU:state>
			<LU:state name="DE"></LU:state>
			<LU:state name="DK"></LU:state>
			<LU:state name="EE"></LU:state>
			<LU:state name="ES"></LU:state>
			<LU:state name="FI"></LU:state>
			<LU:state name="FR"></LU:state>
			<LU:state name="GB"></LU:state>
			<LU:state name="GR"></LU:state>
			<LU:state name="HR"></LU:state>
			<LU:state name="HU"></LU:state>
			<LU:state name="IE"></LU:state>
			<LU:state name="IS"></LU:state>
			<LU:state name="IT"></LU:state>
			<LU:state name="LT"></LU:state>
			<LU:state name="LU"></LU:state>
			<LU:state name="LV"></LU:state>
			<LU:state name="MC"></LU:state>
			<LU:state name="MK"></LU:state>
			<LU:state name="MT"></LU:state>
			<LU:state name="NL"></LU:state>
			<LU:state name="NO"></LU:state>
			<LU:state name="PL"></LU:state>
			<LU:state name="PT"></LU:state>
			<LU:state name="RO"></LU:state>
			<LU:state name="RS"></LU:state>
			<LU:state name="SE"></LU:state>
			<LU:state name="SI"></LU:state>
			<LU:state name="SK"></LU:state>
			<LU:state name="TR"></LU:state>
		</LU:organization>
		<LU:organization name="OA">
			<LU:state name="BF"></LU:state>
			<LU:state name="BJ"></LU:state>
			<LU:state name="CF"></LU:state>
			<LU:state name="CG"></LU:state>
			<LU:state name="CI"></LU:state>
			<LU:state name="CM"></LU:state>
			<LU:state name="GA"></LU:state>
			<LU:state name="GN"></LU:state>
			<LU:state name="GQ"></LU:state>
			<LU:state name="GW"></LU:state>
			<LU:state name="ML"></LU:state>
			<LU:state name="MR"></LU:state>
			<LU:state name="NE"></LU:state>
			<LU:state name="SN"></LU:state>
			<LU:state name="TD"></LU:state>
			<LU:state name="TG"></LU:state>
		</LU:organization>
	</LU:organizations>
	<xsl:template name="nameType">
   	<xsl:param name="nam"></xsl:param>
   	      <xsl:choose>
	         <xsl:when test="$nam//name[@name-type='legal']">
	         	Name
	         </xsl:when>
	         <xsl:otherwise>
	         	Name (LAST, First)
	         </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="designation_ChoiceText">   
		<xsl:param name="designation"></xsl:param>   
		<xsl:choose>   
			<xsl:when test="$designation/@designation='all'">   
				All designated States   
			</xsl:when>   
			<xsl:when test="$designation/@designation='all-except-us'">   
				All designated States except US   
			</xsl:when>   
			<xsl:when test="$designation/@designation='us-only'">   
				US only   
			</xsl:when>   
			<xsl:when test="$designation/@designation='as-indicated'">
				<!-- do region: (countries); countries -->
				<xsl:for-each select="$designation/designated-states/region">
					<xsl:sort select="."></xsl:sort>
					<xsl:variable name="pos" select="position() +1"></xsl:variable>
					<xsl:value-of select="concat(translate(normalize-space(.),'abdefghijklmnopqrstuvwxyz','ABDEFGHIJKLMNOPQRSTUVWXYZ'),': ','(')"></xsl:value-of> 
					<xsl:for-each select="following-sibling::country[not(preceding-sibling::region[$pos])]">
						<xsl:sort select="."></xsl:sort>   
						<xsl:choose>   
							<xsl:when test="text()='ch' or text() = 'CH'">  
								<xsl:text>CH&amp;LI </xsl:text>   
							</xsl:when>   
							<xsl:when test="text() = 'li' or text() = 'LI'"></xsl:when>   
							<xsl:otherwise>   
								<xsl:value-of select="translate(.,'abdefghijklmnopqrstuvwxyz','ABDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:value-of>   
								<xsl:if test="following-sibling::country[not(preceding-sibling::region[$pos])]">
									<xsl:text> 
									</xsl:text>   
								</xsl:if>   
							</xsl:otherwise>   
						</xsl:choose>
					</xsl:for-each>);<xsl:text> 
					</xsl:text>
				</xsl:for-each>
				<xsl:for-each select="$designation/designated-states/country[not(preceding-sibling::region)]">
					<xsl:sort select="."></xsl:sort>   
					<xsl:choose>   
						<xsl:when test="text()='ch' or text() = 'CH'">  
							<xsl:text>CH&amp;LI </xsl:text>   
						</xsl:when>   
						<xsl:when test="text() = 'li' or text() = 'LI'"></xsl:when>   
						<xsl:otherwise>   
							<xsl:value-of select="translate(.,'abdefghijklmnopqrstuvwxyz','ABDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:value-of>   
							<xsl:text> 
							</xsl:text>   
						</xsl:otherwise>   
					</xsl:choose>
				</xsl:for-each>   
			</xsl:when>   
		</xsl:choose>   
	</xsl:template><xsl:template name="designationEn_ChoiceText">   
		<xsl:param name="designation"></xsl:param>   
		<xsl:choose>   
			<xsl:when test="$designation/@designation='all'">   
				<xsl:text>all designated States</xsl:text>   
			</xsl:when>   
			<xsl:when test="$designation/@designation='all-except-us'">   
				<xsl:text>all designated States except US</xsl:text>   
			</xsl:when>   
			<xsl:when test="$designation/@designation='us-only'">   
				<xsl:text>US only</xsl:text>   
			</xsl:when>   
			<xsl:when test="$designation/@designation='as-indicated'">  
				<!-- do region: (countries); countries -->
				<xsl:for-each select="$designation/designated-states/region">
					<xsl:sort select="."></xsl:sort>
					<xsl:variable name="pos" select="position() +1"></xsl:variable>
					<xsl:value-of select="concat(translate(normalize-space(.),'abdefghijklmnopqrstuvwxyz','ABDEFGHIJKLMNOPQRSTUVWXYZ'),': ','(')"></xsl:value-of> 
					<xsl:for-each select="following-sibling::country[not(preceding-sibling::region[$pos])]">
						<xsl:sort select="."></xsl:sort>   
						<xsl:choose>   
							<xsl:when test="text()='ch' or text() = 'CH'">  
								<xsl:text>CH&amp;LI </xsl:text>   
							</xsl:when>   
							<xsl:when test="text() = 'li' or text() = 'LI'"></xsl:when>   
							<xsl:otherwise>   
								<xsl:value-of select="translate(.,'abdefghijklmnopqrstuvwxyz','ABDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:value-of>   
								<xsl:if test="following-sibling::country[not(preceding-sibling::region[$pos])]">
									<xsl:text> 
									</xsl:text>   
								</xsl:if>   
							</xsl:otherwise>   
						</xsl:choose>
					</xsl:for-each>);<xsl:text> 
					</xsl:text>
				</xsl:for-each>
				<xsl:for-each select="$designation/designated-states/country[not(preceding-sibling::region)]">
					<xsl:sort select="."></xsl:sort>   
					<xsl:choose>   
						<xsl:when test="text()='ch' or text() = 'CH'">  
							<xsl:text>CH&amp;LI </xsl:text>   
						</xsl:when>   
						<xsl:when test="text() = 'li' or text() = 'LI'"></xsl:when>   
						<xsl:otherwise>   
							<xsl:value-of select="translate(.,'abdefghijklmnopqrstuvwxyz','ABDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:value-of>   
							<xsl:text> 
							</xsl:text>   
						</xsl:otherwise>   
					</xsl:choose>
				</xsl:for-each>   
			</xsl:when>   
		</xsl:choose>   
	</xsl:template>
	<xsl:template name="typeOfDisclosure_ChoiceText">
		<xsl:param name="type"></xsl:param>
		<xsl:choose>
			<xsl:when test="$type='international-exhibition'">
				International exhibition
			</xsl:when>
			<xsl:when test="$type='publication'">
				Publication
			</xsl:when>
			<xsl:when test="$type='abuse'">
				Abuse
			</xsl:when>
			<xsl:when test="$type='other'">
				Other: 
				<xsl:value-of select="."></xsl:value-of>
			</xsl:when>			
		</xsl:choose>
	</xsl:template>
	<xsl:template name="applicantType_ChoiceText">
   <xsl:param name="app-type"></xsl:param>
   	  <xsl:choose>
   	  	<xsl:when test="$app-type='applicant'">
			Applicant only   
   	  	</xsl:when>
   	  	<xsl:when test="$app-type='applicant-inventor'">
   	  		Applicant and inventor    	  		
   	  	</xsl:when>
   	  </xsl:choose>
   </xsl:template><xsl:template name="applicantTypeEn_ChoiceText">
   <xsl:param name="app-type"></xsl:param>
   	  <xsl:choose>
   	  	<xsl:when test="$app-type='applicant'">
			<xsl:text>applicant only</xsl:text>   	  	
   	  	</xsl:when>
   	  	<xsl:when test="$app-type='applicant-inventor'">
   	  		<xsl:text>applicant and inventor</xsl:text>
   	  	</xsl:when>
   	  </xsl:choose>
   </xsl:template><xsl:template name="kind_ChoiceText">
   <xsl:param name="kind"></xsl:param>
   		<xsl:choose>
			<xsl:when test="$kind='heir'">
				Heir
			</xsl:when>
			<xsl:when test="$kind='heiress'">
				Heiress
			</xsl:when>
			<xsl:when test="$kind='heirs'">
				Heirs
			</xsl:when>
			<xsl:when test="$kind='executor'">
				Executor
			</xsl:when>
			<xsl:when test="$kind='executrix'">
				Executrix
			</xsl:when>
			<xsl:when test="$kind='executors'">
				Executors
			</xsl:when>
			<xsl:when test="$kind='legal-heirs'">
				Legal-heirs 
			</xsl:when>
			<xsl:when test="$kind='legal-representative'">
				Legal-representative
			</xsl:when>
			<xsl:when test="$kind='legal-representatives'">
				Legal-representatives
			</xsl:when>
			<xsl:when test="$kind='administrator'">
				Administrator				
   			</xsl:when>
			<xsl:when test="$kind='administratrix'">
				Administratrix				
   			</xsl:when>
			<xsl:when test="$kind='estate'">
				Estate				
   			</xsl:when>
   		</xsl:choose>
   </xsl:template>
	<xsl:template name="representBefore_ChoiceText">
		<xsl:param name="arg"></xsl:param>
		<xsl:choose>
			<xsl:when test="$arg='all-authorities'">
				all the competent International Authorities
			</xsl:when>
			<xsl:when test="$arg='isa-only'">
				the International Searching Authority only				
			</xsl:when>
			<xsl:when test="$arg='ipea-only'">
				the International Preliminary Examining Authority only
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="agentType_ChoiceText">
   <xsl:param name="rep-type"></xsl:param>
   	  <xsl:choose>
   	  	<xsl:when test="$rep-type='agent'">
   	  		Agent
   	  	</xsl:when>
   	  	<xsl:when test="$rep-type='attorney'">
	   	  	Attorney
   	  	</xsl:when>
   	  	<xsl:when test="$rep-type='common-representative'">
	   	  	Common representative 
   	  	</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="country_ChoiceText">
		<xsl:param name="country"></xsl:param>
		<xsl:choose>
			<xsl:when test="$country='AD'">
				Andorra 
			</xsl:when>
			<xsl:when test="$country='AE'">
				United Arab Emirates 
			</xsl:when>
			<xsl:when test="$country='AF'">
				Afghanistan 
			</xsl:when>
			<xsl:when test="$country='AG'">
				Antigua and Barbuda 
			</xsl:when>
			<xsl:when test="$country='AI'">
				Anguilla 
			</xsl:when>
			<xsl:when test="$country='AL'">
				Albania 
			</xsl:when>
			<xsl:when test="$country='AM'">
				Armenia 
			</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'">
				Antarctica 
			</xsl:when>
			<xsl:when test="$country='AR'">
				Argentina 
			</xsl:when>
			<xsl:when test="$country='AS'">
				American Samoa 
			</xsl:when>
			<xsl:when test="$country='AT'">
				Austria 
			</xsl:when>
			<xsl:when test="$country='AU'">
				Australia 
			</xsl:when>
			<xsl:when test="$country='AW'">
				Aruba 
			</xsl:when>
			<xsl:when test="$country='AX'">
				Aland Islands 
			</xsl:when>
			<xsl:when test="$country='AZ'">
				Azerbaijan 
			</xsl:when>
			<xsl:when test="$country='BA'">
				Bosnia and Herzegovina 
			</xsl:when>
			<xsl:when test="$country='BB'">
				Barbados 
			</xsl:when>
			<xsl:when test="$country='BD'">
				Bangladesh 
			</xsl:when>
			<xsl:when test="$country='BE'">
				Belgium 
			</xsl:when>
			<xsl:when test="$country='BF'">
				Burkina Faso 
			</xsl:when>
			<xsl:when test="$country='BG'">
				Bulgaria 
			</xsl:when>
			<xsl:when test="$country='BH'">
				Bahrain 
			</xsl:when>
			<xsl:when test="$country='BI'">
				Burundi 
			</xsl:when>
			<xsl:when test="$country='BJ'">
				Benin 
			</xsl:when>
			<xsl:when test="$country='BM'">
				Bermuda 
			</xsl:when>
			<xsl:when test="$country='BN'">
				Brunei Darussalam 
			</xsl:when>
			<xsl:when test="$country='BO'">
				Bolivia (Plurinational State of) 
			</xsl:when>
			<xsl:when test="$country='BQ'">
				Bonaire, Sint Eustatius and Saba 
			</xsl:when>
			<xsl:when test="$country='BR'">
				Brazil 
			</xsl:when>
			<xsl:when test="$country='BS'">
				Bahamas 
			</xsl:when>
			<xsl:when test="$country='BT'">
				Bhutan 
			</xsl:when>
			<xsl:when test="$country='BV'">
				Bouvet Island 
			</xsl:when>
			<xsl:when test="$country='BW'">
				Botswana 
			</xsl:when>
			<xsl:when test="$country='BX'">
				
			</xsl:when>
			<xsl:when test="$country='BY'">
				Belarus 
			</xsl:when>
			<xsl:when test="$country='BZ'">
				Belize 
			</xsl:when>
			<xsl:when test="$country='CA'">
				Canada 
			</xsl:when>
			<xsl:when test="$country='CC'">
				Cocos (Keeling) Islands 
			</xsl:when>
			<xsl:when test="$country='CD'">
				Democratic Republic of the Congo 
			</xsl:when>
			<xsl:when test="$country='CF'">
				Central African Republic 
			</xsl:when>
			<xsl:when test="$country='CG'">
				Congo 
			</xsl:when>
			<xsl:when test="$country='CH'">
				Switzerland 
			</xsl:when>
			<xsl:when test="$country='CI'">
				Côte d'Ivoire 
			</xsl:when>
			<xsl:when test="$country='CK'">
				Cook Islands 
			</xsl:when>
			<xsl:when test="$country='CL'">
				Chile 
			</xsl:when>
			<xsl:when test="$country='CM'">
				Cameroon 
			</xsl:when>
			<xsl:when test="$country='CN'">
				China 
			</xsl:when>
			<xsl:when test="$country='CO'">
				Colombia 
			</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 Island 
			</xsl:when>
			<xsl:when test="$country='CY'">
				Cyprus 
			</xsl:when>
			<xsl:when test="$country='CZ'">
				Czechia 
			</xsl:when>
			<xsl:when test="$country='DE'">
				Germany 
			</xsl:when>
			<xsl:when test="$country='DJ'">
				Djibouti 
			</xsl:when>
			<xsl:when test="$country='DK'">
				Denmark 
			</xsl:when>
			<xsl:when test="$country='DM'">
				Dominica 
			</xsl:when>
			<xsl:when test="$country='DO'">
				Dominican Republic 
			</xsl:when>
			<xsl:when test="$country='DZ'">
				Algeria 
			</xsl:when>
			<xsl:when test="$country='EA'">
				
			</xsl:when>
			<xsl:when test="$country='EC'">
				Ecuador 
			</xsl:when>
			<xsl:when test="$country='EE'">
				Estonia 
			</xsl:when>
			<xsl:when test="$country='EG'">
				Egypt 
			</xsl:when>
			<xsl:when test="$country='EH'">
				Western Sahara 
			</xsl:when>
			<xsl:when test="$country='EM'">
				
			</xsl:when>
			<xsl:when test="$country='EP'">
				
			</xsl:when>
			<xsl:when test="$country='ER'">
				Eritrea 
			</xsl:when>
			<xsl:when test="$country='ES'">
				Spain 
			</xsl:when>
			<xsl:when test="$country='ET'">
				Ethiopia 
			</xsl:when>
			<xsl:when test="$country='FI'">
				Finland 
			</xsl:when>
			<xsl:when test="$country='FJ'">
				Fiji 
			</xsl:when>
			<xsl:when test="$country='FK'">
				Falkland Islands (Malvinas) 
			</xsl:when>
			<xsl:when test="$country='FM'">
				Micronesia (Federated States of) 
			</xsl:when>
			<xsl:when test="$country='FO'">
				Faroe Islands 
			</xsl:when>
			<xsl:when test="$country='FR'">
				France 
			</xsl:when>
			<xsl:when test="$country='GA'">
				Gabon 
			</xsl:when>
			<xsl:when test="$country='GB'">
				United Kingdom 
			</xsl:when>
			<xsl:when test="$country='GC'">
				
			</xsl:when>
			<xsl:when test="$country='GD'">
				Grenada 
			</xsl:when>
			<xsl:when test="$country='GE'">
				Georgia 
			</xsl:when>
			<xsl:when test="$country='GF'">
				French Guiana 
			</xsl:when>
			<xsl:when test="$country='GG'">
				Guernsey 
			</xsl:when>
			<xsl:when test="$country='GH'">
				Ghana 
			</xsl:when>
			<xsl:when test="$country='GI'">
				Gibraltar 
			</xsl:when>
			<xsl:when test="$country='GL'">
				Greenland 
			</xsl:when>
			<xsl:when test="$country='GM'">
				Gambia 
			</xsl:when>
			<xsl:when test="$country='GN'">
				Guinea 
			</xsl:when>
			<xsl:when test="$country='GP'">
				Guadeloupe 
			</xsl:when>
			<xsl:when test="$country='GQ'">
				Equatorial Guinea 
			</xsl:when>
			<xsl:when test="$country='GR'">
				Greece 
			</xsl:when>
			<xsl:when test="$country='GS'">
				South Georgia and the South Sandwich Islands 
			</xsl:when>
			<xsl:when test="$country='GT'">
				Guatemala 
			</xsl:when>
			<xsl:when test="$country='GU'">
				Guam 
			</xsl:when>
			<xsl:when test="$country='GW'">
				Guinea-Bissau 
			</xsl:when>
			<xsl:when test="$country='GY'">
				Guyana 
			</xsl:when>
			<xsl:when test="$country='HK'">
				Hong Kong, China 
			</xsl:when>
			<xsl:when test="$country='HM'">
				Heard Island and McDonald Islands 
			</xsl:when>
			<xsl:when test="$country='HN'">
				Honduras 
			</xsl:when>
			<xsl:when test="$country='HR'">
				Croatia 
			</xsl:when>
			<xsl:when test="$country='HT'">
				Haiti 
			</xsl:when>
			<xsl:when test="$country='HU'">
				Hungary 
			</xsl:when>
			<xsl:when test="$country='IB'">
				
			</xsl:when>
			<xsl:when test="$country='ID'">
				Indonesia 
			</xsl:when>
			<xsl:when test="$country='IE'">
				Ireland 
			</xsl:when>
			<xsl:when test="$country='IL'">
				Israel 
			</xsl:when>
			<xsl:when test="$country='IM'">
				Isle of Man 
			</xsl:when>
			<xsl:when test="$country='IN'">
				India 
			</xsl:when>
			<xsl:when test="$country='IO'">
				British Indian Ocean Territory 
			</xsl:when>
			<xsl:when test="$country='IQ'">
				Iraq 
			</xsl:when>
			<xsl:when test="$country='IR'">
				Iran (Islamic Republic of) 
			</xsl:when>
			<xsl:when test="$country='IS'">
				Iceland 
			</xsl:when>
			<xsl:when test="$country='IT'">
				Italy 
			</xsl:when>
			<xsl:when test="$country='JE'">
				Jersey 
			</xsl:when>
			<xsl:when test="$country='JM'">
				Jamaica 
			</xsl:when>
			<xsl:when test="$country='JO'">
				Jordan 
			</xsl:when>
			<xsl:when test="$country='JP'">
				Japan 
			</xsl:when>
			<xsl:when test="$country='KE'">
				Kenya 
			</xsl:when>
			<xsl:when test="$country='KG'">
				Kyrgyzstan 
			</xsl:when>
			<xsl:when test="$country='KH'">
				Cambodia 
			</xsl:when>
			<xsl:when test="$country='KI'">
				Kiribati 
			</xsl:when>
			<xsl:when test="$country='KM'">
				Comoros 
			</xsl:when>
			<xsl:when test="$country='KN'">
				Saint Kitts and Nevis 
			</xsl:when>
			<xsl:when test="$country='KP'">
				Democratic People's Republic of Korea 
			</xsl:when>
			<xsl:when test="$country='KR'">
				Republic of Korea 
			</xsl:when>
			<xsl:when test="$country='KW'">
				Kuwait 
			</xsl:when>
			<xsl:when test="$country='KY'">
				Cayman Islands 
			</xsl:when>
			<xsl:when test="$country='KZ'">
				Kazakhstan 
			</xsl:when>
			<xsl:when test="$country='LA'">
				Lao People's Democratic Republic 
			</xsl:when>
			<xsl:when test="$country='LB'">
				Lebanon 
			</xsl:when>
			<xsl:when test="$country='LC'">
				Saint Lucia 
			</xsl:when>
			<xsl:when test="$country='LI'">
				Liechtenstein 
			</xsl:when>
			<xsl:when test="$country='LK'">
				Sri Lanka 
			</xsl:when>
			<xsl:when test="$country='LR'">
				Liberia 
			</xsl:when>
			<xsl:when test="$country='LS'">
				Lesotho 
			</xsl:when>
			<xsl:when test="$country='LT'">
				Lithuania 
			</xsl:when>
			<xsl:when test="$country='LU'">
				Luxembourg 
			</xsl:when>
			<xsl:when test="$country='LV'">
				Latvia 
			</xsl:when>
			<xsl:when test="$country='LY'">
				Libya 
			</xsl:when>
			<xsl:when test="$country='MA'">
				Morocco 
			</xsl:when>
			<xsl:when test="$country='MC'">
				Monaco 
			</xsl:when>
			<xsl:when test="$country='MD'">
				Republic of Moldova 
			</xsl:when>
			<xsl:when test="$country='ME'">
				Montenegro 
			</xsl:when>
			<xsl:when test="$country='MG'">
				Madagascar 
			</xsl:when>
			<xsl:when test="$country='MH'">
				Marshall Islands 
			</xsl:when>
			<xsl:when test="$country='MK'">
				North Macedonia 
			</xsl:when>
			<xsl:when test="$country='ML'">
				Mali 
			</xsl:when>
			<xsl:when test="$country='MM'">
				Myanmar 
			</xsl:when>
			<xsl:when test="$country='MN'">
				Mongolia 
			</xsl:when>
			<xsl:when test="$country='MO'">
				Macao, China 
			</xsl:when>
			<xsl:when test="$country='MP'">
				Northern Mariana Islands 
			</xsl:when>
			<xsl:when test="$country='MQ'">
				Martinique 
			</xsl:when>
			<xsl:when test="$country='MR'">
				Mauritania 
			</xsl:when>
			<xsl:when test="$country='MS'">
				Montserrat 
			</xsl:when>
			<xsl:when test="$country='MT'">
				Malta 
			</xsl:when>
			<xsl:when test="$country='MU'">
				Mauritius 
			</xsl:when>
			<xsl:when test="$country='MV'">
				Maldives 
			</xsl:when>
			<xsl:when test="$country='MW'">
				Malawi 
			</xsl:when>
			<xsl:when test="$country='MX'">
				Mexico 
			</xsl:when>
			<xsl:when test="$country='MY'">
				Malaysia 
			</xsl:when>
			<xsl:when test="$country='MZ'">
				Mozambique 
			</xsl:when>
			<xsl:when test="$country='NA'">
				Namibia 
			</xsl:when>
			<xsl:when test="$country='NC'">
				New Caledonia 
			</xsl:when>
			<xsl:when test="$country='NE'">
				Niger 
			</xsl:when>
			<xsl:when test="$country='NF'">
				Norfolk Island 
			</xsl:when>
			<xsl:when test="$country='NG'">
				Nigeria 
			</xsl:when>
			<xsl:when test="$country='NI'">
				Nicaragua 
			</xsl:when>
			<xsl:when test="$country='NL'">
				Netherlands (Kingdom of the) 
			</xsl:when>
			<xsl:when test="$country='NO'">
				Norway 
			</xsl:when>
			<xsl:when test="$country='NP'">
				Nepal 
			</xsl:when>
			<xsl:when test="$country='NR'">
				Nauru 
			</xsl:when>
			<xsl:when test="$country='NU'">
				Niue 
			</xsl:when>
			<xsl:when test="$country='NZ'">
				New Zealand 
			</xsl:when>
			<xsl:when test="$country='OA'">
				
			</xsl:when>
			<xsl:when test="$country='OM'">
				Oman 
			</xsl:when>
			<xsl:when test="$country='PA'">
				Panama 
			</xsl:when>
			<xsl:when test="$country='PE'">
				Peru 
			</xsl:when>
			<xsl:when test="$country='PF'">
				French Polynesia 
			</xsl:when>
			<xsl:when test="$country='PG'">
				Papua New Guinea 
			</xsl:when>
			<xsl:when test="$country='PH'">
				Philippines 
			</xsl:when>
			<xsl:when test="$country='PK'">
				Pakistan 
			</xsl:when>
			<xsl:when test="$country='PL'">
				Poland 
			</xsl:when>
			<xsl:when test="$country='PM'">
				Saint Pierre and Miquelon 
			</xsl:when>
			<xsl:when test="$country='PN'">
				Pitcairn 
			</xsl:when>
			<xsl:when test="$country='PR'">
				Puerto Rico 
			</xsl:when>
			<xsl:when test="$country='PS'">
				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'">
				Romania 
			</xsl:when>
			<xsl:when test="$country='RS'">
				Serbia 
			</xsl:when>
			<xsl:when test="$country='RU'">
				Russian Federation 
			</xsl:when>
			<xsl:when test="$country='RW'">
				Rwanda 
			</xsl:when>
			<xsl:when test="$country='SA'">
				Saudi Arabia 
			</xsl:when>
			<xsl:when test="$country='SB'">
				Solomon Islands 
			</xsl:when>
			<xsl:when test="$country='SC'">
				Seychelles 
			</xsl:when>
			<xsl:when test="$country='SD'">
				Sudan 
			</xsl:when>
			<xsl:when test="$country='SE'">
				Sweden 
			</xsl:when>
			<xsl:when test="$country='SG'">
				Singapore 
			</xsl:when>
			<xsl:when test="$country='SH'">
				Saint Helena, Ascension and Tristan da Cunha 
			</xsl:when>
			<xsl:when test="$country='SI'">
				Slovenia 
			</xsl:when>
			<xsl:when test="$country='SJ'">
				Svalbard and Jan Mayen 
			</xsl:when>
			<xsl:when test="$country='SK'">
				Slovakia 
			</xsl:when>
			<xsl:when test="$country='SL'">
				Sierra Leone 
			</xsl:when>
			<xsl:when test="$country='SM'">
				San Marino 
			</xsl:when>
			<xsl:when test="$country='SN'">
				Senegal 
			</xsl:when>
			<xsl:when test="$country='SO'">
				Somalia 
			</xsl:when>
			<xsl:when test="$country='SR'">
				Suriname 
			</xsl:when>
			<xsl:when test="$country='SS'">
				South Sudan 
			</xsl:when>
			<xsl:when test="$country='ST'">
				Sao Tome and Principe 
			</xsl:when>
			<xsl:when test="$country='SV'">
				El Salvador 
			</xsl:when>
			<xsl:when test="$country='SX'">
				Sint Maarten (Dutch part) 
			</xsl:when>
			<xsl:when test="$country='SY'">
				Syrian Arab Republic 
			</xsl:when>
			<xsl:when test="$country='SZ'">
				Eswatini 
			</xsl:when>
			<xsl:when test="$country='TC'">
				Turks and Caicos Islands 
			</xsl:when>
			<xsl:when test="$country='TD'">
				Chad 
			</xsl:when>
			<xsl:when test="$country='TF'">
				French Southern Territories 
			</xsl:when>
			<xsl:when test="$country='TG'">
				Togo 
			</xsl:when>
			<xsl:when test="$country='TH'">
				Thailand 
			</xsl:when>
			<xsl:when test="$country='TJ'">
				Tajikistan 
			</xsl:when>
			<xsl:when test="$country='TK'">
				Tokelau 
			</xsl:when>
			<xsl:when test="$country='TL'">
				Timor–Leste 
			</xsl:when>
			<xsl:when test="$country='TM'">
				Turkmenistan 
			</xsl:when>
			<xsl:when test="$country='TN'">
				Tunisia 
			</xsl:when>
			<xsl:when test="$country='TO'">
				Tonga 
			</xsl:when>
			<xsl:when test="$country='TP'">
				East Timor 
			</xsl:when>
			<xsl:when test="$country='TR'">
				Türkiye 
			</xsl:when>
			<xsl:when test="$country='TT'">
				Trinidad and Tobago 
			</xsl:when>
			<xsl:when test="$country='TV'">
				Tuvalu 
			</xsl:when>
			<xsl:when test="$country='TW'">
				Taiwan, Province of China 
			</xsl:when>
			<xsl:when test="$country='TZ'">
				United Republic of Tanzania 
			</xsl:when>
			<xsl:when test="$country='UA'">
				Ukraine 
			</xsl:when>
			<xsl:when test="$country='UG'">
				Uganda 
			</xsl:when>
			<xsl:when test="$country='UM'">
				United States Minor Outlying Islands 
			</xsl:when>
			<xsl:when test="$country='US'">
				United States of America 
			</xsl:when>
			<xsl:when test="$country='UY'">
				Uruguay 
			</xsl:when>
			<xsl:when test="$country='UZ'">
				Uzbekistan 
			</xsl:when>
			<xsl:when test="$country='VA'">
				Holy See 
			</xsl:when>
			<xsl:when test="$country='VC'">
				Saint Vincent and the Grenadines 
			</xsl:when>
			<xsl:when test="$country='VE'">
				Venezuela (Bolivarian Republic of) 
			</xsl:when>
			<xsl:when test="$country='VG'">
				Virgin Islands (British) 
			</xsl:when>
			<xsl:when test="$country='VI'">
				Virgin Islands, U.S. 
			</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 and 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'">
				Yemen 
			</xsl:when>
			<xsl:when test="$country='YT'">
				Mayotte 
			</xsl:when>
			<xsl:when test="$country='YU'">
				
			</xsl:when>
			<xsl:when test="$country='ZA'">
				South Africa 
			</xsl:when>
			<xsl:when test="$country='ZM'">
				Zambia 
			</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="language_ChoiceText">
	<xsl:param name="lang"></xsl:param>
		<xsl:choose>
		  <xsl:when test="$lang='aa'">
			  Afar 
		  </xsl:when>
		  <xsl:when test="$lang='ab'">
			 Abkhazian 
		  </xsl:when>
		  <xsl:when test="$lang='ae'">
			 Avestan 
		  </xsl:when>
		  <xsl:when test="$lang='af'">
			 Afrikaans 
		  </xsl:when>
		  <xsl:when test="$lang='am'">
			 Amharic 
		  </xsl:when>
		  <xsl:when test="$lang='ar'">
			 Arabic 
		  </xsl:when>
		  <xsl:when test="$lang='as'">
			 Assamese 
		  </xsl:when>
		  <xsl:when test="$lang='ay'">
			 Aymara 
		  </xsl:when>
		  <xsl:when test="$lang='az'">
			 Azerbaijani 
		  </xsl:when>
		  <xsl:when test="$lang='ba'">
			 Bashkir 
		  </xsl:when>
		  <xsl:when test="$lang='be'">
			 Belarusian 
		  </xsl:when>
		  <xsl:when test="$lang='bg'">
			 Bulgarian 
		  </xsl:when>
		  <xsl:when test="$lang='bh'">
			 Bihari 
		  </xsl:when>
		  <xsl:when test="$lang='bi'">
			 Bislama 
		  </xsl:when>
		  <xsl:when test="$lang='bn'">
			 Bengali 
		  </xsl:when>
		  <xsl:when test="$lang='bo'">
			 Tibetan 
		  </xsl:when>
		  <xsl:when test="$lang='br'">
			 Breton 
		  </xsl:when>
		  <xsl:when test="$lang='bs'">
			 Bosnian 
		  </xsl:when>
		  <xsl:when test="$lang='ca'">
			 Catalan 
		  </xsl:when>
		  <xsl:when test="$lang='ce'">
			 Chechen  
		  </xsl:when>
		  <xsl:when test="$lang='ch'">
			 Chamorro 
		  </xsl:when>
		  <xsl:when test="$lang='co'">
			 Corsican 
		  </xsl:when>
		  <xsl:when test="$lang='cs'">
			 Czech 
		  </xsl:when>
		  <xsl:when test="$lang='cu'">
			 
		  </xsl:when>
		  <xsl:when test="$lang='cv'">
			 Chuvash 
		  </xsl:when>
		  <xsl:when test="$lang='cy'">
			 Welsh 
		  </xsl:when>
		  <xsl:when test="$lang='da'">
			 Danish  
		  </xsl:when>
		  <xsl:when test="$lang='de'">
			 German 
		  </xsl:when>
		  <xsl:when test="$lang='dz'">
			 Dzongkha 
		  </xsl:when>
		  <xsl:when test="$lang='el'">
			 Greek 
		  </xsl:when>
		  <xsl:when test="$lang='en'">
			 English 
		  </xsl:when>
		  <xsl:when test="$lang='eo'">
			 Esperanto 
		  </xsl:when>
		  <xsl:when test="$lang='es'">
			 Spanish 
		  </xsl:when>
		  <xsl:when test="$lang='et'">
			 Estonian 
		  </xsl:when>
		  <xsl:when test="$lang='eu'">
			 Basque 
		  </xsl:when>
		  <xsl:when test="$lang='fa'">
			 Persian 
		  </xsl:when>
		  <xsl:when test="$lang='fi'">
			 Finnish 
		  </xsl:when>
		  <xsl:when test="$lang='fj'">
			 Fijian 
		  </xsl:when>
		  <xsl:when test="$lang='fo'">
			 Faroese 
		  </xsl:when>
		  <xsl:when test="$lang='fr'">
			 French 
		  </xsl:when>
		  <xsl:when test="$lang='fy'">
			 Frisian 
		  </xsl:when>
		  <xsl:when test="$lang='ga'">
			 Irish 
		  </xsl:when>
		  <xsl:when test="$lang='gd'">
			 Gaelic 
		  </xsl:when>
		  <xsl:when test="$lang='gl'">
			 Gallegan 
		  </xsl:when>
		  <xsl:when test="$lang='gn'">
			 Guarani 
		  </xsl:when>
		  <xsl:when test="$lang='gu'">
			 Gujarati 
		  </xsl:when>
		  <xsl:when test="$lang='gv'">
			 Manx 
		  </xsl:when>
		  <xsl:when test="$lang='ha'">
			 Hausa 
		  </xsl:when>
		  <xsl:when test="$lang='he'">
			 Hebrew 
		  </xsl:when>
		  <xsl:when test="$lang='hi'">
			 Hindi  
		  </xsl:when>
		  <xsl:when test="$lang='ho'">
			 Hiri Motu 
		  </xsl:when>
		  <xsl:when test="$lang='hr'">
			 Croatian 
		  </xsl:when>
		  <xsl:when test="$lang='hu'">
			 Hungarian 
		  </xsl:when>
		  <xsl:when test="$lang='hy'">
			 Armenian 
		  </xsl:when>
		  <xsl:when test="$lang='hz'">
			 Herero 
		  </xsl:when>
		  <xsl:when test="$lang='ia'">
			 Interlingua 
		  </xsl:when>
		  <xsl:when test="$lang='id'">
			 Indonesian 
		  </xsl:when>
		  <xsl:when test="$lang='ie'">
			 Interlingue 
		  </xsl:when>
		  <xsl:when test="$lang='ik'">
			 Inupiaq 
		  </xsl:when>
		  <xsl:when test="$lang='io'">
			 Ido 
		  </xsl:when>
		  <xsl:when test="$lang='is'">
			 Icelandic 
		  </xsl:when>
		  <xsl:when test="$lang='it'">
			 Italian 
		  </xsl:when>
		  <xsl:when test="$lang='iu'">
			 Inuktitut 
		  </xsl:when>
		  <xsl:when test="$lang='ja'">
			 Japanese 
		  </xsl:when>
		  <xsl:when test="$lang='jv'">
			 Javanese 
		  </xsl:when>
		  <xsl:when test="$lang='ka'">
			 Georgian 
		  </xsl:when>
		  <xsl:when test="$lang='ki'">
			 Kikuyu 
		  </xsl:when>
		  <xsl:when test="$lang='kj'">
			 Kuanyama 
		  </xsl:when>
		  <xsl:when test="$lang='kk'">
			 Kazakh 
		  </xsl:when>
		  <xsl:when test="$lang='kl'">
			 Greenlandic 
		  </xsl:when>
		  <xsl:when test="$lang='km'">
			 Cambodian 
		  </xsl:when>
		  <xsl:when test="$lang='kn'">
			 Kannada 
		  </xsl:when>
		  <xsl:when test="$lang='ko'">
			 Korean 
		  </xsl:when>
		  <xsl:when test="$lang='ks'">
			 Kashmiri 
		  </xsl:when>
		  <xsl:when test="$lang='ku'">
			 Kurdish 
		  </xsl:when>
		  <xsl:when test="$lang='kv'">
			 Komi 
		  </xsl:when>
		  <xsl:when test="$lang='kw'">
			 Cornish 
		  </xsl:when>
		  <xsl:when test="$lang='ky'">
			 Kirghiz 
		  </xsl:when>
		  <xsl:when test="$lang='la'">
			 Latin 
		  </xsl:when>
		  <xsl:when test="$lang='lb'">
			 Luxembourgish 
		  </xsl:when>
		  <xsl:when test="$lang='ln'">
			 Lingala 
		  </xsl:when>
		  <xsl:when test="$lang='lo'">
			 Laothian 
		  </xsl:when>
		  <xsl:when test="$lang='lt'">
			 Lithuanian 
		  </xsl:when>
		  <xsl:when test="$lang='lv'">
			 Latvian 
		  </xsl:when>
		  <xsl:when test="$lang='mg'">
			 Malagasy 
		  </xsl:when>
		  <xsl:when test="$lang='mh'">
			 Marshallese 
		  </xsl:when>
		  <xsl:when test="$lang='mi'">
			 Maori 
		  </xsl:when>
		  <xsl:when test="$lang='mk'">
			 Macedonian 
		  </xsl:when>
		  <xsl:when test="$lang='ml'">
			 Malayalam 
		  </xsl:when>
		  <xsl:when test="$lang='mn'">
			 Mongolian 
		  </xsl:when>
		  <xsl:when test="$lang='mo'">
			 Moldavian 
		  </xsl:when>
		  <xsl:when test="$lang='mr'">
			 Marathi 
		  </xsl:when>
		  <xsl:when test="$lang='ms'">
			 Malay 
		  </xsl:when>
		  <xsl:when test="$lang='mt'">
			 Maltese 
		  </xsl:when>
		  <xsl:when test="$lang='my'">
			 Burmese 
		  </xsl:when>
		  <xsl:when test="$lang='na'">
			 Burmese 
		  </xsl:when>
		  <xsl:when test="$lang='nb'">
			 Norwegian Bokmål 
		  </xsl:when>
		  <xsl:when test="$lang='nd'">
			 Ndebele, North 
		  </xsl:when>
		  <xsl:when test="$lang='ne'">
			 Nepali 
		  </xsl:when>
		  <xsl:when test="$lang='ng'">
			 Ndonga 
		  </xsl:when>
		  <xsl:when test="$lang='nl'">
			 Dutch 
		  </xsl:when>
		  <xsl:when test="$lang='nn'">
			 Norwegian Nynorsk 
		  </xsl:when>
		  <xsl:when test="$lang='no'">
			 Norwegian 
		  </xsl:when>
		  <xsl:when test="$lang='nr'">
			 Ndebele, South 
		  </xsl:when>
		  <xsl:when test="$lang='nv'">
			 Navajo 
		  </xsl:when>
		  <xsl:when test="$lang='ny'">
			 Chichewa 
		  </xsl:when>
		  <xsl:when test="$lang='oc'">
			 Occitan 
		  </xsl:when>
		  <xsl:when test="$lang='om'">
			 Oromo 
		  </xsl:when>
		  <xsl:when test="$lang='or'">
			 Oriya 
		  </xsl:when>
		  <xsl:when test="$lang='os'">
			 Ossetian 
		  </xsl:when>
		  <xsl:when test="$lang='pa'">
			 Punjabi 
		  </xsl:when>
		  <xsl:when test="$lang='pi'">
			 Pali 
		  </xsl:when>
		  <xsl:when test="$lang='pl'">
			 Polish 
		  </xsl:when>
		  <xsl:when test="$lang='ps'">
			 Pushto 
		  </xsl:when>
		  <xsl:when test="$lang='pt'">
			 Portuguese 
		  </xsl:when>
		  <xsl:when test="$lang='qu'">
			 Quechua 
		  </xsl:when>
		  <xsl:when test="$lang='rm'">
			 Raeto-Romance 
		  </xsl:when>
		  <xsl:when test="$lang='rn'">
			 Rundi 
		  </xsl:when>
		  <xsl:when test="$lang='ro'">
			 Romanian 
		  </xsl:when>
		  <xsl:when test="$lang='ru'">
			 Russian 
		  </xsl:when>
		  <xsl:when test="$lang='rw'">
			 Kinyarwanda 
		  </xsl:when>
		  <xsl:when test="$lang='sa'">
			 Sanskrit 
		  </xsl:when>
		  <xsl:when test="$lang='sc'">
			 Sardinian 
		  </xsl:when>
		  <xsl:when test="$lang='sd'">
			 Sindhi 
		  </xsl:when>
		  <xsl:when test="$lang='se'">
			 Northern Sami 
		  </xsl:when>
		  <xsl:when test="$lang='sg'">
			 Sango 
		  </xsl:when>
		  <xsl:when test="$lang='sh'">
			  Serbo-Croatian 
		  </xsl:when>      
		  <xsl:when test="$lang='si'">
			 Sinhalese 
		  </xsl:when>
		  <xsl:when test="$lang='sk'">
			 Slovak 
		  </xsl:when>
		  <xsl:when test="$lang='sl'">
			 Slovenian 
		  </xsl:when>
		  <xsl:when test="$lang='sm'">
			 Samoan 
		  </xsl:when>
		  <xsl:when test="$lang='sn'">
			 Shona 
		  </xsl:when>
		  <xsl:when test="$lang='so'">
			 Somali 
		  </xsl:when>
		  <xsl:when test="$lang='sq'">
			 Albanian 
		  </xsl:when>
		  <xsl:when test="$lang='sr'">
			 Serbian 
		  </xsl:when>
		  <xsl:when test="$lang='ss'">
			 Swati 
		  </xsl:when>
		  <xsl:when test="$lang='st'">
			 Sotho, Southern 
		  </xsl:when>
		  <xsl:when test="$lang='su'">
			 Sundanese 
		  </xsl:when>
		  <xsl:when test="$lang='sv'">
			 Swedish 
		  </xsl:when>
		  <xsl:when test="$lang='sw'">
			 Swahili 
		  </xsl:when>
		  <xsl:when test="$lang='ta'">
			 Tamil 
		  </xsl:when>
		  <xsl:when test="$lang='te'">
			 Telugu 
		  </xsl:when>
		  <xsl:when test="$lang='tg'">
			 Tajik 
		  </xsl:when>
		  <xsl:when test="$lang='th'">
			 Thai 
		  </xsl:when>
		  <xsl:when test="$lang='ti'">
			 Tigrinya 
		  </xsl:when>
		  <xsl:when test="$lang='tk'">
			 Turkmen 
		  </xsl:when>
		  <xsl:when test="$lang='tl'">
			 Tagalog 
		  </xsl:when>
		  <xsl:when test="$lang='tn'">
			 Tswana 
		  </xsl:when>
		  <xsl:when test="$lang='to'">
			 Tonga 
		  </xsl:when>
		  <xsl:when test="$lang='tr'">
			 Turkish 
		  </xsl:when>
		  <xsl:when test="$lang='ts'">
			 Tsonga 
		  </xsl:when>
		  <xsl:when test="$lang='tt'">
			 Tatar 
		  </xsl:when>
		  <xsl:when test="$lang='tw'">
			 Twi 
		  </xsl:when>
		  <xsl:when test="$lang='ty'">
			 Tahitian 
		  </xsl:when>
		  <xsl:when test="$lang='ug'">
			 Uighur 
		  </xsl:when>
		  <xsl:when test="$lang='uk'">
			 Ukrainian 
		  </xsl:when>
		  <xsl:when test="$lang='ur'">
			 Urdu 
		  </xsl:when>
		  <xsl:when test="$lang='uz'">
			 Uzbek 
		  </xsl:when>
		  <xsl:when test="$lang='vi'">
			 Vietnamese 
		  </xsl:when>
		  <xsl:when test="$lang='vo'">
			 Volapük 
		  </xsl:when>
		  <xsl:when test="$lang='wa'">
			 Walloon 
		  </xsl:when>
		  <xsl:when test="$lang='wo'">
			 Wolof 
		  </xsl:when>
		  <xsl:when test="$lang='xh'">
			 Xhosa 
		  </xsl:when>
		  <xsl:when test="$lang='yi'">
			 Yiddish 
		  </xsl:when>
		  <xsl:when test="$lang='yo'">
			 Yoruba 
		  </xsl:when>
		  <xsl:when test="$lang='za'">
			 Zhuang 
		  </xsl:when>
		  <xsl:when test="$lang='zh'">
			 Chinese 
		  </xsl:when>
		  <xsl:when test="$lang='zu'">
			 Zulu 
		  </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'">
	            International Center for Patent Registration, Ministry of Economy (United Arab Emirates)	
         </xsl:when>
         <xsl:when test="$tOffice='AG'">
	            Antigua and Barbuda Intellectual Property and Commerce Office (ABIPCO)	
         </xsl:when>
         <xsl:when test="$tOffice='AL'">
	            General Directorate of Industrial Property (GDIP) (Albania)	
         </xsl:when>
         <xsl:when test="$tOffice='AM'">
	            Intellectual Property Office of the Republic of Armenia	
         </xsl:when>
         <xsl:when test="$tOffice='AO'">
	            Angolan Institute of Industrial Property	
         </xsl:when>
         <xsl:when test="$tOffice='AP'">
	            African Regional Intellectual Property Organization (ARIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='AT'">
	            Austrian Patent Office	
         </xsl:when>
         <xsl:when test="$tOffice='AU'">
	            Australian Patent Office	
         </xsl:when>
         <xsl:when test="$tOffice='AZ'">
	            Intellectual Property Agency of the Republic of Azerbaijan	
         </xsl:when>
         <xsl:when test="$tOffice='BA'">
	            Institute for Intellectual Property of Bosnia and Herzegovina	
         </xsl:when>
         <xsl:when test="$tOffice='BB'">
	            Corporate Affairs and Intellectual Property Office (Barbados)	
         </xsl:when>
         <xsl:when test="$tOffice='BE'">
	            Belgian Intellectual Property Office (IPObel)	
         </xsl:when>
         <xsl:when test="$tOffice='BF'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='BG'">
	            Patent Office of the Republic of Bulgaria	
         </xsl:when>
         <xsl:when test="$tOffice='BH'">
	            Directorate of Foreign Trade &amp; Industrial Property, National Patent Office (Bahrain)	
         </xsl:when>
         <xsl:when test="$tOffice='BJ'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='BN'">
	            Brunei Darussalam Intellectual Property Office (BruIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='BR'">
	            National Institute of Industrial Property (Brazil)	
         </xsl:when>
         <xsl:when test="$tOffice='BW'">
	            Companies and Intellectual Property Authority (CIPA) (Botswana)	
         </xsl:when>
         <xsl:when test="$tOffice='BX'">
	            Benelux Office for Intellectual Property (BOIP)	
         </xsl:when>
         <xsl:when test="$tOffice='BY'">
	            National Center of Intellectual Property (Belarus)	
         </xsl:when>
         <xsl:when test="$tOffice='BZ'">
	            Belize Intellectual Property Office	
         </xsl:when>
         <xsl:when test="$tOffice='CA'">
	            Canadian Intellectual Property Office	
         </xsl:when>
         <xsl:when test="$tOffice='CF'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CG'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CH'">
	            Swiss Federal Institute of Intellectual Property	
         </xsl:when>
         <xsl:when test="$tOffice='CI'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CL'">
	            National Institute of Industrial Property (Chile)	
         </xsl:when>
         <xsl:when test="$tOffice='CM'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CN'">
	            China National Intellectual Property Administration (CNIPA)	
         </xsl:when>
         <xsl:when test="$tOffice='CO'">
	            Superintendence of Industry and Commerce (Colombia)	
         </xsl:when>
         <xsl:when test="$tOffice='CR'">
	            Registry of Intellectual Property (Costa Rica)	
         </xsl:when>
         <xsl:when test="$tOffice='CS'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CU'">
	            Cuban Industrial Property Office	
         </xsl:when>
         <xsl:when test="$tOffice='CY'">
	            Department of Registrar of Companies and Official Receiver of Cyprus	
         </xsl:when>
         <xsl:when test="$tOffice='CV'">
	            Institute for Quality Management and Intellectual Property (IGQPI) (Cabo Verde)	
         </xsl:when>
         <xsl:when test="$tOffice='CZ'">
	            Industrial Property Office of the Czech Republic	
         </xsl:when>
         <xsl:when test="$tOffice='DD'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='DE'">
	            German Patent and Trade Mark Office	
         </xsl:when>
         <xsl:when test="$tOffice='DJ'">
	            Office of Industrial Property and Commerce of Djibouti (ODPIC)	
         </xsl:when>
         <xsl:when test="$tOffice='DK'">
	            Danish Patent and Trademark Office	
         </xsl:when>
         <xsl:when test="$tOffice='DM'">
	            Registry of Companies, Intellectual Property Office (Dominica)	
         </xsl:when>
         <xsl:when test="$tOffice='DO'">
	            National Office of Industrial Property (Dominican Republic)	
         </xsl:when>
         <xsl:when test="$tOffice='DZ'">
	            Algerian National Institute of Industrial Property	
         </xsl:when>
         <xsl:when test="$tOffice='EA'">
	            Eurasian Patent Office (EAPO)	
         </xsl:when>
         <xsl:when test="$tOffice='EC'">
	            National Service of Intellectual Rights (SENADI) (Ecuador)	
         </xsl:when>
         <xsl:when test="$tOffice='EE'">
	            Estonian Patent Office	
         </xsl:when>
         <xsl:when test="$tOffice='EG'">
	            Egyptian Patent Office	
         </xsl:when>
         <xsl:when test="$tOffice='EM'">
	            European Union Intellectual Property Office	
         </xsl:when>
         <xsl:when test="$tOffice='EP'">
	            European Patent Office (EPO)	
         </xsl:when>
         <xsl:when test="$tOffice='ES'">
	            Spanish Patent and Trademark Office	
         </xsl:when>
         <xsl:when test="$tOffice='FI'">
	            Finnish Patent and Registration Office (PRH)	
         </xsl:when>
         <xsl:when test="$tOffice='FR'">
	            National Institute of Industrial Property (INPI) (France)	
         </xsl:when>
         <xsl:when test="$tOffice='GA'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='GB'">
	            Intellectual Property Office (United Kingdom)	
         </xsl:when>
         <xsl:when test="$tOffice='GC'">
	            Patent Office of the Gulf Cooperation Council (GCC)	
         </xsl:when>
         <xsl:when test="$tOffice='GD'">
	            Supreme Court Registry (Grenada)	
         </xsl:when>
         <xsl:when test="$tOffice='GE'">
	            National Intellectual Property Center of Georgia (SAKPATENTI)	
         </xsl:when>
         <xsl:when test="$tOffice='GH'">
	            Registrar General's Department (Ghana)	
         </xsl:when>
         <xsl:when test="$tOffice='GM'">
	            Registrar General's Department, Ministry of Justice (Gambia)	
         </xsl:when>
         <xsl:when test="$tOffice='GN'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='GQ'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='GR'">
	            Industrial Property Organization (OBI) (Greece)	
         </xsl:when>
         <xsl:when test="$tOffice='GT'">
	            Registry of Intellectual Property (Guatemala)	
         </xsl:when>
         <xsl:when test="$tOffice='GW'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='HK'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='HN'">
	            Directorate General of Intellectual Property (Honduras)	
         </xsl:when>
         <xsl:when test="$tOffice='HR'">
	            State Intellectual Property Office (Croatia)	
         </xsl:when>
         <xsl:when test="$tOffice='HU'">
	            Hungarian Intellectual Property Office (HIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='IB'">
	            International Bureau of WIPO	
         </xsl:when>
         <xsl:when test="$tOffice='ID'">
	            Directorate General of Intellectual Property (Indonesia)	
         </xsl:when>
         <xsl:when test="$tOffice='IE'">
	            Intellectual Property Office of Ireland	
         </xsl:when>
         <xsl:when test="$tOffice='IL'">
	            Israel Patent Office	
         </xsl:when>
         <xsl:when test="$tOffice='IR'">
	            Intellectual Property Center (Islamic Republic of Iran)	
         </xsl:when>
         <xsl:when test="$tOffice='IN'">
	            Indian Patent Office	
         </xsl:when>
         <xsl:when test="$tOffice='IQ'">
	            Iraqi Patent Office (IQPO)	
         </xsl:when>
         <xsl:when test="$tOffice='IS'">
	            Icelandic Intellectual Property Office (ISIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='IT'">
	            Italian Patent and Trademark Office	
         </xsl:when>
         <xsl:when test="$tOffice='JM'">
               Jamaica Intellectual Property Office (JIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='JO'">
	            Industrial Property Protection Directorate, Ministry of Industry, Trade and Supply (Jordan)	
         </xsl:when>
         <xsl:when test="$tOffice='JP'">
	            Japan Patent Office (JPO)	
         </xsl:when>
         <xsl:when test="$tOffice='KE'">
	            Kenya Industrial Property Institute	
         </xsl:when>
         <xsl:when test="$tOffice='KG'">
	            Ministry of Science, Higher Education and Innovation of the Kyrgyz Republic	
         </xsl:when>
         <xsl:when test="$tOffice='KH'">
	            Department of Industrial Property (DIP), Ministry of Industry, Science, Technology and Innovation (MISTI) (Cambodia)	
         </xsl:when>
         <xsl:when test="$tOffice='KM'">
	            Comorian Industrial Property Office	
         </xsl:when>
         <xsl:when test="$tOffice='KN'">
	            Intellectual Property Office of St. Kitts and Nevis	
         </xsl:when>
         <xsl:when test="$tOffice='KP'">
	            Intellectual Property Administration (IPA) of the Democratic People's Republic of Korea	
         </xsl:when>
         <xsl:when test="$tOffice='KR'">
	            Ministry of Intellectual Property (MOIP) (Republic of Korea)
         </xsl:when>
         <xsl:when test="$tOffice='KW'">
	            Ministry of Commerce and Industry, Trademarks and Patent Department (Kuwait)	
         </xsl:when>
         <xsl:when test="$tOffice='KZ'">
	            National Institute of Intellectual Property (NIIP) (Kazakhstan)	
         </xsl:when>
         <xsl:when test="$tOffice='LA'">
	            Department of Intellectual Property, Ministry of Science and Technology (Lao People's Democratic Republic)	
         </xsl:when>
         <xsl:when test="$tOffice='LC'">
	            Registry of Companies and Intellectual Property (Saint Lucia)	
         </xsl:when>
         <xsl:when test="$tOffice='LK'">
	            National Intellectual Property Office of Sri Lanka	
         </xsl:when>
         <xsl:when test="$tOffice='LR'">
	            Liberia Intellectual Property Office (LIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='LS'">
	            Registrar General's Office (Lesotho)	
         </xsl:when>
         <xsl:when test="$tOffice='LT'">
	            State Patent Bureau of the Republic of Lithuania	
         </xsl:when>
         <xsl:when test="$tOffice='LU'">
	            Intellectual Property Office (Luxembourg)	
         </xsl:when>
         <xsl:when test="$tOffice='LV'">
	            Patent Office of the Republic of Latvia	
         </xsl:when>
         <xsl:when test="$tOffice='LY'">
	            Libyan Industrial Property Office	
         </xsl:when>
         <xsl:when test="$tOffice='MA'">
	            Moroccan Office of Industrial and Commercial Property (OMPIC)	
         </xsl:when>
         <xsl:when test="$tOffice='MC'">
	            Monaco Industrial Property Office (MCIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='MD'">
	            State Agency on Intellectual Property (Republic of Moldova)	
         </xsl:when>
         <xsl:when test="$tOffice='ME'">
	            Ministry of Economic Development (Montenegro)	
         </xsl:when>
         <xsl:when test="$tOffice='MG'">
	            Industrial Property Office of Madagascar	
         </xsl:when>
         <xsl:when test="$tOffice='MK'">
	            State Office of Industrial Property (North Macedonia)	
         </xsl:when>
         <xsl:when test="$tOffice='ML'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='MN'">
	            Intellectual Property Office of Mongolia	
         </xsl:when>
         <xsl:when test="$tOffice='MR'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='MT'">
	            Industrial Property Registrations Directorate, Commerce Department (Malta)	
         </xsl:when>
         <xsl:when test="$tOffice='MU'">
	            Industrial Property Office of Mauritius (IPOM)	
         </xsl:when>
         <xsl:when test="$tOffice='MW'">
	            Ministry of Justice, Department of the Registrar General (Malawi)	
         </xsl:when>
         <xsl:when test="$tOffice='MX'">
	            Mexican Institute of Industrial Property	
         </xsl:when>
         <xsl:when test="$tOffice='MY'">
	            Intellectual Property Corporation of Malaysia	
         </xsl:when>
         <xsl:when test="$tOffice='MZ'">
	            Industrial Property Institute (IPI) (Mozambique)	
         </xsl:when>
         <xsl:when test="$tOffice='NA'">
	            Business and Intellectual Property Authority (BIPA) (Namibia)	
         </xsl:when>
         <xsl:when test="$tOffice='NE'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='NG'">
	            Patents and Designs Registry, Commercial Law Department (Nigeria)	
         </xsl:when>
         <xsl:when test="$tOffice='NI'">
	            Registry of Intellectual Property (Nicaragua)	
         </xsl:when>
         <xsl:when test="$tOffice='NL'">
	            Netherlands Patent Office	
         </xsl:when>
         <xsl:when test="$tOffice='NO'">
	            Norwegian Industrial Property Office	
         </xsl:when>
         <xsl:when test="$tOffice='NZ'">
	            Intellectual Property Office of New Zealand (IPONZ)	
         </xsl:when>
         <xsl:when test="$tOffice='OA'">
	            African Intellectual Property Organization (OAPI)	
         </xsl:when>
         <xsl:when test="$tOffice='OM'">
	            National Intellectual Property Office (Ministry of Commerce, Industry and Investment Promotion) (Oman)	
         </xsl:when>
         <xsl:when test="$tOffice='PA'">
	            Directorate General of the Industrial Property Registry (DIGERPI) (Panama)	
         </xsl:when>
         <xsl:when test="$tOffice='PE'">
	            National Institute for the Defense of Competition and Intellectual Property Protection (Peru)	
         </xsl:when>
         <xsl:when test="$tOffice='PG'">
	            Intellectual Property Office of Papua New Guinea	
         </xsl:when>
         <xsl:when test="$tOffice='PH'">
	            Intellectual Property Office of the Philippines	
         </xsl:when>
         <xsl:when test="$tOffice='PL'">
	            Patent Office of the Republic of Poland	
         </xsl:when>
         <xsl:when test="$tOffice='PT'">
	            National Institute of Industrial Property (Portugal)	
         </xsl:when>
         <xsl:when test="$tOffice='QA'">
	            Intellectual Property Department (Qatar)	
         </xsl:when>
         <xsl:when test="$tOffice='RO'">
	            State Office for Inventions and Trademarks (Romania)	
         </xsl:when>
         <xsl:when test="$tOffice='RS'">
	            Intellectual Property Office (Serbia)	
         </xsl:when>
         <xsl:when test="$tOffice='RU'">
	            Federal Service for Intellectual Property (Rospatent) (Russian Federation)	
         </xsl:when>
         <xsl:when test="$tOffice='RW'">
	            Office of the Registrar General (Rwanda)	
         </xsl:when>
         <xsl:when test="$tOffice='SA'">
	            Saudi Authority for Intellectual Property (SAIP)	
         </xsl:when>
         <xsl:when test="$tOffice='SC'">
	            Registration Division, Department of Legal Affairs (Seychelles)	
         </xsl:when>
         <xsl:when test="$tOffice='SD'">
	            Registrar General of Intellectual Property Department (Sudan) 
         </xsl:when>
         <xsl:when test="$tOffice='SE'">
	            Swedish Intellectual Property Office (PRV)	
         </xsl:when>
         <xsl:when test="$tOffice='SG'">
	            Intellectual Property Office of Singapore	
         </xsl:when>
         <xsl:when test="$tOffice='SI'">
	            Slovenian Intellectual Property Office	
         </xsl:when>
         <xsl:when test="$tOffice='SK'">
	            Industrial Property Office of the Slovak Republic	
         </xsl:when>
         <xsl:when test="$tOffice='SL'">
	            Administrator and Registrar General's Department (Sierra Leone)	
         </xsl:when>
         <xsl:when test="$tOffice='SM'">
	            Patent and Trademark Office (San Marino)	
         </xsl:when>
         <xsl:when test="$tOffice='SN'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='ST'">
	            Industrial Property National Service (SENAPI)	
         </xsl:when>
         <xsl:when test="$tOffice='SU'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='SV'">
	            National Center of Registries (CNR) (El Salvador)	
         </xsl:when>
         <xsl:when test="$tOffice='SY'">
	            Ministry of Internal Trade and Consumer Protection, Directorate of Industrial and Commercial Property Protection (Syrian Arab Republic)	
         </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'">
	            Department of Intellectual Property (DIP) (Thailand)	
         </xsl:when>
         <xsl:when test="$tOffice='TJ'">
	            National Center for Patents and Information under the Ministry of Economic Development and Trade of the Republic of Tajikistan	
         </xsl:when>
         <xsl:when test="$tOffice='TM'">
	            State Service for Intellectual Property of the Ministry of Finance and Economy of Turkmenistan	
         </xsl:when>
         <xsl:when test="$tOffice='TN'">
	            National Institute for Standardization and Industrial Property (INNORPI) (Tunisia)	
         </xsl:when>
         <xsl:when test="$tOffice='TR'">
	            Turkish Patent and Trademark Office (Turkpatent)	
         </xsl:when>
         <xsl:when test="$tOffice='TT'">
	            Intellectual Property Office, Ministry of Land and Legal Affairs (Trinidad and Tobago)	
         </xsl:when>
         <xsl:when test="$tOffice='TZ'">
	            Business Registrations and Licensing Agency, Ministry of Industry and Trade (United Republic of Tanzania)	
         </xsl:when>
         <xsl:when test="$tOffice='UA'">
	            State Organization "Ukrainian National Office for Intellectual Property and Innovations" (UANIPIO)	
         </xsl:when>
         <xsl:when test="$tOffice='UG'">
	            Uganda Registration Services Bureau (URSB)	
         </xsl:when>
         <xsl:when test="$tOffice='US'">
	            United States Patent and Trademark Office (USPTO)	
         </xsl:when>
         <xsl:when test="$tOffice='UY'">
	            National Directorate of Industrial Property (DNPI)	
         </xsl:when>
         <xsl:when test="$tOffice='UZ'">
	            Intellectual Property Agency under the Ministry of Justice of the Republic of Uzbekistan	
         </xsl:when>
         <xsl:when test="$tOffice='VC'">
	            Commerce and Intellectual Property Office (CIPO) (Saint Vincent and the Grenadines)	
         </xsl:when>
         <xsl:when test="$tOffice='VN'">
	            Intellectual Property Office of Viet Nam (IP Viet Nam)	
         </xsl:when>
         <xsl:when test="$tOffice='WO'">
	            World Intellectual Property Organization	
         </xsl:when>
         <xsl:when test="$tOffice='WS'">
	            Ministry of Commerce, Industry and Labour (MCIL) (Samoa)	
         </xsl:when>
         <xsl:when test="$tOffice='XN'">
	            Nordic Patent Institute	
         </xsl:when>
		 <xsl:when test="$tOffice='XV'">
	            Visegrad Patent Institute (VPI)	
         </xsl:when>
         <xsl:when test="$tOffice='YU'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='ZA'">
	            Companies and Intellectual Property Commission (CIPC) (South Africa)	
         </xsl:when>
         <xsl:when test="$tOffice='ZM'">
	            Patents and Companies Registration Agency (PACRA) (Zambia)	
         </xsl:when>
         <xsl:when test="$tOffice='ZR'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='ZW'">
	            Zimbabwe Intellectual Property Office	
         </xsl:when>
         <xsl:otherwise>
            <xsl:value-of select="$tOffice"></xsl:value-of>
         </xsl:otherwise>
      </xsl:choose>
   </xsl:template>
	<xsl:template name="seq_ChoiceText">
		<xsl:param name="sequence"></xsl:param>
		<xsl:choose>
			<xsl:when test="$sequence[@quantity &gt; 0] and $sequence/@page-count and not(.//processing-instruction('seqlist'))">
				Sequence listing part of the description
			</xsl:when>
			<xsl:when test="$sequence/@page-count">
				Sequence listing part of description filed in electronic form in addition to being filed on paper (under Section 801(a)(ii))
			</xsl:when>
			<xsl:otherwise>
				Sequence listing part of description filed in electronic form only (under Section 801(a)(i))
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="carriersInfo_ChoiceText">
		<xsl:param name="carriers_type"></xsl:param>
		<xsl:param name="carriers_quantity"></xsl:param>
		<xsl:if test="$carriers_quantity">
			<xsl:value-of select="$carriers_quantity"></xsl:value-of>
		</xsl:if>
		<xsl:text> </xsl:text>
		<xsl:choose>
			<xsl:when test="$carriers_type='FD'">
				<xsl:text>Diskette </xsl:text>
			</xsl:when>
			<xsl:when test="$carriers_type='CD'">
				<xsl:text>CD </xsl:text>
			</xsl:when>
			<xsl:when test="$carriers_type='BD'">
				<xsl:text>BD </xsl:text>
			</xsl:when>
			<xsl:when test="$carriers_type='DVD'">
				<xsl:text>DVD </xsl:text>
			</xsl:when>
			<xsl:when test="$carriers_type='other'">
				<xsl:text>other </xsl:text>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="$carriers_type"></xsl:value-of>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
</xsl:stylesheet>