<?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>願書 </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>申立て</fox:label>
					</fox:outline>
				</xsl:if>
				<xsl:if test="$fees != ''">
					<fox:outline internal-destination="feeSec">
						<fox:label>手数料</fox:label>
					</fox:outline>
				</xsl:if>
				<xsl:if test="$power != ''">
					<fox:outline internal-destination="powerSec">
						<fox:label>委任状の</fox:label>
					</fox:outline>
				</xsl:if>
				<xsl:if test="$bio != ''">
					<fox:outline internal-destination="bioSec">
						<fox:label>寄託された生物材料</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">
												特許協力条約に基づく国際出願願書
											</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'">
													原本(
													<fo:inline font-weight="bold">
														出願用
													</fo:inline>
													<xsl:text>)</xsl:text>
												</xsl:when>
												<xsl:when test="$original = '2' and $EASY = '1'">
													副本
												</xsl:when>
												<xsl:when test="$EASY = '1'">
													紙面による写し
													(注意
													 提出用では有りません)
												</xsl:when>
												<xsl:otherwise>
													(注意　電子データが原本となります)
												</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手数料計算用紙(願書付属書)
												</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'">
														原本(
														<fo:inline font-weight="bold">
															出願用
														</fo:inline>
														<xsl:text>)</xsl:text>
													</xsl:when>
													<xsl:when test="$original = '2' and $EASY = '1'">
														副本
													</xsl:when>
													<xsl:when test="$EASY = '1'">
														紙面による写し
														(注意
														 提出用では有りません)
													</xsl:when>
													<xsl:otherwise>
														(注意　電子データが原本となります)
													</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">
												 [この用紙は、国際出願の一部を構成せず、国際出願の用紙の枚数に算入しない] 
											</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">
													委任状（ＰＣＴ） 
												</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'">
														原本(
														<fo:inline font-weight="bold">
															出願用
														</fo:inline>
														<xsl:text>)</xsl:text>
													</xsl:when>
													<xsl:when test="$original = '2' and $EASY = '1'">
														副本
													</xsl:when>
													<xsl:when test="$EASY = '1'">
														<fo:block></fo:block>
													</xsl:when>
													<xsl:otherwise>
														(注意　電子データが原本となります)
													</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">
												 [この用紙は、国際出願の一部を構成せず、国際出願の用紙の枚数に算入しない] 
											</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'">
														原本(
														<fo:inline font-weight="bold">
															出願用
														</fo:inline>
														<xsl:text>)</xsl:text>
													</xsl:when>
													<xsl:when test="$original = '2' and $EASY = '1'">
														副本
													</xsl:when>
													<xsl:when test="$EASY = '1'">
														紙面による写し
														(注意
														 提出用では有りません)
													</xsl:when>
													<xsl:otherwise>
														(注意　電子データが原本となります)
													</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">
												 [この用紙は、国際出願の一部を構成せず、国際出願の用紙の枚数に算入しない] 
											</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'"> 
					 は            
				</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'">            		 
					 は            
				</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'">
								01月   
							</xsl:when>   
							<xsl:when test="$m='02'"> 
								02月   
							</xsl:when>   
							<xsl:when test="$m='03'"> 
								03月   
							</xsl:when>   
							<xsl:when test="$m='04'"> 
								04月   
							</xsl:when>   
							<xsl:when test="$m='05'"> 
								05月   
							</xsl:when>   
							<xsl:when test="$m='06'"> 
								06月   
							</xsl:when>   
							<xsl:when test="$m='07'"> 
								07月   
							</xsl:when>   
							<xsl:when test="$m='08'"> 
								08月   
							</xsl:when>   
							<xsl:when test="$m='09'"> 
								09月   
							</xsl:when>   
							<xsl:when test="$m='10'"> 
								10月   
							</xsl:when>   
							<xsl:when test="$m='11'"> 
								11月   
							</xsl:when>   
							<xsl:when test="$m='12'"> 
								12月   
							</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'">
								01月   
							</xsl:when>   
							<xsl:when test="$m='02'"> 
								02月   
							</xsl:when>   
							<xsl:when test="$m='03'"> 
								03月   
							</xsl:when>   
							<xsl:when test="$m='04'"> 
								04月   
							</xsl:when>   
							<xsl:when test="$m='05'"> 
								05月   
							</xsl:when>   
							<xsl:when test="$m = '06'"> 
								06月   
							</xsl:when>   
							<xsl:when test="$m='07'"> 
								07月   
							</xsl:when>   
							<xsl:when test="$m='08'"> 
								08月   
							</xsl:when>   
							<xsl:when test="$m='09'"> 
								09月   
							</xsl:when>   
							<xsl:when test="$m='10'"> 
								10月   
							</xsl:when>   
							<xsl:when test="$m='11'"> 
								11月   
							</xsl:when>   
							<xsl:when test="$m='12'"> 
								12月   
							</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'"> 
								01月   
							</xsl:when>   
							<xsl:when test="$m='02'"> 
								02月   
							</xsl:when>   
							<xsl:when test="$m='03'"> 
								03月   
							</xsl:when>   
							<xsl:when test="$m='04'"> 
								04月   
							</xsl:when>   
							<xsl:when test="$m='05'"> 
								05月   
							</xsl:when>   
							<xsl:when test="$m = '06'"> 
								06月   
							</xsl:when>   
							<xsl:when test="$m='07'"> 
								07月   
							</xsl:when>   
							<xsl:when test="$m='08'"> 
								08月   
							</xsl:when>   
							<xsl:when test="$m='09'"> 
								09月   
							</xsl:when>   
							<xsl:when test="$m='10'"> 
								10月   
							</xsl:when>   
							<xsl:when test="$m='11'"> 
								11月   
							</xsl:when>   
							<xsl:when test="$m='12'"> 
								12月   
							</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">
									発明者の特定に関する申立て
								</fo:inline>
								<fo:block></fo:block>
								発明者の特定に関する申立て（規則4.17(i)及び 51の2.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">
									本国際出願
									<xsl:choose>
										<xsl:when test=".//application-reference">
											<xsl:if test="not($lang='ja')">
												に関し、
											</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'">
												に関し、
											</xsl:if>
										</xsl:when>
										<xsl:otherwise>
											に関し、
										</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()">
														あて名 
													</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()">
														あて名 
													</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>
												は、本国際出願によって保護を求められている対象の発明者である。
											</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()">
														あて名 
													</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()">
														あて名 
													</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">
												は、本国際出願によって保護を求められている対象の発明者である。
											</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">                           
								出願し及び特許を与えられるための出願人の資格に関する申立て                        
							</fo:inline>                        
							<fo:block></fo:block>                        
							出願し及び特許を与えられる国際出願日における出願人の資格に関する申立て （本申立てが規則4.17(iv)に規定する申立てに該当しない場合）（規則4.17(ii)及び51の2.1(a)(ii)）                     
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdTR">                     
						<fo:block padding-before="7mm">    
							<fo:inline font-weight="bold">                           
								本国際出願
								<xsl:choose>                              
									<xsl:when test=".//application-reference">                                 
										<xsl:if test="not($lang='ja')">
											に関し、  
										</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'">
											に関し、  
										</xsl:if>                          
									</xsl:when>                              
									<xsl:otherwise>
										に関し、                              
									</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>
								出願し及び特許を与えられる資格を有している。                        
							</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">                           
								先の出願に基づく優先権を主張する出願人の資格に関する申立て                        
							</fo:inline>                        
							<fo:block></fo:block>                        
							出願人が優先権主張の基礎とされた先の出願の出願人と同一でない場合、又は先の出願の出願日以後に出願人の氏名又は名称が変更された場合において、以下の先の出願に基づく優先権を主張する国際出願日における出願人の資格に関する申立て（規則4.17(iii)及び51の2.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">                           
								本国際出願
								<xsl:choose>                              
									<xsl:when test=".//application-reference">                                 
										<xsl:if test="not($lang='ja')">
											に関し、  
										</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'">
											に関し、  
										</xsl:if>                          
									</xsl:when>                              
									<xsl:otherwise>
										に関し、                              
									</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')">
									名称
								</xsl:when>
								<xsl:when test="./name and $lang='zh'">
									氏名(姓名)
								</xsl:when>
								<xsl:otherwise>
									氏名(姓名)
								</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">                           
								先の出願                           
								<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>                           
								に基づく優先権を主張する資格を有している。                        
							</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">                        
									発明者である旨の申立て（米国を指定国とする場合）                     
								</fo:inline>                     
								<fo:block></fo:block>                     
								発明者である旨の申立て（規則4.17(iv)及び51の2.1(a)(iv)）（米国を指定国とする場合）                  
							</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">                        
									私は、自らが本出願の請求の範囲に記載されている発明の最初の発明者、あるいは最初の共同発明者であると信じていることを、ここに申し立てる。                         
									<fo:block></fo:block>
									<fo:block space-after="2mm">
									</fo:block>
									<xsl:choose>
										<xsl:when test="./application-reference">
											本申立ては、国際出願<xsl:value-of select="./application-reference//doc-number"></xsl:value-of>を対象としたものである。
											<fo:block space-after="2mm">
											</fo:block>
										</xsl:when>
										<xsl:otherwise>
												本申立ては、本書がその一部をなす国際出願を対象としたものである。
												<fo:block space-after="2mm">
												</fo:block>                        
										</xsl:otherwise>
									</xsl:choose>
									<fo:block></fo:block>                        
									私は、上記国際出願を自ら行つた、又は行うことを許可したことを、ここに申し立てる。                        
									<fo:block space-after="2mm">
									</fo:block>                        
									私は、本申立てにおいて故意に虚偽の陳述などを行つた場合は、合衆国法典(United States Code (U.S.C.))第18編第1001条に基づき、罰金、5年以下の拘禁、又はその両方により処罰されることを、ここに承認する。                     
								</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>                        
								住所：                         
								<fo:block></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: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>                              
										郵便のあて名：                           
									</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>                        
								発明者の署名：                        
								<fo:block></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=".//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">                                 
											(出願人が「はい」を選択した。)                              
										</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 デジタル署名)                              
										</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>                        
								日付：                     
							</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>                           
									住所：                            
									<fo:block></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: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>                                 
											郵便のあて名：                              
										</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>                           
									発明者の署名：                           
									<fo:block></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="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">                                    
												(出願人が「はい」を選択した。)                                 
											</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 デジタル署名)                                 
											</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>                           
									日付：                        
								</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">
								不利にならない開示又は新規性喪失の例外に関する申立て
							</fo:inline>
							<fo:block></fo:block>
							不利にならない開示又は新規性喪失の例外に関する申立て（規則4.17(v)及び51の2.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">
								本国際出願
								<xsl:choose>
									<xsl:when test=".//application-reference">
										<xsl:if test="not($lang='ja')">
											に関し、
										</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'">
											に関し、
										</xsl:if>
									</xsl:when>
									<xsl:otherwise>
										に関し、
									</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">
								 は、本国際出願の請求項に記載された対象が以下のように開示されたことを申し立てる。
							</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>
								開示の種類:
							</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">
											国際見本市
										</xsl:when>
										<xsl:when test="./publication/text()">
											<xsl:value-of select="./publication"></xsl:value-of>
										</xsl:when>
										<xsl:when test="./publication">
											刊行物
										</xsl:when>
										<xsl:when test="./abuse/text()">
											<xsl:value-of select="./abuse"></xsl:value-of>
										</xsl:when>
										<xsl:when test="./abuse">
											不当使用
										</xsl:when>
										<xsl:when test="./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>
								開示の日付:
							</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>
								開示の名称:
							</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>
								開示の場所:
							</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'">
										出願人の記名押印
									</xsl:when>
									<xsl:otherwise>
										出願人、代理人又は共通の代表者の署名  
									</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">                                 
										(出願人が「はい」を選択した。)
									</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 デジタル署名)
									</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>                     
									名称
								</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>                     
									氏名(姓名)
								</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>         
								署名者の氏名 
							</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>         
							権限（署名者が法人の場合）
						</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">                        
								受理官庁記入欄                     
							</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>                     
							国際出願番号                   
						</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>                     
							受理官庁の日付印                  
						</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">                        
								様式 PCT/RO/101（付属書）                        
								<fo:block space-before=".5mm"></fo:block>                        
								このPCT手数料計算用紙は、                     
							</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>                     
							右記によって作成された。                  
						</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">                        
								出願人又は代理人の書類記号                      
							</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">                        
								出願人                     
							</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">                        
								所定の手数料の計算                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTL" text-align="center">                  
						<fo:block>                     
							金額/係数                  
						</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>
											小計   
										</fo:block>
										<fo:block>
											(CHFを
											<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>
											に換算した相当額)
										</fo:block>	
									</xsl:when>
									<xsl:when test="@currency = 'EQU'">
										<fo:block>
											小計   
										</fo:block>
										<fo:block>
											(USDを
											<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>
											に換算した相当額)
										</fo:block>	
									</xsl:when>
									<xsl:otherwise>	
										<fo:block>   
											小計    (<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>                  
							送付手数料                  
						</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>                  
							調査手数料                  
						</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>
								国際調査機関   
							</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>
							国際出願手数料   
						</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>                     
								基本手数料                   
							</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">                     
							(最初の30枚まで)                  
						</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">                  
							30枚を超える用紙の枚数                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
						<fo:block></fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTR">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:choose>                           
									<xsl:when test=".//sheets-over-30">
										<xsl:value-of select=".//sheets-over-30"></xsl:value-of>                           
									</xsl:when>                           
									<xsl:otherwise>                              
										<xsl:text>0</xsl:text>                              
                           
									</xsl:otherwise>                        
								</xsl:choose>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                  
						<fo:block>12-5</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
						<fo:block start-indent="5mm">                  
							用紙1枚の手数料                   
						</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">                  
							合計の手数料                  
						</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">                     
								指定手数料                     
							</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">                     
								国際出願に含まれる指定国数                     
							</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">                     
								支払うべき指定手数料の数（上限は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">                     
								1指定当たりの手数料                     
							</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">                     
								合計の指定手数料                     
							</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')">
									国際出願手数料の合計 (i-R)                  
								</xsl:when>
								<xsl:otherwise>
									国際出願手数料の合計 (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">
									優先権証明書請求手数料
								</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">
									優先権証明書を請求した数
								</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">
									１優先権証明書当たりの手数料
								</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>
									優先権証明書請求手数料の合計: 
								</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>
								優先権の回復請求手数料
							</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">
								優先権の回復請求の数
							</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>
								優先権の回復請求手数料の合計
							</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>
								先の調査書類手数料                     
							</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">                        
										納付するべき手数料の合計 (T+S+I+P+RP+ES)                     
									</fo:inline>                  
							</xsl:if>
							<xsl:if test="not(.//earlier-search-document-fee)">
									<fo:inline font-weight="bold">                        
										納付するべき手数料の合計 (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">                        
										納付するべき手数料の合計 (T+S+I+P+ES)                     
									</fo:inline>                  
							</xsl:if>
							<xsl:if test="not(.//earlier-search-document-fee)">
									<fo:inline font-weight="bold">                        
										納付するべき手数料の合計 (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">                        
								支払方法                     
							</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">
										送付手数料:   <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>
										調査手数料: <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>
										国際出願手数料 :   <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>   
											優先権証明書請求手数料:   <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">                           
									予納台帳                        
								</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>                        
								受理官庁                     
							</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>                           
									上記手数料合計額の請求に対する承認                        
								</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>                           
									上記手数料合計額に対する不足額又は過剰額を清算することの承認                        
								</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>                           
									優先権証明書にかかる手数料の請求に対する承認                        
								</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>                           
									この官庁に、その受理官庁(RO)、国際調査機関(ISA)、また該当する場合は国際予備審査機関(IPEA)としての資格に基づき、当該官庁の自動引き落とし手続きの条件に従って、本出願の処理に係る手数料をどれもこの口座から自動的に引き落とす権限が与えられます。                        
								</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>                        
								予納台帳番号                     
							</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>                        
								日付                     
							</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">                        
								記名押印                     
							</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"> 
											(出願人が「はい」を選択した。) 
										</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 デジタル署名)
										</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">
										支払いに関する連絡先
									</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">
									払戻し
								</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>
										払戻しを行う官庁
									</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>
										払戻先の予納台帳番号
									</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>
										口座名義人
									</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>                        
									日付                     
								</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)'">
				文字コード形式による電子出願の減額
			</xsl:when>
			<xsl:when test="$reduction='PCT-SAFE reduction (image)'">
				完全な電子出願による減額
			</xsl:when>
			<xsl:when test="$reduction='PCT-SAFE reduction (EASY)'">
				EASYによる減額
			</xsl:when>
			<xsl:when test="$reduction='electronic-application-form'">
				EASYモード出願による減額
			</xsl:when>
			<xsl:when test="$reduction='electronic-filing-image-description'">
				電子出願（PDFデータ）による減額
			</xsl:when>
			<xsl:when test="$reduction='electronic-filing-full-xml'">
				電子出願（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">  
									出願人による言及
								</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">                        
										出願人による言及
									</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">
						普通預金口座または当座預金口座からの自動引き落とし承認											
					</xsl:when>
					<xsl:otherwise>
						予納台帳引き落としの承認
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="name($pType/*)='credit-card'">
				クレジットカード
			</xsl:when>
			<xsl:when test="name($pType/*)='postal-order'">
				郵便為替
			</xsl:when>
			<xsl:when test="name($pType/*)='cash'">
				現金
			</xsl:when>
			<xsl:when test="name($pType/*)='coupons'">
				クーポン
			</xsl:when>
			<xsl:when test="name($pType/*)='cheque'">
				小切手
			</xsl:when>
			<xsl:when test="name($pType/*)='bank-draft'">
				銀行振込
			</xsl:when>
			<xsl:when test="name($pType/*)='stamps'">
				特許印紙
			</xsl:when>
			<xsl:when test="name($pType/*)='other'">
				その他 : 
				<xsl:choose>
					<xsl:when test="$pType='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">                     
								様式 PCT/RO/134<fo:block />この寄託された微生物又はその他の生物材料に関する表示 (ＰＣＴ規則13の２)は、                     
							</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">                  
							右記によって作成された。                  
						</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">                     
								国際出願番号                      
							</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">                        
								出願人又は代理人の書類記号                      
							</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">                        
									下記の表示は発明の詳細な説明中に記載された微生物又は生物材料に関連している。                        
								</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">  
											記載頁                        
										</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">  
											行                        
										</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">  
											段落番号                        
										</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">                        
									寄託の表示                        
								</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> 
									寄託機関の名称 
								</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>                        
									寄託機関のあて名                        
								</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>                        
									寄託の日付                        
								</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>                     
								受託番号                     
							</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">                           
										追加の表示                           
									</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">                        
									この表示を行うための指定国                        
								</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'">                                  
											 すべての指定国                               
										</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">                           
										追加事項の表示の届け出                           
									</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">                      
									右記の表示は後に国際事務局に届け出る予定である。                        
								</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">
								受理官庁記入欄  
							</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">
								この用紙は国際出願とともに受理した
							</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">
							(はい/いいえ) 
						</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">
							権限のある職員 
						</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">  
								国際事務局記入欄  
							</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">
								この用紙が国際事務局に受理された日
							</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">
							権限のある職員 
						</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'">
				はい
			</xsl:when>
			<xsl:when test="$yes_or_no_or_none='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">
								委任状（特許協力条約に基づく国際出願に関する委任）（規則９０．４）
							</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>
							右記によって作成された。
						</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">
								下名の出願人は、ここに
							</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">
									右に記載の者を
								</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">
								 右資格の者と定めて、
							</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'">
										代理人 
									</xsl:when>
									<xsl:when test=".//attorney-or-agent[1]/@rep-type='attorney'">
										代理人
									</xsl:when>
									<xsl:when test=".//attorney-or-agent[1]/@rep-type='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">
								右官庁に対して 
							</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'">
										全ての適格な国際機関
									</xsl:when>
									<xsl:when test="name(.//represent-before/*)='isa-only'">
										国際調査機関のみ
									</xsl:when>
									<xsl:when test="name(.//represent-before/*)='ipea-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">
								下記により特定される国際出願について下名の出願人を代理し、
							</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">
								発明の名称
							</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">
								出願人又は代理人の書類記号 
							</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">
								国際出願番号（可能な場合）
							</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">
								受理官庁 
							</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">
								また下名の出願人の為に支払いを行い又は受ける権限を与えます。
							</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">
								日付
							</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">
								出願人  
							</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>  
							この欄に記載した者は
						</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>
											 死亡による
											<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>                    
											 は   
											<xsl:value-of select="@to-dead-inventor"></xsl:value-of>                    
											 死亡による
											<!-- 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>	
												 死亡による
												 は 
											<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>	
												 死亡による
												 は 
											<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>                    
											 は  
											<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>                    
													 死亡による
												</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>                    
											 死亡による
										</xsl:when>										
										<xsl:otherwise>
											<xsl:call-template name="kind_ChoiceText">
												<xsl:with-param name="kind" select="@kind"></xsl:with-param>
											</xsl:call-template>                    
											 は   
											<xsl:value-of select="@to-dead-inventor"></xsl:value-of>                    
											 死亡による
										</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>  
							右の指定国についての出願人である。
						</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>  
								右の指定国についての発明者である。
							</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>
									あて名 
								</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>
									あて名 
								</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>
									あて名 
								</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>
									あて名 
								</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>
									あて名 
								</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>  
							国籍（国名）
						</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>  
							住所（国名）
						</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>
								電話番号  
							</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>
								ファクシミリ番号  
							</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>
								電子メール  
							</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>
								電子メール使用の承認  
							</fo:block>
							<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">  
									<fo:block>
										通知の写しを事前に送付するために利用することを承認する。  
									</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>
								電子メール使用の承認  
							</fo:block>
							<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">
									<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 (電子メールに記載のリンクを使用してePCTで書類を閲覧/ダウンロード)
													</xsl:when>
													<xsl:otherwise>
														電子メール (PDF ファイル添付)
													</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>
								出願人登録番号   
							</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">                  
									その他の出願人又は発明者                
								</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>                
								この欄に記載した者は              
							</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'">                      
											発明者である  
											<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>
												 死亡による
												<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>                    
												 は 
												<xsl:value-of select="@to-dead-inventor"></xsl:value-of>                    
												 死亡による
												<!-- 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>	
													 死亡による
													 は 
												<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>	
													 死亡による
													 は 
												<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>                    
												 は 
												<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>                    
														 死亡による
													</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>                    
												 死亡による
											</xsl:when>		
											<xsl:otherwise>
												<xsl:call-template name="kind_ChoiceText">
													<xsl:with-param name="kind" select="@kind"></xsl:with-param>
												</xsl:call-template>                    
												 は 
												<xsl:value-of select="@to-dead-inventor"></xsl:value-of>                    
												 死亡による
											</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>  
									右の指定国についての出願人である。  
								</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>  
									右の指定国についての発明者である。
								</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>  
									右の指定国についての発明者である。  
								</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>
											あて名 
										</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>
											あて名 
										</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>
											あて名 
										</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>
											あて名 
										</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>
											あて名 
										</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>                  
									国籍（国名）                  
								</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>                  
									住所（国名）                  
								</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>                  
									電話番号                
								</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>                  
									ファクシミリ番号                
								</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>                  
									電子メール                
								</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>
									電子メール使用の承認  
								</fo:block>
								<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">  
										<fo:block>
											通知の写しを事前に送付するために利用することを承認する。  
										</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>
									電子メール使用の承認  
								</fo:block>
								<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">
										<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 (電子メールに記載のリンクを使用してePCTで書類を閲覧/ダウンロード)
														</xsl:when>
														<xsl:otherwise>
															電子メール (PDF ファイル添付)
														</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>                  
									出願人登録番号                 
								</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">
								代理人又は共通の代表者、通知 のあて名  
							</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">
									下記の者は国際機関において右 記のごとく出願人のために行動 する。
								</xsl:when>
								<xsl:when test=".//correspondence-address">
									代理人又は共通の代表者が選任されておらず、下記枠内に特に通知が送付されるあて名を記載している
								</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>
										通知のあて名
											<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>
										あて名 
									</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>
										あて名 
									</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>
								電話番号  
							</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>
								ファクシミリ番号  
							</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>
								電子メール  
							</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>
								電子メール使用の承認  
							</fo:block>
							<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">  
									<fo:block>
										通知の写しを事前に送付するために利用することを承認する。  
									</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>
								電子メール使用の承認  
							</fo:block>
							<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">
									<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 (電子メールに記載のリンクを使用してePCTで書類を閲覧/ダウンロード)
													</xsl:when>
													<xsl:otherwise>
														電子メール (PDF ファイル添付)
													</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>
								代理人登録番号  
							</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">
										その他の代理人
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTR">
								<fo:block>
									<fo:inline font-weight="bold">
										筆頭代理人と同じあて名を有する代理人
										<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>
							氏名 
						</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>
							氏名 
						</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>  
				上記事実の日付
			<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">
								当該出願人は、先の出願により保護を求められている対象の発明者である。
							</xsl:when>
							<xsl:otherwise>
								<xsl:text>は、</xsl:text>
								<fo:block></fo:block>
								本国際出願によって保護を求められている対象の発明者である。
							</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">
								当該出願人は、先の出願により保護を求められている対象の発明者である。
							</xsl:when>
							<xsl:otherwise>
								本国際出願によって保護を求められている対象の発明者である。
							</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">
								当該出願人は、先の出願により保護を求められている対象の発明者である。
							</xsl:when>
							<xsl:otherwise>
								本国際出願によって保護を求められている対象の発明者である。
							</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">
								当該出願人は、先の出願により保護を求められている対象の発明者である。
							</xsl:when>
							<xsl:otherwise>
								本国際出願によって保護を求められている対象の発明者である。
							</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'">
								 は 
							</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">
								当該出願人は、先の出願により保護を求められている対象の発明者である。
							</xsl:when>
							<xsl:otherwise>
								本国際出願によって保護を求められている対象の発明者である。
							</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()">
							 は 
							<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">
								当該出願人は、先の出願により保護を求められている対象の発明者である。
							</xsl:when>
							<xsl:otherwise>
								本国際出願によって保護を求められている対象の発明者である。
							</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()">
							 は 
							<fo:block></fo:block>
							<xsl:call-template name="showAddress"></xsl:call-template>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="parent::entitlement-to-claim-priority">
								当該出願人は、先の出願により保護を求められている対象の発明者である。
							</xsl:when>
							<xsl:otherwise>
								本国際出願によって保護を求められている対象の発明者である。
							</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 -->
					は、発明者たる
				</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')">
						は、発明者たる
					</xsl:when>
					<xsl:when test="@tense='is' and not($lang='fr')">
						は、発明者たる
					</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')">
					との間に締結された契約   
				</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>
						 および 
					</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'">
					上記事実の日付
					<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'">
					との間に締結された契約   
				</xsl:if>
				<xsl:if test="$lang='ja' or $lang='ko'">
					<fo:block></fo:block>
					との間に締結された契約   
				</xsl:if>
			</xsl:when>  
			<xsl:when test="$matter='iv'">
				<!-- assignment -->
				<xsl:if test="not($lang='ja' or $lang='ko' or $lang='zh')">
					へなされた譲渡
				</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'">
					上記事実の日付
					<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='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'">
					へなされた譲渡
				</xsl:if>
				<xsl:if test="$lang='ja' or $lang='ko'">
					<fo:block></fo:block>
					へなされた譲渡
				</xsl:if>
			</xsl:when>
			<xsl:when test="$matter='v'">
				<!-- consent -->
				<xsl:if test="not($lang='ja' or $lang='ko' or $lang='zh')">
					のために与えた同意
				</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'">
					上記事実の日付
					<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="./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'">
					のために与えた同意
				</xsl:if>
				<xsl:if test="$lang='ja' or $lang='ko'">
					<fo:block></fo:block>
					のために与えた同意
				</xsl:if>
			</xsl:when>  
			<xsl:when test="$matter='vi'">
				<!-- court order -->
				<xsl:if test="not($lang='ja' or $lang='ko' or $lang='zh')">
					への移転を命じる裁判所命令
				</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')">
					上記事実の日付
					<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='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'">
						から
					</xsl:when>
					<xsl:otherwise>
						から
					</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>
					への移転を命じる裁判所命令
				</xsl:if>
			</xsl:when>  
			<xsl:when test="$matter='vii'">
				<!-- transfer -->
				<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>
				<xsl:choose>
					<xsl:when test="$lang='ja' or $lang='ko'">
						<xsl:value-of select="./kind-of-transfer"></xsl:value-of>
						 によってなされた
						<fo:block></fo:block>
					</xsl:when>
					<xsl:when test="$lang='zh'">
						 によってなされた
					</xsl:when>
					<xsl:otherwise>
						への資格の移転
					</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>
				から
				<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>
						への資格の移転
					</xsl:when>
					<xsl:when test="$lang='zh'">
						への資格の移転
						<xsl:text>(</xsl:text>
						<xsl:value-of select="./kind-of-transfer"></xsl:value-of>
						<xsl:text>)</xsl:text>
					</xsl:when>
					<xsl:otherwise>
						 によってなされた
						<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>
				出願人の氏名又は名称が
				<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'">
						に変更されたこと。
					</xsl:when>
					<xsl:when test="$lang='de'">
						in
					</xsl:when>
					<xsl:when test="$lang='fr'">
						en
					</xsl:when>
					<xsl:otherwise>
						から
					</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>
						に変更されたこと。
					</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'">
							上記事実の日付
						</xsl:when>
						<xsl:otherwise>
							上記事実の日付
						</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>
								あて名 
							</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>
								あて名 
							</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">  
									その他の代理人
								</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>  
								電話番号
							</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>  
								ファクシミリ番号
							</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>  
								電子メール
							</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>
									電子メール使用の承認  
								</fo:block>
								<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">  
										<fo:block>
											通知の写しを事前に送付するために利用することを承認する。  
										</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>
									電子メール使用の承認  
								</fo:block>
								<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">
										<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 (電子メールに記載のリンクを使用してePCTで書類を閲覧/ダウンロード)
														</xsl:when>
														<xsl:otherwise>
															電子メール (PDF ファイル添付)
														</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>
								代理人登録番号
							</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">
											受理官庁記入欄
										</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">
										国際出願番号 
									</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">
										国際出願日
									</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">
										(受付印)
									</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">	
														
													</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">
										様式 PCT/RO/101 <fo:block />この特許協力条約に基づく国際出願願書は、
									</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">
									右記によって作成された。
								</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">
										申立て
									</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>
											出願人は、この国際出願が特許協力条約に従って処理されることを請求する。
										</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">
										出願人によって指定された受理官庁
									</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">
										出願人又は代理人の書類記号 
									</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">
										発明の名称
									</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">
												優先権主張
											</fo:inline>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdTBR">
										<fo:block>
											<fo:inline font-weight="bold">
												なし
												<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">
											特定された国際調査機関(ISA)
										</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">
												先の調査の結果の利用請求
											</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>
											出願日
										</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>
											出願番号
										</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>
											国名(又は広域官庁)
										</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>
												陳述（規則４．１２（ｉｉ））：
											</fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdR">
											<fo:block padding-top="1pt">
												<fo:inline font-weight="bold">
													該当する場合には異なる言語で出願されたことを除き、この国際出願は先の調査が行われた出願と同一若しくは実質的に同一である。
												</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>
												書類が国際調査機関が認める形式及び方法で国際調査機関によって入手可能であるため、出願人が受理官庁又は国際調査機関に提出することを要求されない(規則12の2.1(c)及び(d)並びに12の2.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">
														先の調査結果の写し
													</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">
														先の出願の写し
													</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">
														ＩＳＡが認める言語による先の出願の翻訳文
													</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">
														ＩＳＡが認める言語による先の調査結果の翻訳文
													</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">
														先の調査結果に列記された文献の写し
													</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>
												出願人は受理官庁に対し、先の調査の結果の写しを作成して国際調査機関へ送付することを請求する(規則12の2.1(b)及び(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">
														先の調査結果の写し
													</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">
														先の出願の写し
													</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">
														先の調査結果に列記された文献の写し
													</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">
												先の調査および分類の結果の利用
											</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>
											出願日
										</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>
											出願番号
										</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>
											国名(又は広域官庁)
										</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>
												出願人は、受理官庁が先の調査の結果を国際調査機関へ送付しないことを請求する(規則23の2.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>
												出願人は、受理官庁が先の調査及び分類の結果を国際調査機関へ送付することを承諾する(規則23の2.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>
												出願人は、受理官庁が先の国際調査及び分類の結果を国際調査機関へ送付することを承諾する(規則23の2.2(a)並びに条約第30条(2)(a)及び(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">
								国の指定
							</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>
								広域特許
								<fo:block></fo:block>
								(他の種類の保護又は取扱いを 求める場合には括弧内に記載す る。)
							</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">
											 及び 
											<xsl:choose>
												<xsl:when test="$organization='AP'">
													 ハラレプロトコルと 
												</xsl:when>
												<xsl:when test="$organization='EA'">
													 ユーラシア特許条約と 
												</xsl:when>
												<xsl:when test="$organization='EP'">
													 ヨーロッパ特許条約と 
												</xsl:when>
												<xsl:when test="$organization='OA'">
													 アフリカ知的所有権機構と 
												</xsl:when>
											</xsl:choose>
											<xsl:text>
											</xsl:text>
											 特許協力条約の締約国である他の国 
										</xsl:if>
										<!-- test here to show "(except {state code})" if a state 
							  is missing from the organization -->
										<xsl:if test="$docOrgCount != $lookupOrgCount">(ただし、以下の国を除く: 
											<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>
							国内特許
							<fo:block></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: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>
								国内特許
								<fo:block></fo:block>
								(この版の 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">
									親出願又は親特許の表示
								</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">
									指定国
								</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>
								保護の種類
							</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>
								親出願又は親特許の番号
							</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>
								親出願の出願日又は親特許の特許日
							</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">
									指定の確認の宣言
								</fo:inline>
							</fo:block>
							<fo:block padding-before="2mm">
								出願人は、上記の指定に加えて、規則4.9(b)の規定に基づき、特許協力条約のもとで認められる他の全ての国の指定を行う。ただし、V-6欄に示した国の指定を除く。出願人は、これらの追加される指定が確認を条件としていること、並びに優先日から１５月が経過する前にその確認がなされない指定は、この期間の経過後に、取り下げられたものとみなされることを宣言する。
							</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">
									指定の確認から除かれる国
								</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>
											なし
											<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">
								国の指定 
							</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">
								     この願書を用いてされた国際出願は、規則4.9(a)に基づき、国際出願の時点で拘束される全てのPCT締約国を指定し、取得しうるあらゆる種類の保護を求め、及び該当する場合には広域と国内特許の両方を求める国際出願となる。
							</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"/-->
									V-2欄は、特定の国の指定を除外するときに使用することができ、この指定を除外することができるのは、出願の際若しくは規則26の2.1により上記の特定の国における先の国内出願を基礎とする優先権を国際出願の第VI欄で主張する結果、その国の国内法令に基づいてこの先の国内出願の効果が消滅するのを避けるのを目的とする場合に限る。しかし、いったん除外した指定は、それを変更することはできない。
								</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">
										親出願又は親特許の表示
									</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">
										指定国
									</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>
									保護の種類
								</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>
										親出願又は親特許の番号
									</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>
									親出願の出願日又は親特許の特許日
								</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">
										親出願又は親特許の表示
									</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">
										指定国
									</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>
									保護の種類
								</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>
										親出願又は親特許の番号
									</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>
									親出願の出願日又は親特許の特許日
								</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">
								申立て
							</fo:inline>
						</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="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: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>
							発明者の特定に関する申立て
						</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>
							出願し及び特許を与えられる国際出 願日における出願人の資格に関する 申立て
						</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>
							先の出願の優先権を主張する国際出 願日における出願人の資格に関する 申立て
						</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>
							発明者である旨の申立て（米国を指定国とする場合）
						</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>
							不利にならない開示又は新規性喪失 の例外に関する申立て
						</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">
								照合欄 
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC" text-align="center">
						<fo:block>
							用紙の枚数
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTL" text-align="center">
						<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>IX-1</xsl:text>
						</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="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>
							明細書
							<xsl:if test=".//cl-sequence-listing[@page-count] or .//processing-instruction('seqlist')">
								（配列表または配列表に関連するテーブルを除く）
							</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>
							請求の範囲
						</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>
							要約 
						</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>
							図面 
						</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>
								国際出願に含まれる用紙の枚数(明細書の配列表を除く）
							</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>
													明細書の配列表
												</fo:block>
											</xsl:when>
											<xsl:otherwise>
												<fo:block>
													明細書の配列表
												</fo:block>
											</xsl:otherwise>
										</xsl:choose>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<xsl:choose>
										<xsl:when test=".//cl-sequence-listing[@page-count]">
											<fo:block>
												明細書の配列表
											</fo:block>
										</xsl:when>
										<xsl:otherwise>
											<fo:block>
												明細書の配列表
											</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>
										電子形式の配列表に関連するテーブル
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										明細書のヌクレオチド又はアミノ酸配列表に関連する表
									</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">
							合計
						</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">
								添付書類
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTL" text-align="center">
						<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>
				<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>
								手数料計算用紙
							</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>
								個別の委任状の原本
							</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>
								包括委任状の原本
							</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>
								包括委任状の写し
							</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">
													包括委任状番号: 
													<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">
													包括委任状番号: 
													<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>
								記名押印(署名)の欠落についての説明書
							</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>
								優先権証明書
							</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">
												優先権証明書 
												<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">
												優先権証明書 
												<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>
									優先権の回復に関する陳述書
							</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>
								国際出願の翻訳文
								<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>
								寄託した微生物又は他の生物材料に関する書面
							</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>
										規則13の3に基づき提出する国際調査のための電子形式による配列表( 付属書 C/ST.25形式テキストファイル)
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										規則13の3に基づき提出する国際調査のための配列表
									</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">
										規則13の3に基づき提出する国際調査のための写しを含む追加的写し
									</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>
										電子形式の配列表に関連するテーブル
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										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">
										規則13の3に基づき提出する国際調査のための写し（国際出願の一部を構成しない）
									</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">
										国際調査のための写しを含む追加的写し
									</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>
								先の調査結果の写し
							</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 電子出願
							</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>
								規則13の3に基づき提出する附属書C/ST.25形式テキストファイル内の情報が、国際出願に含まれる配列表と同一であることを確認する陳述書
							</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>
								その他
							</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">
								要約とともに提示する図の番号
							</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">
								国際出願の使用言語名
							</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">
									この国際出願を優先権書類デジタルアクセスサービス (DAS) で利用可能とすることを受理官庁に対して請求する (国際出願番号および国際出願日が意図されている国際出願に該当することを条件として)。
								</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">
									はい
								</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">
								受理官庁記入欄
							</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">
								国際出願として提出された書類 の実際の受理の日
							</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">
								図面 
							</fo:inline>
						</fo:block>
						<fo:block padding-before="1.5mm">
							受理された
						</fo:block>
						<fo:block padding-before="1.5mm">
							不足図面がある
						</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">
								国際出願として提出された書類 を補完する書類又は図面であっ てその後期間内に提出されたも のの実際の受理の日（訂正日）
							</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">
								特許協力条約第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">
								出願人により特定された国際調 査機関
							</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">
								調査手数料未払いにつき、国際 調査機関に調査用写しを送付し ていない
							</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">
								国際事務局記入欄
							</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">
								記録原本の受理の日
							</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'">
											先の広域出願に基づく優先権主張
										</xsl:when>
										<xsl:when test="@kind='national'">
											先の国内出願に基づく優先権主張
										</xsl:when>
										<xsl:when test="@kind='international'">
											先の国際出願に基づく優先権主張
										</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>
								出願日
							</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>
									出願番号
								</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'">
										受理官庁名
									</xsl:when>
									<xsl:when test="@kind='national'">
										パリ条約同盟国名又はWTO加盟国名
									</xsl:when>
									<xsl:when test="@kind='regional'">
										広域官庁名 
									</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>
									先の出願を行った工業所有権の保 護のためのパリ条約同盟国若しく は世界貿易機関の加盟国
								</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>
									優先権の回復
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block padding-top="1pt">
									<fo:inline font-weight="bold">
										優先権の回復を受理官庁に対して請求する。
									</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">
									優先権証明書送付の請求
								</fo:inline>
							</fo:block>
							<fo:block padding-before="2mm">
								国際事務局に対して、上記の先の出願のうち、右記のものについては、該当する場合には記載されたアクセスコードを利用し、優先権書類に記載されている事項に係る情報を電子図書館から、取得することを請求する。
							</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">
											アクセスコード：
											<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">
									優先権証明書送付の請求
								</fo:inline>
							</fo:block>
							<fo:block padding-before="2mm">
								上記の先の出願のうち、右記の番号のものについては、出願書類の認証謄本を電子図書館から取得し国際事務局へ送付することを、受理官庁に対して請求している。
							</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">
											アクセスコード：
											<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">
									優先権証明書送付の請求
								</fo:inline>
							</fo:block>
							<fo:block padding-before="2mm">
								受理官庁に対して、上記の先の出願のうち、右記のものについては、優先権書類を作成し国際事務局に送付することを請求する。
							</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">
									引用による補充 : 
								</fo:inline>
							</fo:block>
							<fo:block padding-before="2mm">
								条約第１１条（１）(iii)（ｄ）若しくは（ｅ）に規定する国際出願の要素、又は規則２０．５（ａ）若しくは規則２０．５の２（ａ）の規定に基づく明細書、請求の範囲若しくは図面がこの国際出願には含まれていないが、受理官庁が条約第１１条（１）(iii)に規定する要素の１つ以上を最初に受領した日において優先権を主張する先の出願にそれが完全に含まれている場合には、規則２０．６に基づく確認の手続を条件として、その要素又は部分 を規則２０．６の規定によりこの国際出願に引用して補充することを請求する。
							</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'">
				一部継続
			</xsl:when>
			<xsl:when test="$kind-text = 'certificate-of-addition'">
				追加証
			</xsl:when>
			<xsl:when test="$kind-text = 'continuation'">
				継続
			</xsl:when>
			<xsl:when test="$kind-text = 'inventors-certificate-of-addition'">
				追加発明者証
			</xsl:when>
			<xsl:when test="$kind-text = 'patent-of-addition'">
				追加特許
			</xsl:when>
			<xsl:when test="$kind-text = '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']">
	         	名称
	         </xsl:when>
	         <xsl:otherwise>
	         	氏名(姓名)
	         </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'">   
				すべての指定国   
			</xsl:when>   
			<xsl:when test="$designation/@designation='all-except-us'">   
				米国を除く全ての指定国   
			</xsl:when>   
			<xsl:when test="$designation/@designation='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'">
				国際見本市
			</xsl:when>
			<xsl:when test="$type='publication'">
				刊行物
			</xsl:when>
			<xsl:when test="$type='abuse'">
				不当使用
			</xsl:when>
			<xsl:when test="$type='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'">
			出願人である   
   	  	</xsl:when>
   	  	<xsl:when test="$app-type='applicant-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'">
				相続人(男性)
			</xsl:when>
			<xsl:when test="$kind='heiress'">
				相続人(女性)
			</xsl:when>
			<xsl:when test="$kind='heirs'">
				相続人(複数)
			</xsl:when>
			<xsl:when test="$kind='executor'">
				遺言執行者(男性)
			</xsl:when>
			<xsl:when test="$kind='executrix'">
				遺言執行者(女性)
			</xsl:when>
			<xsl:when test="$kind='executors'">
				遺言執行者(複数)
			</xsl:when>
			<xsl:when test="$kind='legal-heirs'">
				法定相続人
			</xsl:when>
			<xsl:when test="$kind='legal-representative'">
				法定代理人
			</xsl:when>
			<xsl:when test="$kind='legal-representatives'">
				法定代理人(複数)
			</xsl:when>
			<xsl:when test="$kind='administrator'">
				管財人(男性)				
   			</xsl:when>
			<xsl:when test="$kind='administratrix'">
				管財人(女性)				
   			</xsl:when>
			<xsl:when test="$kind='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'">
				全ての適格な国際機関
			</xsl:when>
			<xsl:when test="$arg='isa-only'">
				国際調査機関のみ				
			</xsl:when>
			<xsl:when test="$arg='ipea-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'">
   	  		代理人 
   	  	</xsl:when>
   	  	<xsl:when test="$rep-type='attorney'">
	   	  	代理人
   	  	</xsl:when>
   	  	<xsl:when test="$rep-type='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'">
				アンドラ 
			</xsl:when>
			<xsl:when test="$country='AE'">
				アラブ首長国連邦 
			</xsl:when>
			<xsl:when test="$country='AF'">
				アフガニスタン 
			</xsl:when>
			<xsl:when test="$country='AG'">
				アンティグア・バーブーダ 
			</xsl:when>
			<xsl:when test="$country='AI'">
				アンギラ 
			</xsl:when>
			<xsl:when test="$country='AL'">
				アルバニア 
			</xsl:when>
			<xsl:when test="$country='AM'">
				アルメニア 
			</xsl:when>
			<xsl:when test="$country='AN'">
				
			</xsl:when>
			<xsl:when test="$country='AO'">
				アンゴラ 
			</xsl:when>
			<xsl:when test="$country='AP'">
				
			</xsl:when>
			<xsl:when test="$country='AQ'">
				南極大陸 
			</xsl:when>
			<xsl:when test="$country='AR'">
				アルゼンチン 
			</xsl:when>
			<xsl:when test="$country='AS'">
				アメリカ領サモア 
			</xsl:when>
			<xsl:when test="$country='AT'">
				オーストリア 
			</xsl:when>
			<xsl:when test="$country='AU'">
				オーストラリア 
			</xsl:when>
			<xsl:when test="$country='AW'">
				アルバ 
			</xsl:when>
			<xsl:when test="$country='AX'">
				オーランド諸島 
			</xsl:when>
			<xsl:when test="$country='AZ'">
				アゼルバイジャン 
			</xsl:when>
			<xsl:when test="$country='BA'">
				ボスニア・ヘルツェゴビナ 
			</xsl:when>
			<xsl:when test="$country='BB'">
				バルバドス 
			</xsl:when>
			<xsl:when test="$country='BD'">
				バングラデシュ 
			</xsl:when>
			<xsl:when test="$country='BE'">
				ベルギー 
			</xsl:when>
			<xsl:when test="$country='BF'">
				ブルキナファソ 
			</xsl:when>
			<xsl:when test="$country='BG'">
				ブルガリア 
			</xsl:when>
			<xsl:when test="$country='BH'">
				バーレーン 
			</xsl:when>
			<xsl:when test="$country='BI'">
				ブルンジ 
			</xsl:when>
			<xsl:when test="$country='BJ'">
				ベナン 
			</xsl:when>
			<xsl:when test="$country='BM'">
				バミューダ 
			</xsl:when>
			<xsl:when test="$country='BN'">
				ブルネイ・ダルサラーム 
			</xsl:when>
			<xsl:when test="$country='BO'">
				ボリビア多民族国 
			</xsl:when>
			<xsl:when test="$country='BQ'">
				ボネール、シント・ユースタティウス及びサバ 
			</xsl:when>
			<xsl:when test="$country='BR'">
				ブラジル 
			</xsl:when>
			<xsl:when test="$country='BS'">
				バハマ 
			</xsl:when>
			<xsl:when test="$country='BT'">
				ブータン 
			</xsl:when>
			<xsl:when test="$country='BV'">
				ブーベ島 
			</xsl:when>
			<xsl:when test="$country='BW'">
				ボツワナ 
			</xsl:when>
			<xsl:when test="$country='BX'">
				
			</xsl:when>
			<xsl:when test="$country='BY'">
				ベラルーシ 
			</xsl:when>
			<xsl:when test="$country='BZ'">
				ベリーズ 
			</xsl:when>
			<xsl:when test="$country='CA'">
				カナダ 
			</xsl:when>
			<xsl:when test="$country='CC'">
				ココス（キーリング）諸島 
			</xsl:when>
			<xsl:when test="$country='CD'">
				コンゴ民主共和国 
			</xsl:when>
			<xsl:when test="$country='CF'">
				中央アフリカ共和国 
			</xsl:when>
			<xsl:when test="$country='CG'">
				コンゴ 
			</xsl:when>
			<xsl:when test="$country='CH'">
				スイス 
			</xsl:when>
			<xsl:when test="$country='CI'">
				コートジボワール 
			</xsl:when>
			<xsl:when test="$country='CK'">
				クック諸島 
			</xsl:when>
			<xsl:when test="$country='CL'">
				チリ 
			</xsl:when>
			<xsl:when test="$country='CM'">
				カメルーン 
			</xsl:when>
			<xsl:when test="$country='CN'">
				中華人民共和国 
			</xsl:when>
			<xsl:when test="$country='CO'">
				コロンビア 
			</xsl:when>
			<xsl:when test="$country='CR'">
				コスタリカ 
			</xsl:when>
			<xsl:when test="$country='CU'">
				キューバ 
			</xsl:when>
			<xsl:when test="$country='CV'">
				カーボベルデ 
			</xsl:when>
			<xsl:when test="$country='CW'">
				キュラソー 
			</xsl:when>
			<xsl:when test="$country='CX'">
				クリスマス島 
			</xsl:when>
			<xsl:when test="$country='CY'">
				キプロス 
			</xsl:when>
			<xsl:when test="$country='CZ'">
				チェキア 
			</xsl:when>
			<xsl:when test="$country='DE'">
				ドイツ 
			</xsl:when>
			<xsl:when test="$country='DJ'">
				ジブチ 
			</xsl:when>
			<xsl:when test="$country='DK'">
				デンマーク 
			</xsl:when>
			<xsl:when test="$country='DM'">
				ドミニカ国 
			</xsl:when>
			<xsl:when test="$country='DO'">
				ドミニカ共和国 
			</xsl:when>
			<xsl:when test="$country='DZ'">
				アルジェリア 
			</xsl:when>
			<xsl:when test="$country='EA'">
				
			</xsl:when>
			<xsl:when test="$country='EC'">
				エクアドル 
			</xsl:when>
			<xsl:when test="$country='EE'">
				エストニア 
			</xsl:when>
			<xsl:when test="$country='EG'">
				エジプト 
			</xsl:when>
			<xsl:when test="$country='EH'">
				西サハラ 
			</xsl:when>
			<xsl:when test="$country='EM'">
				
			</xsl:when>
			<xsl:when test="$country='EP'">
				
			</xsl:when>
			<xsl:when test="$country='ER'">
				エリトリア 
			</xsl:when>
			<xsl:when test="$country='ES'">
				スペイン 
			</xsl:when>
			<xsl:when test="$country='ET'">
				エチオピア 
			</xsl:when>
			<xsl:when test="$country='FI'">
				フィンランド 
			</xsl:when>
			<xsl:when test="$country='FJ'">
				フィジー 
			</xsl:when>
			<xsl:when test="$country='FK'">
				フォークランド（マルビナス）諸島 
			</xsl:when>
			<xsl:when test="$country='FM'">
				ミクロネシア連邦 
			</xsl:when>
			<xsl:when test="$country='FO'">
				フェロー諸島 
			</xsl:when>
			<xsl:when test="$country='FR'">
				フランス 
			</xsl:when>
			<xsl:when test="$country='GA'">
				ガボン 
			</xsl:when>
			<xsl:when test="$country='GB'">
				英国 
			</xsl:when>
			<xsl:when test="$country='GC'">
				
			</xsl:when>
			<xsl:when test="$country='GD'">
				グレナダ 
			</xsl:when>
			<xsl:when test="$country='GE'">
				ジョージア 
			</xsl:when>
			<xsl:when test="$country='GF'">
				フランス領ギアナ 
			</xsl:when>
			<xsl:when test="$country='GG'">
				ガーンジー 
			</xsl:when>
			<xsl:when test="$country='GH'">
				ガーナ 
			</xsl:when>
			<xsl:when test="$country='GI'">
				ジブラルタル 
			</xsl:when>
			<xsl:when test="$country='GL'">
				グリーンランド 
			</xsl:when>
			<xsl:when test="$country='GM'">
				ガンビア 
			</xsl:when>
			<xsl:when test="$country='GN'">
				ギニア 
			</xsl:when>
			<xsl:when test="$country='GP'">
				グアドループ 
			</xsl:when>
			<xsl:when test="$country='GQ'">
				赤道ギニア 
			</xsl:when>
			<xsl:when test="$country='GR'">
				ギリシャ 
			</xsl:when>
			<xsl:when test="$country='GS'">
				南ジョージア・南サンドウィッチ諸島 
			</xsl:when>
			<xsl:when test="$country='GT'">
				グアテマラ 
			</xsl:when>
			<xsl:when test="$country='GU'">
				グアム 
			</xsl:when>
			<xsl:when test="$country='GW'">
				ギニアビサウ 
			</xsl:when>
			<xsl:when test="$country='GY'">
				ガイアナ 
			</xsl:when>
			<xsl:when test="$country='HK'">
				中国香港 
			</xsl:when>
			<xsl:when test="$country='HM'">
				ハード島とマクドナルド諸島 
			</xsl:when>
			<xsl:when test="$country='HN'">
				ホンジュラス 
			</xsl:when>
			<xsl:when test="$country='HR'">
				クロアチア 
			</xsl:when>
			<xsl:when test="$country='HT'">
				ハイチ 
			</xsl:when>
			<xsl:when test="$country='HU'">
				ハンガリー 
			</xsl:when>
			<xsl:when test="$country='IB'">
				
			</xsl:when>
			<xsl:when test="$country='ID'">
				インドネシア 
			</xsl:when>
			<xsl:when test="$country='IE'">
				アイルランド 
			</xsl:when>
			<xsl:when test="$country='IL'">
				イスラエル 
			</xsl:when>
			<xsl:when test="$country='IM'">
				マン島 
			</xsl:when>
			<xsl:when test="$country='IN'">
				インド 
			</xsl:when>
			<xsl:when test="$country='IO'">
				イギリス領インド洋地域 
			</xsl:when>
			<xsl:when test="$country='IQ'">
				イラク 
			</xsl:when>
			<xsl:when test="$country='IR'">
				イラン・イスラム共和国 
			</xsl:when>
			<xsl:when test="$country='IS'">
				アイスランド 
			</xsl:when>
			<xsl:when test="$country='IT'">
				イタリア 
			</xsl:when>
			<xsl:when test="$country='JE'">
				ジャージー 
			</xsl:when>
			<xsl:when test="$country='JM'">
				ジャマイカ 
			</xsl:when>
			<xsl:when test="$country='JO'">
				ヨルダン 
			</xsl:when>
			<xsl:when test="$country='JP'">
				日本国 
			</xsl:when>
			<xsl:when test="$country='KE'">
				ケニア 
			</xsl:when>
			<xsl:when test="$country='KG'">
				キルギス 
			</xsl:when>
			<xsl:when test="$country='KH'">
				カンボジア 
			</xsl:when>
			<xsl:when test="$country='KI'">
				キリバス 
			</xsl:when>
			<xsl:when test="$country='KM'">
				コモロ 
			</xsl:when>
			<xsl:when test="$country='KN'">
				セントクリストファー・ネーヴィス 
			</xsl:when>
			<xsl:when test="$country='KP'">
				朝鮮民主主義人民共和国 
			</xsl:when>
			<xsl:when test="$country='KR'">
				大韓民国 
			</xsl:when>
			<xsl:when test="$country='KW'">
				クウェート 
			</xsl:when>
			<xsl:when test="$country='KY'">
				ケイマン諸島 
			</xsl:when>
			<xsl:when test="$country='KZ'">
				カザフスタン 
			</xsl:when>
			<xsl:when test="$country='LA'">
				ラオス人民民主共和国 
			</xsl:when>
			<xsl:when test="$country='LB'">
				レバノン 
			</xsl:when>
			<xsl:when test="$country='LC'">
				セントルシア 
			</xsl:when>
			<xsl:when test="$country='LI'">
				リヒテンシュタイン 
			</xsl:when>
			<xsl:when test="$country='LK'">
				スリランカ 
			</xsl:when>
			<xsl:when test="$country='LR'">
				リベリア 
			</xsl:when>
			<xsl:when test="$country='LS'">
				レソト 
			</xsl:when>
			<xsl:when test="$country='LT'">
				リトアニア 
			</xsl:when>
			<xsl:when test="$country='LU'">
				ルクセンブルク 
			</xsl:when>
			<xsl:when test="$country='LV'">
				ラトビア 
			</xsl:when>
			<xsl:when test="$country='LY'">
				リビア 
			</xsl:when>
			<xsl:when test="$country='MA'">
				モロッコ 
			</xsl:when>
			<xsl:when test="$country='MC'">
				モナコ 
			</xsl:when>
			<xsl:when test="$country='MD'">
				モルドバ共和国 
			</xsl:when>
			<xsl:when test="$country='ME'">
				モンテネグロ 
			</xsl:when>
			<xsl:when test="$country='MG'">
				マダガスカル 
			</xsl:when>
			<xsl:when test="$country='MH'">
				マーシャル諸島 
			</xsl:when>
			<xsl:when test="$country='MK'">
				北マケドニア 
			</xsl:when>
			<xsl:when test="$country='ML'">
				マリ 
			</xsl:when>
			<xsl:when test="$country='MM'">
				ミャンマー 
			</xsl:when>
			<xsl:when test="$country='MN'">
				モンゴル 
			</xsl:when>
			<xsl:when test="$country='MO'">
				中国マカオ 
			</xsl:when>
			<xsl:when test="$country='MP'">
				北マリアナ諸島 
			</xsl:when>
			<xsl:when test="$country='MQ'">
				マルティニーク 
			</xsl:when>
			<xsl:when test="$country='MR'">
				モーリタニア 
			</xsl:when>
			<xsl:when test="$country='MS'">
				モントセラト 
			</xsl:when>
			<xsl:when test="$country='MT'">
				マルタ 
			</xsl:when>
			<xsl:when test="$country='MU'">
				モーリシャス 
			</xsl:when>
			<xsl:when test="$country='MV'">
				モルディヴ 
			</xsl:when>
			<xsl:when test="$country='MW'">
				マラウイ 
			</xsl:when>
			<xsl:when test="$country='MX'">
				メキシコ 
			</xsl:when>
			<xsl:when test="$country='MY'">
				マレーシア 
			</xsl:when>
			<xsl:when test="$country='MZ'">
				モザンビーク 
			</xsl:when>
			<xsl:when test="$country='NA'">
				ナミビア 
			</xsl:when>
			<xsl:when test="$country='NC'">
				ニューカレドニア 
			</xsl:when>
			<xsl:when test="$country='NE'">
				ニジェール 
			</xsl:when>
			<xsl:when test="$country='NF'">
				ノーフォーク 
			</xsl:when>
			<xsl:when test="$country='NG'">
				ナイジェリア 
			</xsl:when>
			<xsl:when test="$country='NI'">
				ニカラグア 
			</xsl:when>
			<xsl:when test="$country='NL'">
				オランダ王国 
			</xsl:when>
			<xsl:when test="$country='NO'">
				ノルウェー 
			</xsl:when>
			<xsl:when test="$country='NP'">
				ネパール 
			</xsl:when>
			<xsl:when test="$country='NR'">
				ナウル 
			</xsl:when>
			<xsl:when test="$country='NU'">
				ニウエ 
			</xsl:when>
			<xsl:when test="$country='NZ'">
				ニュージーランド 
			</xsl:when>
			<xsl:when test="$country='OA'">
				
			</xsl:when>
			<xsl:when test="$country='OM'">
				オマーン 
			</xsl:when>
			<xsl:when test="$country='PA'">
				パナマ 
			</xsl:when>
			<xsl:when test="$country='PE'">
				ペルー 
			</xsl:when>
			<xsl:when test="$country='PF'">
				フランス領ポリネシア 
			</xsl:when>
			<xsl:when test="$country='PG'">
				パプアニューギニア 
			</xsl:when>
			<xsl:when test="$country='PH'">
				フィリピン 
			</xsl:when>
			<xsl:when test="$country='PK'">
				パキスタン 
			</xsl:when>
			<xsl:when test="$country='PL'">
				ポーランド 
			</xsl:when>
			<xsl:when test="$country='PM'">
				サンピエール島・ミクロン島 
			</xsl:when>
			<xsl:when test="$country='PN'">
				ピトケアン 
			</xsl:when>
			<xsl:when test="$country='PR'">
				プエルトリコ 
			</xsl:when>
			<xsl:when test="$country='PS'">
				パレスチナ 
			</xsl:when>
			<xsl:when test="$country='PT'">
				ポルトガル 
			</xsl:when>
			<xsl:when test="$country='PW'">
				パラオ 
			</xsl:when>
			<xsl:when test="$country='PY'">
				パラグアイ 
			</xsl:when>
			<xsl:when test="$country='QA'">
				カタール 
			</xsl:when>
			<xsl:when test="$country='RE'">
				レユニオン 
			</xsl:when>
			<xsl:when test="$country='RO'">
				ルーマニア 
			</xsl:when>
			<xsl:when test="$country='RS'">
				セルビア 
			</xsl:when>
			<xsl:when test="$country='RU'">
				ロシア連邦 
			</xsl:when>
			<xsl:when test="$country='RW'">
				ルワンダ 
			</xsl:when>
			<xsl:when test="$country='SA'">
				サウジアラビア 
			</xsl:when>
			<xsl:when test="$country='SB'">
				ソロモン諸島 
			</xsl:when>
			<xsl:when test="$country='SC'">
				セーシェル 
			</xsl:when>
			<xsl:when test="$country='SD'">
				スーダン 
			</xsl:when>
			<xsl:when test="$country='SE'">
				スウェーデン 
			</xsl:when>
			<xsl:when test="$country='SG'">
				シンガポール 
			</xsl:when>
			<xsl:when test="$country='SH'">
				セントヘレナ・アセンションおよびトリスタンダクーニャ 
			</xsl:when>
			<xsl:when test="$country='SI'">
				スロベニア 
			</xsl:when>
			<xsl:when test="$country='SJ'">
				スヴァールバル諸島およびヤンマイエン島 
			</xsl:when>
			<xsl:when test="$country='SK'">
				スロバキア 
			</xsl:when>
			<xsl:when test="$country='SL'">
				シエラレオネ 
			</xsl:when>
			<xsl:when test="$country='SM'">
				サンマリノ 
			</xsl:when>
			<xsl:when test="$country='SN'">
				セネガル 
			</xsl:when>
			<xsl:when test="$country='SO'">
				ソマリア 
			</xsl:when>
			<xsl:when test="$country='SR'">
				スリナム 
			</xsl:when>
			<xsl:when test="$country='SS'">
				南スーダン 
			</xsl:when>
			<xsl:when test="$country='ST'">
				サントメ・プリンシペ 
			</xsl:when>
			<xsl:when test="$country='SV'">
				エルサルバドル 
			</xsl:when>
			<xsl:when test="$country='SX'">
				シント・マールテン（オランダ領） 
			</xsl:when>
			<xsl:when test="$country='SY'">
				シリア・アラブ共和国 
			</xsl:when>
			<xsl:when test="$country='SZ'">
				エスワティニ 
			</xsl:when>
			<xsl:when test="$country='TC'">
				タークス・カイコス諸島 
			</xsl:when>
			<xsl:when test="$country='TD'">
				チャド 
			</xsl:when>
			<xsl:when test="$country='TF'">
				フランス領南方地域 
			</xsl:when>
			<xsl:when test="$country='TG'">
				トーゴ 
			</xsl:when>
			<xsl:when test="$country='TH'">
				タイ 
			</xsl:when>
			<xsl:when test="$country='TJ'">
				タジキスタン 
			</xsl:when>
			<xsl:when test="$country='TK'">
				トケラウ 
			</xsl:when>
			<xsl:when test="$country='TL'">
				東ティモール 
			</xsl:when>
			<xsl:when test="$country='TM'">
				トルクメニスタン 
			</xsl:when>
			<xsl:when test="$country='TN'">
				チュニジア 
			</xsl:when>
			<xsl:when test="$country='TO'">
				トンガ 
			</xsl:when>
			<xsl:when test="$country='TP'">
				東ティモール 
			</xsl:when>
			<xsl:when test="$country='TR'">
				トルコ 
			</xsl:when>
			<xsl:when test="$country='TT'">
				トリニダード・トバゴ 
			</xsl:when>
			<xsl:when test="$country='TV'">
				ツバル 
			</xsl:when>
			<xsl:when test="$country='TW'">
				台湾（中国台湾省） 
			</xsl:when>
			<xsl:when test="$country='TZ'">
				タンザニア連合共和国 
			</xsl:when>
			<xsl:when test="$country='UA'">
				ウクライナ 
			</xsl:when>
			<xsl:when test="$country='UG'">
				ウガンダ 
			</xsl:when>
			<xsl:when test="$country='UM'">
				合衆国領有小離島 
			</xsl:when>
			<xsl:when test="$country='US'">
				アメリカ合衆国 
			</xsl:when>
			<xsl:when test="$country='UY'">
				ウルグアイ 
			</xsl:when>
			<xsl:when test="$country='UZ'">
				ウズベキスタン 
			</xsl:when>
			<xsl:when test="$country='VA'">
				バチカン市国 
			</xsl:when>
			<xsl:when test="$country='VC'">
				セントビンセントおよびグレナディーン諸島 
			</xsl:when>
			<xsl:when test="$country='VE'">
				ベネズエラ・ボリバル共和国 
			</xsl:when>
			<xsl:when test="$country='VG'">
				イギリス領ヴァージン諸島 
			</xsl:when>
			<xsl:when test="$country='VI'">
				アメリカ領ヴァージン諸島 
			</xsl:when>
			<xsl:when test="$country='VN'">
				ベトナム 
			</xsl:when>
			<xsl:when test="$country='VU'">
				バヌアツ 
			</xsl:when>
			<xsl:when test="$country='WF'">
				ウォリス・フツナ 
			</xsl:when>
			<xsl:when test="$country='WO'">
				
			</xsl:when>
			<xsl:when test="$country='WS'">
				サモア 
			</xsl:when>
			<xsl:when test="$country='XV'">
				
			</xsl:when>
			<xsl:when test="$country='YE'">
				イエメン 
			</xsl:when>
			<xsl:when test="$country='YT'">
				マイヨット 
			</xsl:when>
			<xsl:when test="$country='YU'">
				
			</xsl:when>
			<xsl:when test="$country='ZA'">
				南アフリカ 
			</xsl:when>
			<xsl:when test="$country='ZM'">
				ザンビア 
			</xsl:when>
			<xsl:when test="$country='ZW'">
				ジンバブエ 
			</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'">
			  アファール語
		  </xsl:when>
		  <xsl:when test="$lang='ab'">
			 アブハズ語 
		  </xsl:when>
		  <xsl:when test="$lang='ae'">
			 アヴェスター語 
		  </xsl:when>
		  <xsl:when test="$lang='af'">
			 アフリカーンス語 
		  </xsl:when>
		  <xsl:when test="$lang='am'">
			 アムハラ語 
		  </xsl:when>
		  <xsl:when test="$lang='ar'">
			 アラビア語 
		  </xsl:when>
		  <xsl:when test="$lang='as'">
			 アッサム語 
		  </xsl:when>
		  <xsl:when test="$lang='ay'">
			 アイマラ語 
		  </xsl:when>
		  <xsl:when test="$lang='az'">
			 アゼルバイジャン語 
		  </xsl:when>
		  <xsl:when test="$lang='ba'">
			 バシキール語 
		  </xsl:when>
		  <xsl:when test="$lang='be'">
			 ベラルーシ語 
		  </xsl:when>
		  <xsl:when test="$lang='bg'">
			 ブルガリア語 
		  </xsl:when>
		  <xsl:when test="$lang='bh'">
			 ビハール語 
		  </xsl:when>
		  <xsl:when test="$lang='bi'">
			 ビスラマ語 
		  </xsl:when>
		  <xsl:when test="$lang='bn'">
			 ベンガル語 
		  </xsl:when>
		  <xsl:when test="$lang='bo'">
			 チベット語 
		  </xsl:when>
		  <xsl:when test="$lang='br'">
			 ブレトン語 
		  </xsl:when>
		  <xsl:when test="$lang='bs'">
			 ボスニア語 
		  </xsl:when>
		  <xsl:when test="$lang='ca'">
			 カタロニア語 
		  </xsl:when>
		  <xsl:when test="$lang='ce'">
			 チェチェン語 
		  </xsl:when>
		  <xsl:when test="$lang='ch'">
			 チャモロ語 
		  </xsl:when>
		  <xsl:when test="$lang='co'">
			 コルシカ語 
		  </xsl:when>
		  <xsl:when test="$lang='cs'">
			 チェコ語
		  </xsl:when>
		  <xsl:when test="$lang='cu'">
			 
		  </xsl:when>
		  <xsl:when test="$lang='cv'">
			 チュバシュ語 
		  </xsl:when>
		  <xsl:when test="$lang='cy'">
			 ウェールズ語 
		  </xsl:when>
		  <xsl:when test="$lang='da'">
			 デンマーク語
		  </xsl:when>
		  <xsl:when test="$lang='de'">
			 ドイツ語
		  </xsl:when>
		  <xsl:when test="$lang='dz'">
			 ゾンカ語 
		  </xsl:when>
		  <xsl:when test="$lang='el'">
			 ギリシャ語 
		  </xsl:when>
		  <xsl:when test="$lang='en'">
			 英語
		  </xsl:when>
		  <xsl:when test="$lang='eo'">
			 エスペラント語 
		  </xsl:when>
		  <xsl:when test="$lang='es'">
			 スペイン語
		  </xsl:when>
		  <xsl:when test="$lang='et'">
			 エストニア語 
		  </xsl:when>
		  <xsl:when test="$lang='eu'">
			 バスク語 
		  </xsl:when>
		  <xsl:when test="$lang='fa'">
			 ペルシア語 
		  </xsl:when>
		  <xsl:when test="$lang='fi'">
			 フィンランド語
		  </xsl:when>
		  <xsl:when test="$lang='fj'">
			 フィージー語 
		  </xsl:when>
		  <xsl:when test="$lang='fo'">
			 フェロー語 
		  </xsl:when>
		  <xsl:when test="$lang='fr'">
			 フランス語
		  </xsl:when>
		  <xsl:when test="$lang='fy'">
			 フリースランド語 
		  </xsl:when>
		  <xsl:when test="$lang='ga'">
			 アイルランド語 
		  </xsl:when>
		  <xsl:when test="$lang='gd'">
			 ゲール語 
		  </xsl:when>
		  <xsl:when test="$lang='gl'">
			 ガリシア語 
		  </xsl:when>
		  <xsl:when test="$lang='gn'">
			 グアラニ語 
		  </xsl:when>
		  <xsl:when test="$lang='gu'">
			 グジャラート語 
		  </xsl:when>
		  <xsl:when test="$lang='gv'">
			 マン島語 
		  </xsl:when>
		  <xsl:when test="$lang='ha'">
			 ハウサ語 
		  </xsl:when>
		  <xsl:when test="$lang='he'">
			 ヘブライ語 
		  </xsl:when>
		  <xsl:when test="$lang='hi'">
			 ヒンズー語 
		  </xsl:when>
		  <xsl:when test="$lang='ho'">
			 ヒリ・モツ語
		  </xsl:when>
		  <xsl:when test="$lang='hr'">
			 クロアチア語
		  </xsl:when>
		  <xsl:when test="$lang='hu'">
			 ハンガリー語
		  </xsl:when>
		  <xsl:when test="$lang='hy'">
			 アルメニア語 
		  </xsl:when>
		  <xsl:when test="$lang='hz'">
			 ヘレロ語 
		  </xsl:when>
		  <xsl:when test="$lang='ia'">
			 インターリングァ語 
		  </xsl:when>
		  <xsl:when test="$lang='id'">
			 インドネシア語 
		  </xsl:when>
		  <xsl:when test="$lang='ie'">
			 インターリング語 
		  </xsl:when>
		  <xsl:when test="$lang='ik'">
			 イヌピアック語 
		  </xsl:when>
		  <xsl:when test="$lang='io'">
			 イボ語 
		  </xsl:when>
		  <xsl:when test="$lang='is'">
			 アイスランド語
		  </xsl:when>
		  <xsl:when test="$lang='it'">
			 イタリア語
		  </xsl:when>
		  <xsl:when test="$lang='iu'">
			 イヌクティトゥト語 
		  </xsl:when>
		  <xsl:when test="$lang='ja'">
			 日本語
		  </xsl:when>
		  <xsl:when test="$lang='jv'">
			 ジャワ語 
		  </xsl:when>
		  <xsl:when test="$lang='ka'">
			 ジョージア語 
		  </xsl:when>
		  <xsl:when test="$lang='ki'">
			 キクユ語 
		  </xsl:when>
		  <xsl:when test="$lang='kj'">
			 クワニャマ語 
		  </xsl:when>
		  <xsl:when test="$lang='kk'">
			 カザフ語 
		  </xsl:when>
		  <xsl:when test="$lang='kl'">
			 グリーンランド語 
		  </xsl:when>
		  <xsl:when test="$lang='km'">
			 クメール語 
		  </xsl:when>
		  <xsl:when test="$lang='kn'">
			 カンナダ語 
		  </xsl:when>
		  <xsl:when test="$lang='ko'">
			 韓国語
		  </xsl:when>
		  <xsl:when test="$lang='ks'">
			 カシミール語 
		  </xsl:when>
		  <xsl:when test="$lang='ku'">
			 クルド語 
		  </xsl:when>
		  <xsl:when test="$lang='kv'">
			 コミ語 
		  </xsl:when>
		  <xsl:when test="$lang='kw'">
			 コーンウォール語 
		  </xsl:when>
		  <xsl:when test="$lang='ky'">
			 キルギス語 
		  </xsl:when>
		  <xsl:when test="$lang='la'">
			 ラテン語 
		  </xsl:when>
		  <xsl:when test="$lang='lb'">
			 ルクセンブルグ語 
		  </xsl:when>
		  <xsl:when test="$lang='ln'">
			 リンガラ語 
		  </xsl:when>
		  <xsl:when test="$lang='lo'">
			 ラオ語 
		  </xsl:when>
		  <xsl:when test="$lang='lt'">
			 リトアニア語 
		  </xsl:when>
		  <xsl:when test="$lang='lv'">
			 ラトヴィア語 
		  </xsl:when>
		  <xsl:when test="$lang='mg'">
			 マラガシー語 
		  </xsl:when>
		  <xsl:when test="$lang='mh'">
			 マーシャル諸島語 
		  </xsl:when>
		  <xsl:when test="$lang='mi'">
			 マオリ語 
		  </xsl:when>
		  <xsl:when test="$lang='mk'">
			 マケドニア語 
		  </xsl:when>
		  <xsl:when test="$lang='ml'">
			 マラヤーラム語 
		  </xsl:when>
		  <xsl:when test="$lang='mn'">
			 モンゴル語 
		  </xsl:when>
		  <xsl:when test="$lang='mo'">
			 モルダビア語 
		  </xsl:when>
		  <xsl:when test="$lang='mr'">
			 マラーティー語 
		  </xsl:when>
		  <xsl:when test="$lang='ms'">
			 マレー語 
		  </xsl:when>
		  <xsl:when test="$lang='mt'">
			 マルタ語 
		  </xsl:when>
		  <xsl:when test="$lang='my'">
			 ビルマ語 
		  </xsl:when>
		  <xsl:when test="$lang='na'">
			 ビルマ語 
		  </xsl:when>
		  <xsl:when test="$lang='nb'">
			 ノルウェー語（ボークモール） 
		  </xsl:when>
		  <xsl:when test="$lang='nd'">
			 北ネデベレ語 
		  </xsl:when>
		  <xsl:when test="$lang='ne'">
			 ネパール語 
		  </xsl:when>
		  <xsl:when test="$lang='ng'">
			 ンドンガ語 
		  </xsl:when>
		  <xsl:when test="$lang='nl'">
			 オランダ語
		  </xsl:when>
		  <xsl:when test="$lang='nn'">
			 ノルウェー語（ニーノシュク） 
		  </xsl:when>
		  <xsl:when test="$lang='no'">
			 ノルウェー語
		  </xsl:when>
		  <xsl:when test="$lang='nr'">
			 南ネデベレ語 
		  </xsl:when>
		  <xsl:when test="$lang='nv'">
			 ナバホ語 
		  </xsl:when>
		  <xsl:when test="$lang='ny'">
			 チチェワ語 
		  </xsl:when>
		  <xsl:when test="$lang='oc'">
			 オキシタン語 
		  </xsl:when>
		  <xsl:when test="$lang='om'">
			 オロモ語 
		  </xsl:when>
		  <xsl:when test="$lang='or'">
			 オリヤー語 
		  </xsl:when>
		  <xsl:when test="$lang='os'">
			 オシーシャ語 
		  </xsl:when>
		  <xsl:when test="$lang='pa'">
			 パンジャブ語 
		  </xsl:when>
		  <xsl:when test="$lang='pi'">
			 パーリ語 
		  </xsl:when>
		  <xsl:when test="$lang='pl'">
			 ポーランド語 
		  </xsl:when>
		  <xsl:when test="$lang='ps'">
			 プシュトゥー語 
		  </xsl:when>
		  <xsl:when test="$lang='pt'">
			 ポルトガル語 
		  </xsl:when>
		  <xsl:when test="$lang='qu'">
			 ケチュア語 
		  </xsl:when>
		  <xsl:when test="$lang='rm'">
			 レトロマン語 
		  </xsl:when>
		  <xsl:when test="$lang='rn'">
			 ルンディ語 
		  </xsl:when>
		  <xsl:when test="$lang='ro'">
			 ルーマニア語 
		  </xsl:when>
		  <xsl:when test="$lang='ru'">
			 ロシア語
		  </xsl:when>
		  <xsl:when test="$lang='rw'">
			 キニヤルワンダ語 
		  </xsl:when>
		  <xsl:when test="$lang='sa'">
			 サンスクリット語 
		  </xsl:when>
		  <xsl:when test="$lang='sc'">
			 サルディーニャ語 
		  </xsl:when>
		  <xsl:when test="$lang='sd'">
			 シンド語 
		  </xsl:when>
		  <xsl:when test="$lang='se'">
			 北サーミ語 
		  </xsl:when>
		  <xsl:when test="$lang='sg'">
			 サンゴ語 
		  </xsl:when>
		  <xsl:when test="$lang='sh'">
			  セルビア・クロネチア語 
		  </xsl:when>      
		  <xsl:when test="$lang='si'">
			 シンハラ語 
		  </xsl:when>
		  <xsl:when test="$lang='sk'">
			 スロヴァキア語
		  </xsl:when>
		  <xsl:when test="$lang='sl'">
			 スロヴェニア語
		  </xsl:when>
		  <xsl:when test="$lang='sm'">
			 サモア語 
		  </xsl:when>
		  <xsl:when test="$lang='sn'">
			 ショナ語 
		  </xsl:when>
		  <xsl:when test="$lang='so'">
			 ソマリ語 
		  </xsl:when>
		  <xsl:when test="$lang='sq'">
			 アルバニア語 
		  </xsl:when>
		  <xsl:when test="$lang='sr'">
			 セルビア語 
		  </xsl:when>
		  <xsl:when test="$lang='ss'">
			 スワジ語 
		  </xsl:when>
		  <xsl:when test="$lang='st'">
			 南ソト語 
		  </xsl:when>
		  <xsl:when test="$lang='su'">
			 スンダ語 
		  </xsl:when>
		  <xsl:when test="$lang='sv'">
			 スウェーデン語
		  </xsl:when>
		  <xsl:when test="$lang='sw'">
			 スワヒリ語 
		  </xsl:when>
		  <xsl:when test="$lang='ta'">
			 タミル語 
		  </xsl:when>
		  <xsl:when test="$lang='te'">
			 テルグ語 
		  </xsl:when>
		  <xsl:when test="$lang='tg'">
			 タジク語 
		  </xsl:when>
		  <xsl:when test="$lang='th'">
			 タイ語 
		  </xsl:when>
		  <xsl:when test="$lang='ti'">
			 ティグリニア語 
		  </xsl:when>
		  <xsl:when test="$lang='tk'">
			 トゥルクメン語 
		  </xsl:when>
		  <xsl:when test="$lang='tl'">
			 タガログ語 
		  </xsl:when>
		  <xsl:when test="$lang='tn'">
			 ツワナ語 
		  </xsl:when>
		  <xsl:when test="$lang='to'">
			 トンガ語 
		  </xsl:when>
		  <xsl:when test="$lang='tr'">
			 トルコ語
		  </xsl:when>
		  <xsl:when test="$lang='ts'">
			 ツソンガ語 
		  </xsl:when>
		  <xsl:when test="$lang='tt'">
			 タタール語 
		  </xsl:when>
		  <xsl:when test="$lang='tw'">
			 トゥイ語 
		  </xsl:when>
		  <xsl:when test="$lang='ty'">
			 タヒティ語 
		  </xsl:when>
		  <xsl:when test="$lang='ug'">
			 ウィグル語 
		  </xsl:when>
		  <xsl:when test="$lang='uk'">
			 ウクライナ語 
		  </xsl:when>
		  <xsl:when test="$lang='ur'">
			 ウルドゥー語 
		  </xsl:when>
		  <xsl:when test="$lang='uz'">
			 ウズベク語 
		  </xsl:when>
		  <xsl:when test="$lang='vi'">
			 ベトナム語 
		  </xsl:when>
		  <xsl:when test="$lang='vo'">
			 ボラピュク語 
		  </xsl:when>
		  <xsl:when test="$lang='wa'">
			 ワロン語 
		  </xsl:when>
		  <xsl:when test="$lang='wo'">
			 ウォロフ語 
		  </xsl:when>
		  <xsl:when test="$lang='xh'">
			 コーサ語 
		  </xsl:when>
		  <xsl:when test="$lang='yi'">
			 イディッシュ語 
		  </xsl:when>
		  <xsl:when test="$lang='yo'">
			 ヨルバ語 
		  </xsl:when>
		  <xsl:when test="$lang='za'">
			 チワン語 
		  </xsl:when>
		  <xsl:when test="$lang='zh'">
			 中国語
		  </xsl:when>
		  <xsl:when test="$lang='zu'">
			 ズールー語 
		  </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'">
	            経済省特許登録国際センター（アラブ首長国連邦）	
         </xsl:when>
         <xsl:when test="$tOffice='AG'">
	            アンティグア・バーブーダ知的財産商務庁 (ABIPCO)	
         </xsl:when>
         <xsl:when test="$tOffice='AL'">
	            産業財産総局 (GDIP)（アルバニア）	
         </xsl:when>
         <xsl:when test="$tOffice='AM'">
	            アルメニア共和国知的財産庁	
         </xsl:when>
         <xsl:when test="$tOffice='AO'">
	            アンゴラ産業財産機関	
         </xsl:when>
         <xsl:when test="$tOffice='AP'">
	            アフリカ広域知的財産機関 (ARIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='AT'">
	            オーストリア特許庁	
         </xsl:when>
         <xsl:when test="$tOffice='AU'">
	            オーストラリア特許庁	
         </xsl:when>
         <xsl:when test="$tOffice='AZ'">
	            アゼルバイジャン共和国知的財産局	
         </xsl:when>
         <xsl:when test="$tOffice='BA'">
	            ボスニア･ヘルツェゴビナ知的財産機関	
         </xsl:when>
         <xsl:when test="$tOffice='BB'">
	            企業体知的財産庁（バルバドス）	
         </xsl:when>
         <xsl:when test="$tOffice='BE'">
	            ベルギー知的財産庁 (IPObel)	
         </xsl:when>
         <xsl:when test="$tOffice='BF'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='BG'">
	            ブルガリア共和国特許庁	
         </xsl:when>
         <xsl:when test="$tOffice='BH'">
	            国立特許庁対外貿易産業財産局（バーレーン）	
         </xsl:when>
         <xsl:when test="$tOffice='BJ'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='BN'">
	            ブルネイ・ダルサラーム知的財産庁 (BruIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='BR'">
	            国立産業財産機関（ブラジル）	
         </xsl:when>
         <xsl:when test="$tOffice='BW'">
	            企業知的財産機関 (CIPA)（ボツワナ）	
         </xsl:when>
         <xsl:when test="$tOffice='BX'">
	            Benelux Office for Intellectual Property (BOIP)	
         </xsl:when>
         <xsl:when test="$tOffice='BY'">
	            国立知的財産センター（ベラルーシ）	
         </xsl:when>
         <xsl:when test="$tOffice='BZ'">
	            ベリーズ知的財産庁	
         </xsl:when>
         <xsl:when test="$tOffice='CA'">
	            カナダ知的財産庁	
         </xsl:when>
         <xsl:when test="$tOffice='CF'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CG'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CH'">
	            スイス連邦知的財産機関	
         </xsl:when>
         <xsl:when test="$tOffice='CI'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CL'">
	            国立産業財産機関（チリ）	
         </xsl:when>
         <xsl:when test="$tOffice='CM'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CN'">
	            中国国家知識産権局 (CNIPA)	
         </xsl:when>
         <xsl:when test="$tOffice='CO'">
	            商工業監督局（コロンビア）	
         </xsl:when>
         <xsl:when test="$tOffice='CR'">
	            知的財産登録局（コスタリカ）	
         </xsl:when>
         <xsl:when test="$tOffice='CS'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CU'">
	            キューバ産業財産庁	
         </xsl:when>
         <xsl:when test="$tOffice='CY'">
	            キプロス企業管財人登録部	
         </xsl:when>
         <xsl:when test="$tOffice='CV'">
	            品質管理知的財産機関 (IGQPI)（カーボベルデ）	
         </xsl:when>
         <xsl:when test="$tOffice='CZ'">
	            チェコ共和国産業財産庁	
         </xsl:when>
         <xsl:when test="$tOffice='DD'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='DE'">
	            ドイツ特許商標庁	
         </xsl:when>
         <xsl:when test="$tOffice='DJ'">
	            ジブチ産業財産商務庁 (ODPIC)	
         </xsl:when>
         <xsl:when test="$tOffice='DK'">
	            デンマーク特許商標庁	
         </xsl:when>
         <xsl:when test="$tOffice='DM'">
	            企業知的財産登録局（ドミニカ）	
         </xsl:when>
         <xsl:when test="$tOffice='DO'">
	            国立産業財産庁（ドミニカ共和国）	
         </xsl:when>
         <xsl:when test="$tOffice='DZ'">
	            アルジェリア国立産業財産機関	
         </xsl:when>
         <xsl:when test="$tOffice='EA'">
	            ユーラシア特許庁 (EAPO)	
         </xsl:when>
         <xsl:when test="$tOffice='EC'">
	            国立知的財産局 (SENADI)（エクアドル）	
         </xsl:when>
         <xsl:when test="$tOffice='EE'">
	            エストニア特許庁	
         </xsl:when>
         <xsl:when test="$tOffice='EG'">
	            エジプト特許庁	
         </xsl:when>
         <xsl:when test="$tOffice='EM'">
	            欧州連合知的財産庁	
         </xsl:when>
         <xsl:when test="$tOffice='EP'">
	            欧州特許庁 (EPO)	
         </xsl:when>
         <xsl:when test="$tOffice='ES'">
	            スペイン特許商標庁	
         </xsl:when>
         <xsl:when test="$tOffice='FI'">
	            フィンランド特許登録庁 (PRH)	
         </xsl:when>
         <xsl:when test="$tOffice='FR'">
	            国立産業財産機関 (INPI)（フランス）	
         </xsl:when>
         <xsl:when test="$tOffice='GA'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='GB'">
	            知的財産庁（英国）	
         </xsl:when>
         <xsl:when test="$tOffice='GC'">
	            Patent Office of the Gulf Cooperation Council (GCC)	
         </xsl:when>
         <xsl:when test="$tOffice='GD'">
	            最高裁判所登録局（グレナダ）	
         </xsl:when>
         <xsl:when test="$tOffice='GE'">
	            ジョージア国立知的財産センター (SAKPATENTI)	
         </xsl:when>
         <xsl:when test="$tOffice='GH'">
	            登録長官部（ガーナ）	
         </xsl:when>
         <xsl:when test="$tOffice='GM'">
	            司法省登録長官部（ガンビア）	
         </xsl:when>
         <xsl:when test="$tOffice='GN'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='GQ'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='GR'">
	            産業財産機関 (OBI)（ギリシャ）	
         </xsl:when>
         <xsl:when test="$tOffice='GT'">
	            知的財産登録局（グアテマラ）	
         </xsl:when>
         <xsl:when test="$tOffice='GW'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='HK'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='HN'">
	            知的財産総局（ホンジュラス）	
         </xsl:when>
         <xsl:when test="$tOffice='HR'">
	            国家知的財産庁（クロアチア）	
         </xsl:when>
         <xsl:when test="$tOffice='HU'">
	            ハンガリー知的財産庁 (HIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='IB'">
	            WIPO 国際事務局	
         </xsl:when>
         <xsl:when test="$tOffice='ID'">
	            知的財産総局（インドネシア）	
         </xsl:when>
         <xsl:when test="$tOffice='IE'">
	            アイルランド知的財産庁	
         </xsl:when>
         <xsl:when test="$tOffice='IL'">
	            イスラエル特許庁	
         </xsl:when>
         <xsl:when test="$tOffice='IR'">
	            知的財産センター（イラン・イスラム共和国）	
         </xsl:when>
         <xsl:when test="$tOffice='IN'">
	            インド特許庁	
         </xsl:when>
         <xsl:when test="$tOffice='IQ'">
	            イラク特許庁 (IQPO)	
         </xsl:when>
         <xsl:when test="$tOffice='IS'">
	            アイスランド知的財産庁 (ISIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='IT'">
	            イタリア特許商標庁	
         </xsl:when>
         <xsl:when test="$tOffice='JM'">
               ジャマイカ知的財産庁 (JIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='JO'">
	            産業通商供給省産業財産保護局（ヨルダン）	
         </xsl:when>
         <xsl:when test="$tOffice='JP'">
	            日本国特許庁 (JPO)	
         </xsl:when>
         <xsl:when test="$tOffice='KE'">
	            ケニア産業財産機関	
         </xsl:when>
         <xsl:when test="$tOffice='KG'">
	            キルギス共和国科学高等教育イノベーション省	
         </xsl:when>
         <xsl:when test="$tOffice='KH'">
	            工業科学技術イノベーション省 (MISTI) 産業財産部 (DIP)（カンボジア）	
         </xsl:when>
         <xsl:when test="$tOffice='KM'">
	            コモロ産業財産庁	
         </xsl:when>
         <xsl:when test="$tOffice='KN'">
	            セントクリストファー・ネービス知的財産庁	
         </xsl:when>
         <xsl:when test="$tOffice='KP'">
	            朝鮮民主主義人民共和国知的財産局 (IPA)	
         </xsl:when>
         <xsl:when test="$tOffice='KR'">
	            知的財産省 (MOIP)（大韓民国）	
         </xsl:when>
         <xsl:when test="$tOffice='KW'">
	            商工業省商標特許部（クウェート）	
         </xsl:when>
         <xsl:when test="$tOffice='KZ'">
	            国立知的財産機関 (NIIP)（カザフスタン）	
         </xsl:when>
         <xsl:when test="$tOffice='LA'">
	            科学技術省知的財産部（ラオス人民民主共和国）	
         </xsl:when>
         <xsl:when test="$tOffice='LC'">
	            企業知的財産登録局（セントルシア）	
         </xsl:when>
         <xsl:when test="$tOffice='LK'">
	            スリランカ国立知的財産庁	
         </xsl:when>
         <xsl:when test="$tOffice='LR'">
	            リベリア知的財産庁 (LIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='LS'">
	            登録長官庁（レソト）	
         </xsl:when>
         <xsl:when test="$tOffice='LT'">
	            リトアニア共和国国家特許局	
         </xsl:when>
         <xsl:when test="$tOffice='LU'">
	            知的財産庁（ルクセンブルグ）	
         </xsl:when>
         <xsl:when test="$tOffice='LV'">
	            ラトビア共和国特許庁	
         </xsl:when>
         <xsl:when test="$tOffice='LY'">
	            リビア産業財産庁	
         </xsl:when>
         <xsl:when test="$tOffice='MA'">
	            モロッコ商工業財産庁 (OMPIC)	
         </xsl:when>
         <xsl:when test="$tOffice='MC'">
	            モナコ産業財産庁 (MCIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='MD'">
	            国家知的財産局（モルドバ共和国）	
         </xsl:when>
         <xsl:when test="$tOffice='ME'">
	            経済発展省（モンテネグロ）	
         </xsl:when>
         <xsl:when test="$tOffice='MG'">
	            マダガスカル産業財産庁	
         </xsl:when>
         <xsl:when test="$tOffice='MK'">
	            国家産業財産庁（北マケドニア）	
         </xsl:when>
         <xsl:when test="$tOffice='ML'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='MN'">
	            モンゴル知的財産庁	
         </xsl:when>
         <xsl:when test="$tOffice='MR'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='MT'">
	            商務部産業財産登録局（マルタ）	
         </xsl:when>
         <xsl:when test="$tOffice='MU'">
	            モーリシャス産業財産庁 (IPOM)	
         </xsl:when>
         <xsl:when test="$tOffice='MW'">
	            司法省登録長官部（マラウイ）	
         </xsl:when>
         <xsl:when test="$tOffice='MX'">
	            メキシコ産業財産機関	
         </xsl:when>
         <xsl:when test="$tOffice='MY'">
	            マレーシア知的財産公社	
         </xsl:when>
         <xsl:when test="$tOffice='MZ'">
	            産業財産機関 (IPI)（モザンビーク）	
         </xsl:when>
         <xsl:when test="$tOffice='NA'">
	            ビジネス知的財産機関 (BIPA)（ナミビア）	
         </xsl:when>
         <xsl:when test="$tOffice='NE'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='NG'">
	            商法部特許意匠登録局（ナイジェリア）	
         </xsl:when>
         <xsl:when test="$tOffice='NI'">
	            知的財産登録局（ニカラグア）	
         </xsl:when>
         <xsl:when test="$tOffice='NL'">
	            オランダ特許庁	
         </xsl:when>
         <xsl:when test="$tOffice='NO'">
	            ノルウェー産業財産庁	
         </xsl:when>
         <xsl:when test="$tOffice='NZ'">
	            ニュージーランド知的財産庁 (IPONZ)	
         </xsl:when>
         <xsl:when test="$tOffice='OA'">
	            アフリカ知的財産機関 (OAPI)	
         </xsl:when>
         <xsl:when test="$tOffice='OM'">
	            国立知的財産庁（商工業投資促進省）（オマーン）	
         </xsl:when>
         <xsl:when test="$tOffice='PA'">
	            産業財産登録総局 (DIGERPI)（パナマ）	
         </xsl:when>
         <xsl:when test="$tOffice='PE'">
	            国立公正競争知的財産保護機関（ペルー）	
         </xsl:when>
         <xsl:when test="$tOffice='PG'">
	            パプアニューギニア知的財産庁	
         </xsl:when>
         <xsl:when test="$tOffice='PH'">
	            フィリピン知的財産庁	
         </xsl:when>
         <xsl:when test="$tOffice='PL'">
	            ポーランド共和国特許庁	
         </xsl:when>
         <xsl:when test="$tOffice='PT'">
	            国立産業財産機関（ポルトガル）	
         </xsl:when>
         <xsl:when test="$tOffice='QA'">
	            知的財産部（カタール）	
         </xsl:when>
         <xsl:when test="$tOffice='RO'">
	            国家発明商標庁（ルーマニア）	
         </xsl:when>
         <xsl:when test="$tOffice='RS'">
	            知的財産庁（セルビア）	
         </xsl:when>
         <xsl:when test="$tOffice='RU'">
	            連邦知的財産局 (Rospatent)（ロシア連邦）	
         </xsl:when>
         <xsl:when test="$tOffice='RW'">
	            登録長官庁（ルワンダ）	
         </xsl:when>
         <xsl:when test="$tOffice='SA'">
	            サウジ知的財産機関 (SAIP)	
         </xsl:when>
         <xsl:when test="$tOffice='SC'">
	            法務部登録課（セーシェル）	
         </xsl:when>
         <xsl:when test="$tOffice='SD'">
	            知的財産登録長官部（スーダン） 
         </xsl:when>
         <xsl:when test="$tOffice='SE'">
	            スウェーデン知的財産庁 (PRV)	
         </xsl:when>
         <xsl:when test="$tOffice='SG'">
	            シンガポール知的財産庁	
         </xsl:when>
         <xsl:when test="$tOffice='SI'">
	            スロベニア知的財産庁	
         </xsl:when>
         <xsl:when test="$tOffice='SK'">
	            スロバキア共和国産業財産庁	
         </xsl:when>
         <xsl:when test="$tOffice='SL'">
	            行政登録長官部（シエラレオネ）	
         </xsl:when>
         <xsl:when test="$tOffice='SM'">
	            特許商標庁（サンマリノ）	
         </xsl:when>
         <xsl:when test="$tOffice='SN'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='ST'">
	            国立産業財産局 (SENAPI)	
         </xsl:when>
         <xsl:when test="$tOffice='SU'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='SV'">
	            国立登録センター (CNR)（エルサルバドル）	
         </xsl:when>
         <xsl:when test="$tOffice='SY'">
	            国内商取引消費者保護省商工業財産保護局（シリア・アラブ 共和国）	
         </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'">
	            知的財産部 (DIP)（タイ）	
         </xsl:when>
         <xsl:when test="$tOffice='TJ'">
	            タジキスタン共和国経済発展貿易省国立特許情報センター	
         </xsl:when>
         <xsl:when test="$tOffice='TM'">
	            トルクメニスタン財務経済省国家知的財産局	
         </xsl:when>
         <xsl:when test="$tOffice='TN'">
	            国立標準化産業財産機関 (INNORPI)（チュニジア）	
         </xsl:when>
         <xsl:when test="$tOffice='TR'">
	            トルコ特許商標庁 (Turkpatent)	
         </xsl:when>
         <xsl:when test="$tOffice='TT'">
	            国土法務省知的財産庁（トリニダード・トバゴ）	
         </xsl:when>
         <xsl:when test="$tOffice='TZ'">
	            産業通商省営業登録実施許諾局（タンザニア連合共和国）	
         </xsl:when>
         <xsl:when test="$tOffice='UA'">
	            国家機関「ウクライナ国立知的財産イノベーション庁」(UANIPIO)	
         </xsl:when>
         <xsl:when test="$tOffice='UG'">
	            ウガンダ登録局 (URSB)	
         </xsl:when>
         <xsl:when test="$tOffice='US'">
	            米国特許商標庁 (USPTO)	
         </xsl:when>
         <xsl:when test="$tOffice='UY'">
	            国立産業財産局 (DNPI)	
         </xsl:when>
         <xsl:when test="$tOffice='UZ'">
	            ウズベキスタン共和国司法省知的財産局	
         </xsl:when>
         <xsl:when test="$tOffice='VC'">
	            商務知的財産庁 (CIPO)（セントビンセント及びグレナディーン諸島）	
         </xsl:when>
         <xsl:when test="$tOffice='VN'">
	            ベトナム知的財産庁 (IP Viet Nam)	
         </xsl:when>
         <xsl:when test="$tOffice='WO'">
	            世界知的所有権機関 (WIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='WS'">
	            商工業労働省 (MCIL)（サモア）	
         </xsl:when>
         <xsl:when test="$tOffice='XN'">
	            北欧特許機構	
         </xsl:when>
		 <xsl:when test="$tOffice='XV'">
	            ヴィシェグラード特許機構 (VPI)	
         </xsl:when>
         <xsl:when test="$tOffice='YU'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='ZA'">
	            企業知的財産委員会 (CIPC)（南アフリカ）	
         </xsl:when>
         <xsl:when test="$tOffice='ZM'">
	            特許企業登録局 (PACRA) （ザンビア）	
         </xsl:when>
         <xsl:when test="$tOffice='ZR'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='ZW'">
	            ジンバブエ知的財産庁	
         </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'))">
				明細書の配列表
			</xsl:when>
			<xsl:when test="$sequence/@page-count">
				紙形式に追加された電子形式の明細書の配列表部分（実施細則第801号(a)(ii)に基づく）
			</xsl:when>
			<xsl:otherwise>
				電子形式のみによる明細書の配列表部分（実施細則第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>