<?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>Antrag</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>Erklärungen</fox:label>
					</fox:outline>
				</xsl:if>
				<xsl:if test="$fees != ''">
					<fox:outline internal-destination="feeSec">
						<fox:label>Gebühren</fox:label>
					</fox:outline>
				</xsl:if>
				<xsl:if test="$power != ''">
					<fox:outline internal-destination="powerSec">
						<fox:label>Vollmacht</fox:label>
					</fox:outline>
				</xsl:if>
				<xsl:if test="$bio != ''">
					<fox:outline internal-destination="bioSec">
						<fox:label>Hinternlegung von biologischem Material</fox:label>
					</fox:outline>
				</xsl:if>
			</xsl:if>
			<xsl:variable name="avail_width">
				<xsl:value-of select="$page_width - 50"></xsl:value-of>
			</xsl:variable>
			<fo:page-sequence master-reference="request" initial-page-number="1" force-page-count="no-force">
				<fo:static-content flow-name="xsl-region-before">
					<fo:block font-family="{$helvetica_font}">
						<fo:table table-layout="fixed">
							<fo:table-column column-width="55mm"></fo:table-column>
							<fo:table-column column-width="55mm"></fo:table-column>
							<fo:table-column column-width="55mm"></fo:table-column>
							<fo:table-body>
								<fo:table-row>
									<fo:table-cell>
										<fo:block font-size="9pt">
											<xsl:value-of select=".//file-reference-id"></xsl:value-of>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell>
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell>
										<fo:block font-size="10pt" text-align="right">
											<fo:inline font-weight="bold">
												<xsl:value-of select="$ia_number"></xsl:value-of>
											</fo:inline>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
							</fo:table-body>
						</fo:table>
						<fo:table table-layout="fixed">
							<fo:table-column column-width="55mm"></fo:table-column>
							<fo:table-column column-width="55mm"></fo:table-column>
							<fo:table-column column-width="55mm"></fo:table-column>
							<fo:table-body>
								<fo:table-row>
									<fo:table-cell>
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell>
										<fo:block text-align="center" font-size="10pt" background-color="white">
											<fo:page-number></fo:page-number>/<fo:page-number-citation ref-id="endofdoc"></fo:page-number-citation>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell>
										<fo:block></fo:block>
									</fo:table-cell>
								</fo:table-row>
							</fo:table-body>
						</fo:table>
						<fo:table table-layout="fixed">
							<fo:table-column column-width="55mm"></fo:table-column>
							<fo:table-column column-width="55mm"></fo:table-column>
							<fo:table-column column-width="55mm"></fo:table-column>
							<fo:table-body>
								<fo:table-row>
									<fo:table-cell number-columns-spanned="2">
										<fo:block text-align="left" font-size="10pt" color="black" background-color="white">
											<fo:inline font-weight="bold">
												PCT-ANTRAG
											</fo:inline>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell>
										<fo:block text-align="right" font-size="8pt" background-color="white"></fo:block>
									</fo:table-cell>
								</fo:table-row>
							</fo:table-body>
						</fo:table>
						<fo:table table-layout="fixed">
							<fo:table-column column-width="55mm"></fo:table-column>
							<fo:table-column column-width="55mm"></fo:table-column>
							<fo:table-column column-width="55mm"></fo:table-column>
							<fo:table-body>
								<fo:table-row>
									<fo:table-cell number-columns-spanned="3">
										<fo:block text-align="center" font-size="8pt" background-color="white">
											<xsl:choose>
												<xsl:when test="$original = '1' and $EASY = '1'">
													Original (für 
													<fo:inline font-weight="bold">
														EINREICHUNG
													</fo:inline>
													<xsl:text>)</xsl:text>
												</xsl:when>
												<xsl:when test="$original = '2' and $EASY = '1'">
													Zweitexemplar des Originals
												</xsl:when>
												<xsl:when test="$EASY = '1'">
													Papierkopie
													(NICHT
													 zur Einreichung)
												</xsl:when>
												<xsl:otherwise>
													(Original in elektronischem Format)
												</xsl:otherwise>
											</xsl:choose>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
							</fo:table-body>
						</fo:table>
					</fo:block>
				</fo:static-content>
				<fo:flow flow-name="xsl-region-body">
					<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 (ANHANG - BLATT FÜR DIE GEBÜHRENBERECHNUNG)
												</fo:inline>
											</fo:block>
										</fo:table-cell>
										<fo:table-cell>
											<fo:block text-align="right" font-size="8pt" background-color="white"></fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
							<fo:table table-layout="fixed">
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-body>
									<fo:table-row>
										<fo:table-cell number-columns-spanned="3">
											<fo:block text-align="center" font-size="8pt" background-color="white">
												<xsl:choose>
													<xsl:when test="$original = '1' and $EASY = '1'">
														Original (für 
														<fo:inline font-weight="bold">
															EINREICHUNG
														</fo:inline>
														<xsl:text>)</xsl:text>
													</xsl:when>
													<xsl:when test="$original = '2' and $EASY = '1'">
														Zweitexemplar des Originals
													</xsl:when>
													<xsl:when test="$EASY = '1'">
														Papierkopie
														(NICHT
														 zur Einreichung)
													</xsl:when>
													<xsl:otherwise>
														(Original in elektronischem Format)
													</xsl:otherwise>
												</xsl:choose>
											</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
							<fo: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">
												 (Dieses Blatt zählt nicht als Blatt der internationalen Anmeldung und ist nicht Teil derselben) 
											</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
						</fo:block>
					</fo:static-content>
					<fo:flow flow-name="xsl-region-body">
						<fo:block font-family="{$helvetica_font}" xsl:use-attribute-sets="hyphenation">
							<xsl:attribute name="id">feeSec</xsl:attribute>
							<xsl:call-template name="fee_info">
								<xsl:with-param name="lang" select="$lang"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
						<fo:block id="endofFeedoc"></fo:block>
					</fo:flow>
				</fo:page-sequence>
			</xsl:if>
			<!-- insert the power-of-attorney pages if that parameter has been set; 
      start page numbering at '1' -->
			<xsl:if test="$power_doc != ''">
				<fo:page-sequence master-reference="power-of-attorney" initial-page-number="1" force-page-count="no-force">
					<fo:static-content flow-name="xsl-region-before">
						<fo:block width="{$avail_width}mm" font-family="{$helvetica_font}">
							<fo:table table-layout="fixed">
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-body>
									<fo:table-row>
										<fo:table-cell>
											<fo:block font-size="9pt">
												<xsl:value-of select=".//file-reference-id"></xsl:value-of>
											</fo:block>
										</fo:table-cell>
										<fo:table-cell>
											<fo:block></fo:block>
										</fo:table-cell>
										<fo:table-cell>
											<fo:block font-size="10pt" text-align="right">
												<fo:inline font-weight="bold">
													<xsl:value-of select="$ia_number"></xsl:value-of>
												</fo:inline>
											</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
							<fo:table table-layout="fixed">
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-body>
									<fo:table-row>
										<fo:table-cell>
											<fo:block></fo:block>
										</fo:table-cell>
										<fo:table-cell>
											<fo:block text-align="center" font-size="10pt" background-color="white">
												<fo:page-number></fo:page-number>/<fo:page-number-citation ref-id="endofPowerdoc"></fo:page-number-citation>
											</fo:block>
										</fo:table-cell>
										<fo:table-cell>
											<fo:block></fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
							<fo:table table-layout="fixed">
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-body>
									<fo:table-row>
										<fo:table-cell number-columns-spanned="2">
											<fo:block text-align="left" font-size="10pt" color="black" background-color="white">
												<fo:inline font-weight="bold">
													PCT VOLLMACHT 
												</fo:inline>
											</fo:block>
										</fo:table-cell>
										<fo:table-cell>
											<fo:block text-align="right" font-size="8pt" background-color="white"></fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
							<fo:table table-layout="fixed">
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-body>
									<fo:table-row>
										<fo:table-cell number-columns-spanned="3">
											<fo:block text-align="center" font-size="8pt" background-color="white">
												<xsl:choose>
													<xsl:when test="$original = '1' and $EASY = '1'">
														Original (für 
														<fo:inline font-weight="bold">
															EINREICHUNG
														</fo:inline>
														<xsl:text>)</xsl:text>
													</xsl:when>
													<xsl:when test="$original = '2' and $EASY = '1'">
														Zweitexemplar des Originals
													</xsl:when>
													<xsl:when test="$EASY = '1'">
														<fo:block></fo:block>
													</xsl:when>
													<xsl:otherwise>
														(Original in elektronischem Format)
													</xsl:otherwise>
												</xsl:choose>
											</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
							<fo: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">
												 (Dieses Blatt zählt nicht als Blatt der internationalen Anmeldung und ist nicht Teil derselben) 
											</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
						</fo:block>
					</fo:static-content>
					<fo:flow flow-name="xsl-region-body">
						<fo:block font-family="{$helvetica_font}" xsl:use-attribute-sets="hyphenation">
							<xsl:attribute name="id">powerSec</xsl:attribute>
							<xsl:call-template name="power_of_attorney">
								<xsl:with-param name="lang" select="$lang"></xsl:with-param>
							</xsl:call-template>
						</fo:block>
						<fo:block id="endofPowerdoc"></fo:block>
					</fo:flow>
				</fo:page-sequence>
			</xsl:if>
			<!-- insert the bio-deposit pages if that parameter has been set; 
      start page numbering at '1' -->
			<xsl:if test="$bio_doc != ''">
				<fo:page-sequence master-reference="bio-deposit" initial-page-number="1" force-page-count="no-force">
					<fo:static-content flow-name="xsl-region-before">
						<fo:block width="{$avail_width}mm" font-family="{$helvetica_font}">
							<fo:table table-layout="fixed">
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-body>
									<fo:table-row>
										<fo:table-cell>
											<fo:block font-size="9pt">
												<xsl:value-of select=".//file-reference-id"></xsl:value-of>
											</fo:block>
										</fo:table-cell>
										<fo:table-cell>
											<fo:block></fo:block>
										</fo:table-cell>
										<fo:table-cell>
											<fo:block font-size="10pt" text-align="right">
												<fo:inline font-weight="bold">
													<xsl:value-of select="$ia_number"></xsl:value-of>
												</fo:inline>
											</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
							<fo:table table-layout="fixed">
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-body>
									<fo:table-row>
										<fo:table-cell>
											<fo:block></fo:block>
										</fo:table-cell>
										<fo:table-cell>
											<fo:block text-align="center" font-size="10pt" background-color="white">
												<fo:page-number></fo:page-number>/<fo:page-number-citation ref-id="endofBiodoc"></fo:page-number-citation>
											</fo:block>
										</fo:table-cell>
										<fo:table-cell>
											<fo:block></fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
							<fo:table table-layout="fixed">
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-body>
									<fo:table-row>
										<fo:table-cell number-columns-spanned="2">
											<fo:block text-align="left" font-size="10pt" color="black" background-color="white">
												<fo:inline font-weight="bold">
													PCT
												</fo:inline>
											</fo:block>
										</fo:table-cell>
										<fo:table-cell>
											<fo:block text-align="right" font-size="8pt" background-color="white"></fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
							<fo:table table-layout="fixed">
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-column column-width="55mm"></fo:table-column>
								<fo:table-body>
									<fo:table-row>
										<fo:table-cell number-columns-spanned="3">
											<fo:block text-align="center" font-size="8pt" background-color="white">
												<xsl:choose>
													<xsl:when test="$original = '1' and $EASY = '1'">
														Original (für 
														<fo:inline font-weight="bold">
															EINREICHUNG
														</fo:inline>
														<xsl:text>)</xsl:text>
													</xsl:when>
													<xsl:when test="$original = '2' and $EASY = '1'">
														Zweitexemplar des Originals
													</xsl:when>
													<xsl:when test="$EASY = '1'">
														Papierkopie
														(NICHT
														 zur Einreichung)
													</xsl:when>
													<xsl:otherwise>
														(Original in elektronischem Format)
													</xsl:otherwise>
												</xsl:choose>
											</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
							<fo: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">
												 (Dieses Blatt zählt nicht als Blatt der internationalen Anmeldung und ist nicht Teil derselben) 
											</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</fo:table-body>
							</fo:table>
						</fo:block>
					</fo:static-content>
					<fo:flow flow-name="xsl-region-body">
						<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'"> 
					 wohnhaft in            
				</xsl:if>         
			</xsl:when>         
			<xsl:when test="$name_arg/last-name">            
				<xsl:call-template name="uppercaser">               
					<xsl:with-param name="string" select="$name_arg/last-name"></xsl:with-param>            
				</xsl:call-template>    
				<xsl:if test="$name_arg/last-name/text()">
					<xsl:choose>
						<xsl:when test="$name_arg/@lang='zh'">
							<xsl:text> </xsl:text>            
						</xsl:when>
						<xsl:when test="$name_arg/@lang='ko'">
							<xsl:text></xsl:text>            
						</xsl:when>
						<xsl:when test="$name_arg/@lang='ja'">
							<xsl:text>　</xsl:text>            
						</xsl:when>
						<xsl:otherwise> 
							<xsl:text>, </xsl:text>            
						</xsl:otherwise>
					</xsl:choose>
				</xsl:if>        
				<xsl:value-of select="$name_arg/first-name"></xsl:value-of>            
				<xsl:if test="$name_arg/middle-name">            
					<xsl:text> 
					</xsl:text>            
					<xsl:value-of select="$name_arg/middle-name"></xsl:value-of>            
				</xsl:if>            
            
				<xsl:if test="$name_arg/suffix">            
					<xsl:text>, </xsl:text>            
					<xsl:value-of select="$name_arg/suffix"></xsl:value-of>            
				</xsl:if>                        
           
				<xsl:if test="$showOf='1'">            		 
					 wohnhaft in            
				</xsl:if>
			</xsl:when>         
			<xsl:otherwise>             
				<xsl:value-of select="."></xsl:value-of>         
			</xsl:otherwise>                  
		</xsl:choose>   
	</xsl:template>
	<xsl:template name="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'">
								 Januar    
							</xsl:when>   
							<xsl:when test="$m='02'"> 
								 Februar    
							</xsl:when>   
							<xsl:when test="$m='03'"> 
								 März    
							</xsl:when>   
							<xsl:when test="$m='04'"> 
								 April    
							</xsl:when>   
							<xsl:when test="$m='05'"> 
								 Mai    
							</xsl:when>   
							<xsl:when test="$m='06'"> 
								 Juni    
							</xsl:when>   
							<xsl:when test="$m='07'"> 
								 Juli    
							</xsl:when>   
							<xsl:when test="$m='08'"> 
								 August    
							</xsl:when>   
							<xsl:when test="$m='09'"> 
								 September    
							</xsl:when>   
							<xsl:when test="$m='10'"> 
								 Oktober    
							</xsl:when>   
							<xsl:when test="$m='11'"> 
								 November    
							</xsl:when>   
							<xsl:when test="$m='12'"> 
								 Dezember    
							</xsl:when>
							<!-- trap error (e.g., 1-digit month) -->
							   
							<xsl:otherwise>  
								<xsl:value-of select="$m"></xsl:value-of>
								<xsl:text>月</xsl:text> 					  
								<!--xsl:value-of select = "$d"/>
								<xsl:text>日</xsl:text-->   
							</xsl:otherwise>
						</xsl:choose>
						<xsl:if test="$add_comma='1'">   
							<xsl:text>, </xsl:text>
						</xsl:if>
						<xsl:if test="$show_date='1'">   
							<xsl:value-of select="$d"></xsl:value-of>
							<xsl:text>日</xsl:text>
						</xsl:if> 
						<xsl:if test="$date_too = '1'">
							<xsl:text>  
							</xsl:text>
							<xsl:value-of select="concat('(',$d,'.',$m,'.',$y,')')"></xsl:value-of>
							<xsl:text>  
							</xsl:text> 
						</xsl:if> 
					</xsl:otherwise>  
				</xsl:choose>  
			</xsl:when>  
			<xsl:when test="$lang='ko'">  
				<xsl:choose>        
					<xsl:when test="$year_only='1'">
						<xsl:value-of select="$y"></xsl:value-of> 
					</xsl:when> 
					<xsl:when test="$text != '1'"> 
						<!-- Y 年  M 月  D 日 -->
						<xsl:value-of select="$d"></xsl:value-of>.<xsl:value-of select="$m"></xsl:value-of>.<xsl:value-of select="$y"></xsl:value-of>
					</xsl:when> 
					<xsl:otherwise>
						<xsl:value-of select="$y"></xsl:value-of>
						<xsl:text>년</xsl:text>
						<xsl:choose>   
							<xsl:when test="$m='01'">
								 Januar    
							</xsl:when>   
							<xsl:when test="$m='02'"> 
								 Februar    
							</xsl:when>   
							<xsl:when test="$m='03'"> 
								 März    
							</xsl:when>   
							<xsl:when test="$m='04'"> 
								 April    
							</xsl:when>   
							<xsl:when test="$m='05'"> 
								 Mai    
							</xsl:when>   
							<xsl:when test="$m = '06'"> 
								 Juni    
							</xsl:when>   
							<xsl:when test="$m='07'"> 
								 Juli    
							</xsl:when>   
							<xsl:when test="$m='08'"> 
								 August    
							</xsl:when>   
							<xsl:when test="$m='09'"> 
								 September    
							</xsl:when>   
							<xsl:when test="$m='10'"> 
								 Oktober    
							</xsl:when>   
							<xsl:when test="$m='11'"> 
								 November    
							</xsl:when>   
							<xsl:when test="$m='12'"> 
								 Dezember    
							</xsl:when>
							<!-- trap error (e.g., 1-digit month) -->
							   
							<xsl:otherwise>  
								<xsl:value-of select="$m"></xsl:value-of>
								<xsl:text>월</xsl:text> 					  
								<!--xsl:value-of select = "$d"/>
								<xsl:text>일</xsl:text-->   
							</xsl:otherwise>
						</xsl:choose>
						<xsl:if test="$add_comma='1'">   
							<xsl:text>, </xsl:text>
						</xsl:if>
						<xsl:if test="$show_date='1'">   
							<xsl:value-of select="$d"></xsl:value-of>
							<xsl:text>일</xsl:text>
						</xsl:if> 
						<xsl:if test="$date_too = '1'">
							<xsl:text>  
							</xsl:text>
							<xsl:value-of select="concat('(',$d,'.',$m,'.',$y,')')"></xsl:value-of>
							<xsl:text>  
							</xsl:text> 
						</xsl:if> 
					</xsl:otherwise>  
				</xsl:choose>  
			</xsl:when>  
			<xsl:otherwise>  
				<xsl:choose>        
					<xsl:when test="$year_only='1'">
						<xsl:value-of select="$y"></xsl:value-of> 
					</xsl:when> 
					<xsl:when test="$text != '1'">
						<xsl:value-of select="$d"></xsl:value-of>.<xsl:value-of select="$m"></xsl:value-of>.<xsl:value-of select="$y"></xsl:value-of>
					</xsl:when> 
					<xsl:otherwise>
						<xsl:if test="$show_date='1'">   
							<xsl:text> 
							</xsl:text>   
							<xsl:value-of select="$d"></xsl:value-of>   
							<xsl:if test="$lang='de'">.</xsl:if>
							<xsl:text> 
							</xsl:text>
						</xsl:if>
						<xsl:choose>   
							<xsl:when test="$m='01'"> 
								 Januar    
							</xsl:when>   
							<xsl:when test="$m='02'"> 
								 Februar    
							</xsl:when>   
							<xsl:when test="$m='03'"> 
								 März    
							</xsl:when>   
							<xsl:when test="$m='04'"> 
								 April    
							</xsl:when>   
							<xsl:when test="$m='05'"> 
								 Mai    
							</xsl:when>   
							<xsl:when test="$m = '06'"> 
								 Juni    
							</xsl:when>   
							<xsl:when test="$m='07'"> 
								 Juli    
							</xsl:when>   
							<xsl:when test="$m='08'"> 
								 August    
							</xsl:when>   
							<xsl:when test="$m='09'"> 
								 September    
							</xsl:when>   
							<xsl:when test="$m='10'"> 
								 Oktober    
							</xsl:when>   
							<xsl:when test="$m='11'"> 
								 November    
							</xsl:when>   
							<xsl:when test="$m='12'"> 
								 Dezember    
							</xsl:when>
							<!-- trap error (e.g., 1-digit month) -->
							<xsl:otherwise>  
								<xsl:value-of select="$m"></xsl:value-of> 
								<xsl:value-of select="$d"></xsl:value-of>   
							</xsl:otherwise>
						</xsl:choose>
						<xsl:value-of select="$y"></xsl:value-of>
						<xsl:if test="$add_comma='1'">   
							<xsl:text>, </xsl:text>
						</xsl:if> 
						<xsl:if test="$date_too = '1'">
							<xsl:text>  
							</xsl:text>
							<xsl:value-of select="concat('(',$d,'.',$m,'.',$y,')')"></xsl:value-of>
							<xsl:text>  
							</xsl:text> 
						</xsl:if> 
					</xsl:otherwise>  
				</xsl:choose> 
			</xsl:otherwise>
		</xsl:choose>
		</xsl:when>
		<xsl:otherwise> 
			<xsl:value-of select="$nDate"></xsl:value-of>
		</xsl:otherwise>
		</xsl:choose>   
	</xsl:template>
	<xsl:template name="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">
									Erklärung: Identität des Erfinders
								</fo:inline>
								<fo:block></fo:block>
								Erklärung hinsichtlich der Identität des Erfinders (Regeln 4.17 Ziffer i und 51bis.1 Absatz a Ziffer i)
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR">
							<fo:block padding-before="4mm">
								<fo:inline font-weight="bold">
									In bezug auf 
									<xsl:choose>
										<xsl:when test=".//application-reference">
											<xsl:if test="not($lang='ja')">
												internationale Anmeldung Nr.
											</xsl:if>
											<xsl:value-of select=".//country"></xsl:value-of>
											<xsl:text> </xsl:text>
											<xsl:value-of select=".//doc-number"></xsl:value-of>
											<xsl:if test="$lang='ja'">
												internationale Anmeldung Nr.
											</xsl:if>
										</xsl:when>
										<xsl:otherwise>
											diese internationale Anmeldung
										</xsl:otherwise>
									</xsl:choose>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<xsl:choose>
						<xsl:when test="not($lang='ja' or $lang='ko' or $lang='zh' or $lang='ru' or $lang='ar')">
							<xsl:for-each select=".//addressbook[*]">
								<fo:table-row>
									<fo:table-cell xsl:use-attribute-sets="tdBorderTop">
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdTC">
										<fo:block>
											<xsl:choose>
												<xsl:when test="$lang='ja'">
													<xsl:if test=".//address//text()">
														Anschrift 
													</xsl:if>
												</xsl:when>
												<xsl:otherwise>
													<xsl:call-template name="nameType">
														<xsl:with-param name="nam" select="./addressbook"></xsl:with-param>
													</xsl:call-template>
												</xsl:otherwise>
											</xsl:choose>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdTR">
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														<xsl:if test="./address//text()">
															<fo:block>
																<xsl:value-of select=".//postcode"></xsl:value-of>
															</fo:block>
															<fo:block>
																<xsl:call-template name="country_ChoiceText">
																	<xsl:with-param name="country" select=".//country"></xsl:with-param>
																</xsl:call-template>
															</fo:block>
															<xsl:choose>
																<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																	<fo:block white-space="pre" wrap-option="wrap">
																		<xsl:value-of select=".//state"></xsl:value-of>
																		<xsl:value-of select=".//city"></xsl:value-of>
																		<xsl:value-of select=".//street"></xsl:value-of>
																		<xsl:value-of select=".//address-1"></xsl:value-of>
																		<xsl:if test=".//address-2">
																			<fo:block white-space="pre" wrap-option="wrap">
																				<xsl:value-of select=".//address-2"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																		<xsl:if test=".//address-3">
																			<fo:block white-space="pre" wrap-option="wrap">
																				<xsl:value-of select=".//address-3"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																	</fo:block>
																</xsl:when>
																<xsl:otherwise>
																	<fo:block white-space-collapse="false" wrap-option="wrap">
																		<xsl:value-of select=".//state"></xsl:value-of>
																		<xsl:value-of select=".//city"></xsl:value-of>
																		<xsl:value-of select=".//street"></xsl:value-of>
																		<xsl:value-of select=".//address-1"></xsl:value-of>
																		<xsl:if test=".//address-2">
																			<fo:block white-space-collapse="false" wrap-option="wrap">
																				<xsl:value-of select=".//address-2"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																		<xsl:if test=".//address-3">
																			<fo:block white-space-collapse="false" wrap-option="wrap">
																				<xsl:value-of select=".//address-3"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																	</fo:block>
																</xsl:otherwise>
															</xsl:choose>
															<fo:block></fo:block>
															<xsl:text>在住の</xsl:text>
														</xsl:if>
													</xsl:when>
													<xsl:when test="$lang='zh'">
														<xsl:call-template name="format_name">
															<xsl:with-param name="name_arg" select="."></xsl:with-param>
														</xsl:call-template>
														<xsl:if test="./address//text()">
															<xsl:text> 住在</xsl:text>
														</xsl:if>
													</xsl:when>
													<xsl:when test="$lang='fr' or $lang='ru' or $lang='ko' or $lang='pt'">
														<xsl:call-template name="format_name">
															<xsl:with-param name="name_arg" select="."></xsl:with-param>
														</xsl:call-template>
													</xsl:when>
													<xsl:otherwise>
														<xsl:choose>
															<xsl:when test="./address//text()">
																<xsl:choose>
																	<xsl:when test="$lang = 'de'">
																		<xsl:call-template name="format_name">
																			<xsl:with-param name="name_arg" select="."></xsl:with-param>
																			<xsl:with-param name="showOf" select="1"></xsl:with-param>
																		</xsl:call-template>
																	</xsl:when>
																	<xsl:otherwise>
																		<xsl:call-template name="format_name">
																			<xsl:with-param name="name_arg" select="."></xsl:with-param>
																			<xsl:with-param name="showOf" select="1"></xsl:with-param>
																		</xsl:call-template>
																	</xsl:otherwise>
																</xsl:choose>
															</xsl:when>
															<xsl:otherwise>
																<xsl:call-template name="format_name">
																	<xsl:with-param name="name_arg" select="."></xsl:with-param>
																</xsl:call-template>
															</xsl:otherwise>
														</xsl:choose>
													</xsl:otherwise>
												</xsl:choose>
											</fo:inline>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
								<fo:table-row>
									<fo:table-cell>
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdC">
										<fo:block>
											<xsl:choose>
												<xsl:when test="$lang='ja'">
													<xsl:call-template name="nameType">
														<xsl:with-param name="nam" select="./addressbook"></xsl:with-param>
													</xsl:call-template>
												</xsl:when>
												<xsl:otherwise>
													<xsl:if test=".//address//text()">
														Anschrift 
													</xsl:if>
												</xsl:otherwise>
											</xsl:choose>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdR">
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														<xsl:call-template name="format_name">
															<xsl:with-param name="name_arg" select="."></xsl:with-param>
														</xsl:call-template>
														<fo:block></fo:block>
													</xsl:when>
													<xsl:otherwise>
														<xsl:if test="./address//text()">
															<xsl:choose>
																<xsl:when test=".//address/country='US' or .//address/country='CA'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:when test="$lang='zh'">
																			<!-- US and CA address in Chinese Request Case-->
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select=".//state"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//city"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//street"></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">
																						<xsl:value-of select=".//state"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//city"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//street"></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*">
																				<xsl:choose>
																					<xsl:when test="name(.)='city'">
																						<xsl:value-of select="."></xsl:value-of>
																						<xsl:text>, </xsl:text>
																					</xsl:when>
																					<xsl:when test="name(.)='state'">
																						<xsl:value-of select="."></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</xsl:when>
																					<xsl:when test="name(.)='postcode'">
																						<xsl:value-of select="."></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</xsl:when>
																					<xsl:when test="name(.)='country'">
																						<fo:block>
																							<xsl:call-template name="country_ChoiceText">
																								<xsl:with-param name="country" select="."></xsl:with-param>
																							</xsl:call-template>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<xsl:choose>
																							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																								<fo:block white-space="pre" wrap-option="wrap">
																									<xsl:value-of select="."></xsl:value-of>
																								</fo:block>
																							</xsl:when>
																							<xsl:otherwise>
																								<fo:block white-space-collapse="false" wrap-option="wrap">
																									<xsl:value-of select="."></xsl:value-of>
																								</fo:block>
																							</xsl:otherwise>
																						</xsl:choose>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='DE'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]">
																				<fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select="."></xsl:value-of>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">
																								<xsl:value-of select="."></xsl:value-of>
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																				</fo:block>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//address/city"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<!-- TODO: determine JA markup -->
																<xsl:when test=".//address/country='JP'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:when test="(.//address/state) or (.//address/city) or (.//address/street)">
																			<!-- Japanese address in Korean or Chinese Request Case-->
																			<xsl:choose>
																				<xsl:when test="$lang='ko'">
																					<fo:block>
																						<xsl:call-template name="country_ChoiceText">
																							<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																						</xsl:call-template>
																					</fo:block>
																					<fo:block>
																						<xsl:value-of select=".//postcode"></xsl:value-of>
																					</fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"></xsl:value-of>
																								<xsl:if test=".//address-2">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-2"></xsl:value-of>
																								</xsl:if>
																								<xsl:if test=".//address-3">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-3"></xsl:value-of>
																								</xsl:if>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"></xsl:value-of>
																								<xsl:if test=".//address-2">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-2"></xsl:value-of>
																								</xsl:if>
																								<xsl:if test=".//address-3">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-3"></xsl:value-of>
																								</xsl:if>
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block>
																						<xsl:call-template name="country_ChoiceText">
																							<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																						</xsl:call-template>
																					</fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																					<fo:block>
																						<xsl:value-of select=".//postcode"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select=".//address-1"></xsl:value-of>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">
																						<xsl:value-of select=".//address-1"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='GB'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*">
																				<xsl:choose>
																					<xsl:when test="name(.)='postcode'">
																						<xsl:value-of select="."></xsl:value-of>
																					</xsl:when>
																					<xsl:when test="name(.)='city'">
																						<xsl:value-of select="."></xsl:value-of>
																					</xsl:when>
																					<xsl:when test="name(.)='country'">
																						<fo:block>
																							<xsl:call-template name="country_ChoiceText">
																								<xsl:with-param name="country" select="."></xsl:with-param>
																							</xsl:call-template>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<xsl:choose>
																							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																								<fo:block white-space="pre" wrap-option="wrap">
																									<xsl:value-of select="."></xsl:value-of>
																								</fo:block>
																							</xsl:when>
																							<xsl:otherwise>
																								<fo:block white-space-collapse="false" wrap-option="wrap">
																									<xsl:value-of select="."></xsl:value-of>
																								</fo:block>
																							</xsl:otherwise>
																						</xsl:choose>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='KR'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select=".//state"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//city"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//street"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//address-1"></xsl:value-of>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">
																						<xsl:value-of select=".//state"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//city"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//street"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//address-1"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='CN' or .//address/country='TW'">			
																	<xsl:choose>			
																		<xsl:when test=".//text">		
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>		
																		<xsl:when test="$lang='zh'"> <!-- for when the stylesheet does not use "showZhAddress" for Chinese address -->
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">	
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																				<xsl:value-of select=".//address/state"></xsl:value-of>
																					<xsl:value-of select=".//address/city"></xsl:value-of>
																			</fo:block>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select=".//address/street"></xsl:value-of>
																						<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						<xsl:value-of select=".//address/address-3"></xsl:value-of>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">															
																						<xsl:value-of select=".//address/street"></xsl:value-of>
																						<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						<xsl:value-of select=".//address/address-3"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																			</fo:block>					
																		</xsl:when>		
																		<xsl:otherwise>		
																			<xsl:for-each select=".//address/*[not(name(.)='street' or name(.)='city' or name(.)='state' or name(.)='postcode' or name(.)='country')]"> 	
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">															
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>		
																			<xsl:if test=".//address/street">
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select=".//address/street"></xsl:value-of>	
																							<xsl:text> </xsl:text>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">															
																							<xsl:value-of select=".//address/street"></xsl:value-of>	
																							<xsl:text> </xsl:text>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:if>
																			<xsl:choose>
																				<xsl:when test=".//address/city">
																					<fo:block>		
																						<xsl:value-of select=".//address/city"></xsl:value-of>
																						<xsl:text>, </xsl:text>	
																						<xsl:value-of select=".//address/state"></xsl:value-of>	
																						<xsl:text> </xsl:text>	
																						<xsl:value-of select=".//address/postcode"></xsl:value-of>	
																					</fo:block>		
																				</xsl:when>
																				<xsl:otherwise>		
																					<fo:block>		
																						<xsl:value-of select=".//address/state"></xsl:value-of>	
																						<xsl:text> </xsl:text>	
																						<xsl:value-of select=".//address/postcode"></xsl:value-of>	
																					</fo:block>		
																				</xsl:otherwise>			
																			</xsl:choose>
																			<fo:block>		
																				<xsl:call-template name="country_ChoiceText">	
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>	
																			</fo:block>		
																		</xsl:otherwise>			
																	</xsl:choose>				
																</xsl:when>	
																<!-- 202001 CN address not shown correctly
																<xsl:when test=".//address/country='CN' or .//address/country='TW'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."/>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:choose>
																				<xsl:when test="$lang='ko'">
																					<fo:block>
																						<xsl:call-template name="country_ChoiceText">
																							<xsl:with-param name="country" select=".//address/country"/>
																						</xsl:call-template>
																					</fo:block>
																					<fo:block>
																						<xsl:value-of select=".//postcode"/>
																					</fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select=".//state"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"/>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">
																								<xsl:value-of select=".//state"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"/>
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block>
																						<xsl:call-template name="country_ChoiceText">
																							<xsl:with-param name="country" select=".//address/country"/>
																						</xsl:call-template>
																						<xsl:value-of select=".//state"/>
																						<xsl:value-of select=".//city"/>
																					</fo:block>
																					<xsl:if test=".//street">
																						<xsl:choose>
																							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																								<fo:block white-space="pre" wrap-option="wrap">
																									<xsl:value-of select=".//street"/>
																								</fo:block>
																							</xsl:when>
																							<xsl:otherwise>
																								<fo:block white-space-collapse="false" wrap-option="wrap">
																									<xsl:value-of select=".//street"/>
																								</fo:block>
																							</xsl:otherwise>
																						</xsl:choose>
																					</xsl:if>
																					<fo:block>
																						<xsl:value-of select=".//postcode"/>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																!-->
																<xsl:when test=".//address/country='FR' or .//address/country='NL' or .//address/country='SE' or .//address/country='CH' or .//address/country='LI'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]">
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//address/city"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='RU'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>   
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]"> 
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//city"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<!-- for all others, use European format by default -->
																<xsl:otherwise>
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]">
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//city"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:otherwise>
															</xsl:choose>
														</xsl:if>
													</xsl:otherwise>
												</xsl:choose>
												 ist der Erfinder des Gegenstandes, für den im Wege dieser internationalen Anmeldung um Schutz nachgesucht wird
											</fo:inline>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
							</xsl:for-each>
						</xsl:when>
						<xsl:otherwise>
							<xsl:for-each select=".//addressbook[@lang='ja' or @lang='ko' or @lang='zh' or @lang='ru' or @lang='ar']">
								<xsl:variable name="sibling" select="following-sibling::addressbook[position()=1][@lang='en']"></xsl:variable>
								<fo:table-row>
									<fo:table-cell xsl:use-attribute-sets="tdBorderTop">
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdTC">
										<fo:block>
											<xsl:choose>
												<xsl:when test="$lang='ja'">
													<xsl:if test=".//address//text()">
														Anschrift 
													</xsl:if>
												</xsl:when>
												<xsl:otherwise>
													<xsl:call-template name="nameType">
														<xsl:with-param name="nam" select="./addressbook"></xsl:with-param>
													</xsl:call-template>
												</xsl:otherwise>
											</xsl:choose>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdTR">
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														<xsl:if test="./address//text()">
															<fo:block>
																<xsl:value-of select=".//postcode"></xsl:value-of>
															</fo:block>
															<fo:block>
																<xsl:call-template name="country_ChoiceText">
																	<xsl:with-param name="country" select=".//country"></xsl:with-param>
																</xsl:call-template>
															</fo:block>
															<xsl:choose>
																<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																	<fo:block white-space="pre" wrap-option="wrap">
																		<xsl:value-of select=".//state"></xsl:value-of>
																		<xsl:value-of select=".//city"></xsl:value-of>
																		<xsl:value-of select=".//street"></xsl:value-of>
																		<xsl:value-of select=".//address-1"></xsl:value-of>
																		<xsl:if test=".//address-2">
																			<fo:block white-space="pre" wrap-option="wrap">
																				<xsl:value-of select=".//address-2"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																		<xsl:if test=".//address-3">
																			<fo:block white-space="pre" wrap-option="wrap">
																				<xsl:value-of select=".//address-3"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																	</fo:block>
																</xsl:when>
																<xsl:otherwise>
																	<fo:block white-space-collapse="false" wrap-option="wrap">
																		<xsl:value-of select=".//state"></xsl:value-of>
																		<xsl:value-of select=".//city"></xsl:value-of>
																		<xsl:value-of select=".//street"></xsl:value-of>
																		<xsl:value-of select=".//address-1"></xsl:value-of>
																		<xsl:if test=".//address-2">
																			<fo:block white-space-collapse="false" wrap-option="wrap">
																				<xsl:value-of select=".//address-2"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																		<xsl:if test=".//address-3">
																			<fo:block white-space-collapse="false" wrap-option="wrap">
																				<xsl:value-of select=".//address-3"></xsl:value-of>
																			</fo:block>
																		</xsl:if>
																	</fo:block>
																</xsl:otherwise>
															</xsl:choose>
															<fo:block></fo:block>
															<xsl:text>在住の</xsl:text>
														</xsl:if>
													</xsl:when>
													<xsl:when test="$lang='zh'">
														<xsl:call-template name="format_name">
															<xsl:with-param name="name_arg" select="."></xsl:with-param>
														</xsl:call-template>
														<xsl:if test="./address//text()">
															<xsl:text> 住在</xsl:text>
														</xsl:if>
													</xsl:when>
													<xsl:when test="$lang='fr' or $lang='ru' or $lang='ko' or $lang='pt'">
														<xsl:call-template name="format_name">
															<xsl:with-param name="name_arg" select="."></xsl:with-param>
														</xsl:call-template>
													</xsl:when>
													<xsl:otherwise>
														<xsl:choose>
															<xsl:when test="./address//text()">
																<xsl:choose>
																	<xsl:when test="$lang = 'de'">
																		<xsl:call-template name="format_name">
																			<xsl:with-param name="name_arg" select="."></xsl:with-param>
																			<xsl:with-param name="showOf" select="1"></xsl:with-param>
																		</xsl:call-template>
																	</xsl:when>
																	<xsl:otherwise>
																		<xsl:call-template name="format_name">
																			<xsl:with-param name="name_arg" select="."></xsl:with-param>
																			<xsl:with-param name="showOf" select="1"></xsl:with-param>
																		</xsl:call-template>
																	</xsl:otherwise>
																</xsl:choose>
															</xsl:when>
															<xsl:otherwise>
																<xsl:call-template name="format_name">
																	<xsl:with-param name="name_arg" select="."></xsl:with-param>
																</xsl:call-template>
															</xsl:otherwise>
														</xsl:choose>
													</xsl:otherwise>
												</xsl:choose>
											</fo:inline>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
								<!-- 2018.03.09 Transliteration address for Declaration (i) for non-latin language -->
								<xsl:if test="following-sibling::addressbook[position()=1][@lang='en']">
									<fo:table-row>
										<fo:table-cell>
											<fo:block></fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdC">
											<fo:block>
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														<xsl:if test=".//address//text()">
															Address:
														</xsl:if>
													</xsl:when>
													<xsl:when test="$lang='ar'">
														<fo:table>
															<fo:table-column column-width="2mm"></fo:table-column>
															<fo:table-column column-width="24mm"></fo:table-column>
															<fo:table-column column-width="27mm"></fo:table-column>
															<fo:table-body>
																<fo:table-row>
																	<fo:table-cell text-align="left">
																		<fo:block>(</fo:block>
																	</fo:table-cell>
																	<fo:table-cell>
																		<fo:block>Name (LAST, First</fo:block>
																	</fo:table-cell>
																	<fo:table-cell>
																		<fo:block>:</fo:block>
																	</fo:table-cell>
																</fo:table-row>
															</fo:table-body>
														</fo:table>
													</xsl:when>
													<xsl:otherwise>
														Name (LAST, First):
													</xsl:otherwise>
												</xsl:choose>
											</fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdR">
											<fo:block padding-top="1pt">
												<fo:inline font-weight="bold">
													<xsl:choose>
														<xsl:when test="$lang='ja'">
															<xsl:if test="$sibling//address//text()">
																<xsl:call-template name="showEnAddress">
																	<xsl:with-param name="address_arg" select="$sibling"></xsl:with-param>																	
																</xsl:call-template>
															</xsl:if>
														</xsl:when>
														<xsl:when test="$lang='zh' or $lang='ru' or $lang='ko' or $lang='ar'">
															<xsl:call-template name="format_name">
																<xsl:with-param name="name_arg" select="$sibling"></xsl:with-param>
															</xsl:call-template>
														</xsl:when>
													</xsl:choose>
												</fo:inline>
											</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</xsl:if>
								<fo:table-row>
									<fo:table-cell>
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdC">
										<fo:block>
											<xsl:choose>
												<xsl:when test="$lang='ja'">
													<xsl:call-template name="nameType">
														<xsl:with-param name="nam" select="./addressbook"></xsl:with-param>
													</xsl:call-template>
												</xsl:when>
												<xsl:otherwise>
													<xsl:if test=".//address//text()">
														Anschrift 
													</xsl:if>
												</xsl:otherwise>
											</xsl:choose>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdR">
										<fo:block padding-top="1pt">
											<fo:inline font-weight="bold">
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														<xsl:call-template name="format_name">
															<xsl:with-param name="name_arg" select="."></xsl:with-param>
														</xsl:call-template>
														<fo:block></fo:block>
													</xsl:when>
													<xsl:otherwise>
														<xsl:if test="./address//text()">
															<xsl:choose>
																<xsl:when test=".//address/country='US' or .//address/country='CA'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:when test="$lang='zh'">
																			<!-- US and CA address in Chinese Request Case-->
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select=".//state"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//city"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//street"></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">															
																						<xsl:value-of select=".//state"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//city"></xsl:value-of>
																						<xsl:text> </xsl:text>
																						<xsl:value-of select=".//street"></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*">
																				<xsl:choose>
																					<xsl:when test="name(.)='city'">
																						<xsl:value-of select="."></xsl:value-of>
																						<xsl:text>, </xsl:text>
																					</xsl:when>
																					<xsl:when test="name(.)='state'">
																						<xsl:value-of select="."></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</xsl:when>
																					<xsl:when test="name(.)='postcode'">
																						<xsl:value-of select="."></xsl:value-of>
																						<xsl:text> </xsl:text>
																					</xsl:when>
																					<xsl:when test="name(.)='country'">
																						<fo:block>
																							<xsl:call-template name="country_ChoiceText">
																								<xsl:with-param name="country" select="."></xsl:with-param>
																							</xsl:call-template>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<xsl:choose>
																							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																								<fo:block white-space="pre" wrap-option="wrap">
																									<xsl:value-of select="."></xsl:value-of>
																								</fo:block>
																							</xsl:when>
																							<xsl:otherwise>
																								<fo:block white-space-collapse="false" wrap-option="wrap">															
																									<xsl:value-of select="."></xsl:value-of>   
																								</fo:block>
																							</xsl:otherwise>
																						</xsl:choose>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='DE'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]">
																				<fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select="."></xsl:value-of>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">															
																								<xsl:value-of select="."></xsl:value-of>   
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																				</fo:block>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//address/city"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<!-- TODO: determine JA markup -->
																<xsl:when test=".//address/country='JP'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:when test="(.//address/state) or (.//address/city) or (.//address/street)">
																			<!-- Japanese address in Korean or Chinese Request Case-->
																			<xsl:choose>
																				<xsl:when test="$lang='ko'">
																					<fo:block>
																						<xsl:call-template name="country_ChoiceText">
																							<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																						</xsl:call-template>
																					</fo:block>
																					<fo:block>
																						<xsl:value-of select=".//postcode"></xsl:value-of>
																					</fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"></xsl:value-of>
																								<xsl:if test=".//address-2">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-2"></xsl:value-of>
																								</xsl:if>
																								<xsl:if test=".//address-3">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-3"></xsl:value-of>
																								</xsl:if>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">															
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"></xsl:value-of>
																								<xsl:if test=".//address-2">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-2"></xsl:value-of>
																								</xsl:if>
																								<xsl:if test=".//address-3">
																									<xsl:text> </xsl:text>
																									<xsl:value-of select=".//address-3"></xsl:value-of>
																								</xsl:if>
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block>
																						<xsl:call-template name="country_ChoiceText">
																							<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																						</xsl:call-template>
																					</fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">															
																								<xsl:value-of select=".//state"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"></xsl:value-of>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"></xsl:value-of>
																								<xsl:text> </xsl:text>
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																					<fo:block>
																						<xsl:value-of select=".//postcode"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																					<xsl:value-of select=".//address-1"></xsl:value-of>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">															
																						<xsl:value-of select=".//address-1"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='GB'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*">
																				<xsl:choose>
																					<xsl:when test="name(.)='postcode'">
																						<xsl:value-of select="."></xsl:value-of>
																					</xsl:when>
																					<xsl:when test="name(.)='city'">
																						<xsl:value-of select="."></xsl:value-of>
																					</xsl:when>
																					<xsl:when test="name(.)='country'">
																						<fo:block>
																							<xsl:call-template name="country_ChoiceText">
																								<xsl:with-param name="country" select="."></xsl:with-param>
																							</xsl:call-template>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<xsl:choose>
																							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																								<fo:block white-space="pre" wrap-option="wrap">
																									<xsl:value-of select="."></xsl:value-of>
																								</fo:block>
																							</xsl:when>
																							<xsl:otherwise>
																								<fo:block white-space-collapse="false" wrap-option="wrap">															
																									<xsl:value-of select="."></xsl:value-of>   
																								</fo:block>
																							</xsl:otherwise>
																						</xsl:choose>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='KR'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select=".//state"></xsl:value-of>
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//city"></xsl:value-of>
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//street"></xsl:value-of>
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//address-1"></xsl:value-of>
																							<xsl:if test=".//address-2">
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-2"></xsl:value-of>
																							</xsl:if>
																							<xsl:if test=".//address-3">
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-3"></xsl:value-of>
																							</xsl:if>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">															
																							<xsl:value-of select=".//state"></xsl:value-of>
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//city"></xsl:value-of>
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//street"></xsl:value-of>
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//address-1"></xsl:value-of>
																							<xsl:if test=".//address-2">
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-2"></xsl:value-of>
																							</xsl:if>
																							<xsl:if test=".//address-3">
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-3"></xsl:value-of>
																							</xsl:if>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='CN' or .//address/country='TW'">			
																	<xsl:choose>			
																		<xsl:when test=".//text">		
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>		
																		<xsl:when test="$lang='zh'"> <!-- for when the stylesheet does not use "showZhAddress" for Chinese address -->
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">	
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																				<xsl:value-of select=".//address/state"></xsl:value-of>
																					<xsl:value-of select=".//address/city"></xsl:value-of>
																			</fo:block>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select=".//address/street"></xsl:value-of>
																						<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						<xsl:value-of select=".//address/address-3"></xsl:value-of>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">															
																						<xsl:value-of select=".//address/street"></xsl:value-of>
																						<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						<xsl:value-of select=".//address/address-3"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																			</fo:block>					
																		</xsl:when>
																		<xsl:when test="$lang='ru'">
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																				<xsl:value-of select=".//address/state"></xsl:value-of>
																				<xsl:value-of select=".//address/city"></xsl:value-of>
																			</fo:block>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select=".//address/street"></xsl:value-of>
																						<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						<xsl:value-of select=".//address/address-3"></xsl:value-of>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">															
																						<xsl:value-of select=".//address/street"></xsl:value-of>
																						<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						<xsl:value-of select=".//address/address-3"></xsl:value-of>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																			</fo:block>
																		</xsl:when>
																		<xsl:when test="$lang='ko'">
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																			</fo:block>
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:if test=".//address/state">   
																							<xsl:value-of select=".//address/state"></xsl:value-of>
																							<xsl:text> </xsl:text>
																						</xsl:if>
																						<xsl:if test=".//address/city">
																							<xsl:value-of select=".//address/city"></xsl:value-of>
																							<xsl:text> </xsl:text>
																						</xsl:if>
																						<xsl:if test=".//address/street">
																							<xsl:value-of select=".//address/street"></xsl:value-of>
																							<xsl:text> </xsl:text>
																						</xsl:if>
																						<xsl:if test=".//address/address-1">
																							<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						</xsl:if>
																						<xsl:if test=".//address/address-2">
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						</xsl:if>
																						<xsl:if test=".//address/address-3">
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//address/address-3"></xsl:value-of>
																						</xsl:if>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">															
																						<xsl:if test=".//address/state">   
																							<xsl:value-of select=".//address/state"></xsl:value-of>
																							<xsl:text> </xsl:text>
																						</xsl:if>
																						<xsl:if test=".//address/city">
																							<xsl:value-of select=".//address/city"></xsl:value-of>
																							<xsl:text> </xsl:text>
																						</xsl:if>
																						<xsl:if test=".//address/street">
																							<xsl:value-of select=".//address/street"></xsl:value-of>
																							<xsl:text> </xsl:text>
																						</xsl:if>
																						<xsl:if test=".//address/address-1">
																							<xsl:value-of select=".//address/address-1"></xsl:value-of>
																						</xsl:if>
																						<xsl:if test=".//address/address-2">
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//address/address-2"></xsl:value-of>
																						</xsl:if>
																						<xsl:if test=".//address/address-3">
																							<xsl:text> </xsl:text>
																							<xsl:value-of select=".//address/address-3"></xsl:value-of>
																						</xsl:if>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:when>
																		<xsl:otherwise>		
																			<xsl:for-each select=".//address/*[not(name(.)='street' or name(.)='city' or name(.)='state' or name(.)='postcode' or name(.)='country')]"> 	
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">															
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>		
																			<xsl:if test=".//address/street">
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select=".//address/street"></xsl:value-of>	
																							<xsl:text> </xsl:text>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">															
																							<xsl:value-of select=".//address/street"></xsl:value-of>	
																							<xsl:text> </xsl:text>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:if>
																			<xsl:choose>
																				<xsl:when test=".//address/city">
																					<fo:block>		
																						<xsl:value-of select=".//address/city"></xsl:value-of>
																						<xsl:text>, </xsl:text>	
																						<xsl:value-of select=".//address/state"></xsl:value-of>	
																						<xsl:text> </xsl:text>	
																						<xsl:value-of select=".//address/postcode"></xsl:value-of>	
																					</fo:block>		
																				</xsl:when>
																				<xsl:otherwise>		
																					<fo:block>		
																						<xsl:value-of select=".//address/state"></xsl:value-of>	
																						<xsl:text> </xsl:text>	
																						<xsl:value-of select=".//address/postcode"></xsl:value-of>	
																					</fo:block>		
																				</xsl:otherwise>			
																			</xsl:choose>
																			<fo:block>		
																				<xsl:call-template name="country_ChoiceText">	
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>	
																			</fo:block>		
																		</xsl:otherwise>			
																	</xsl:choose>				
																</xsl:when>	
																<!-- 202001 CN address not shown correctly
																<xsl:when test=".//address/country='CN' or .//address/country='TW'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."/>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:choose>
																				<xsl:when test="$lang='ko'">
																					<fo:block>
																						<xsl:call-template name="country_ChoiceText">
																							<xsl:with-param name="country" select=".//address/country"/>
																						</xsl:call-template>
																					</fo:block>
																					<fo:block>
																						<xsl:value-of select=".//postcode"/>
																					</fo:block>
																					<xsl:choose>
																						<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																							<fo:block white-space="pre" wrap-option="wrap">
																								<xsl:value-of select=".//state"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"/>
																							</fo:block>
																						</xsl:when>
																						<xsl:otherwise>
																							<fo:block white-space-collapse="false" wrap-option="wrap">															
																								<xsl:value-of select=".//state"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//city"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//street"/>
																								<xsl:text> </xsl:text>
																								<xsl:value-of select=".//address-1"/>
																							</fo:block>
																						</xsl:otherwise>
																					</xsl:choose>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block>
																						<xsl:choose>
																							<xsl:when test="$lang='zh'">
																								<xsl:variable name="country_name">
																									<xsl:call-template name="country_ChoiceText">
																										<xsl:with-param name="country" select=".//address/country"/>
																									</xsl:call-template>
																								</xsl:variable>
																								<xsl:value-of select="normalize-space($country_name)"></xsl:value-of>
																							</xsl:when>
																							<xsl:otherwise>
																								<xsl:call-template name="country_ChoiceText">
																									<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																								</xsl:call-template>
																							</xsl:otherwise>
																						</xsl:choose>
																						<xsl:value-of select=".//state"/>
																						<xsl:value-of select=".//city"/>
																					</fo:block>
																					<xsl:if test=".//street">
																						<xsl:choose>
																							<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																								<fo:block white-space="pre" wrap-option="wrap">
																									<xsl:value-of select=".//street"/>
																								</fo:block>
																							</xsl:when>
																							<xsl:otherwise>
																								<fo:block white-space-collapse="false" wrap-option="wrap">															
																									<xsl:value-of select=".//street"/>
																								</fo:block>
																							</xsl:otherwise>
																						</xsl:choose>
																					</xsl:if>
																					<fo:block>
																						<xsl:value-of select=".//postcode"/>
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when> !-->
																<xsl:when test=".//address/country='FR' or .//address/country='NL' or .//address/country='SE' or .//address/country='CH' or .//address/country='LI'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]">
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">															
																							<xsl:value-of select="."></xsl:value-of>   
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//address/postcode"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//address/city"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//address/country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<xsl:when test=".//address/country='RU'">
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>   
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]"> 
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//city"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:when>
																<!-- for all others, use European format by default -->
																<xsl:otherwise>
																	<xsl:choose>
																		<xsl:when test=".//text">
																			<xsl:value-of select="."></xsl:value-of>
																		</xsl:when>
																		<xsl:otherwise>
																			<xsl:for-each select=".//address/*[not(name(.)='city' or name(.)='postcode' or name(.)='country')]">
																				<xsl:choose>
																					<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																						<fo:block white-space="pre" wrap-option="wrap">
																							<xsl:value-of select="."></xsl:value-of>
																						</fo:block>
																					</xsl:when>
																					<xsl:otherwise>
																						<fo:block white-space-collapse="false" wrap-option="wrap">															
																							<xsl:value-of select="."></xsl:value-of>   
																						</fo:block>
																					</xsl:otherwise>
																				</xsl:choose>
																			</xsl:for-each>
																			<fo:block>
																				<xsl:value-of select=".//postcode"></xsl:value-of>
																				<xsl:text> </xsl:text>
																				<xsl:value-of select=".//city"></xsl:value-of>
																			</fo:block>
																			<fo:block>
																				<xsl:call-template name="country_ChoiceText">
																					<xsl:with-param name="country" select=".//country"></xsl:with-param>
																				</xsl:call-template>
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:otherwise>
															</xsl:choose>
														</xsl:if>
													</xsl:otherwise>
												</xsl:choose>
											</fo:inline>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
								<!-- 2018.03.09 Transliteration address for Declaration (i) for non-latin language -->
								<xsl:if test="following-sibling::addressbook[position()=1][@lang='en']">
									<fo:table-row>
										<fo:table-cell>
											<fo:block></fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdC">
											<fo:block>
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														Name (LAST, First):
													</xsl:when>
													<xsl:otherwise>
														<xsl:if test=".//address//text()">
															Address:
														</xsl:if>
													</xsl:otherwise>
												</xsl:choose>
											</fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdR">
											<fo:block padding-top="1pt">
												<fo:inline font-weight="bold">
													<xsl:choose>
														<xsl:when test="$lang='ja'">
															<xsl:call-template name="format_name">
																<xsl:with-param name="name_arg" select="$sibling"></xsl:with-param>
															</xsl:call-template>
															<fo:block></fo:block>
														</xsl:when>
														<xsl:otherwise>
															<xsl:if test="./address//text()">
																<xsl:call-template name="showEnAddress">
																	<xsl:with-param name="address_arg" select="$sibling"></xsl:with-param>																	
																</xsl:call-template>
															</xsl:if>
														</xsl:otherwise>
													</xsl:choose>
												</fo:inline>
											</fo:block>
										</fo:table-cell>
									</fo:table-row>
								</xsl:if>
								<fo:table-row>
									<fo:table-cell>
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdC">
										<fo:block></fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdR">
										<fo:block>
											<fo:inline font-weight="bold">
												 ist der Erfinder des Gegenstandes, für den im Wege dieser internationalen Anmeldung um Schutz nachgesucht wird
											</fo:inline>
										</fo:block>
									</fo:table-cell>
								</fo:table-row>
							</xsl:for-each>
						</xsl:otherwise>
					</xsl:choose>
					<fo:table-row>
						<fo:table-cell number-columns-spanned="3" border-top="solid black 0.25pt">
							<fo:block></fo:block>
						</fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
		</xsl:for-each>
	</xsl:template>
	<xsl:template name="process_dec2">
		<xsl:variable name="dec_seq" select="@sequence"></xsl:variable>  
		<fo:table table-layout="fixed" border-collapse="separate">          
			<fo:table-column column-width="12mm"></fo:table-column>          
			<fo:table-column column-width="53mm"></fo:table-column>          
			<fo:table-column column-width="105mm"></fo:table-column> 
			<fo:table-body>               
				<fo:table-row>                  
					<fo:table-cell xsl:use-attribute-sets="tdTL">                     
						<fo:block>                        
							<fo:inline font-weight="bold">VIII-2-<xsl:value-of select="$dec_seq"></xsl:value-of>                        
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdTC">                     
						<fo:block>                        
							<fo:inline font-weight="bold">                           
								Erklärung: Berechtigung, ein Patent zu beantragen und zu erhalten                        
							</fo:inline>                        
							<fo:block></fo:block>                        
							 Erklärung hinsichtlich der Berechtigung des Anmelders, zum Zeitpunkt des internationalen Anmeldedatums, ein Patent zu beantragen und zu erhalten (Regeln 4.17 Ziffer ii und 51bis.1 Absatz a Ziffer ii), für den Fall, daß eine Erklärung nach Regel 4.17 Ziffer iv nicht einschlägig ist:                      
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdTR">                     
						<fo:block padding-before="7mm">    
							<fo:inline font-weight="bold">                           
								In bezug auf 
								<xsl:choose>                              
									<xsl:when test=".//application-reference">                                 
										<xsl:if test="not($lang='ja')">
											internationale Anmeldung Nr.  
										</xsl:if>
										<xsl:value-of select=".//country"></xsl:value-of>                                 
										<xsl:text> 
										</xsl:text>                                 
										<xsl:value-of select=".//doc-number"></xsl:value-of>    
										<xsl:if test="$lang='ja'">
											internationale Anmeldung Nr.  
										</xsl:if>                          
									</xsl:when>                              
									<xsl:otherwise>
										diese internationale Anmeldung                              
									</xsl:otherwise>                           
								</xsl:choose>                        
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>               
				</fo:table-row>               
				<fo:table-row>                  
					<fo:table-cell>                     
						<fo:block></fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdC">                     
						<fo:block>                     
							<xsl:call-template name="nameType">                     
								<xsl:with-param name="nam" select="."></xsl:with-param>                     
							</xsl:call-template>                     
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdR">                     
						<fo:block padding-top="1pt">                        
							<fo:inline font-weight="bold">           
								<xsl:if test="$lang='ja'">以下の事実により、      <fo:block></fo:block>                     
								</xsl:if>                
								<xsl:call-template name="format_name">                              
									<xsl:with-param name="name_arg" select="."></xsl:with-param>                           
								</xsl:call-template>
								<xsl:if test="$lang='ja'">
									<xsl:text>は、</xsl:text>                       
									<fo:block></fo:block> 
								</xsl:if>
								 ist kraft des nachfolgend Aufgeführten berechtigt, ein Patent zu beantragen und zu erhalten:                         
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>               
				</fo:table-row>    
			</fo:table-body>
		</fo:table>           
		<xsl:for-each select="./matter">                  
			<xsl:variable name="matter" select="translate(@item,'()','')"></xsl:variable>                  
			<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">          
				<fo:table-column column-width="12mm"></fo:table-column>          
				<fo:table-column column-width="53mm"></fo:table-column>          
				<fo:table-column column-width="105mm"></fo:table-column> 
				<fo:table-body>               
					<fo:table-row>                     
						<fo:table-cell xsl:use-attribute-sets="tdTL">                        
							<fo:block>VIII-2-<xsl:value-of select="$dec_seq"></xsl:value-of></fo:block>
							<fo:block>(<xsl:value-of select="$matter"></xsl:value-of>)</fo:block>                     
						</fo:table-cell>                     
						<fo:table-cell xsl:use-attribute-sets="tdTC">                        
							<fo:block></fo:block>                     
						</fo:table-cell>                     
						<fo:table-cell xsl:use-attribute-sets="tdTR">                        
							<fo:block padding-top="1pt"> 
								<fo:inline font-weight="bold">                        
									<xsl:call-template name="matter">                        
										<xsl:with-param name="matter" select="$matter"></xsl:with-param>                        
									</xsl:call-template>                           
								</fo:inline>                        
							</fo:block>                        
						</fo:table-cell>                  
					</fo:table-row>  
					<fo:table-row>
						<fo:table-cell number-columns-spanned="3" border-top="solid black 0.25pt">
							<fo:block></fo:block>
						</fo:table-cell>
					</fo:table-row>      
				</fo:table-body>
			</fo:table>
		</xsl:for-each>               
	</xsl:template>
	<xsl:template name="process_dec3">
		<xsl:variable name="dec_seq" select="@sequence"></xsl:variable>  
		<fo:table table-layout="fixed" border-collapse="separate">          
			<fo:table-column column-width="12mm"></fo:table-column>          
			<fo:table-column column-width="53mm"></fo:table-column>          
			<fo:table-column column-width="105mm"></fo:table-column> 
			<fo:table-body>               
				<fo:table-row>                  
					<fo:table-cell xsl:use-attribute-sets="tdTL">                     
						<fo:block>                        
							<fo:inline font-weight="bold">VIII-3-<xsl:value-of select="$dec_seq"></xsl:value-of>                        
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdTC">                     
						<fo:block>                        
							<fo:inline font-weight="bold">                           
								Erklärung: Berechtigung, Priorität zu beanspruchen                         
							</fo:inline>                        
							<fo:block></fo:block>                        
							 Erklärung hinsichtlich der Berechtigung des Anmelders, zum Zeitpunkt des internationalen Anmeldedatums, eine Priorität zu beanspruchen, in Fällen, in denen der Anmelder nicht der Anmelder der früheren Anmeldung, deren Priorität beansprucht wird, ist oder in Fällen, in denen sich der Name des Anmelders seit dem Einreichen der früheren Anmeldung geändert hat (Regeln 4.17 Ziffer iii und 51bis.1 Absatz a Ziffer iii):                      
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdTR">                     
						<fo:block padding-before="7mm">                        
							<fo:inline font-weight="bold">                           
								In bezug auf 
								<xsl:choose>                              
									<xsl:when test=".//application-reference">                                 
										<xsl:if test="not($lang='ja')">
											internationale Anmeldung Nr.  
										</xsl:if>
										<xsl:value-of select=".//country"></xsl:value-of>                                 
										<xsl:text> 
										</xsl:text>                                 
										<xsl:value-of select=".//doc-number"></xsl:value-of>    
										<xsl:if test="$lang='ja'">
											internationale Anmeldung Nr.  
										</xsl:if>                          
									</xsl:when>                              
									<xsl:otherwise>
										diese internationale Anmeldung                              
									</xsl:otherwise>                           
								</xsl:choose>                        
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>               
				</fo:table-row>               
				<fo:table-row>                  
					<fo:table-cell>                     
						<fo:block></fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdC">                     
						<fo:block>                     
							<xsl:choose>
								<xsl:when test="./name and not($lang='zh')">
									Name 
								</xsl:when>
								<xsl:when test="./name and $lang='zh'">
									Name (FAMILIENNAME, Vorname)
								</xsl:when>
								<xsl:otherwise>
									Name (FAMILIENNAME, Vorname)
								</xsl:otherwise>
							</xsl:choose>
						</fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdR">                     
						<fo:block padding-top="1pt">                        
							<fo:inline font-weight="bold">                           
								<xsl:if test="$lang='ja'">
									<xsl:text>以下の事実により、</xsl:text>                  
									<fo:block></fo:block>
								</xsl:if>
								<xsl:call-template name="format_name">                              
									<xsl:with-param name="name_arg" select="."></xsl:with-param>                           
								</xsl:call-template>                        
								<xsl:if test="$lang='ja'">
									<xsl:text>は、</xsl:text>
								</xsl:if>
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>               
				</fo:table-row>               
				<fo:table-row>                  
					<fo:table-cell>                     
						<fo:block></fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdC">                     
						<fo:block></fo:block>                  
					</fo:table-cell>                  
					<fo:table-cell xsl:use-attribute-sets="tdR">                     
						<fo:block padding-top="1pt">                        
							<fo:inline font-weight="bold">                           
								 ist kraft des nachfolgend Aufgeführten berechtigt, die Priorität der früheren Anmeldung Nr.                            
								<xsl:value-of select=".//earlier-app-reference//country"></xsl:value-of>                           
								<xsl:text> </xsl:text>
								<xsl:value-of select=".//earlier-app-reference//doc-number"></xsl:value-of>                           
								 zu beanspruchen:                         
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>               
				</fo:table-row>   
			</fo:table-body>
		</fo:table>            
		<xsl:for-each select="./matter">                  
			<xsl:variable name="matter" select="translate(@item,'()','')"></xsl:variable>                  
			<fo:table table-layout="fixed" border-collapse="separate" keep-together.within-page="always">          
				<fo:table-column column-width="12mm"></fo:table-column>          
				<fo:table-column column-width="53mm"></fo:table-column>          
				<fo:table-column column-width="105mm"></fo:table-column> 
				<fo:table-body>               
					<fo:table-row>                     
						<fo:table-cell xsl:use-attribute-sets="tdTBL">                        
							<fo:block>VIII-3-<xsl:value-of select="$dec_seq"></xsl:value-of></fo:block>
							<fo:block>(<xsl:value-of select="$matter"></xsl:value-of>)</fo:block>                     
						</fo:table-cell>                     
						<fo:table-cell xsl:use-attribute-sets="tdTBC">                        
							<fo:block></fo:block>                     
						</fo:table-cell>                     
						<fo:table-cell xsl:use-attribute-sets="tdTBR">                        
							<fo:block padding-top="1pt">                        
								<fo:inline font-weight="bold">                        
									<xsl:call-template name="matter">                        
										<xsl:with-param name="matter" select="$matter"></xsl:with-param>                        
									</xsl:call-template>                           
								</fo:inline>                        
							</fo:block>   
						</fo:table-cell>                  
					</fo:table-row>           
					<fo:table-row>
						<fo:table-cell number-columns-spanned="3" border-top="solid black 0.25pt">
							<fo:block></fo:block>
						</fo:table-cell>
					</fo:table-row>      
				</fo:table-body>
			</fo:table>    
		</xsl:for-each>               
	</xsl:template>
	<xsl:template name="process_dec4">   
		<xsl:variable name="dec_seq" select="@sequence"></xsl:variable>
		<xsl:for-each select=".">      
			<fo:table table-layout="fixed" border-collapse="separate">          
				<fo:table-column column-width="12mm"></fo:table-column>          
				<fo:table-column column-width="53mm"></fo:table-column>          
				<fo:table-column column-width="105mm"></fo:table-column>         
				<fo:table-body>            
					<fo:table-row>               
						<fo:table-cell xsl:use-attribute-sets="tdTBL">                  
							<fo:block>                     
								<fo:inline font-weight="bold">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of></fo:inline>                  
							</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdTBC">                  
							<fo:block>                     
								<fo:inline font-weight="bold">                        
									Erklärung: Erfindererklärung (nur im Hinblick auf die Bestimmung der Vereinigten Staaten von Amerika)                     
								</fo:inline>                     
								<fo:block></fo:block>                     
								Erfindererklärung (Regeln 4.17 Ziffer iv und 51bis.1 Absatz a Ziffer iv) im Hinblick auf die Bestimmung der Vereinigten Staaten von Amerika:                  
							</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdTBR">                  
							<fo:block padding="1.5pt" line-height="1.3" space-before="1cm">                     
								<fo:block></fo:block>                     
								<fo:block></fo:block>                     
								<fo:inline font-weight="bold">                        
									Ich erkläre hiermit, daß ich nach bestem Wissen der ursprüngliche Erfinder oder ein ursprünglicher Miterfinder einer in der Anmeldung beanspruchten Erfindung bin.                        
									<fo:block></fo:block>
									<fo:block space-after="2mm">
									</fo:block>
									<xsl:choose>
										<xsl:when test="./application-reference">
											Diese Erklärung wird im Hinblick auf die internationale Anmeldung Nr. <xsl:value-of select="./application-reference//doc-number"></xsl:value-of> abgegeben. 
											<fo:block space-after="2mm">
											</fo:block>
										</xsl:when>
										<xsl:otherwise>
												Diese Erklärung wird im Hinblick auf und als Teil dieser internationalen Anmeldung abgegeben.
												<fo:block space-after="2mm">
												</fo:block>                        
										</xsl:otherwise>
									</xsl:choose>
									<fo:block></fo:block>                        
									Ich erkläre hiermit, daß die oben angegebene internationale Anmeldung von meiner Person angefertigt wurde oder  ich die Genehmigung zu ihrer Anfertigung erteilt habe.                         
									<fo:block space-after="2mm">
									</fo:block>                        
									Ich erkenne hiermit an, daß jede vorsätzlich falsche Angabe in dieser Erklärung gemäß § 1001, Title 18 des US-Codes (United States Code (U.S.C.)) strafbar ist und mit einer Geldstrafe und/oder Gefängnis bis zu  fünf (5) Jahren bestraft werden kann.                     
								</fo:inline>                  
							</fo:block>               
						</fo:table-cell>            
					</fo:table-row>            
				</fo:table-body>      
			</fo:table>     
		</xsl:for-each>  
		<xsl:if test=".//inventor-info/addressbook">               
			<fo:table table-layout="fixed" keep-together.within-page="always" border-collapse="separate">          
				<fo:table-column column-width="12mm"></fo:table-column>          
				<fo:table-column column-width="53mm"></fo:table-column>          
				<fo:table-column column-width="105mm"></fo:table-column> 
				<fo:table-body>            
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdTL">                     
							<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- 1-1</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTC">                     
							<fo:block>                     
								<xsl:call-template name="nameType">                     
									<xsl:with-param name="nam" select=".//inventor-info[1]/addressbook[1]"></xsl:with-param>                     
								</xsl:call-template>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR">                     
							<fo:block padding-top="1pt">                        
								<fo:inline font-weight="bold">                           
									<xsl:call-template name="format_name">                              
										<xsl:with-param name="name_arg" select=".//inventor-info[1]/addressbook[1]"></xsl:with-param>                           
									</xsl:call-template>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<xsl:if test=".//inventor-info[1]/addressbook[2]">  
						<xsl:if test=".//inventor-info[1]/addressbook[@lang='en']">  
							<fo:table-row>
								<fo:table-cell xsl:use-attribute-sets="tdL">                     
									<fo:block></fo:block>                  
								</fo:table-cell>                  
								<fo:table-cell xsl:use-attribute-sets="tdC">                     
									<fo:block>
										Name (LAST, First):
									</fo:block>                  
								</fo:table-cell>                  
								<fo:table-cell xsl:use-attribute-sets="tdR">                     
									<fo:block padding-top="1pt">                        
										<fo:inline font-weight="bold">                           
											<xsl:call-template name="format_name">                              
												<xsl:with-param name="name_arg" select=".//inventor-info[1]/addressbook[2]"></xsl:with-param>                           
											</xsl:call-template>                        
										</fo:inline>                     
									</fo:block>                  
								</fo:table-cell>               
							</fo:table-row>   
						</xsl:if>  
					</xsl:if>  
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdL">                     
							<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- 1-2</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdC">                     
							<fo:block>                        
								Wohnsitz:                        
								<fo:block></fo:block>                        
								(Stadt und US-Staat, falls anwendbar, sonst Land)                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdR">                     
							<fo:block padding-top="1pt">                        
								<fo:inline font-weight="bold">                           
									<xsl:value-of select=".//inventor-info[1]/us-residence//city"></xsl:value-of>                           
									<xsl:text>, </xsl:text>                           
									<xsl:choose>                              
										<xsl:when test=".//inventor-info[1]/us-residence/us/state">                                 
											<xsl:value-of select=".//inventor-info[1]/us-residence//state"></xsl:value-of>                              
										</xsl:when>                              
										<xsl:otherwise>
											<xsl:call-template name="country_ChoiceText">
												<xsl:with-param name="country" select=".//inventor-info[1]/us-residence//country"></xsl:with-param>
											</xsl:call-template>                              
										</xsl:otherwise>                           
									</xsl:choose>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<xsl:choose>                  
						<xsl:when test=".//inventor-info[1]/addressbook[1]/address">                     
							<fo:table-row>                        
								<fo:table-cell xsl:use-attribute-sets="tdL">                           
									<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- 1-3</fo:block>                        
								</fo:table-cell>                        
								<fo:table-cell xsl:use-attribute-sets="tdC">                           
									<fo:block>                              
										Postanschrift:                           
									</fo:block>                        
								</fo:table-cell>                        
								<fo:table-cell xsl:use-attribute-sets="tdR">                           
									<fo:block padding-top="1pt">                              
										<fo:inline font-weight="bold">        
											<xsl:choose>
												<xsl:when test="($lang='ja') or ($lang='zh')">
													<xsl:if test=".//inventor-info[1]/addressbook[1]/address/country">
														<fo:block>
															<xsl:call-template name="country_ChoiceText">
																<xsl:with-param name="country" select=".//inventor-info[1]/addressbook[1]/address/country"></xsl:with-param>
															</xsl:call-template>
														</fo:block>
													</xsl:if>
													<xsl:if test=".//inventor-info[1]/addressbook[1]/address/state">
														<fo:block>
															<xsl:value-of select=".//inventor-info[1]/addressbook[1]/address/state"></xsl:value-of>
														</fo:block>
													</xsl:if>
													<xsl:for-each select=".//inventor-info[1]/addressbook[1]/address//*[not(name(.)='country' or name(.)='state')]">
														<xsl:choose>
															<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																<fo:block white-space="pre" wrap-option="wrap">
																	<xsl:value-of select="."></xsl:value-of>
																</fo:block>
															</xsl:when>
															<xsl:otherwise>
																<fo:block white-space-collapse="false" wrap-option="wrap">															
																	<xsl:value-of select="."></xsl:value-of>   
																</fo:block>
															</xsl:otherwise>
														</xsl:choose>
													</xsl:for-each>
												</xsl:when>
												<xsl:otherwise>
													<xsl:for-each select=".//inventor-info[1]/addressbook[1]/address/*">                                    
														<xsl:choose>                                       
															<xsl:when test="name(.)='city' or name(.)='state'">                                          
																<xsl:value-of select="."></xsl:value-of>                                          
																<xsl:text> </xsl:text>                                       
															</xsl:when> 
															<xsl:when test="name(.)='country'">
																<xsl:call-template name="country_ChoiceText">
																	<xsl:with-param name="country" select="."></xsl:with-param>
																</xsl:call-template> 
															</xsl:when>                                       
															<xsl:otherwise>                                          
																<xsl:choose>
																	<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																		<fo:block white-space="pre" wrap-option="wrap">
																			<xsl:value-of select="."></xsl:value-of>
																		</fo:block>
																	</xsl:when>
																	<xsl:otherwise>
																		<fo:block white-space-collapse="false" wrap-option="wrap">															
																			<xsl:value-of select="."></xsl:value-of>   
																		</fo:block>
																	</xsl:otherwise>
																</xsl:choose>
																<fo:block></fo:block>                                       
															</xsl:otherwise>                                    
														</xsl:choose>                                 
													</xsl:for-each>                              
												</xsl:otherwise>
											</xsl:choose>                         
										</fo:inline>                           
									</fo:block>                        
								</fo:table-cell>                     
							</fo:table-row>                  
							<xsl:if test=".//inventor-info[1]/addressbook[2]">  
								<xsl:if test=".//inventor-info[1]/addressbook[@lang='en']">  
									<fo:table-row>                        
										<fo:table-cell xsl:use-attribute-sets="tdL">                           
											<fo:block></fo:block>                        
										</fo:table-cell>                        
										<fo:table-cell xsl:use-attribute-sets="tdC">                           
											<fo:block>                              
												Mailing Address:                           
											</fo:block>                        
										</fo:table-cell>                        
										<fo:table-cell xsl:use-attribute-sets="tdR">                           
											<fo:block padding-top="1pt">                              
												<fo:inline font-weight="bold">        
													<xsl:choose>
														<xsl:when test="$lang='ja'">
															<xsl:for-each select=".//inventor-info[1]/addressbook[2]/address//*[not(name(.)='country' or name(.)='state')]">
															<xsl:choose>
																<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																	<fo:block white-space="pre" wrap-option="wrap">
																		<xsl:value-of select="."></xsl:value-of>
																	</fo:block>
																</xsl:when>
																<xsl:otherwise>
																	<fo:block white-space-collapse="false" wrap-option="wrap">															
																		<xsl:value-of select="."></xsl:value-of>   
																	</fo:block>
																</xsl:otherwise>
															</xsl:choose>
															</xsl:for-each>
															<xsl:if test=".//inventor-info[1]/addressbook[2]/address/state">
																<fo:block>
																	<xsl:value-of select=".//inventor-info[1]/addressbook[2]/address/state"></xsl:value-of>
																</fo:block>
															</xsl:if>
															<xsl:if test=".//inventor-info[1]/addressbook[2]/address/country">
																<fo:block>
																	<xsl:call-template name="enCountry_ChoiceText">
																		<xsl:with-param name="country" select=".//inventor-info[1]/addressbook[2]/address/country"></xsl:with-param>
																	</xsl:call-template>
																</fo:block>
															</xsl:if>
														</xsl:when>
														<xsl:otherwise>
															<xsl:for-each select=".//inventor-info[1]/addressbook[2]/address/*">                                    
																<xsl:choose>                                       
																	<xsl:when test="name(.)='city' or name(.)='state'">                                          
																		<xsl:value-of select="."></xsl:value-of>                                          
																	<xsl:text> </xsl:text>                                       
																	</xsl:when> 
																	<xsl:when test="name(.)='country'">
																		<xsl:call-template name="enCountry_ChoiceText">
																			<xsl:with-param name="country" select="."></xsl:with-param>
																		</xsl:call-template> 
																	</xsl:when>                                       
																	<xsl:otherwise>                                          
																		<xsl:choose>
																			<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																				<fo:block white-space="pre" wrap-option="wrap">
																					<xsl:value-of select="."></xsl:value-of>
																				</fo:block>
																			</xsl:when>
																			<xsl:otherwise>
																				<fo:block white-space-collapse="false" wrap-option="wrap">															
																					<xsl:value-of select="."></xsl:value-of>   
																				</fo:block>
																			</xsl:otherwise>
																		</xsl:choose>
																		<fo:block></fo:block>                                       
																	</xsl:otherwise>                                    
																</xsl:choose>                                 
															</xsl:for-each>                              
														</xsl:otherwise>
													</xsl:choose>                         
												</fo:inline>                           
											</fo:block>                        
										</fo:table-cell>                     
									</fo:table-row>                  
								</xsl:if>  
							</xsl:if>  
						</xsl:when>               
					</xsl:choose>         
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdL">                     
							<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- 1-4</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdC">                     
							<fo:block>                        
								Unterschrift des Erfinders:                        
								<fo:block></fo:block>                        
								(Die Unterschrift muß die des Erfinders sein, nicht die des Anwalts)                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdR">                     
							<fo:block padding-top="1pt">                        
								<fo:inline font-weight="bold">                           
									<xsl:choose>                              
										<xsl:when test=".//signatory[1]/electronic-signature/basic-signature/fax-image"> 
											<fo:external-graphic>
												<xsl:if test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
													<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>											
													<xsl:attribute name="width">100mm</xsl:attribute>											
												</xsl:if>										
												<!-- NOTE: XEP will not load files in same directory if 'file:///' is prepended -->
												<xsl:attribute name="src">   
													<xsl:choose>  
														<xsl:when test="contains(.//signatory[1]/electronic-signature/basic-signature/fax-image/@file,'/') or contains(./electronic-signature/basic-signature/fax-image/@file,'\') or contains(./electronic-signature/basic-signature/fax-image/@file,':')"> 
															<xsl:value-of select="concat('file:///',./electronic-signature/basic-signature/fax-image/@file)"></xsl:value-of>  
														</xsl:when>  
														<xsl:otherwise> 
															<xsl:choose>
																<xsl:when test="$baseDir != ''"> 
																	<xsl:value-of select="concat('file:///', $baseDir, .//signatory[1]/electronic-signature/basic-signature/fax-image/@file)"></xsl:value-of>  
																</xsl:when>
																<xsl:otherwise>
																	<xsl:value-of select=".//signatory[1]/electronic-signature/basic-signature/fax-image/@file"></xsl:value-of>
																</xsl:otherwise>
															</xsl:choose> 
														</xsl:otherwise>   
													</xsl:choose>
												</xsl:attribute> 
											</fo:external-graphic>                              
										</xsl:when>                              
										<xsl:when test=".//signatory[1]/electronic-signature/basic-signature/click-wrap">                                 
											(Anmelder hat 'Ja' angeklickt)                              
										</xsl:when>                              
										<xsl:when test=".//signatory[1]//text-string">                                 
											<xsl:value-of select=".//signatory[1]//text-string"></xsl:value-of>                              
										</xsl:when>                              
										<xsl:when test=".//signatory[1]//pkcs7">                                 
											(PKCS7 digitale Unterschrift)                              
										</xsl:when>                           
									</xsl:choose>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdBL">                     
							<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- 1-5</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBC">                     
							<fo:block>                        
								Datum:                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBR">                     
							<fo:block padding-top="1pt">                        
								<fo:inline font-weight="bold">                           
									<xsl:if test=".//signatory[1]/electronic-signature/@date">                              
										<xsl:call-template name="format_date">                                 
											<xsl:with-param name="date" select=".//signatory[1]/electronic-signature/@date"></xsl:with-param>                              
											<xsl:with-param name="show_date" select="1"></xsl:with-param>   
											<xsl:with-param name="text" select="1"></xsl:with-param>   
											<xsl:with-param name="lang" select="$lang"></xsl:with-param>   
											<xsl:with-param name="date_too" select="1"></xsl:with-param>
										</xsl:call-template>                           
									</xsl:if>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>  	  
				</fo:table-body>  
			</fo:table>  
		</xsl:if> 
		<xsl:if test="count(//inventor-info) &gt; 1"> 
			<xsl:call-template name="other_inventors">
				<xsl:with-param name="signatory_seq" select="ancestor-or-self::inventorship/@sequence"></xsl:with-param>
			</xsl:call-template>
		</xsl:if>   
	</xsl:template><xsl:template name="other_inventors">      
		<!-- ****************************************************************** -->
		 
		<!--  repeated inventor-info                                            -->
		
		<!-- ****************************************************************** -->
		<xsl:param name="signatory_seq"></xsl:param>
		<xsl:variable name="dec_seq" select="@sequence"></xsl:variable>
		<xsl:if test=".//inventor-info[position() &gt; 1]/addressbook">   
			<xsl:for-each select=".//inventor-info[position() &gt; 1]">  
				<xsl:variable name="inventor_seq" select="position()+1"></xsl:variable> 
				<fo:table table-layout="fixed" keep-together.within-page="always" border-collapse="separate"> 
					<fo:table-column column-width="12mm"></fo:table-column> 
					<fo:table-column column-width="53mm"></fo:table-column> 
					<fo:table-column column-width="105mm"></fo:table-column>
					<fo:table-body>                  
						<fo:table-row>                     
							<fo:table-cell xsl:use-attribute-sets="tdTL">                        
								<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- <xsl:value-of select="$inventor_seq"></xsl:value-of>-1</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTC">                        
								<fo:block>                     
									<xsl:call-template name="nameType">                     
										<xsl:with-param name="nam" select="./addressbook[1]"></xsl:with-param>                     
									</xsl:call-template>                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTR">                        
								<fo:block padding-top="1pt">                           
									<fo:inline font-weight="bold">                              
										<xsl:call-template name="format_name">                                 
											<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>                              
										</xsl:call-template>                           
									</fo:inline>                        
								</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>                  
						<xsl:if test="./addressbook[2]">  
							<xsl:if test="./addressbook[@lang='en']">  
								<fo:table-row>
									<fo:table-cell xsl:use-attribute-sets="tdL">                     
										<fo:block></fo:block>                  
									</fo:table-cell>                  
									<fo:table-cell xsl:use-attribute-sets="tdC">                     
										<fo:block>
											Name (LAST, First):
										</fo:block>                  
									</fo:table-cell>                  
									<fo:table-cell xsl:use-attribute-sets="tdR">                     
										<fo:block padding-top="1pt">                        
											<fo:inline font-weight="bold">                           
												<xsl:call-template name="format_name">                              
													<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>                           
												</xsl:call-template>                        
											</fo:inline>                     
										</fo:block>                  
									</fo:table-cell>               
								</fo:table-row>   
							</xsl:if>  
						</xsl:if>  
						<fo:table-row>                     
							<fo:table-cell xsl:use-attribute-sets="tdL">                        
								<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- <xsl:value-of select="$inventor_seq"></xsl:value-of>-2</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdC">                        
								<fo:block>                           
									Wohnsitz:                           
									<fo:block></fo:block>                           
									(Stadt und US-Staat, falls anwendbar, sonst Land)                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdR">                        
								<fo:block padding-top="1pt">                           
									<fo:inline font-weight="bold">                              
										<xsl:value-of select=".//us-residence//city"></xsl:value-of>                              
										<xsl:if test=".//us-residence//city/text()">                              
											<xsl:text>, </xsl:text>                          
										</xsl:if>                              
										<xsl:choose>                                 
											<xsl:when test=".//us-residence/us">                                    
												<xsl:value-of select=".//us-residence//state"></xsl:value-of>                                 
											</xsl:when>                                 
											<xsl:otherwise>                                    
												<xsl:call-template name="country_ChoiceText">
													<xsl:with-param name="country" select=".//us-residence//country"></xsl:with-param>                                    
												</xsl:call-template>       
											</xsl:otherwise>                              
										</xsl:choose>                           
									</fo:inline>                        
								</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>                  
						<xsl:choose>                     
							<xsl:when test=".//addressbook/address">                        
								<fo:table-row>                           
									<fo:table-cell xsl:use-attribute-sets="tdL">                              
										<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- <xsl:value-of select="$inventor_seq"></xsl:value-of>-3</fo:block>                           
									</fo:table-cell>                           
									<fo:table-cell xsl:use-attribute-sets="tdC">                              
										<fo:block>                                 
											Postanschrift:                              
										</fo:block>                           
									</fo:table-cell>                           
									<fo:table-cell xsl:use-attribute-sets="tdR">                              
										<fo:block padding-top="1pt">                                 
											<fo:inline font-weight="bold">                                    
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														<xsl:if test=".//addressbook[1]/address/country">
															<fo:block>
																<xsl:call-template name="country_ChoiceText">
																	<xsl:with-param name="country" select=".//addressbook[1]/address/country"></xsl:with-param>
																</xsl:call-template>
															</fo:block>
														</xsl:if>
														<xsl:if test=".//addressbook[1]/address/state">
															<fo:block>
																<xsl:value-of select=".//addressbook[1]/address/state"></xsl:value-of>
															</fo:block>
														</xsl:if>
														<xsl:for-each select=".//addressbook[1]/address//*[not(name(.)='country' or name(.)='state')]">
															<xsl:choose>
																<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																	<fo:block white-space="pre" wrap-option="wrap">
																		<xsl:value-of select="."></xsl:value-of>
																	</fo:block>
																</xsl:when>
																<xsl:otherwise>
																	<fo:block white-space-collapse="false" wrap-option="wrap">															
																		<xsl:value-of select="."></xsl:value-of>   
																	</fo:block>
																</xsl:otherwise>
															</xsl:choose>
														</xsl:for-each>
													</xsl:when>
													<xsl:otherwise>
														<xsl:for-each select=".//addressbook[1]/address/*">   
															<xsl:choose>                                          
																<xsl:when test="name(.)='city' or name(.)='state'">                                             
																	<xsl:value-of select="."></xsl:value-of>                                             
																	<xsl:text> </xsl:text>                                       
																</xsl:when>  
																<xsl:when test="name(.)='country'">
																	<xsl:call-template name="country_ChoiceText">
																		<xsl:with-param name="country" select="."></xsl:with-param>
																	</xsl:call-template>  
																</xsl:when>                                          
																<xsl:otherwise>                                             
																	<xsl:choose>
																		<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																			<fo:block white-space="pre" wrap-option="wrap">
																				<xsl:value-of select="."></xsl:value-of>
																			</fo:block>
																		</xsl:when>
																		<xsl:otherwise>
																			<fo:block white-space-collapse="false" wrap-option="wrap">															
																				<xsl:value-of select="."></xsl:value-of>   
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																	<fo:block></fo:block>                                          
																</xsl:otherwise>                                       
															</xsl:choose>                                    
														</xsl:for-each>                                 
													</xsl:otherwise>
												</xsl:choose>                                    
											</fo:inline>                              
										</fo:block>                           
									</fo:table-cell>                        
								</fo:table-row>                     
								<xsl:if test="./addressbook[2]">  
									<xsl:if test="./addressbook[@lang='en']">  
										<fo:table-row>                        
											<fo:table-cell xsl:use-attribute-sets="tdL">                           
												<fo:block></fo:block>                        
											</fo:table-cell>                        
											<fo:table-cell xsl:use-attribute-sets="tdC">                           
												<fo:block>                              
													Mailing Address:                           
												</fo:block>                        
											</fo:table-cell>                        
											<fo:table-cell xsl:use-attribute-sets="tdR">                           
												<fo:block padding-top="1pt">                              
													<fo:inline font-weight="bold">        
														<xsl:choose>
															<xsl:when test="$lang='ja'">
																<xsl:for-each select="./addressbook[2]/address//*[not(name(.)='country' or name(.)='state')]">
																	<xsl:choose>
																		<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																			<fo:block white-space="pre" wrap-option="wrap">
																				<xsl:value-of select="."></xsl:value-of>
																			</fo:block>
																		</xsl:when>
																		<xsl:otherwise>
																			<fo:block white-space-collapse="false" wrap-option="wrap">															
																				<xsl:value-of select="."></xsl:value-of>   
																			</fo:block>
																		</xsl:otherwise>
																	</xsl:choose>
																</xsl:for-each>
																<xsl:if test="./addressbook[2]/address/state">
																	<fo:block>
																		<xsl:value-of select="./addressbook[2]/address/state"></xsl:value-of>
																	</fo:block>
																</xsl:if>
																<xsl:if test="./addressbook[2]/address/country">
																	<fo:block>
																		<xsl:call-template name="enCountry_ChoiceText">
																			<xsl:with-param name="country" select="./addressbook[2]/address/country"></xsl:with-param>
																		</xsl:call-template>
																	</fo:block>
																</xsl:if>
															</xsl:when>
															<xsl:otherwise>
																<xsl:for-each select="./addressbook[2]/address/*">                                    
																	<xsl:choose>                                       
																		<xsl:when test="name(.)='city' or name(.)='state'">                                          
																			<xsl:value-of select="."></xsl:value-of>                                          
																			<xsl:text> </xsl:text>                                       
																		</xsl:when> 
																		<xsl:when test="name(.)='country'">
																			<xsl:call-template name="enCountry_ChoiceText">
																				<xsl:with-param name="country" select="."></xsl:with-param>
																			</xsl:call-template> 
																		</xsl:when>                                       
																		<xsl:otherwise>                                          
																			<xsl:choose>
																				<xsl:when test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
																					<fo:block white-space="pre" wrap-option="wrap">
																						<xsl:value-of select="."></xsl:value-of>
																					</fo:block>
																				</xsl:when>
																				<xsl:otherwise>
																					<fo:block white-space-collapse="false" wrap-option="wrap">															
																						<xsl:value-of select="."></xsl:value-of>   
																					</fo:block>
																				</xsl:otherwise>
																			</xsl:choose>
																			<fo:block></fo:block>                                       
																		</xsl:otherwise>                                    
																	</xsl:choose>                                 
																</xsl:for-each>                              
															</xsl:otherwise>
														</xsl:choose>                         
													</fo:inline>                           
												</fo:block>                        
											</fo:table-cell>                     
										</fo:table-row>                  
									</xsl:if>  
								</xsl:if>  
							</xsl:when>                  
						</xsl:choose>                  
						<fo:table-row>                     
							<fo:table-cell xsl:use-attribute-sets="tdL">                        
								<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- <xsl:value-of select="$inventor_seq"></xsl:value-of>-4</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdC">                        
								<fo:block>                           
									Unterschrift des Erfinders:                           
									<fo:block></fo:block>                           
									(Die Unterschrift muß die des Erfinders sein, nicht die des Anwalts)                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdR">                        
								<fo:block padding-top="1pt">                           
									<fo:inline font-weight="bold">                              
										<xsl:choose>                                 
											<xsl:when test="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/fax-image"> 
												<fo:external-graphic>
													<xsl:if test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
														<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>											
														<xsl:attribute name="width">100mm</xsl:attribute>											
													</xsl:if>										
													<!-- NOTE: XEP will not load files in same directory if 'file:///' is prepended -->
													<xsl:attribute name="src">   
														<xsl:choose>  
															<xsl:when test="contains(ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/fax-image/@file,'/') or contains(ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/fax-image/@file,'\') or contains(ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/fax-image/@file,':')"> 
																<xsl:value-of select="concat('file:///',ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/fax-image/@file)"></xsl:value-of>  
															</xsl:when>  
															<xsl:otherwise> 
																<xsl:choose>
																	<xsl:when test="$baseDir != ''"> 
																		<xsl:value-of select="concat('file:///', $baseDir, ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/fax-image/@file)"></xsl:value-of>  
																	</xsl:when>
																	<xsl:otherwise>
																		<xsl:value-of select="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/fax-image/@file"></xsl:value-of>
																	</xsl:otherwise>
																</xsl:choose>
															</xsl:otherwise>   
														</xsl:choose>
													</xsl:attribute> 
												</fo:external-graphic>                                 
											</xsl:when>                                 
											<xsl:when test="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/click-wrap">                                    
												(Anmelder hat 'Ja' angeklickt)                                 
											</xsl:when>                                 
											<xsl:when test="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/basic-signature/text-string">                                    
												<xsl:value-of select="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]//text-string"></xsl:value-of>                                 
											</xsl:when>                                 
											<xsl:when test="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature//pkcs7">                                    
												(PKCS7 digitale Unterschrift)                                 
											</xsl:when>                              
										</xsl:choose>                           
									</fo:inline>                        
								</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>                  
						<fo:table-row>                     
							<fo:table-cell xsl:use-attribute-sets="tdBL">                        
								<fo:block wrap-option="wrap">VIII-4-<xsl:value-of select="$dec_seq"></xsl:value-of>- <xsl:value-of select="$inventor_seq"></xsl:value-of>-5</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdBC">                        
								<fo:block>                           
									Datum:                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdBR">                        
								<fo:block padding-top="1pt">                           
									<fo:inline font-weight="bold">                  
										<xsl:if test="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/@date">                                 
											<xsl:call-template name="format_date">                                 
												<xsl:with-param name="date" select="ancestor-or-self::inventorship[$signatory_seq]//signatory[$inventor_seq]/electronic-signature/@date"></xsl:with-param>                                 
												<xsl:with-param name="show_date" select="1"></xsl:with-param>   
												<xsl:with-param name="text" select="1"></xsl:with-param>   
												<xsl:with-param name="lang" select="$lang"></xsl:with-param>   
												<xsl:with-param name="date_too" select="1"></xsl:with-param>
											</xsl:call-template>                           
										</xsl:if>                           
									</fo:inline>                        
								</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>
					</fo:table-body> 
				</fo:table>         
			</xsl:for-each>      
		</xsl:if>   
	</xsl:template>
	<xsl:template name="process_dec5">
		<xsl:variable name="lack_seq" select="@sequence"></xsl:variable>
		<fo:table table-layout="fixed" border-collapse="separate">
			<fo:table-column column-width="12mm"></fo:table-column>
			<fo:table-column column-width="53mm"></fo:table-column>
			<fo:table-column column-width="105mm"></fo:table-column>
			<fo:table-body>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTL">
						<fo:block>
						<xsl:element name="fo:block">
							<fo:inline font-weight="bold">VIII-5-<xsl:value-of select="$lack_seq"></xsl:value-of>
							</fo:inline>
						</xsl:element>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							<fo:inline font-weight="bold">
								Erklärung: Unschädliche Offenbarungen oder Ausnahmen von der Neuheitsschädlichkeit
							</fo:inline>
							<fo:block></fo:block>
							Erklärung hinsichtlich unschädlicher Offenbarungen oder Ausnahmen von der Neuheitsschädlichkeit (Regeln 4.17(v) und 51bis.1(a)(v)):
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTR">
						<fo:block padding-before="9mm">
							<fo:inline font-weight="bold">
								In bezug auf 
								<xsl:choose>
									<xsl:when test=".//application-reference">
										<xsl:if test="not($lang='ja')">
											internationale Anmeldung Nr.
										</xsl:if>
										<xsl:value-of select=".//country"></xsl:value-of>
										<xsl:text>
										</xsl:text>
										<xsl:value-of select=".//doc-number"></xsl:value-of>
										<xsl:if test="$lang='ja'">
											internationale Anmeldung Nr.
										</xsl:if>
									</xsl:when>
									<xsl:otherwise>
										diese internationale Anmeldung
									</xsl:otherwise>
								</xsl:choose>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell>
						<fo:block></fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdC">
						<fo:block>
							<xsl:call-template name="nameType">
								<xsl:with-param name="nam" select="."></xsl:with-param>
							</xsl:call-template>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdR">
						<fo:block padding-top="1pt">
							<fo:inline font-weight="bold">
								<xsl:call-template name="format_name">
									<xsl:with-param name="name_arg" select="."></xsl:with-param>
								</xsl:call-template>
							</fo:inline>
						</fo:block>
						<fo:block>
							<fo:inline font-weight="bold">
								 erklärt, daß der in dieser internationalen Anmeldung beanspruchte Gegenstand wie folgt offenbart wurde:
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<xsl:for-each select=".//method-of-disclosure">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdTL">
							<fo:block>VIII-5-<xsl:value-of select="$lack_seq"></xsl:value-of></fo:block>
							<fo:block>(i)</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<fo:block>
								Art und Weise der Offenbarung:
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:choose>
										<xsl:when test="./international-exhibition/text()">
											<xsl:value-of select="./international-exhibition"></xsl:value-of>
										</xsl:when>
										<xsl:when test="./international-exhibition">
											Internationale Ausstellung
										</xsl:when>
										<xsl:when test="./publication/text()">
											<xsl:value-of select="./publication"></xsl:value-of>
										</xsl:when>
										<xsl:when test="./publication">
											Veröffentlichung
										</xsl:when>
										<xsl:when test="./abuse/text()">
											<xsl:value-of select="./abuse"></xsl:value-of>
										</xsl:when>
										<xsl:when test="./abuse">
											Mißbrauch
										</xsl:when>
										<xsl:when test="./other">
											Sonstige(s): 
											<xsl:value-of select="./other"></xsl:value-of>
										</xsl:when>
									</xsl:choose>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>VIII-5-<xsl:value-of select="$lack_seq"></xsl:value-of></fo:block>
							<fo:block>(ii)</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>
								Datum der Offenbarung:
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:call-template name="format_date">
										<xsl:with-param name="date" select="preceding-sibling::date[1]"></xsl:with-param>
										<xsl:with-param name="lang" select="$lang"></xsl:with-param>
										<xsl:with-param name="show_date" select="1"></xsl:with-param>
										<xsl:with-param name="text" select="1"></xsl:with-param>
										<xsl:with-param name="date_too" select="1"></xsl:with-param>
									</xsl:call-template>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>VIII-5-<xsl:value-of select="$lack_seq"></xsl:value-of></fo:block>
							<fo:block>(iii)</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>
								Titel der Offenbarung:
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:value-of select="preceding-sibling::title-of-disclosure[1]"></xsl:value-of>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>VIII-5-<xsl:value-of select="$lack_seq"></xsl:value-of></fo:block>
							<fo:block>(iv)</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>
								Ort der Offenbarung:
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">
									<xsl:choose>
										<xsl:when test="not($lang='ja')">
											<xsl:choose>
												<xsl:when test="name(.)='city' or name(.)='state'">
													<xsl:value-of select="."></xsl:value-of>
													<xsl:text> 
													</xsl:text>
												</xsl:when>
												<xsl:when test="name(.)='country'">
													<xsl:call-template name="country_ChoiceText">
														<xsl:with-param name="country" select="."></xsl:with-param>
													</xsl:call-template>
												</xsl:when>
												<xsl:otherwise>
				                                    <xsl:value-of select="following-sibling::address[1]/text"></xsl:value-of>
													<fo:block></fo:block>
												</xsl:otherwise>
											</xsl:choose>
										</xsl:when>
										<xsl:when test="$lang='ja' and (following-sibling::*[1][name()='address'] or contains($software_name,'SAFE'))">
											<xsl:value-of select="following-sibling::address[1]/text"></xsl:value-of>
										</xsl:when>
										<!-- JA address precedes other elements and uses <text> instead of subelements -->
										<xsl:otherwise>
											<xsl:value-of select="preceding-sibling::address[1]/text"></xsl:value-of>
										</xsl:otherwise>
									</xsl:choose>
								</fo:inline>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell number-columns-spanned="3" border-top="solid black 0.25pt">
							<fo:block></fo:block>
						</fo:table-cell>
					</fo:table-row>
				</xsl:for-each>
			</fo:table-body>
		</fo:table>
	</xsl:template>
	<xsl:template 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'">
										Unterschrift des Anmelders
									</xsl:when>
									<xsl:otherwise>
										Unterschrift des Anmelders, des Anwalts oder des Gemeinsamen Vertreters  
									</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">                                 
										(Anmelder hat 'Ja' angeklickt)
									</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 digitale Unterschrift)
									</xsl:when>                           
								</xsl:choose>                        
							</fo:inline>                     
						</fo:block>                  
					</fo:table-cell>               
				</fo:table-row>               
				<xsl:choose>
					<xsl:when test="./name[@name-type='legal']">
						<fo:table-row>                  
							<fo:table-cell xsl:use-attribute-sets="tdL">                     
								<fo:block>                        
									<fo:inline font-weight="bold">
										<xsl:value-of select="$box"></xsl:value-of>-<xsl:value-of select="$sig_seq"></xsl:value-of>-1</fo:inline>                     
								</fo:block>                  
							</fo:table-cell>                  
							<fo:table-cell xsl:use-attribute-sets="tdC">
								<fo:block>                     
									Name 
								</fo:block>                  
							</fo:table-cell>                  
							<fo:table-cell xsl:use-attribute-sets="tdR">                     
								<fo:block>                        
									<fo:inline font-weight="bold">                           
										<xsl:call-template name="format_name">                              
											<xsl:with-param name="name_arg" select="."></xsl:with-param>                           
										</xsl:call-template>                        
									</fo:inline>                     
								</fo:block>                  
							</fo:table-cell>               
						</fo:table-row>           
					</xsl:when>
					<xsl:otherwise>
						<fo:table-row>                  
							<fo:table-cell xsl:use-attribute-sets="tdL">                     
								<fo:block>                        
									<fo:inline font-weight="bold">
										<xsl:value-of select="$box"></xsl:value-of>-<xsl:value-of select="$sig_seq"></xsl:value-of>-1</fo:inline>                     
								</fo:block>                  
							</fo:table-cell>                  
							<fo:table-cell xsl:use-attribute-sets="tdC">
								<fo:block>                     
									Name (FAMILIENNAME, Vorname)
								</fo:block>                  
							</fo:table-cell>                  
							<fo:table-cell xsl:use-attribute-sets="tdR">                     
								<fo:block>                        
									<fo:inline font-weight="bold">                           
										<xsl:call-template name="format_name">                              
											<xsl:with-param name="name_arg" select="."></xsl:with-param>                           
										</xsl:call-template>                        
									</fo:inline>                     
								</fo:block>                  
							</fo:table-cell>               
						</fo:table-row>           
					</xsl:otherwise>
				</xsl:choose>
				<xsl:if test="./name[@name-type='legal']">
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdL">                     
							<fo:block>                        
								<fo:inline font-weight="bold">
									<xsl:value-of select="$box"></xsl:value-of>-<xsl:value-of select="$sig_seq"></xsl:value-of>-2</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdC">                     
							<fo:block>         
								Name der unterzeichnenden Person 
							</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>         
							Eigenschaft (sofern sich dies nicht eindeutig aus dem Antrag
ergibt)
						</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">                        
								Vom Anmeldeamt auszufüllen                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTL">                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdBL">                  
						<fo:block>                     
							<xsl:text>0-1</xsl:text>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBC">                  
						<fo:block>                     
							Internationales Aktenzeichen                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBR">
						<fo:block>
						<xsl:choose>
							<xsl:when test="document($rrri_doc)//doc-number">
									<xsl:value-of select="document($rrri_doc)//doc-number"></xsl:value-of>
							</xsl:when>
							<xsl:when test="$ia_number">
									<xsl:value-of select="$ia_number"></xsl:value-of>
							</xsl:when>
						</xsl:choose>
						</fo:block>    
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdBL">                  
						<fo:block space-after="2.5mm">                     
							<fo:inline font-weight="bold">                        
								<xsl:text>0-2</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBC">                  
						<fo:block>                     
							Eingangsstempel des Anmeldeamts                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderBottom">                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>         
			</fo:table-body>      
		</fo:table>      
		<fo:table table-layout="fixed" border-collapse="separate">         
			<fo:table-column column-width="12mm"></fo:table-column>         
			<fo:table-column column-width="48mm"></fo:table-column>         
			<fo:table-column column-width="5mm"></fo:table-column>         
			<fo:table-column column-width="31mm"></fo:table-column>         
			<fo:table-column column-width="41mm"></fo:table-column>         
			<fo:table-column column-width="33mm"></fo:table-column>         
			<fo:table-body>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdTL">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>0-4</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								Formular PCT/RO/101 (Anhang)                        
								<fo:block space-before=".5mm"></fo:block>                        
								PCT Blatt für die Gebührenberechnung                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTop" number-columns-spanned="3">                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdBL">                  
						<fo:block>                     
							<xsl:text>0-4-1</xsl:text>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBC" number-columns-spanned="2">                  
						<fo:block>                     
							Erstellt mit                  
						</fo:block>               
					</fo:table-cell>   
					<fo:table-cell xsl:use-attribute-sets="tdBR" number-columns-spanned="3">                  
						<fo:block>                  
							<fo:inline font-weight="bold"> 
								<xsl:value-of select="$software_name"></xsl:value-of> 
								<fo:block></fo:block>
								<xsl:value-of select="$software_version"></xsl:value-of> 
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>            
				</fo:table-row>   
            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdBL">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>0-9</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBC" number-columns-spanned="2">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								Aktenzeichen des Anmelders oder Anwalts                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBR" number-columns-spanned="3">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:value-of select=".//file-reference-id"></xsl:value-of>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>2</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdC" number-columns-spanned="2">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								Anmelder                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdR" number-columns-spanned="3">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:choose>                           
									<xsl:when test=".//applicant-name/name">                              
										<xsl:call-template name="uppercaser">                                 
											<xsl:with-param name="string" select=".//applicant-name/name"></xsl:with-param>                              
										</xsl:call-template>                           
									</xsl:when>                           
									<xsl:otherwise>                              
										<xsl:call-template name="uppercaser">                                 
											<xsl:with-param name="string" select=".//applicant-name/last-name"></xsl:with-param>                              
										</xsl:call-template>                                
                              
										<xsl:text>, </xsl:text>                              
										<xsl:value-of select=".//applicant-name/first-name"></xsl:value-of>                           
									</xsl:otherwise>                        
								</xsl:choose>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdTL" text-align="left">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>12</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								Berechnung der vorgeschriebenen Gebühren                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTL" text-align="center">                  
						<fo:block>                     
							Höhe der Gebühr/Multiplikator                  
						</fo:block>               
					</fo:table-cell>
					<xsl:for-each select=".//prescribed-fees/*">
						<xsl:sort select="@currency"></xsl:sort>
						<xsl:if test="not(@currency = preceding-sibling::*/@currency)"> 
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">   
							<!--202001 show equivalent amount !-->
								<xsl:choose>
									<xsl:when test="@currency = 'EQF'">
										<fo:block>
											Gesamtbeträge   
										</fo:block>
										<fo:block>
											(Gegenwert in 
											<xsl:choose>
												<xsl:when test="..//transmittal-fee/@currency != 'EQF'">
													<xsl:value-of select="..//transmittal-fee/@currency"></xsl:value-of>
												</xsl:when>
												<xsl:when test="..//search-fee/@currency != 'EQF'">
													<xsl:value-of select="..//search-fee/@currency"></xsl:value-of>															
												</xsl:when>
												<xsl:when test="..//international-fee/@currency != 'EQF'">
													<xsl:value-of select="..//international-fee/@currency"></xsl:value-of>															
												</xsl:when>
												<xsl:when test="..//pdoc-fee/@currency != 'EQF'">
													<xsl:value-of select="..//pdoc-fee/@currency"></xsl:value-of>
												</xsl:when>
												<xsl:when test="..//restoration-fee/@currency != 'EQF'">
													<xsl:value-of select="..//restoration-fee/@currency"></xsl:value-of>															
												</xsl:when>
												<xsl:when test="..//earlier-search-document-fee/@currency != 'EQF'">
													<xsl:value-of select="..//earlier-search-document-fee/@currency"></xsl:value-of>
												</xsl:when>
											</xsl:choose>
											 von CHF)
										</fo:block>	
									</xsl:when>
									<xsl:when test="@currency = 'EQU'">
										<fo:block>
											Gesamtbeträge   
										</fo:block>
										<fo:block>
											(Gegenwert in 
											<xsl:choose>
												<xsl:when test="..//transmittal-fee/@currency != 'EQU'">
													<xsl:value-of select="..//transmittal-fee/@currency"></xsl:value-of>
												</xsl:when>
												<xsl:when test="..//search-fee/@currency != 'EQU'">
													<xsl:value-of select="..//search-fee/@currency"></xsl:value-of>															
												</xsl:when>
												<xsl:when test="..//international-fee/@currency != 'EQU'">
													<xsl:value-of select="..//international-fee/@currency"></xsl:value-of>															
												</xsl:when>
												<xsl:when test="..//pdoc-fee/@currency != 'EQU'">
													<xsl:value-of select="..//pdoc-fee/@currency"></xsl:value-of>
												</xsl:when>
												<xsl:when test="..//restoration-fee/@currency != 'EQU'">
													<xsl:value-of select="..//restoration-fee/@currency"></xsl:value-of>															
												</xsl:when>
												<xsl:when test="..//earlier-search-document-fee/@currency != 'EQU'">
													<xsl:value-of select="..//earlier-search-document-fee/@currency"></xsl:value-of>
												</xsl:when>
											</xsl:choose>
											 von USD)
										</fo:block>	
									</xsl:when>
									<xsl:otherwise>	
										<fo:block>   
											Gesamtbeträge    (<xsl:value-of select="@currency"></xsl:value-of>)
										</fo:block>
									</xsl:otherwise>
								</xsl:choose>
							</fo:table-cell> 
						</xsl:if>
					</xsl:for-each> 
					<xsl:if test="$curCount = 1">
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
							<fo:block></fo:block>
						</fo:table-cell> 
					</xsl:if> 			 
            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL">                  
						<fo:block text-align="center">12-1</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
						<fo:block>                  
							Übermittlungsgebühr                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>T</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTL">                  
						<fo:block font-size="11pt" font-family="ZapfDingbats" text-align="center">➪</fo:block>               
					</fo:table-cell> 
					<xsl:for-each select=".//transmittal-fee"> 
						<xsl:variable name="this-fee" select="."></xsl:variable> 
						<xsl:for-each select="$unique-currencies"> 
							<xsl:sort select="@currency"></xsl:sort> 
							<!-- use with 'if' test below to trap NaN values -->
							 
							<xsl:variable name="fNum">
								<xsl:value-of select="$this-fee[@currency = current()/@currency]/amount-total"></xsl:value-of> 
							</xsl:variable>   
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="right">   
								<fo:block>   
									<xsl:if test="boolean(number($fNum))">
										<fo:inline font-weight="bold">   
											<xsl:if test="$fNum &gt; 0">
												<xsl:value-of select="$fNum"></xsl:value-of>   
											</xsl:if>
										</fo:inline>
									</xsl:if>
								</fo:block>   
							</fo:table-cell> 
						</xsl:for-each> 
					</xsl:for-each> 
					<xsl:if test="$curCount = 1">
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
							<fo:block></fo:block>
						</fo:table-cell> 
					</xsl:if>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                  
						<fo:block>12-2<xsl:if test=".//isa">-1</xsl:if>
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
						<fo:block>                  
							Recherchengebühr                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>S</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTL" text-align="center">                  
						<fo:block font-family="ZapfDingbats" font-size="11pt" padding="1pt">➪</fo:block>               
					</fo:table-cell> 
					<xsl:for-each select=".//search-fee"> 
						<xsl:variable name="this-fee" select="."></xsl:variable> 
						<xsl:for-each select="$unique-currencies"> 
							<xsl:sort select="@currency"></xsl:sort> 
							<!-- use with 'if' test below to trap NaN values -->
							 
							<xsl:variable name="fNum">
								<xsl:value-of select="$this-fee[@currency = current()/@currency]/amount-total"></xsl:value-of> 
							</xsl:variable> 
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="right">   
								<fo:block>   
									<xsl:if test="boolean(number($fNum))">
										<fo:inline font-weight="bold">   
											<xsl:if test="$fNum &gt; 0">
												<xsl:value-of select="$fNum"></xsl:value-of>   
											</xsl:if>
										</fo:inline>
									</xsl:if>
								</fo:block> 
							</fo:table-cell> 
						</xsl:for-each> 
					</xsl:for-each> 
					<xsl:if test="$curCount = 1">
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
							<fo:block></fo:block>
						</fo:table-cell> 
					</xsl:if>            
				</fo:table-row>            
				<xsl:if test=".//isa">
					<fo:table-row>   
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">  
							<fo:block>12-2-2</fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" border-right="solid black 0.5pt" text-align="left" number-columns-spanned="2">  
							<fo:block>
								Wahl der internationalen Recherchenbehörde (ISA)   
							</fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdTR">  
							<fo:block>  
								<fo:inline font-weight="bold">  
									<xsl:value-of select="translate(.//isa,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:value-of>
								</fo:inline>  
							</fo:block>   
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" number-columns-spanned="2">               
							<fo:block></fo:block>               
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<fo:table-row>   
					<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">  
						<fo:block>12-3</fo:block>   
					</fo:table-cell>   
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" border-right="solid black 0.5pt" text-align="left" number-columns-spanned="2">  
						<fo:block>
							Internationale Anmeldegebühr   
						</fo:block>   
					</fo:table-cell>   
					<!--
					<fo:table-cell xsl:use-attribute-sets = "tdBorderTopRight"> 
					-->
					<fo:table-cell xsl:use-attribute-sets="tdTR">  
						<fo:block></fo:block>   
					</fo:table-cell>               
					<xsl:choose>               
						<xsl:when test=".//isa">               
							<fo:table-cell number-columns-spanned="2" xsl:use-attribute-sets="tdBorderLeft"><fo:block></fo:block> </fo:table-cell>
						</xsl:when>               
						<xsl:otherwise>               
							<fo:table-cell number-columns-spanned="2" xsl:use-attribute-sets="tdBorderTopLeft"><fo:block></fo:block> </fo:table-cell> 
						</xsl:otherwise>               
					</xsl:choose>
				</fo:table-row>            
				<xsl:if test="($mode='v1.0' or $mode='v1.1')">
					<fo:table-row>               
						<fo:table-cell xsl:use-attribute-sets="tdL">                  
							<fo:block></fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
							<fo:block space-after="1mm" start-indent="3mm">
								<xsl:text>     
								</xsl:text>                     
								Grundgebühr                  
							</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderRight">                  
							<fo:block></fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdR">                  
							<fo:block></fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
							<fo:block></fo:block>               
						</fo:table-cell>               
						<fo:table-cell>                  
							<fo:block></fo:block>               
						</fo:table-cell>            
					</fo:table-row>            
				</xsl:if>
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL">                  
						<fo:block></fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
						<fo:block start-indent="5mm">                     
							(erste 30 Blätter)                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderRight" text-align="center">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:choose>
									<xsl:when test="not($mode='v1.0' or $mode='v1.1')">
										<xsl:text>i1</xsl:text>                     
									</xsl:when>
									<xsl:otherwise>
										<xsl:text>b1</xsl:text>                     
									</xsl:otherwise>
								</xsl:choose>
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdR" text-align="right">                  
						<fo:block>                     
							<fo:inline font-weight="bold">  
								<xsl:value-of select=".//basic-fee/amount-each"></xsl:value-of>  
								<xsl:if test="$curCount &gt; 1">  	 
									<!-- 202001	 
									<xsl:value-of select = ".//international-fee/@currency"/>  !-->
								</xsl:if>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
						<fo:block></fo:block>               
					</fo:table-cell>               
					<fo:table-cell>                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                  
						<fo:block>12-4</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
						<fo:block start-indent="5mm">                  
							Anzahl der Blätter über 30                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
						<fo:block></fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTR">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:choose>                           
									<xsl:when test=".//sheets-over-30">
										<xsl:value-of select=".//sheets-over-30"></xsl:value-of>                           
									</xsl:when>                           
									<xsl:otherwise>                              
										<xsl:text>0</xsl:text>                              
                           
									</xsl:otherwise>                        
								</xsl:choose>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                  
						<fo:block>12-5</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
						<fo:block start-indent="5mm">                  
							Zusatzblattgebühr                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
						<fo:block>                     
							<fo:inline font-weight="bold" font-size="7pt">                        
								<xsl:text>(X)</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTR">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:choose>                           
									<xsl:when test=".//additional-amount/amount-each">  
										<xsl:value-of select=".//additional-amount/amount-each"></xsl:value-of>                           
									</xsl:when>                           
									<xsl:otherwise>                              
										<xsl:text>0</xsl:text>                              
                           
									</xsl:otherwise>                        
								</xsl:choose>                        
								<xsl:if test="$curCount &gt; 1">                        
									<!-- 2020 equivalent                         
									<xsl:value-of select = ".//international-fee/@currency"/> !-->                   
								</xsl:if>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
						<fo:block></fo:block>               
					</fo:table-cell>               
					<fo:table-cell>                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                  
						<fo:block>12-6</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
						<fo:block start-indent="5mm">                  
							Gesamtbetrag der weiteren Gebühren                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:choose>
									<xsl:when test="not($mode='v1.0' or $mode='v1.1')">
										<xsl:text>i2</xsl:text>                     
									</xsl:when>
									<xsl:otherwise>
										<xsl:text>b2</xsl:text>                     
									</xsl:otherwise>
								</xsl:choose>
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="right">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:choose>                           
									<xsl:when test=".//total-additional-amount">  
										<xsl:value-of select=".//total-additional-amount"></xsl:value-of>                           
									</xsl:when>                           
									<xsl:otherwise>                              
										<xsl:text>0</xsl:text>                           
									</xsl:otherwise>                        
								</xsl:choose>                        
								<xsl:if test="$curCount &gt; 1">                        
									<!--
									<xsl:value-of select = ".//international-fee/@currency"/> !-->                       
								</xsl:if>                        
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
						<fo:block></fo:block>               
					</fo:table-cell>               
					<fo:table-cell>                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                  
						<fo:block>12-7</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
						<fo:block start-indent="5mm">
							<xsl:choose>
								<xsl:when test="not($mode='v1.0' or $mode='v1.1')">
									<xsl:text>i1 + i2 =</xsl:text>                     
								</xsl:when>
								<xsl:otherwise>
									<xsl:text>b1 + b2 =</xsl:text>                     
								</xsl:otherwise>
							</xsl:choose>
						</fo:block>
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:choose>
									<xsl:when test="not($mode='v1.0' or $mode='v1.1')">
										<xsl:text>i</xsl:text>                     
									</xsl:when>
									<xsl:otherwise>
										<xsl:text>B</xsl:text>                     
									</xsl:otherwise>
								</xsl:choose>
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="right">                  
						<fo:block>                  
							<fo:inline font-weight="bold">                        
								<xsl:choose>                           
									<xsl:when test=".//basic-fee/amount-total">  
										<xsl:value-of select=".//basic-fee/amount-total"></xsl:value-of>                           
									</xsl:when>                           
									<xsl:otherwise>  
										<xsl:value-of select="number(translate(.//basic-fee/amount-each,' .,:-','')) + number(.//total-additional-amount)"></xsl:value-of>
									</xsl:otherwise>                        
								</xsl:choose>                        
								<xsl:if test="$curCount &gt; 1">                        
									<!--
									<xsl:value-of select = ".//international-fee/@currency"/>   !-->                     
								</xsl:if>                      
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
						<fo:block></fo:block>               
					</fo:table-cell>               
					<fo:table-cell>                  
						<fo:block></fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<xsl:if test="(.//designation-fee) and ($mode='v1.0' or $mode='v1.1')">               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                     
							<fo:block>12-8</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                     
							<fo:block space-after="1mm" start-indent="3mm">                     
								Bestimmungsgebühren                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderTop">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell>                     
							<fo:block></fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row>                  
						<fo:table-cell>                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdC" number-columns-spanned="2">                     
							<fo:block start-indent="5mm">                     
								Anzahl der in der internationalen Anmeldung vorgenommenen Bestimmungen                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdR">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                           
									<xsl:value-of select=".//number-of-designation"></xsl:value-of>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell>                     
							<fo:block></fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                     
							<fo:block>12-9</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                     
							<fo:block start-indent="5mm">                     
								Nzahl der zu zahlenden Bestimmungsgebühren (höchstens 5)                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                           
									<xsl:value-of select=".//designation-fee-payable"></xsl:value-of>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell>                     
							<fo:block></fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                     
							<fo:block>12-10</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                     
							<fo:block start-indent="5mm">                     
								Bestimmungsgebühr                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                     
							<fo:block>                        
								<fo:inline font-weight="bold" font-size="7pt">                           
									<xsl:text>(X)</xsl:text>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="left">                     
							<fo:block>                        
								<fo:inline font-weight="bold">  
									<xsl:value-of select=".//designation-fee/amount-each"></xsl:value-of>  
									<xsl:if test="$curCount &gt; 1">                        
										<!-- 
										<xsl:value-of select = ".//international-fee/@currency"/>  !-->
									</xsl:if>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell>                     
							<fo:block></fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                     
							<fo:block>12-11</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                     
							<fo:block start-indent="5mm">                     
								Gesamtbetrag der Bestimmungsgebühren                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                           
									<xsl:text>D</xsl:text>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="right">                     
							<fo:block>                        
								<fo:inline font-weight="bold">
									<xsl:value-of select=".//designation-fee/amount-total"></xsl:value-of>
									<xsl:if test="$curCount &gt; 1">
										<!-- 
										<xsl:value-of select = ".//international-fee/@currency"/> !-->
									</xsl:if>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell>                     
							<fo:block></fo:block>                  
						</fo:table-cell>               
					</fo:table-row>            
				</xsl:if>            
				<xsl:for-each select=".//fee-reduction">
					<fo:table-row>               
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                  
							<fo:block>12-12</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
							<fo:block start-indent="3mm">                  
								<xsl:choose>
									<xsl:when test="$mode='v1.0' or $mode='v1.1'">
										<xsl:value-of select="$fee_reduction"></xsl:value-of>
									</xsl:when>
									<xsl:otherwise>
										<xsl:call-template name="reduction_type">
											<xsl:with-param name="reduction" select="@reduction-type"></xsl:with-param>
										</xsl:call-template>
									</xsl:otherwise>
								</xsl:choose>
							</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
							<fo:block>                     
								<fo:inline font-weight="bold">                        
									<xsl:text>R</xsl:text>                     
								</fo:inline>                  
							</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="right">                  
							<fo:block>                  
								<fo:inline font-weight="bold">
									<!--
									<xsl:if test = "$curCount > 1">
										<xsl:value-of select = "translate(parent::international-fee/@currency,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
									</xsl:if> !-->
									<xsl:value-of select="./amount-each"></xsl:value-of>
								</fo:inline>                                
							</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
							<fo:block></fo:block>               
						</fo:table-cell>               
						<fo:table-cell>                  
							<fo:block></fo:block>               
						</fo:table-cell>            
					</fo:table-row>         
				</xsl:for-each>   
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">                  
						<fo:block>12-13</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">                  
						<fo:block>                  
							<xsl:choose>
								<xsl:when test="not($mode='v1.0' or $mode='v1.1')">
									Gesamtbetrag der internationalen Gebühr (i-R)                  
								</xsl:when>
								<xsl:otherwise>
									Gesamtbetrag der internationalen Anmeldegebühr (B+D-R)                  
								</xsl:otherwise>
							</xsl:choose>
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								<xsl:text>I</xsl:text>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTR">                  
						<fo:block font-size="11pt" font-family="ZapfDingbats" text-align="center">➪</fo:block>               
					</fo:table-cell> 
					<xsl:for-each select=".//international-fee"> 
						<xsl:variable name="this-fee" select="."></xsl:variable> 
						<xsl:for-each select="$unique-currencies"> 
							<xsl:sort select="@currency"></xsl:sort> 
							<!-- use with 'if' test below to trap NaN values -->
							<xsl:variable name="fNum">
								<xsl:value-of select="$this-fee[@currency = current()/@currency]/amount-total"></xsl:value-of> 
							</xsl:variable>   
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="right">   
								<fo:block>   
									<xsl:if test="boolean(number($fNum))">
										<fo:inline font-weight="bold">   
											<xsl:if test="$fNum &gt; 0"> 
												<xsl:value-of select="$fNum"></xsl:value-of>   
											</xsl:if>
										</fo:inline>
									</xsl:if>
								</fo:block>   
							</fo:table-cell> 
						</xsl:for-each> 
					</xsl:for-each> 
					<xsl:if test="$curCount = 1">
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
							<fo:block></fo:block>
						</fo:table-cell> 
					</xsl:if>            
				</fo:table-row>
				<xsl:if test=".//pdoc-fee">				
					<xsl:if test="not($lang='ja')">
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">
								<fo:block>12-14</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">
								<fo:block space-after="1mm">
									Gebühr für Prioritätsbeleg
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderTop">
								<fo:block></fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" number-columns-spanned="2">
								<fo:block></fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell>
								<fo:block></fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdC" number-columns-spanned="2">
								<fo:block start-indent="5mm">
									Anzahl der beantragten Prioritätsbelege
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block>
									<fo:inline font-weight="bold">
										<xsl:value-of select=".//pdoc-quantity"></xsl:value-of>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">
								<fo:block></fo:block>
							</fo:table-cell>
							<fo:table-cell>
								<fo:block></fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">
								<fo:block>12-15</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">
								<fo:block start-indent="5mm">
									Gebühr per Prioritätsbeleg
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">
								<fo:block>
									<fo:inline font-weight="bold">(X)</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTR">
								<fo:block>
									<fo:inline font-weight="bold">
										<xsl:value-of select=".//pdoc-fee/amount-each"></xsl:value-of>
										<xsl:if test="$curCount &gt; 1">
											<!--
											<xsl:value-of select = ".//pdoc-fee/@currency"/> !-->
										</xsl:if>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">
								<fo:block></fo:block>
							</fo:table-cell>
							<fo:table-cell>
								<fo:block></fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">
								<fo:block>12-16</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">
								<fo:block>
									Gesamtbetrag Gebühr für Prioritätsbeleg(e): 
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">
								<fo:block>
									<fo:inline font-weight="bold">P</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTL" text-align="center">
								<fo:block font-size="11pt" font-family="ZapfDingbats">➪</fo:block>
							</fo:table-cell> 
							<xsl:for-each select=".//pdoc-fee"> 
								<xsl:variable name="this-fee" select="."></xsl:variable> 
								<xsl:for-each select="$unique-currencies">     
									<xsl:sort select="@currency"></xsl:sort> 
									<!-- use with 'if' test below to trap NaN values -->
									<xsl:variable name="fNum">
										<xsl:value-of select="$this-fee[@currency = current()/@currency]/amount-total"></xsl:value-of> 
									</xsl:variable>   
									<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="right">   
										<fo:block>   	  
											<xsl:if test="boolean(number($fNum))">
												<fo:inline font-weight="bold">   
													<xsl:if test="$fNum &gt; 0">  
														<xsl:value-of select="$fNum"></xsl:value-of>   
													</xsl:if>
												</fo:inline>  
											</xsl:if>
										</fo:block>   
									</fo:table-cell> 
								</xsl:for-each> 
							</xsl:for-each> 
							<xsl:if test="$curCount = 1">
								<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
									<fo:block></fo:block>
								</fo:table-cell> 
							</xsl:if>
						</fo:table-row>
					</xsl:if>
				</xsl:if>
				<xsl:if test=".//restoration-fee">
					<fo:table-row>   
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">  
							<fo:block>12-17</fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">  
							<fo:block>
								Gebühr für die Wiederherstellung des Prioritätsrechts
							</fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight" border-right="solid black 0.5pt">
							<fo:block>
								<fo:inline font-weight="bold">RP</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTL">  
							<fo:block></fo:block>   
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
							<fo:block></fo:block>   
						</fo:table-cell> 
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
							<fo:block></fo:block>   
						</fo:table-cell> 
					</fo:table-row>
					<fo:table-row>   
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">  
							<fo:block></fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft" border-right="solid black 0.5pt" text-align="left" number-columns-spanned="2">  
							<fo:block padding-top="1pt" start-indent="5mm">
								Anzahl der Anträge auf Wiederherstellung des Prioritätsrechts
							</fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdR" text-align="left">                  
							<fo:block>                     
								<fo:inline font-weight="bold">                        
									<xsl:choose>                           
										<xsl:when test=".//restoration-quantity">
											<xsl:value-of select=".//restoration-quantity"></xsl:value-of>                           
										</xsl:when>                           
										<xsl:otherwise>                              
											<xsl:text></xsl:text>                              
										</xsl:otherwise>                        
									</xsl:choose>                     
								</fo:inline>                  
							</fo:block>                     
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">                  
							<fo:block>                     
							</fo:block>               
						</fo:table-cell>               
						<fo:table-cell xsl:use-attribute-sets="tdBorderLeft">  
							<fo:block> 
							</fo:block>   
						</fo:table-cell>               
					</fo:table-row>
					<fo:table-row>   
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">  
							<fo:block></fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" border-right="solid black 0.5pt" text-align="left" number-columns-spanned="2">  
							<fo:block>
								Gesamtbetrag der Gebühren für die Wiederherstellung des Prioritätsrechts
							</fo:block>   
						</fo:table-cell>   
						<fo:table-cell xsl:use-attribute-sets="tdTL">  
							<fo:block> 
							</fo:block>   
						</fo:table-cell>               
						<xsl:for-each select=".//restoration-fee"> 
							<xsl:variable name="this-fee" select="."></xsl:variable> 
							<xsl:for-each select="$unique-currencies"> 
								<xsl:sort select="@currency"></xsl:sort> 
								<!-- use with 'if' test below to trap NaN values -->
								<xsl:variable name="fNum">
									<xsl:value-of select="$this-fee[@currency = current()/@currency]/amount-total"></xsl:value-of> 
								</xsl:variable>   
								<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="right">   
									<fo:block>   
										<xsl:if test="boolean(number($fNum))">
											<fo:inline font-weight="bold">   
												<xsl:if test="$fNum &gt; 0">
													<xsl:value-of select="$fNum"></xsl:value-of>   
												</xsl:if>
											</fo:inline>
										</xsl:if>
									</fo:block>   
								</fo:table-cell> 
							</xsl:for-each> 
						</xsl:for-each> 
						<xsl:if test="$curCount = 1">
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
								<fo:block></fo:block>
							</fo:table-cell> 
						</xsl:if>
					</fo:table-row>
				</xsl:if>
				<xsl:if test=".//earlier-search-document-fee">
					<fo:table-row>   
						<fo:table-cell xsl:use-attribute-sets="tdL" text-align="center">
							<fo:block>12-18</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft" text-align="left">
							<fo:block>
								Gebühr für Unterlagen der früheren Recherche                     
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">
							<fo:block>
								<fo:inline font-weight="bold">ES</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="left">                  
							<fo:block>                     
								<fo:inline font-weight="bold">                        
									<xsl:choose>                           
										<xsl:when test=".//earlier-search-document-quantity">
											<xsl:value-of select=".//earlier-search-document-quantity"></xsl:value-of>                           
										</xsl:when>                           
										<xsl:otherwise>                              
											<xsl:text></xsl:text>                              
										</xsl:otherwise>                        
									</xsl:choose>                     
								</fo:inline>                  
							</fo:block>                     
						</fo:table-cell>               
						<xsl:for-each select=".//earlier-search-document-fee"> 
							<xsl:variable name="this-fee" select="."></xsl:variable> 
							<xsl:for-each select="$unique-currencies"> 
								<xsl:sort select="@currency"></xsl:sort> 
								<!-- use with 'if' test below to trap NaN values -->
								<xsl:variable name="fNum">
									<xsl:value-of select="$this-fee[@currency = current()/@currency]/amount-total"></xsl:value-of> 
								</xsl:variable>   
								<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="right">   
									<fo:block>   
										<xsl:if test="boolean(number($fNum))">
											<fo:inline font-weight="bold">   
												<xsl:if test="$fNum &gt; 0">
													<xsl:value-of select="$fNum"></xsl:value-of>   
												</xsl:if>
											</fo:inline>
										</xsl:if>
									</fo:block>   
								</fo:table-cell> 
							</xsl:for-each> 
						</xsl:for-each> 
						<xsl:if test="$curCount = 1">
							<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
								<fo:block></fo:block>
							</fo:table-cell> 
						</xsl:if>              
					</fo:table-row>
				</xsl:if>
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdTL">                  
						<fo:block>                     
							<fo:inline font-weight="bold">12-19</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                  
						<fo:block>
						<xsl:if test=".//restoration-fee">
							<xsl:if test=".//earlier-search-document-fee">
									<fo:inline font-weight="bold">                        
										Gesamtbetrag der zu zahlenden Gebühren (T+S+I+P+RP+ES)                     
									</fo:inline>                  
							</xsl:if>
							<xsl:if test="not(.//earlier-search-document-fee)">
									<fo:inline font-weight="bold">                        
										Gesamtbetrag der zu zahlenden Gebühren (T+S+I+P+RP)                     
									</fo:inline>                  
							</xsl:if>
						</xsl:if>
						<xsl:if test="not(.//restoration-fee)">
							<xsl:if test=".//earlier-search-document-fee">
									<fo:inline font-weight="bold">                        
										Gesamtbetrag der zu zahlenden Gebühren (T+S+I+P+ES)                     
									</fo:inline>                  
							</xsl:if>
							<xsl:if test="not(.//earlier-search-document-fee)">
									<fo:inline font-weight="bold">                        
										Gesamtbetrag der zu zahlenden Gebühren (T+S+I+P)                     
									</fo:inline>                  
							</xsl:if>
						</xsl:if>
						</fo:block>
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTL" text-align="center">                  
						<fo:block font-size="11pt" font-family="ZapfDingbats">➪</fo:block>               
					</fo:table-cell> 
					<xsl:for-each select=".//amount-grand-total">     
						<xsl:sort select="@currency"></xsl:sort> 
						<xsl:variable name="this-fee" select="."></xsl:variable> 
						<xsl:for-each select="$unique-currencies"> 
							<xsl:variable name="fNum">
								<xsl:value-of select="$this-fee[@currency = current()/@currency]/."></xsl:value-of> 
							</xsl:variable>   
							<xsl:if test="boolean(number($fNum))">   
								<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="right">   
									<fo:block>
										<fo:inline font-weight="bold">
											<xsl:value-of select="$fNum"></xsl:value-of>
										</fo:inline>
									</fo:block>   
								</fo:table-cell>   
							</xsl:if> 
						</xsl:for-each> 
					</xsl:for-each> 
					<xsl:if test="$curCount = 1">
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
							<fo:block></fo:block>
						</fo:table-cell> 
					</xsl:if>            
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell border-top="solid black 0.25pt" number-columns-spanned="6"><fo:block></fo:block></fo:table-cell>
				</fo:table-row>         
			</fo:table-body>       
		</fo:table>            
		<fo:table table-layout="fixed" border-collapse="separate">         
			<fo:table-column column-width="12mm"></fo:table-column>         
			<fo:table-column column-width="48mm"></fo:table-column>         
			<fo:table-column column-width="5mm"></fo:table-column>         
			<fo:table-column column-width="35mm"></fo:table-column>         
			<fo:table-column column-width="35mm"></fo:table-column>         
			<fo:table-column column-width="35mm"></fo:table-column>         
			<fo:table-body>            
			<!-- NOTE: not used after 2004 -->
				<!--xsl:if test = "not(.//designation-fee)">               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets = "tdTL">                     
							<fo:block>                        
								<fo:inline font-weight = "bold">12-20</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets = "tdTC" number-columns-spanned = "2">                     
							<fo:block>                        
								<fo:inline font-weight = "bold">                           
									<inc file = "commonText.xml" toTranslate = "desFeesNotPaid_Text"/>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets = "tdTL" number-columns-spanned = "3">                     
							<fo:block font-size = "11pt" font-family = "ZapfDingbats">✓</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>            
				</xsl:if-->            
				<fo:table-row>               
					<fo:table-cell xsl:use-attribute-sets="tdTBL">                  
						<fo:block>                     
							<fo:inline font-weight="bold">12-21</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTBC" number-columns-spanned="2">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                        
								Zahlungsart                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>               
					<fo:table-cell xsl:use-attribute-sets="tdTBR" number-columns-spanned="3">                  
						<fo:block>                     
							<fo:inline font-weight="bold">                     
								<xsl:choose>
									<xsl:when test="$pModes &gt; 1">
										Übermittlungsgebühr:   <xsl:call-template name="paymentMode">
											<xsl:with-param name="pType" select=".//transmittal-fee/payment-mode"></xsl:with-param>   
										</xsl:call-template>
										<fo:block></fo:block>
										Recherchengebühr: <xsl:call-template name="paymentMode">
											<xsl:with-param name="pType" select=".//search-fee/payment-mode"></xsl:with-param>   
										</xsl:call-template>
										<fo:block></fo:block>
										Internationale Anmeldegebühr :   <xsl:call-template name="paymentMode">
											<xsl:with-param name="pType" select=".//international-fee/payment-mode"></xsl:with-param>   
										</xsl:call-template>
										<xsl:if test=".//pdoc-fee/amount-total &gt; 0">   
											<fo:block></fo:block>   
											Gebühr für Prioritätsbeleg:   <xsl:call-template name="paymentMode">
												<xsl:with-param name="pType" select=".//pdoc-fee/payment-mode"></xsl:with-param>   
											</xsl:call-template>
										</xsl:if>
									</xsl:when>
									<xsl:otherwise>
										<!-- otherwise, all payment types are the same; use any -->
										<xsl:call-template name="paymentMode">
											<xsl:with-param name="pType" select=".//transmittal-fee/payment-mode"></xsl:with-param>   
										</xsl:call-template>
									</xsl:otherwise>
								</xsl:choose>                     
							</fo:inline>                  
						</fo:block>               
					</fo:table-cell>            
				</fo:table-row>            
				<xsl:if test=".//deposit-account/account-no/text()">               
					<fo:table-row keep-with-next="always">                  
						<fo:table-cell xsl:use-attribute-sets="tdTL">                     
							<fo:block>                        
								<fo:inline font-weight="bold">12-22</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                     
							<fo:block space-after="2mm">                        
								<fo:inline font-weight="bold">                           
									Anweisungen betreffend laufendes Konto                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR" number-columns-spanned="3">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                           
									<!--inc file = "commonText.xml" toTranslate = "charge_Text"/-->									                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row keep-with-next="always">                  
						<fo:table-cell>                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdC" number-columns-spanned="2">                     
							<fo:block>                        
								Das Anmeldeamt:                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdR" number-columns-spanned="3">                     
							<fo:block>                        
								<fo:inline font-weight="bold">
									<xsl:choose>
										<xsl:when test="$lang='ar'">
											<fo:bidi-override unicode-bidi="embed" direction="rtl">
												<xsl:call-template name="officeName_ChoiceText">
													<xsl:with-param name="office" select=".//@ro"></xsl:with-param>
												</xsl:call-template>
											</fo:bidi-override>
										</xsl:when>
										<xsl:otherwise>
											<xsl:call-template name="officeName_ChoiceText">
												<xsl:with-param name="office" select=".//@ro"></xsl:with-param>
											</xsl:call-template>											
										</xsl:otherwise>
									</xsl:choose>
									<fo:inline keep-together.within-line="always">
										<xsl:text>(RO/</xsl:text>
										<xsl:value-of select="translate(.//@ro,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:value-of>
										<xsl:text>)</xsl:text>
									</fo:inline>
								</fo:inline>                 
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<xsl:if test=".//deposit-account/authorization/total-fee">                  
						<fo:table-row keep-with-next="always">                  
							<fo:table-cell xsl:use-attribute-sets="tdTL">                        
								<fo:block>12-22-1</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                        
								<fo:block>                           
									Die Bevollmächtigung, den o.g. Gesamtbetrag der Gebühren abzubuchen                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTL" number-columns-spanned="3">                        
								<fo:block font-size="11pt" font-family="ZapfDingbats">✓</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>               
					</xsl:if>               
					<xsl:if test=".//deposit-account/authorization/deficiency-credit">                  
						<fo:table-row keep-with-next="always">                  
							<fo:table-cell xsl:use-attribute-sets="tdTL">                        
								<fo:block>12-22-2</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                        
								<fo:block>                           
									Die Bevollmächtigung, Fehlbeträge oder Überzahlungen des Gesamtbetrags zu belasten bzw. gutzuschreiben                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTL" number-columns-spanned="3">                        
								<fo:block font-size="11pt" font-family="ZapfDingbats">✓</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>               
					</xsl:if>               
					<xsl:if test=".//deposit-account/authorization/fee-for-pdoc">                  
						<fo:table-row keep-with-previous="always">                  
							<fo:table-cell xsl:use-attribute-sets="tdTL">                        
								<fo:block>12-22-3</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                        
								<fo:block>                           
									Die Bevollmächtigung, die Gebühr für Prioritätsbeleg abzubuchen                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTL" number-columns-spanned="3">                        
								<fo:block font-size="11pt" font-family="ZapfDingbats">✓</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>               
					</xsl:if>               
					<xsl:if test=".//deposit-account/authorization/automatic-debit">
						<fo:table-row>                     
							<fo:table-cell xsl:use-attribute-sets="tdTL">                        
								<fo:block>12-22-4</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                        
								<fo:block>                           
									Das Amt in seiner Eigenschaft als Anmeldeamt (RO), als Internationale Recherchenbehörde (ISA) und gegebenenfalls als mit der internationalen vorläufigen Prüfung beauftragte Behörde (IPEA) wird hiermit ermächtigt, die für die Bearbeitung dieser internationalen Anmeldung anfallenden Gebühren, gemäß dem automatischen Abbuchungsverfahren des Amts, vom angegebenen Konto abzubuchen.                        
								</fo:block>                     
							</fo:table-cell>                     
							<fo:table-cell xsl:use-attribute-sets="tdTL" number-columns-spanned="3">                        
								<fo:block font-size="11pt" font-family="ZapfDingbats">✓</fo:block>                     
							</fo:table-cell>                  
						</fo:table-row>               
					</xsl:if>                  

					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdTL">                     
							<fo:block>                        
								<fo:inline font-weight="bold">12-23</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                     
							<fo:block>                        
								Nummer des laufenden Kontos                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR" number-columns-spanned="3">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                           
									<xsl:value-of select=".//account-no"></xsl:value-of>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row>                  
						<fo:table-cell xsl:use-attribute-sets="tdTBL">                     
							<fo:block>                        
								<fo:inline font-weight="bold">12-24</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTBC" number-columns-spanned="2">                     
							<fo:block>                        
								Datum                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTBR" number-columns-spanned="3">                     
							<fo:block>                        
								<fo:inline font-weight="bold">                           
									<xsl:call-template name="format_date">                              
										<xsl:with-param name="lang" select="$lang"></xsl:with-param>                              
										<xsl:with-param name="date" select=".//date"></xsl:with-param>                              
										<xsl:with-param name="show_date" select="1"></xsl:with-param>                              
										<xsl:with-param name="date_too" select="1"></xsl:with-param>                              
										<xsl:with-param name="text" select="1"></xsl:with-param>                           
									</xsl:call-template>                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row keep-with-next="always">                  
						<fo:table-cell xsl:use-attribute-sets="tdTL">                     
							<fo:block>                        
								<fo:inline font-weight="bold">12-25</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">                     
							<fo:block space-after="12mm">                        
								Name und Unterschrift                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR" number-columns-spanned="3">                     
							<fo:block>                        
								<fo:inline font-weight="bold">
									<!-- TODO: determine whether to show deposit-account name or signatory name -->
									 
									<xsl:call-template name="format_name">
										<xsl:with-param name="name_arg" select=".//deposit-account"></xsl:with-param> 
									</xsl:call-template>           						 
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<fo:table-row keep-with-previous="always">                  
						<fo:table-cell xsl:use-attribute-sets="tdBorderBottom">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBC" number-columns-spanned="2">                     
							<fo:block></fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdBR" number-columns-spanned="3">                     
							<fo:block>   
								<xsl:choose>  
									<xsl:when test=".//signatory[1]/electronic-signature/basic-signature/fax-image"> 
										<fo:external-graphic>
											<xsl:if test="not(contains($fop_version, '0.2')) and ($fop_version != '')">
												<xsl:attribute name="content-width">scale-down-to-fit</xsl:attribute>											
												<xsl:attribute name="width">100mm</xsl:attribute>											
											</xsl:if>										
											<!-- NOTE: XEP will not load files in same directory if 'file:///' is prepended -->
											<xsl:attribute name="src">   
												<xsl:choose>  
													<xsl:when test="contains(.//signatory[1]/electronic-signature/basic-signature/fax-image/@file,'/') or contains(.//signatory[1]/electronic-signature/basic-signature/fax-image/@file,'\') or contains(.//signatory[1]/electronic-signature/basic-signature/fax-image/@file,':')"> 
														<xsl:value-of select="concat('file:///',.//signatory[1]/electronic-signature/basic-signature/fax-image/@file)"></xsl:value-of>  
													</xsl:when>  
													<xsl:otherwise> 
														<xsl:value-of select=".//signatory[1]/electronic-signature/basic-signature/fax-image/@file"></xsl:value-of>  
													</xsl:otherwise>   
												</xsl:choose>
											</xsl:attribute> 
										</fo:external-graphic>  
									</xsl:when>  
									<xsl:when test=".//signatory[1]/electronic-signature/basic-signature/click-wrap"> 
										<fo:inline font-weight="bold"> 
											(Anmelder hat 'Ja' angeklickt) 
										</fo:inline>  
									</xsl:when>  
									<xsl:when test=".//signatory[1]/electronic-signature/basic-signature/text-string"> 
										<fo:inline font-weight="bold"> 
											<xsl:value-of select=".//signatory[1]//text-string"></xsl:value-of> 
										</fo:inline>  
									</xsl:when>  
									<xsl:when test=".//signatory[1]/enhanced-signature/pkcs7">
										<fo:inline font-weight="bold"> 
											(PKCS7 digitale Unterschrift)
										</fo:inline>  
									</xsl:when>   
								</xsl:choose>                     
							</fo:block>                  
						</fo:table-cell>               
					</fo:table-row>            
				</xsl:if>        
				<xsl:if test="(.//payment-mode/credit-card) or (.//payment-mode/bank-draft and .//payment-contact/email/text()) or (.//@ro='IB' and .//payment-contact/email/text())">
					<xsl:if test="not(.//@ro='EP')">
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdTBL">
								<fo:block>
									<fo:inline font-weight="bold">12-22</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTBC" number-columns-spanned="2">
								<fo:block>
									<fo:inline font-weight="bold">
										Zahlung Kontakt
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTBR" number-columns-spanned="3">
								<fo:block>
									<fo:inline font-weight="bold">
										<xsl:value-of select=".//payment-contact/email"></xsl:value-of>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
					</xsl:if>
				</xsl:if>
				<xsl:if test=".//reimbursement-deposit-account">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdTBL">
							<fo:block>
								<fo:inline font-weight="bold">12-26</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBC" number-columns-spanned="2">
							<fo:block>
								<fo:inline font-weight="bold">
									Rückerstattungsanweisungen
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTBR" number-columns-spanned="3">
							<fo:block></fo:block>
						</fo:table-cell>
					</fo:table-row>
					<xsl:for-each select=".//reimbursement-deposit-account">
						<xsl:variable name="seq" select="position()"></xsl:variable>
						<fo:table-row keep-with-previous="always">
							<fo:table-cell xsl:use-attribute-sets="tdTL">
								<fo:block>
									<fo:inline>12-26-<xsl:value-of select="$seq"></xsl:value-of>-1</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">
								<fo:block>
									<fo:inline>
										Amt, das die Rückerstattung bearbeitet
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTR" number-columns-spanned="3">
								<fo:block>
									<fo:inline font-weight="bold">
										<xsl:value-of select="./ip-office"></xsl:value-of>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row keep-with-previous="always">
							<fo:table-cell xsl:use-attribute-sets="tdTL">
								<fo:block>
									<fo:inline>12-26-<xsl:value-of select="$seq"></xsl:value-of>-2</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">
								<fo:block>
									<fo:inline>
										Etwaige Rückerstattungen sind an das Termin- oder Kontokorrentkonto mit folgender Nummer zu leisten:
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTR" number-columns-spanned="3">
								<fo:block>
									<fo:inline font-weight="bold">
										<xsl:value-of select="./account-no"></xsl:value-of>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row keep-with-previous="always">
							<fo:table-cell xsl:use-attribute-sets="tdTL">
								<fo:block>
									<fo:inline>12-26-<xsl:value-of select="$seq"></xsl:value-of>-3</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTC" number-columns-spanned="2">
								<fo:block>
									<fo:inline>
										Kontoinhaber
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTR" number-columns-spanned="3">
								<fo:block>
									<fo:inline font-weight="bold">
										<xsl:value-of select="./name"></xsl:value-of>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>                  
							<fo:table-cell xsl:use-attribute-sets="tdTBL">                     
								<fo:block>                        
										<fo:inline>12-26-<xsl:value-of select="$seq"></xsl:value-of>-4</fo:inline>
								</fo:block>                  
							</fo:table-cell>                  
							<fo:table-cell xsl:use-attribute-sets="tdTBC" number-columns-spanned="2">                     
								<fo:block>                        
									Datum                     
								</fo:block>                  
							</fo:table-cell>                  
							<fo:table-cell xsl:use-attribute-sets="tdTBR" number-columns-spanned="3">                     
								<fo:block>                        
									<fo:inline font-weight="bold">                           
										<xsl:call-template name="format_date">                              
											<xsl:with-param name="lang" select="$lang"></xsl:with-param>                              
											<xsl:with-param name="date" select=".//date"></xsl:with-param>                              
											<xsl:with-param name="show_date" select="1"></xsl:with-param>                              
											<xsl:with-param name="date_too" select="1"></xsl:with-param>                              
											<xsl:with-param name="text" select="1"></xsl:with-param>                           
										</xsl:call-template>                        
									</fo:inline>                     
								</fo:block>                  
							</fo:table-cell>               
						</fo:table-row>  
					</xsl:for-each>
				</xsl:if>
			</fo:table-body>      
		</fo:table>   
	</xsl:template><xsl:template name="reduction_type">
		<xsl:param name="reduction"></xsl:param>
		<xsl:choose>
			<xsl:when test="$reduction='PCT-SAFE reduction (full)'">
				Ermäßigung für elektronische Anmeldung (vollständig)
			</xsl:when>
			<xsl:when test="$reduction='PCT-SAFE reduction (image)'">
				Ermäßigung für elektronische Anmeldung (Bild)
			</xsl:when>
			<xsl:when test="$reduction='PCT-SAFE reduction (EASY)'">
				EASY-Ermäßigung
			</xsl:when>
			<xsl:when test="$reduction='electronic-application-form'">
				EASY-Ermäßigung
			</xsl:when>
			<xsl:when test="$reduction='electronic-filing-image-description'">
				Ermäßigung für elektronische Anmeldung (Bild)
			</xsl:when>
			<xsl:when test="$reduction='electronic-filing-full-xml'">
				 Ermäßigung für elektronische Anmeldung (XML)
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="$reduction"></xsl:value-of>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template><xsl:template name="remarks">
		<!-- render <dtext> remarks; currently, JA only -->
		<xsl:if test="(document($request_doc)//dtext) or (.//dtext)">
			<fo:table table-layout="fixed" border-collapse="separate" space-after="5mm" space-before="5mm">         
				<fo:table-column column-width="12mm"></fo:table-column>         
				<fo:table-column column-width="53mm"></fo:table-column>         
				<fo:table-column column-width="105mm"></fo:table-column>         
				<fo:table-body>            
					<fo:table-row>
						<fo:table-cell font-size="10pt" vertical-align="top" padding="1.5pt" number-columns-spanned="3" padding-bottom="4mm">
							<fo:block text-align="center">  
								<fo:inline font-weight="bold">  
									BEMERKUNGEN
								</fo:inline>  
							</fo:block>       
						</fo:table-cell>
					</fo:table-row>        
					<xsl:for-each select="document($request_doc)//dtext | .//dtext">
						<xsl:variable name="seq" select="position()"></xsl:variable>
						<fo:table-row>               
							<fo:table-cell xsl:use-attribute-sets="tdTL">                  
								<fo:block>                     
									<fo:inline font-weight="bold">13-1-<xsl:value-of select="$seq"></xsl:value-of>
									</fo:inline>                  
								</fo:block>               
							</fo:table-cell>               
							<fo:table-cell xsl:use-attribute-sets="tdTC">                  
								<fo:block space-after="1.5mm">                     
									<fo:inline font-weight="bold">                        
										Bemerkungen des Anmelders 
									</fo:inline>                  
								</fo:block>               
							</fo:table-cell>               
							<fo:table-cell xsl:use-attribute-sets="tdTL">                  
								<fo:block padding-bottom="3mm">
									<xsl:value-of select="."></xsl:value-of>
								</fo:block>               
							</fo:table-cell>            
						</fo:table-row>            
					</xsl:for-each>
					<fo:table-row>
						<fo:table-cell number-columns-spanned="3" border-top="solid black 0.5pt">
							<fo:block></fo:block>
						</fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
		</xsl:if>
	</xsl:template><xsl:template name="paymentMode">   	 
		<xsl:param name="pType"></xsl:param>
		<xsl:choose>
			<xsl:when test="name($pType/*)='charge'">
				<xsl:choose>
					<xsl:when test=".//deposit-account/authorization/automatic-debit">
						Ermächtigung zur automatischen Abbuchung von Laufendes Konto											
					</xsl:when>
					<xsl:otherwise>
						Abbuchungsauftrag
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="name($pType/*)='credit-card'">
				Kreditkarte
			</xsl:when>
			<xsl:when test="name($pType/*)='postal-order'">
				Postanweisung
			</xsl:when>
			<xsl:when test="name($pType/*)='cash'">
				Barzahlung
			</xsl:when>
			<xsl:when test="name($pType/*)='coupons'">
				Kupons
			</xsl:when>
			<xsl:when test="name($pType/*)='cheque'">
				Scheck
			</xsl:when>
			<xsl:when test="name($pType/*)='bank-draft'">
				Banküberweisung
			</xsl:when>
			<xsl:when test="name($pType/*)='stamps'">
				Gebührenmarken
			</xsl:when>
			<xsl:when test="name($pType/*)='other'">
				Sonstige(s) : 
				<xsl:choose>
					<xsl:when test="$pType='credit card'">
						Kreditkarte
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$pType"></xsl:value-of>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
		</xsl:choose> 
	</xsl:template>
	<xsl:template 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">                     
								Formular PCT/RO/134<fo:block />Angaben zu einem hinterlegten Mikroorganismus und/oder anderem hinterlegten biologischen Material                     
							</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">                  
							Erstellt mit                  
						</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">                     
								Internationales Aktenzeichen                     
							</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">                        
								Aktenzeichen des Anmelders oder Anwalts                     
							</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">                        
									Die nachstehenden Angaben betreffen den Mikroorganismus und/oder anderes biologisches Material, der/das in der Beschreibung genannt ist                        
								</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">  
											Seite                         
										</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">  
											Zeile                         
										</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">  
											Absatz zahl                        
										</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">                        
									Angaben betr. Hinterlegung                        
								</fo:inline>                     
							</fo:block>                  
						</fo:table-cell>                  
						<fo:table-cell xsl:use-attribute-sets="tdTR">                     
							<fo:block></fo:block>                  
						</fo:table-cell>               
					</fo:table-row>               
					<xsl:if test="depositary/text()">   
						<fo:table-row>  
							<fo:table-cell xsl:use-attribute-sets="tdL"> 
								<fo:block>   
									<xsl:value-of select="$bio_seq"></xsl:value-of>-3-1
						 
								</fo:block>  
							</fo:table-cell>  
							<fo:table-cell xsl:use-attribute-sets="tdC"> 
								<fo:block> 
									Name der Hinterlegungsstelle 
								</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>                        
									Anschrift der Hinterlegungsstelle                        
								</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>                        
									Datum der Hinterlegung                        
								</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>                     
								Eingangsnummer                     
							</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">                           
										Weitere Angaben                           
									</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">                        
									Bestimmungsstaaten, für die besondere Angaben gemacht werden                        
								</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'">                                  
											 Alle Bestimmungsstaaten                               
										</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">                           
										Gesondert eingereichte Angaben                           
									</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">                      
									Diese Angaben werden dem Internationalen Büro später übermittelt                        
								</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">
								VOM ANMELDEAMT AUSZUFÜLLEN  
							</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">
								Dieses Formular ist mit der internationalen Anmeldung eingegangen
							</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">
							(ja oder nein) 
						</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">
							Bevollmächtigter Bediensteter 
						</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">  
								VOM INTERNATIONALEN BÜRO AUSZUFÜLLEN  
							</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">
								Dieses Formular ist an folgendem Datum beim internationalen Büro eingegangen
							</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">
							Bevollmächtigter Bediensteter 
						</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'">
				ja
			</xsl:when>
			<xsl:when test="$yes_or_no_or_none='no'">
				nein
			</xsl:when>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="power_of_attorney">
		<xsl:choose>
			<xsl:when test="$power_doc != ''">
				<xsl:for-each select="document($power_doc)/*">
					<xsl:choose>
						<xsl:when test="document($power_doc)//doc-page">
							<xsl:for-each select="document($power_doc)//doc-page">
								<xsl:apply-templates select="."></xsl:apply-templates>
							</xsl:for-each>
						</xsl:when>
						<xsl:otherwise>
							<xsl:call-template name="process_power"></xsl:call-template>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:for-each>
			</xsl:when>
			<!-- when no fee parameter (e.g., power-of-attorney document) -->
			<xsl:otherwise>
				<xsl:choose>
					<xsl:when test="./doc-page">
						<xsl:for-each select="./doc-page">
							<xsl:apply-templates select="doc-page"></xsl:apply-templates>
						</xsl:for-each>
					</xsl:when>
					<xsl:otherwise>
						<xsl:call-template name="process_power"></xsl:call-template>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template><xsl:template name="process_power">
		<fo:table table-layout="fixed" border-collapse="separate">
			<fo:table-column column-width="12mm"></fo:table-column>
			<fo:table-column column-width="53mm"></fo:table-column>
			<fo:table-column column-width="105mm"></fo:table-column>
			<fo:table-body>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTL">
						<fo:block>
							<fo:inline font-weight="bold">0-1</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							<fo:inline font-weight="bold">
								PCT Vollmacht (für eine internationale Anmeldung nach dem Vertrag über die internationale Zusammenarbeit auf dem Gebiet des Patentwesens (PCT Regel 90.4) 
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTop">
						<fo:block></fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTBL">
						<fo:block>0-1-1</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTBC">
						<fo:block>
							Erstellt mit
						</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">
								Die unterzeichneten Anmelder 
							</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">
									bestellt (bestellen) hiermit die folgende Person 
								</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR">
							<xsl:choose>
								<xsl:when test="$lang = 'ja' or $lang ='ko' or $lang = 'zh' or $lang ='ru' or $lang = 'ar'">
									<fo:block font-weight="bold">
										<xsl:if test="./addressbook[@lang != 'en']">
											<fo:block>
												<xsl:call-template name="format_name">
													<xsl:with-param name="name_arg" select="./addressbook[@lang != 'en']"></xsl:with-param>
												</xsl:call-template>
											</fo:block>
										</xsl:if>
										<fo:block>
											<xsl:call-template name="format_name">
												<xsl:with-param name="name_arg" select="./addressbook[@lang ='en']"></xsl:with-param>
											</xsl:call-template>
										</fo:block>
									</fo:block>
									<xsl:if test="./addressbook[@lang != 'en']/address">
										<fo:block font-weight="bold" padding-top="5mm">
											<xsl:choose>
												<xsl:when test="./addressbook/@lang = 'ja'">
													<xsl:call-template name="showJaAddress"></xsl:call-template>
												</xsl:when>
												<xsl:when test="./addressbook/@lang = 'zh'">
													<xsl:call-template name="showZhAddress"></xsl:call-template>
												</xsl:when>
												<xsl:when test="./addressbook/@lang = 'ko'">
													<xsl:call-template name="showKoAddress"></xsl:call-template>
												</xsl:when>
												<xsl:otherwise>
													<xsl:call-template name="showAddress"></xsl:call-template>
												</xsl:otherwise>
											</xsl:choose>
										</fo:block>
									</xsl:if>
									<xsl:if test="./addressbook[@lang = 'en']/address">
										<fo:block font-weight="bold" padding-top="3mm">
											<xsl:call-template name="showEnAddress"></xsl:call-template>
										</fo:block>
									</xsl:if>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight="bold">
											<xsl:call-template name="format_name">
												<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
											</xsl:call-template>
											<fo:block></fo:block>
											<xsl:if test="./addressbook[1]/address">
												<xsl:choose>
													<xsl:when test="$lang='ja'">
														<xsl:call-template name="showJaAddress"></xsl:call-template>
													</xsl:when>
													<xsl:when test="$lang='zh'">
														<xsl:call-template name="showZhAddress"></xsl:call-template>
													</xsl:when>
													<xsl:when test="$lang='ko'">
														<xsl:call-template name="showKoAddress"></xsl:call-template>
													</xsl:when>
													<xsl:otherwise>
														<xsl:call-template name="showAddress"></xsl:call-template>
													</xsl:otherwise>
												</xsl:choose>
											</xsl:if>
										</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
					</fo:table-row>
				</xsl:for-each>
				<!-- TODO: display info for additional agents?  See PCT-Easy output (doesn't allow multiple 'rep-type's)-->
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdTL">
						<fo:block>
							<fo:inline font-weight="bold">1-2</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC">
						<fo:block>
							<fo:inline font-weight="bold">
								 als 
							</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'">
										Anwalt
									</xsl:when>
									<xsl:when test=".//attorney-or-agent[1]/@rep-type='attorney'">
										Rechtsanwalt
									</xsl:when>
									<xsl:when test=".//attorney-or-agent[1]/@rep-type='common-representative'">
										Gemeinsamer Vertreter
									</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">
								um den Unterzeichner zu vertreten vor 
							</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'">
										alle kompetenten internationalen Behörden 
									</xsl:when>
									<xsl:when test="name(.//represent-before/*)='isa-only'">
										nur die internationale Recherchenbehörde 
									</xsl:when>
									<xsl:when test="name(.//represent-before/*)='ipea-only'">
										nur die mit der internationalen vorläufigen Prüfung beauftragte Behörde
									</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">
								im Zusammenhang mit der unten identifizierten internationalen Anmeldung 
							</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">
								Bezeichnung der Erfindung
							</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">
								Aktenzeichen des Anmelders oder Anwalts
							</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">
								Internationales Aktenzeichen (wenn schon verfügbar) 
							</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">
								bei dem folgenden Amt als Anmeldeamt eingereicht 
							</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">
								und um im Namen des Unterzeichneten Zahlungen zu machen, bzw. zu erhalten.
							</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">
								Datum
							</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">
								Anmelder  
							</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>  
							Diese Person ist
						</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>
											 (verstorben) 
											<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>                    
											 wohnhaft in   
											<xsl:value-of select="@to-dead-inventor"></xsl:value-of>                    
											 (verstorben) 
											<!-- 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>	
												 (verstorben) 
												 wohnhaft in 
											<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>	
												 (verstorben) 
												 wohnhaft in 
											<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>                    
											 wohnhaft in  
											<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>                    
													 (verstorben) 
												</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>                    
											 (verstorben) 
										</xsl:when>										
										<xsl:otherwise>
											<xsl:call-template name="kind_ChoiceText">
												<xsl:with-param name="kind" select="@kind"></xsl:with-param>
											</xsl:call-template>                    
											 wohnhaft in   
											<xsl:value-of select="@to-dead-inventor"></xsl:value-of>                    
											 (verstorben) 
										</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>  
							Anmelder für
						</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>  
								Erfinder für
							</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>
									Anschrift 
								</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>
									Anschrift 
								</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>
									Anschrift 
								</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>
									Anschrift 
								</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>
									Anschrift 
								</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>  
							Staatsangehörigkeit (Staat)
						</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>  
							Sitz/Wohnsitz (Staat)
						</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>
								Telefonnr.  
							</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>
								Telefaxnr.  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">  
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">  
									<xsl:value-of select="./addressbook[1]/fax"></xsl:value-of>
								</fo:inline>  
							</fo:block>
						</fo:table-cell>  
					</fo:table-row>
				</xsl:if>
				<xsl:if test="./addressbook[1]/email">  
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">  
							<fo:block>
								<xsl:text>II-10</xsl:text>  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">  
							<fo:block>
								E-Mail  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">  
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">  
									<xsl:value-of select="./addressbook[1]/email"></xsl:value-of>
								</fo:inline>  
							</fo:block>
						</fo:table-cell>  
					</fo:table-row>
				</xsl:if>
				<xsl:if test="./addressbook[1]/email/@email-purpose='advance'">  
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">  
							<fo:block>
								<xsl:text>II-10(a)</xsl:text>  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">  
							<fo:block>
								E-Mail-Ermächtigung  
							</fo:block>
							<fo:block>
								Das Anmeldeamt, die Internationale Recherchenbehörde, das Internationale Büro und die mit der internationalen vorläufigen Prüfung beauftragte Behörde werden ermächtigt, diese E-Mail-Adresse zu benutzen, um Mitteilungen bezüglich dieser internationalen Anmeldung zu übersenden, soweit das Amt oder die Behörde dazu bereit ist:  
							</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>
										nur für Vorauskopien, Mitteilungen werden zudem in Papierform versandt  
									</fo:block>
								</fo:inline>  
							</fo:block>
						</fo:table-cell>  
					</fo:table-row>
				</xsl:if>
				<xsl:if test="./addressbook[1]/email/@email-purpose='main'">  
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">  
							<fo:block>
								<xsl:text>II-10(a)</xsl:text>  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">  
							<fo:block>
								E-Mail-Ermächtigung  
							</fo:block>
							<fo:block>
								Das Anmeldeamt, die Internationale Recherchenbehörde, das Internationale Büro und die mit der internationalen vorläufigen Prüfung beauftragte Behörde werden ermächtigt, diese E-Mail-Adresse zu benutzen, um Mitteilungen bezüglich dieser internationalen Anmeldung zu übersenden, soweit das Amt oder die Behörde dazu bereit ist:  
							</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 (E-Mail mit einem Link zum Ansehen und Herunterladen des Dokuments in ePCT)
													</xsl:when>
													<xsl:otherwise>
														E-Mail (E-Mail mit PDF-Anhang)
													</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>
								Registrierungsnummer des Anmelders beim Amt  
							</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">                  
									Anmelder und/oder Erfinder                
								</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>                
								Diese Person ist              
							</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'">                      
											Erfinder nur  
											<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'">                
											Erfinder nur (verstorben)                       
										</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>
												 (verstorben) 
												<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>                    
												 wohnhaft in 
												<xsl:value-of select="@to-dead-inventor"></xsl:value-of>                    
												 (verstorben) 
												<!-- 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>	
													 (verstorben) 
													 wohnhaft in 
												<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>	
													 (verstorben) 
													 wohnhaft in 
												<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>                    
												 wohnhaft in 
												<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>                    
														 (verstorben) 
													</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>                    
												 (verstorben) 
											</xsl:when>		
											<xsl:otherwise>
												<xsl:call-template name="kind_ChoiceText">
													<xsl:with-param name="kind" select="@kind"></xsl:with-param>
												</xsl:call-template>                    
												 wohnhaft in 
												<xsl:value-of select="@to-dead-inventor"></xsl:value-of>                    
												 (verstorben) 
											</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>  
									Anmelder für  
								</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>  
									Erfinder für
								</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>  
									Erfinder für  
								</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>
											Anschrift 
										</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>
											Anschrift 
										</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>
											Anschrift 
										</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>
											Anschrift 
										</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>
											Anschrift 
										</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>                  
									Staatsangehörigkeit (Staat)                  
								</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>                  
									Sitz/Wohnsitz (Staat)                  
								</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>                  
									Telefonnr.                
								</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>                  
									Telefaxnr.                
								</fo:block>              
							</fo:table-cell>              
							<fo:table-cell xsl:use-attribute-sets="tdR">                
								<fo:block padding-top="1pt">                  
									<fo:inline font-weight="bold">                    
										<xsl:value-of select="addressbook[1]/fax"></xsl:value-of>                  
									</fo:inline>                
								</fo:block>              
							</fo:table-cell>            
						</fo:table-row>          
					</xsl:if>          
					<xsl:if test="addressbook[1]/email">            
						<fo:table-row>              
							<fo:table-cell xsl:use-attribute-sets="tdL">                
								<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>-10</fo:block>              
							</fo:table-cell>              
							<fo:table-cell xsl:use-attribute-sets="tdC">                
								<fo:block>                  
									E-Mail                
								</fo:block>              
							</fo:table-cell>              
							<fo:table-cell xsl:use-attribute-sets="tdR">                
								<fo:block padding-top="1pt">                  
									<fo:inline font-weight="bold">                    
										<xsl:value-of select="addressbook[1]/email"></xsl:value-of>                  
									</fo:inline>                
								</fo:block>              
							</fo:table-cell>            
						</fo:table-row>          
					</xsl:if>          
					<xsl:if test="addressbook[1]/email/@email-purpose='advance'">            
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL">  
								<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>-10(a)</fo:block>              
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdC">  
								<fo:block>
									E-Mail-Ermächtigung  
								</fo:block>
								<fo:block>
									Das Anmeldeamt, die Internationale Recherchenbehörde, das Internationale Büro und die mit der internationalen vorläufigen Prüfung beauftragte Behörde werden ermächtigt, diese E-Mail-Adresse zu benutzen, um Mitteilungen bezüglich dieser internationalen Anmeldung zu übersenden, soweit das Amt oder die Behörde dazu bereit ist:  
								</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>
											nur für Vorauskopien, Mitteilungen werden zudem in Papierform versandt  
										</fo:block>
									</fo:inline>  
								</fo:block>
							</fo:table-cell>  
						</fo:table-row>
					</xsl:if>
					<xsl:if test="addressbook[1]/email/@email-purpose='main'">            
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL">  
								<fo:block>III-<xsl:value-of select="$seq"></xsl:value-of>-10(a)</fo:block>              
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdC">  
								<fo:block>
									E-Mail-Ermächtigung  
								</fo:block>
								<fo:block>
									Das Anmeldeamt, die Internationale Recherchenbehörde, das Internationale Büro und die mit der internationalen vorläufigen Prüfung beauftragte Behörde werden ermächtigt, diese E-Mail-Adresse zu benutzen, um Mitteilungen bezüglich dieser internationalen Anmeldung zu übersenden, soweit das Amt oder die Behörde dazu bereit ist:  
								</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 (E-Mail mit einem Link zum Ansehen und Herunterladen des Dokuments in ePCT)
														</xsl:when>
														<xsl:otherwise>
															E-Mail (E-Mail mit PDF-Anhang)
														</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>                  
									Registrierungsnummer des Anmelders beim Amt                
								</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">
								Anwalt oder gemeinsamer Vertreter oder besondere Zustellanschrift  
							</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">
									Die unten bezeichnete Person ist/wird hiermit bestellt, um für den (die) Anmelder vor den zuständigen inter-nationalen Behörden zu handeln, und zwar in folgender Eigenschaft:
								</xsl:when>
								<xsl:when test=".//correspondence-address">
									Es ist weder ein Anwalt noch ein gemeinsamer Vertreter benannt; folgende Anschrift soll benutzt werden als
								</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>
										Bes. Zustellanschrift
											<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>
										Anschrift 
									</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>
										Anschrift 
									</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>
								Telefonnr.  
							</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>
								Telefaxnr.  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">  
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">  
									<xsl:value-of select=".//agent[@sequence='1']//fax | .//correspondence-address//fax"></xsl:value-of>
								</fo:inline>  
							</fo:block>
						</fo:table-cell>  
					</fo:table-row>
				</xsl:if>
				<xsl:if test=".//agent[@sequence='1']//email | .//correspondence-address//email">  
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">  
							<fo:block>
								<xsl:text>IV-1-5</xsl:text>  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">  
							<fo:block>
								E-Mail  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdR">  
							<fo:block padding-top="1pt">
								<fo:inline font-weight="bold">  
									<xsl:value-of select=".//agent[@sequence='1']//email | .//correspondence-address//email"></xsl:value-of>
								</fo:inline>  
							</fo:block>
						</fo:table-cell>  
					</fo:table-row>
				</xsl:if>
				<xsl:if test=".//agent[@sequence='1']//email/@email-purpose='advance' or .//correspondence-address//email/@email-purpose='advance'">  
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">  
							<fo:block>
								<xsl:text>IV-1-5(a)</xsl:text>  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">  
							<fo:block>
								E-Mail-Ermächtigung  
							</fo:block>
							<fo:block>
								Das Anmeldeamt, die Internationale Recherchenbehörde, das Internationale Büro und die mit der internationalen vorläufigen Prüfung beauftragte Behörde werden ermächtigt, diese E-Mail-Adresse zu benutzen, um Mitteilungen bezüglich dieser internationalen Anmeldung zu übersenden, soweit das Amt oder die Behörde dazu bereit ist:  
							</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>
										nur für Vorauskopien, Mitteilungen werden zudem in Papierform versandt  
									</fo:block>
								</fo:inline>  
							</fo:block>
						</fo:table-cell>  
					</fo:table-row>
				</xsl:if>
				<xsl:if test=".//agent[@sequence='1']//email/@email-purpose='main' or .//correspondence-address//email/@email-purpose='main'">  
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">  
							<fo:block>
								<xsl:text>IV-1-5(a)</xsl:text>  
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">  
							<fo:block>
								E-Mail-Ermächtigung  
							</fo:block>
							<fo:block>
								Das Anmeldeamt, die Internationale Recherchenbehörde, das Internationale Büro und die mit der internationalen vorläufigen Prüfung beauftragte Behörde werden ermächtigt, diese E-Mail-Adresse zu benutzen, um Mitteilungen bezüglich dieser internationalen Anmeldung zu übersenden, soweit das Amt oder die Behörde dazu bereit ist:  
							</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 (E-Mail mit einem Link zum Ansehen und Herunterladen des Dokuments in ePCT)
													</xsl:when>
													<xsl:otherwise>
														E-Mail (E-Mail mit PDF-Anhang)
													</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>
								Registrierungsnr. des Anwalts  
							</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">
										Weitere(r) Anwalt/Anwälte
									</fo:inline>
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdTR">
								<fo:block>
									<fo:inline font-weight="bold">
										weitere(r) Anwalt/Anwälte mit derselben Anschrift wie erstgenannter Anwalt
										<xsl:if test="$lang='ja' or $lang='ru' or $lang='zh'"> 
											<!-- repeat text in English -->
											<fo:block></fo:block>
											<xsl:text> (additional agent(s) with the same address as first named agent)</xsl:text>
										</xsl:if>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<xsl:call-template name="showSameAgentAddress"></xsl:call-template>
						<fo:table-row>
							<fo:table-cell border-top="solid black 0.25pt" number-columns-spanned="3">  
								<fo:block></fo:block>
							</fo:table-cell>  
						</fo:table-row>
					</fo:table-body>
				</fo:table>
			</xsl:when>
			<!--xsl:otherwise>  
				<xsl:call-template name = "agentType_ChoiceText">
					<xsl:with-param name = "rep-type" select = "@rep-type"/>  
				</xsl:call-template>  
				<xsl:if test = "$lang='ja' or $lang='ru' or $lang='zh'">(<xsl:call-template name = "agentTypeEn_ChoiceText">
						<xsl:with-param name = "rep-type" select = "@rep-type"/> 
					</xsl:call-template>)</xsl:if>
			</xsl:otherwise-->
		</xsl:choose>
	</xsl:template><xsl:template name="showSameAgentAddress">
		<!-- shows names of agents sharing address info -->
		<xsl:variable name="firstAdd">
			<xsl:value-of select="concat(.//agent[1]//address-1,',',.//agent[1]//address-2,',',.//agent[1]//address-3,',',.//agent[1]//mailcode,',',.//agent[1]//pobox,',',.//agent[1]//room,',',.//agent[1]//address-floor,',',.//agent[1]//building,',',.//agent[1]//street,',',.//agent[1]//city,',',.//agent[1]//county,',',.//agent[1]//state,',',.//agent[1]//postcode,',',.//agent[1]//country,',',.//agent[1]//phone,',',.//agent[1]//fax,',',.//agent[1]//email)"></xsl:value-of>
		</xsl:variable>
		<xsl:variable name="firstAdd_en">
			<xsl:value-of select="concat(.//agent[1]/addressbook[@lang='en']//address-1,',',.//agent[1]/addressbook[@lang='en']//address-2,',',.//agent[1]/addressbook[@lang='en']//address-3,',',.//agent[1]/addressbook[@lang='en']//mailcode,',',.//agent[1]/addressbook[@lang='en']//pobox,',',.//agent[1]/addressbook[@lang='en']//room,',',.//agent[1]/addressbook[@lang='en']//address-floor,',',.//agent[1]/addressbook[@lang='en']//building,',',.//agent[1]/addressbook[@lang='en']//street,',',.//agent[1]/addressbook[@lang='en']//city,',',.//agent[1]/addressbook[@lang='en']//county,',',.//agent[1]/addressbook[@lang='en']//state,',',.//agent[1]/addressbook[@lang='en']//postcode,',',.//agent[1]/addressbook[@lang='en']//country,',',.//agent[1]/addressbook[@lang='en']//phone,',',.//agent[1]/addressbook[@lang='en']//fax,',',.//agent[1]/addressbook[@lang='en']//email)"></xsl:value-of>
		</xsl:variable>
		<xsl:choose>
			<xsl:when test="$lang='ja' or $lang='zh' or $lang='ru' or $lang='ko'">
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdL">
						<fo:block>
							<xsl:text>IV-2-1</xsl:text>
							<xsl:value-of select="$lang"></xsl:value-of>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdC">
						<fo:block>
							Name(n) 
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdR">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:for-each select=".//agent[@sequence != 1][concat(.//address-1,',',              .//address-2,',',              .//address-3,',',              .//mailcode,',',              .//pobox,',',              .//room,',',              .//address-floor,',',              .//building,',',              .//street,',',              .//city,',',              .//county,',',              .//state,',',              .//postcode,',',              .//country,',',              .//phone,',',              .//fax,',',              .//email)=$firstAdd and concat(.//addressbook[@lang='en']//address-1,',',              .//addressbook[@lang='en']//address-2,',',              .//addressbook[@lang='en']//address-3,',',              .//addressbook[@lang='en']//mailcode,',',              .//addressbook[@lang='en']//pobox,',',              .//addressbook[@lang='en']//room,',',              .//addressbook[@lang='en']//address-floor,',',              .//addressbook[@lang='en']//building,',',              .//addressbook[@lang='en']//street,',',              .//addressbook[@lang='en']//city,',',              .//addressbook[@lang='en']//county,',',              .//addressbook[@lang='en']//state,',',              .//addressbook[@lang='en']//postcode,',',              .//addressbook[@lang='en']//country,',',              .//addressbook[@lang='en']//phone,',',              .//addressbook[@lang='en']//fax,',',              .//addressbook[@lang='en']//email)=$firstAdd_en]">
									<xsl:choose>
										<xsl:when test=".//last-name">
											<xsl:value-of select=".//addressbook[@lang = $lang]//last-name"></xsl:value-of>
											<xsl:choose>
												<xsl:when test=".//addressbook[@lang = 'zh']">
													<xsl:text> </xsl:text>            
												</xsl:when>
												<xsl:when test=".//addressbook[@lang = 'ko']">
													<xsl:text></xsl:text>            
												</xsl:when>
												<xsl:when test=".//addressbook[@lang = 'ja']">
													<xsl:text>　</xsl:text>            
												</xsl:when>
												<xsl:otherwise> 
													<xsl:text>, </xsl:text>            
												</xsl:otherwise>
											</xsl:choose>
											<xsl:value-of select=".//addressbook[@lang = $lang]//first-name"></xsl:value-of>
										</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select=".//addressbook[@lang = $lang]//name"></xsl:value-of>
										</xsl:otherwise>
									</xsl:choose>
									<xsl:if test=".//registered-number">(<xsl:value-of select=".//registered-number"></xsl:value-of>)</xsl:if>
									<xsl:if test="following-sibling::agent[concat(.//address-1,',',            .//address-2,',',            .//address-3,',',            .//mailcode,',',            .//pobox,',',            .//room,',',            .//address-floor,',',            .//building,',',            .//street,',',            .//city,',',            .//county,',',            .//state,',',            .//postcode,',',            .//country,',',            .//phone,',',            .//fax,',',            .//email) = $firstAdd]">
										<xsl:text>; </xsl:text>
									</xsl:if>
								</xsl:for-each>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdL">
						<fo:block>
							<xsl:text>IV-2-1en</xsl:text>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdC">
						<fo:block>Name(s)</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdR">
						<fo:block>
							<fo:inline font-weight="bold">
								<xsl:for-each select=".//agent[@sequence != 1][concat(.//address-1,',',              .//address-2,',',              .//address-3,',',              .//mailcode,',',              .//pobox,',',              .//room,',',              .//address-floor,',',              .//building,',',              .//street,',',              .//city,',',              .//county,',',              .//state,',',              .//postcode,',',              .//country,',',              .//phone,',',              .//fax,',',              .//email)=$firstAdd and concat(.//addressbook[@lang='en']//address-1,',',              .//addressbook[@lang='en']//address-2,',',              .//addressbook[@lang='en']//address-3,',',              .//addressbook[@lang='en']//mailcode,',',              .//addressbook[@lang='en']//pobox,',',              .//addressbook[@lang='en']//room,',',              .//addressbook[@lang='en']//address-floor,',',              .//addressbook[@lang='en']//building,',',              .//addressbook[@lang='en']//street,',',              .//addressbook[@lang='en']//city,',',              .//addressbook[@lang='en']//county,',',              .//addressbook[@lang='en']//state,',',              .//addressbook[@lang='en']//postcode,',',              .//addressbook[@lang='en']//country,',',              .//addressbook[@lang='en']//phone,',',              .//addressbook[@lang='en']//fax,',',              .//addressbook[@lang='en']//email)=$firstAdd_en]">
									<xsl:choose>
										<xsl:when test=".//addressbook[@lang='en']//last-name">
											<xsl:value-of select=".//addressbook[@lang='en']//last-name"></xsl:value-of>, <xsl:value-of select=".//addressbook[@lang='en']//first-name"></xsl:value-of>
										</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select=".//addressbook[@lang = 'en']//name"></xsl:value-of>
										</xsl:otherwise>
									</xsl:choose>
									<xsl:if test=".//registered-number">(<xsl:value-of select=".//registered-number"></xsl:value-of>)</xsl:if>
									<xsl:if test="following-sibling::agent[concat(.//address-1,',',            .//address-2,',',            .//address-3,',',            .//mailcode,',',            .//pobox,',',            .//room,',',            .//address-floor,',',            .//building,',',            .//street,',',            .//city,',',            .//county,',',            .//state,',',            .//postcode,',',            .//country,',',            .//phone,',',            .//fax,',',            .//email) = $firstAdd]">
										<xsl:text>; </xsl:text>
									</xsl:if>
								</xsl:for-each>
							</fo:inline>
						</fo:block>
					</fo:table-cell>
				</fo:table-row>
			</xsl:when>
			<xsl:otherwise>
				<!-- app is in en, de, es, fr; show one name -->
				<fo:table-row>
					<fo:table-cell xsl:use-attribute-sets="tdL">
						<fo:block>IV-2-1</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdC">
						<fo:block>
							Name(n) 
						</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>  
				 vom 
			<fo:block></fo:block>
		</xsl:if>
		<xsl:choose>  
			<xsl:when test="$matter='i'">
				<!-- inventor -->
				<xsl:choose>
					<xsl:when test="$lang='ja'">
						<!-- show address then name in JA (possibly others) -->
						<xsl:if test="./addressbook">
							<xsl:if test="./addressbook//address-1/text()">
								<xsl:choose>
									<xsl:when test="not(./addressbook//country/text())">
										<xsl:value-of select="./addressbook//address-1"></xsl:value-of><fo:block></fo:block>
									</xsl:when>
									<xsl:otherwise>
										<xsl:call-template name="showAddress"></xsl:call-template>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:if>
						</xsl:if>
						<!-- 2019.09.30 Transliteration address for Declaration 2(i) for non-latin language(added following 4lines) -->
						<xsl:if test=".//addressbook[2][@lang='en']/address">
							<xsl:call-template name="showEnAddress">															
							</xsl:call-template>
						</xsl:if>
						<xsl:if test="./addressbook/name/text()">
							<xsl:text>在住の</xsl:text>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="./matter-name[1]/name/text()">
								<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
							</xsl:when>
							<xsl:otherwise>
								<xsl:call-template name="format_name">   
									<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
								</xsl:call-template>
							</xsl:otherwise>
						</xsl:choose>
						<xsl:choose>
							<xsl:when test="parent::entitlement-to-claim-priority">
								der Anmelder ist der Erfinder des Gegenstandes, für den um Schutz im Wege der früheren Anmeldung nachgesucht wurde 
							</xsl:when>
							<xsl:otherwise>
								<xsl:text>は、</xsl:text>
								<fo:block></fo:block>
								ist der Erfinder des Gegenstandes, für den um Schutz im Wege dieser internationalen Anmeldung nachgesucht wird 
							</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:when test="$lang='ko'">
						<xsl:choose>
							<xsl:when test="./matter-name[1]/name">
								<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
							</xsl:when>
							<xsl:when test="./addressbook[1]">
								<xsl:call-template name="format_name">   
									<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
								</xsl:call-template>
							</xsl:when>
						</xsl:choose>
						<xsl:if test=".//addressbook/address/*/text()">
							<fo:block></fo:block>
								<xsl:choose>
									<xsl:when test="not(./addressbook//country/text())">
<!-- 2019.05.31 braket removed
										<xsl:text> (</xsl:text>
-->
										<xsl:for-each select=".//addressbook/address/*">
										<xsl:value-of select="."></xsl:value-of>
										</xsl:for-each>
<!-- 2019.05.31 braket removed
										<xsl:text>) </xsl:text>
-->
									</xsl:when>
									<xsl:otherwise>
<!-- 2019.05.31 braket removed
										<xsl:text> (</xsl:text>									
-->
											<xsl:call-template name="showAddress"></xsl:call-template>
<!-- 2019.05.31 braket removed
										<xsl:text>) </xsl:text>
-->
									</xsl:otherwise>
								</xsl:choose>
							<fo:block></fo:block>
						</xsl:if>
						<!-- 2019.09.30 Transliteration address for Declaration 2(i) for non-latin language(added following 4lines) -->
						<xsl:if test=".//addressbook[2][@lang='en']/address">
							<xsl:call-template name="showEnAddress">															
							</xsl:call-template>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="parent::entitlement-to-claim-priority">
								der Anmelder ist der Erfinder des Gegenstandes, für den um Schutz im Wege der früheren Anmeldung nachgesucht wurde 
							</xsl:when>
							<xsl:otherwise>
								ist der Erfinder des Gegenstandes, für den um Schutz im Wege dieser internationalen Anmeldung nachgesucht wird 
							</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:when test="$lang='zh'">
						<xsl:choose>
							<xsl:when test="./matter-name[1]/name">
								<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
							</xsl:when>
							<xsl:when test="./addressbook[1]">
								<xsl:if test="parent::entitlement-to-be-granted-patent">
									<xsl:call-template name="format_name">   
										<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
									</xsl:call-template>
								</xsl:if>
							</xsl:when>
						</xsl:choose>
						<xsl:if test="parent::entitlement-to-be-granted-patent">
							<xsl:if test=".//addressbook/address/*/text()">
									<xsl:text> 住在</xsl:text>
									<fo:block></fo:block>
									<xsl:choose>
										<xsl:when test="not(./addressbook//country/text())">
											<xsl:for-each select=".//addressbook/address/*">
												<xsl:value-of select="."></xsl:value-of>
											</xsl:for-each>
										</xsl:when>
										<xsl:otherwise>
											<xsl:call-template name="showAddress"></xsl:call-template>
										</xsl:otherwise>
									</xsl:choose>
							</xsl:if>
							<!-- 2019.09.30 Transliteration address for Declaration 2(i) for non-latin language(added following 4lines) -->
							<xsl:if test=".//addressbook[2][@lang='en']/address">
								<xsl:call-template name="showEnAddress">															
								</xsl:call-template>
							</xsl:if>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="parent::entitlement-to-claim-priority">
								der Anmelder ist der Erfinder des Gegenstandes, für den um Schutz im Wege der früheren Anmeldung nachgesucht wurde 
							</xsl:when>
							<xsl:otherwise>
								ist der Erfinder des Gegenstandes, für den um Schutz im Wege dieser internationalen Anmeldung nachgesucht wird 
							</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:when test="$lang='ru'">
						<xsl:choose>
							<xsl:when test="./matter-name[1]/name">
								<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
							</xsl:when>
							<xsl:when test="./addressbook[1]">
								<xsl:call-template name="format_name">   
									<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
								</xsl:call-template>
							</xsl:when>
						</xsl:choose>
						<xsl:if test=".//addressbook/address/*/text()">
							<fo:block></fo:block>
							<xsl:choose>
								<xsl:when test="not(./addressbook//country/text())">
									<xsl:for-each select=".//addressbook/address/*">
									<xsl:value-of select="."></xsl:value-of>
								</xsl:for-each>
								</xsl:when>
								<xsl:otherwise>
									<xsl:call-template name="showAddress"></xsl:call-template>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:if>
						<!-- 2019.09.30 Transliteration address for Declaration 2(i) for non-latin language(added following 4lines) -->
						<xsl:if test=".//addressbook[2][@lang='en']/address">
							<xsl:call-template name="showEnAddress">															
							</xsl:call-template>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="parent::entitlement-to-claim-priority">
								der Anmelder ist der Erfinder des Gegenstandes, für den um Schutz im Wege der früheren Anmeldung nachgesucht wurde 
							</xsl:when>
							<xsl:otherwise>
								ist der Erfinder des Gegenstandes, für den um Schutz im Wege dieser internationalen Anmeldung nachgesucht wird 
							</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:when test="$lang='pt'">
						<xsl:text>o facto de </xsl:text>
						<xsl:choose>
							<xsl:when test="./matter-name[1]/name">
								<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
							</xsl:when>
							<xsl:when test="./addressbook[1]">
								<xsl:call-template name="format_name">   
									<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
								</xsl:call-template>
							</xsl:when>
						</xsl:choose>
						<xsl:if test=".//addressbook/address/*/text()">
							<xsl:if test="$lang != 'de'">
								 wohnhaft in 
							</xsl:if>
							<fo:block></fo:block>
							<xsl:call-template name="showAddress"></xsl:call-template>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="parent::entitlement-to-claim-priority">
								der Anmelder ist der Erfinder des Gegenstandes, für den um Schutz im Wege der früheren Anmeldung nachgesucht wurde 
							</xsl:when>
							<xsl:otherwise>
								ist der Erfinder des Gegenstandes, für den um Schutz im Wege dieser internationalen Anmeldung nachgesucht wird 
							</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<!-- 2019.09.30 Transliteration address for Declaration 2(i) for non-latin language -->
					<xsl:when test="$lang='ar'">					
						<xsl:choose>
							<xsl:when test="./matter-name[1]/name">
								<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
							</xsl:when>
							<xsl:when test="./addressbook[1]">
								<xsl:call-template name="format_name">   
									<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
								</xsl:call-template>
							</xsl:when>
						</xsl:choose>
						<xsl:if test=".//addressbook/address/*/text()">
							 wohnhaft in 
							<fo:block></fo:block>
							<xsl:call-template name="showAddress"></xsl:call-template>
						</xsl:if>
						<xsl:if test=".//addressbook[2][@lang='en']/address">
							<xsl:call-template name="showEnAddress">															
							</xsl:call-template>
						</xsl:if>						
						<xsl:choose>
							<xsl:when test="parent::entitlement-to-claim-priority">
								der Anmelder ist der Erfinder des Gegenstandes, für den um Schutz im Wege der früheren Anmeldung nachgesucht wurde 
							</xsl:when>
							<xsl:otherwise>
								ist der Erfinder des Gegenstandes, für den um Schutz im Wege dieser internationalen Anmeldung nachgesucht wird 
							</xsl:otherwise>
						</xsl:choose>	
					</xsl:when>				
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when test="./matter-name[1]/name">
								<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
							</xsl:when>
							<xsl:when test="./addressbook[1]">
								<xsl:call-template name="format_name">   
									<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
								</xsl:call-template>
							</xsl:when>
						</xsl:choose>
						<xsl:if test=".//addressbook/address/*/text()">
							 wohnhaft in 
							<fo:block></fo:block>
							<xsl:call-template name="showAddress"></xsl:call-template>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="parent::entitlement-to-claim-priority">
								der Anmelder ist der Erfinder des Gegenstandes, für den um Schutz im Wege der früheren Anmeldung nachgesucht wurde 
							</xsl:when>
							<xsl:otherwise>
								ist der Erfinder des Gegenstandes, für den um Schutz im Wege dieser internationalen Anmeldung nachgesucht wird 
							</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="$matter='ii'">
				<!-- employer -->
				<xsl:if test="$lang='fr'">
					<!-- same text for is/was in FR version -->
					ist berechtigt, als Arbeitgeber des Erfinders,
				</xsl:if>
				<xsl:if test="$lang='pt'">
					<!-- same text for is/was in FR version -->
					<xsl:text>o facto de </xsl:text>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./matter-name[2]/name and $lang='ja'">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
					<xsl:when test="./addressbook[2] and $lang='ja'">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="parent::entitlement-to-be-granted-patent/name and $lang != 'ja'">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
					<xsl:when test="parent::entitlement-to-claim-priority/name and $lang != 'ja'">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="@tense='was' and not($lang='fr')">
						war berechtigt, als Arbeitgeber des Erfinders,
					</xsl:when>
					<xsl:when test="@tense='is' and not($lang='fr')">
						ist berechtigt, als Arbeitgeber des Erfinders,
					</xsl:when>
					<xsl:when test="@tense='was' and $lang='fr'">
						
					</xsl:when>
					<xsl:when test="@tense='is' and $lang='fr'">
						
					</xsl:when>
				</xsl:choose>
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./matter-name[2]/name and $lang = 'ja'">
						<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
					</xsl:when>
					<xsl:when test="./addressbook[2] and $lang = 'ja'">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[2]/name and $lang != 'ja'">
						<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
					</xsl:when>
					<xsl:when test="./addressbook[2] and $lang != 'ja'">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="$lang='ja' or $lang='zh' or $lang='ko'">
					<xsl:choose>
						<xsl:when test="@tense='was'">
							
						</xsl:when>
						<xsl:otherwise>
							
						</xsl:otherwise>
					</xsl:choose>
				</xsl:if>
			</xsl:when> 
			<xsl:when test="$matter='iii'">
				<!-- agreement -->
				<xsl:if test="not($lang='ja' or $lang='ko' or $lang='zh')">
					auf Grund einer Vereinbarung zwischen    
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[1]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[1]/name">
						<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="$lang='ja'">
						<xsl:text>と</xsl:text>
						<fo:block></fo:block>
					</xsl:when>
					<xsl:otherwise>
						 und 
					</xsl:otherwise>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="./addressbook[2]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[2]/name">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="./date and $lang='zh'">
					 vom 
					<xsl:call-template name="format_date"> 
						<xsl:with-param name="date" select="./date"></xsl:with-param> 
						<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
						<xsl:with-param name="show_date" select="1"></xsl:with-param> 
						<xsl:with-param name="text" select="1"></xsl:with-param> 
						<xsl:with-param name="date_too" select="1"></xsl:with-param>  
					</xsl:call-template>  
				</xsl:if>
				<xsl:if test="$lang='zh'">
					auf Grund einer Vereinbarung zwischen    
				</xsl:if>
				<xsl:if test="$lang='ja' or $lang='ko'">
					<fo:block></fo:block>
					auf Grund einer Vereinbarung zwischen    
				</xsl:if>
			</xsl:when>  
			<xsl:when test="$matter='iv'">
				<!-- assignment -->
				<xsl:if test="not($lang='ja' or $lang='ko' or $lang='zh')">
					auf Grund einer Abtretung von 
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[1]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[1]/name">
						<xsl:value-of select="./matter-name/name[1]"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="./date and $lang='zh'">
					 vom 
					<xsl:call-template name="format_date"> 
						<xsl:with-param name="date" select="./date"></xsl:with-param> 
						<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
						<xsl:with-param name="show_date" select="1"></xsl:with-param> 
						<xsl:with-param name="text" select="1"></xsl:with-param> 
						<xsl:with-param name="date_too" select="1"></xsl:with-param>  
					</xsl:call-template>  
				</xsl:if>
				 auf 
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[2]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[2]/name">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="$lang='zh'">
					auf Grund einer Abtretung von 
				</xsl:if>
				<xsl:if test="$lang='ja' or $lang='ko'">
					<fo:block></fo:block>
					auf Grund einer Abtretung von 
				</xsl:if>
			</xsl:when>
			<xsl:when test="$matter='v'">
				<!-- consent -->
				<xsl:if test="not($lang='ja' or $lang='ko' or $lang='zh')">
					auf Grund einer Einwilligung von 
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[1]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[1]/name">
						<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="./date and $lang='zh'">
					 vom 
					<xsl:call-template name="format_date"> 
						<xsl:with-param name="date" select="./date"></xsl:with-param> 
						<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
						<xsl:with-param name="show_date" select="1"></xsl:with-param> 
						<xsl:with-param name="text" select="1"></xsl:with-param> 
						<xsl:with-param name="date_too" select="1"></xsl:with-param>  
					</xsl:call-template>  
				</xsl:if>
				 zugunsten von 
				<xsl:choose>
					<xsl:when test="./addressbook[2]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[2]/name">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="$lang='zh'">
					auf Grund einer Einwilligung von 
				</xsl:if>
				<xsl:if test="$lang='ja' or $lang='ko'">
					<fo:block></fo:block>
					auf Grund einer Einwilligung von 
				</xsl:if>
			</xsl:when>  
			<xsl:when test="$matter='vi'">
				<!-- court order -->
				<xsl:if test="not($lang='ja' or $lang='ko' or $lang='zh')">
					auf Grund eines Gerichtsbeschlusses vom 
				</xsl:if>
				<xsl:value-of select="./court-name"></xsl:value-of>
				<xsl:if test="$lang='en'">
					<xsl:text>, </xsl:text>
				</xsl:if>
				<xsl:if test="./date and ($lang='zh' or $lang='de')">
					 vom 
					<xsl:call-template name="format_date"> 
						<xsl:with-param name="date" select="./date"></xsl:with-param> 
						<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
						<xsl:with-param name="show_date" select="1"></xsl:with-param> 
						<xsl:with-param name="text" select="1"></xsl:with-param> 
						<xsl:with-param name="date_too" select="1"></xsl:with-param>  
					</xsl:call-template>  
				</xsl:if>
				 welcher eine Rechtsübertragung von 
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[1]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[1]/name">
						<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="$lang='ru'">
						 an 
					</xsl:when>
					<xsl:otherwise>
						 auf 
					</xsl:otherwise>
				</xsl:choose>
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[2]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[2]/name">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="$lang = 'de'">
					bewirkte
				</xsl:if>
				<xsl:if test="$lang='ja' or $lang='ko' or $lang='zh'">
					<fo:block></fo:block>
					auf Grund eines Gerichtsbeschlusses vom 
				</xsl:if>
			</xsl:when>  
			<xsl:when test="$matter='vii'">
				<!-- transfer -->
				<xsl:if test="./date and $lang='zh'">
					 vom 
					<xsl:call-template name="format_date"> 
						<xsl:with-param name="date" select="./date"></xsl:with-param> 
						<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
						<xsl:with-param name="show_date" select="1"></xsl:with-param> 
						<xsl:with-param name="text" select="1"></xsl:with-param> 
						<xsl:with-param name="date_too" select="1"></xsl:with-param>  
					</xsl:call-template>  
				</xsl:if>
				<xsl:choose>
					<xsl:when test="$lang='ja' or $lang='ko'">
						<xsl:value-of select="./kind-of-transfer"></xsl:value-of>
						 im Wege einer 
						<fo:block></fo:block>
					</xsl:when>
					<xsl:when test="$lang='zh'">
						 im Wege einer 
					</xsl:when>
					<xsl:otherwise>
						auf Grund sonstiger Übertragung der Berechtigung von  
					</xsl:otherwise>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="./addressbook[1]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[1]/name">
						<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				 auf 
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[2]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[2]/name">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="$lang='ja' or $lang='ko'">
						<fo:block></fo:block>
						auf Grund sonstiger Übertragung der Berechtigung von  
					</xsl:when>
					<xsl:when test="$lang='zh'">
						auf Grund sonstiger Übertragung der Berechtigung von  
						<xsl:text>(</xsl:text>
						<xsl:value-of select="./kind-of-transfer"></xsl:value-of>
						<xsl:text>)</xsl:text>
					</xsl:when>
					<xsl:otherwise>
						 im Wege einer 
						<xsl:value-of select="./kind-of-transfer"></xsl:value-of>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="$matter='viii'">
				<!-- name change -->
				<xsl:if test="./date and $lang='zh'">
					<xsl:call-template name="format_date"> 
						<xsl:with-param name="date" select="./date"></xsl:with-param> 
						<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
						<xsl:with-param name="show_date" select="1"></xsl:with-param> 
						<xsl:with-param name="text" select="1"></xsl:with-param> 
						<xsl:with-param name="date_too" select="1"></xsl:with-param>  
					</xsl:call-template>  
				</xsl:if>
				 Der Name des Anmelders hat sich am 
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:if test="$lang ='de'">
					<xsl:call-template name="format_date"> 
						<xsl:with-param name="date" select="./date"></xsl:with-param> 
						<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
						<xsl:with-param name="show_date" select="1"></xsl:with-param> 
						<xsl:with-param name="text" select="1"></xsl:with-param> 
						<xsl:with-param name="date_too" select="1"></xsl:with-param>  
					</xsl:call-template>  
					von
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[1]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[1]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[1]/name">
						<xsl:value-of select="./matter-name[1]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="$lang='zh'">
						 am 
					</xsl:when>
					<xsl:when test="$lang='de'">
						in
					</xsl:when>
					<xsl:when test="$lang='fr'">
						en
					</xsl:when>
					<xsl:otherwise>
						 auf 
					</xsl:otherwise>
				</xsl:choose>
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="./addressbook[2]">
						<xsl:call-template name="format_name">   
							<xsl:with-param name="name_arg" select="./addressbook[2]"></xsl:with-param>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="./matter-name[2]/name">
						<xsl:value-of select="./matter-name[2]/name"></xsl:value-of>
					</xsl:when>
				</xsl:choose>
				<xsl:if test="$lang='ja'">
					<fo:block></fo:block>
				</xsl:if>
				<xsl:choose>
					<xsl:when test="$lang='de'">
						geändert.
					</xsl:when>
					<xsl:when test="$lang='zh'"></xsl:when>
					<xsl:when test="$lang='es'">
						geändert.
					</xsl:when>
					<xsl:otherwise>
						 am 
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when> 
		</xsl:choose>  
		<xsl:if test="./date and not($lang='ja' or $lang='ko' or $lang='zh')">
			<xsl:if test="not($matter='vi' and $lang='de') and not($matter='viii' and $lang='de')">
				<xsl:if test="not($matter='viii')"> 
					<xsl:text>, </xsl:text>
					<xsl:choose>
						<xsl:when test="$lang='ru' and $matter='vi'">
							 vom 
						</xsl:when>
						<xsl:otherwise>
							 vom 
						</xsl:otherwise>
					</xsl:choose>
				</xsl:if>  
				<xsl:call-template name="format_date"> 
					<xsl:with-param name="date" select="./date"></xsl:with-param> 
					<xsl:with-param name="lang" select="$lang"></xsl:with-param> 
					<xsl:with-param name="show_date" select="1"></xsl:with-param> 
					<xsl:with-param name="text" select="1"></xsl:with-param> 
					<xsl:with-param name="date_too" select="1"></xsl:with-param>  
				</xsl:call-template>  
			</xsl:if>
		</xsl:if>
	</xsl:template>
	<xsl: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>
								Anschrift 
							</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>
								Anschrift 
							</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">  
									Weitere(r) Anwalt/Anwälte
								</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>  
								Telefonnr.
							</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>  
								Telefaxnr.
							</fo:block>  
						</fo:table-cell>  
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">  
								<fo:inline font-weight="bold">
									<xsl:value-of select="addressbook[1]/fax"></xsl:value-of>  
								</fo:inline>
							</fo:block>  
						</fo:table-cell>
					</fo:table-row>  
					<!--/xsl:if>  
					<xsl:if test = "addressbook[1]/email and addressbook[1]/email/text() != //agent[1]/addressbook[1]/email/text()"-->
					<fo:table-row>  
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>IV-<xsl:value-of select="$seq"></xsl:value-of>-5</fo:block>  
						</fo:table-cell>  
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>  
								E-Mail
							</fo:block>  
						</fo:table-cell>  
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">  
								<fo:inline font-weight="bold">
									<xsl:value-of select="addressbook[1]/email"></xsl:value-of>  
								</fo:inline>
							</fo:block>  
						</fo:table-cell>
					</fo:table-row>  
					<!--/xsl:if>  
					<xsl:if test = "addressbook[1]/email and addressbook[1]/email/text() != //agent[1]/addressbook[1]/email/text()"-->
					<xsl:if test="addressbook[1]/email/@email-purpose='advance'">            
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL">  
								<fo:block>IV-<xsl:value-of select="$seq"></xsl:value-of>-5(a)</fo:block>  
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdC">  
								<fo:block>
									E-Mail-Ermächtigung  
								</fo:block>
								<fo:block>
									Das Anmeldeamt, die Internationale Recherchenbehörde, das Internationale Büro und die mit der internationalen vorläufigen Prüfung beauftragte Behörde werden ermächtigt, diese E-Mail-Adresse zu benutzen, um Mitteilungen bezüglich dieser internationalen Anmeldung zu übersenden, soweit das Amt oder die Behörde dazu bereit ist:  
								</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>
											nur für Vorauskopien, Mitteilungen werden zudem in Papierform versandt  
										</fo:block>
									</fo:inline>  
								</fo:block>
							</fo:table-cell>  
						</fo:table-row>
					</xsl:if>
					<xsl:if test="addressbook[1]/email/@email-purpose='main'">            
						<fo:table-row>
							<fo:table-cell xsl:use-attribute-sets="tdL">  
								<fo:block>IV-<xsl:value-of select="$seq"></xsl:value-of>-5(a)</fo:block>  
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdC">  
								<fo:block>
									E-Mail-Ermächtigung  
								</fo:block>
								<fo:block>
									Das Anmeldeamt, die Internationale Recherchenbehörde, das Internationale Büro und die mit der internationalen vorläufigen Prüfung beauftragte Behörde werden ermächtigt, diese E-Mail-Adresse zu benutzen, um Mitteilungen bezüglich dieser internationalen Anmeldung zu übersenden, soweit das Amt oder die Behörde dazu bereit ist:  
								</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 (E-Mail mit einem Link zum Ansehen und Herunterladen des Dokuments in ePCT)
														</xsl:when>
														<xsl:otherwise>
															E-Mail (E-Mail mit PDF-Anhang)
														</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>
								Registrierungsnr. des Anwalts
							</fo:block>  
						</fo:table-cell>  
						<fo:table-cell xsl:use-attribute-sets="tdR">
							<fo:block padding-top="1pt">  
								<fo:inline font-weight="bold">
									<xsl: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">
											Vom Anmeldeamt auszufüllen
										</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">
										Internationales Aktenzeichen
									</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">
										Internationales Anmeldedatum
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdTR">
									<fo:block padding-bottom="5mm">
										<xsl:if test="document($rrri_doc)//document-id/date">
											<fo:inline font-weight="bold">
												<xsl:call-template name="format_date">
													<xsl:with-param name="date" select="document($rrri_doc)//document-id/date"></xsl:with-param>
													<xsl:with-param name="lang" select="$lang"></xsl:with-param>
													<xsl:with-param name="show_date" select="1"></xsl:with-param>
													<xsl:with-param name="text" select="1"></xsl:with-param>
													<xsl:with-param name="date_too" select="1"></xsl:with-param>
												</xsl:call-template>
											</fo:inline>
										</xsl:if>
									</fo:block>
								</fo:table-cell>
							</fo:table-row>
							<fo:table-row>
								<fo:table-cell xsl:use-attribute-sets="tdTBL">
									<fo:block>
										<fo:inline font-weight="bold">0-3</fo:inline>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdTBC">
									<fo:block padding-bottom="5mm">
										Name des Anmeldeamts und "PCT International Application"
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdTBR">
									<fo:block>
										<xsl:if test="$rrri != ''">
										<!--20191008 show office name in full text and added "PCT International Application" for RO/KR-->
											<xsl:choose>
												<xsl:when test="document($rrri_doc)//@ro='KR'">
													<fo:inline font-weight="bold">
														<xsl:call-template name="officeName_ChoiceText">
															<xsl:with-param name="office" select=".//@ro"></xsl:with-param>
														</xsl:call-template>											
													</fo:inline>
													<fo:block></fo:block>
													<fo:inline font-weight="bold">	
														
													</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">
										Formular PCT/RO/101 PCT-Antrag
									</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">
									Erstellt mit
								</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">
										Antragsersuchen
									</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>
											Der Unterzeichnete beantragt, daß die vorliegende internationale Anmeldung nach dem Vertrag über die internationale Zusammenarbeit auf dem Gebiet des Patentwesens behandelt wird
										</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">
										(Vom Anmelder gewähltes) Anmeldeamt
									</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">
										Aktenzeichen des Anmelders oder Anwalts
									</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">
										Bezeichnung der Erfindung
									</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">
												Prioritätsanspruch
											</fo:inline>
										</fo:block>
									</fo:table-cell>
									<fo:table-cell xsl:use-attribute-sets="tdTBR">
										<fo:block>
											<fo:inline font-weight="bold">
												KEINE
												<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">
											Gewählte Internationale Recherchenbehörde 
										</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">
												Antrag auf Nutzung der Ergebnisse einer früheren Recherche; Bezugnahme auf diese frühere Recherche
											</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>
											Anmeldedatum
										</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>
											Aktenzeichen
										</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>
											Staat (oder regionales Amt)
										</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>
												Erklärung (Regel 4.12 Ziffer ii):
											</fo:block>
										</fo:table-cell>
										<fo:table-cell xsl:use-attribute-sets="tdR">
											<fo:block padding-top="1pt">
												<fo:inline font-weight="bold">
													Diese internationale Anmeldung ist die gleiche, oder im wesentlichen gleiche, wie die Anmeldung, hinsichtlich der die frühere Recherche durchgeführt wurde, außer daß sie gegebenenfalls in einer anderen Sprache eingereicht worden ist.
												</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>
												Unterlagen sind der ISA in einer für sie akzeptablen Art und Weise zugänglich und brauchen daher vom Anmelder nicht an das Anmeldeamt oder die ISA eingereicht zu werden (Regeln 12bis.1 Absätze c und d und 12bis.2 Absatz 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">
														Eine Kopie der Ergebnisse der früheren Recherche
													</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">
														Eine Kopie der früheren Anmeldung
													</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">
														Eine Übersetzung der früheren Anmeldung in eine von der ISA zugelassenen Sprache
													</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">
														Eine Übersetzung der Ergebnisse der früheren Recherche in eine von der ISA zugelassenen Sprache
													</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">
														Eine Kopie aller in den Ergebnissen der früheren Recherche aufgeführten Unterlagen
													</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>
												Der Anmelder ersucht das Anmeldeamt, eine Kopie der früheren Recherchenergebnisse zu erstellen und an die ISA zu übermitteln (Regel 12bis.1 Absätze b und 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">
														Eine Kopie der Ergebnisse der früheren Recherche
													</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">
														Eine Kopie der früheren Anmeldung
													</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">
														Eine Kopie aller in den Ergebnissen der früheren Recherche aufgeführten Unterlagen
													</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">
												Nutzung früherer Recherchen- und Klassifikationsergebnisse
											</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>
											Anmeldedatum
										</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>
											Aktenzeichen
										</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>
											Staat (oder regionales Amt)
										</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>
												Der Anmelder ersucht das Anmeldeamt, die Ergebnisse der früheren Recherche NICHT an die ISA zu übermitteln (Regel 23bis.2 Absatz 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>
												Der Anmelder ermächtigt das Anmeldeamt, die Ergebnisse der früheren Recherche und Klassifikation an die ISA zu übermitteln (Regel 23bis.2 Absatz 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>
												Der Anmelder ermächtigt das Anmeldeamt, die Ergebnisse der früheren internationalen Recherche und Klassifikation an die ISA zu übermitteln (Regel 23bis.2 Absatz a und Artikel 30(2) Abschnitt a und (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">
								Bestimmung von Staaten
							</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>
								Regionales Patent
								<fo:block></fo:block>
								(andere Schutzrechtsarten oder Verfahren sind ggf. in Klammern nach der (den) betreffenden Bestimmung(en) angegeben)
							</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">
											 Vertragsstaat 
											<xsl:choose>
												<xsl:when test="$organization='AP'">
													 der Mitgliedstaat des Harare-Protokolls und 
												</xsl:when>
												<xsl:when test="$organization='EA'">
													 der Mitgliedsstaat des Eurasischen Patentübereinkommens und 
												</xsl:when>
												<xsl:when test="$organization='EP'">
													 der Mitgliedsstaat des Europäischen Patentübereinkommens und 
												</xsl:when>
												<xsl:when test="$organization='OA'">
													 der Mitgliedstaat der OAPI 
												</xsl:when>
											</xsl:choose>
											<xsl:text>
											</xsl:text>
											 des PCT ist
										</xsl:if>
										<!-- test here to show "(except {state code})" if a state 
							  is missing from the organization -->
										<xsl:if test="$docOrgCount != $lookupOrgCount">(ausser 
											<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>
							Nationales Patent
							<fo:block></fo:block>
							(andere Schutzrechtsarten oder Verfahren sind ggf. in Klammern nach der (den) betreffenden Bestimmung(en) angegeben)
						</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>
								Nationales Patent
								<fo:block></fo:block>
								(Staaten, die dem PCT nach der Veröffentlichung dieser Version von PCT-SAFE beigetreten sind)
							</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">
									Identifizierung der Hauptanmeldung oder des Hauptpatents
								</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">
									Bestimmung
								</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>
								Art der Hauptanmeldung oder des Hauptpatents
							</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>
								Aktenzeichen der Hauptanmeldung oder des Hauptpatents
							</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>
								Datum der Hauptanmeldung oder des Hauptpatents
							</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">
									Erklärung bzgl. vorsorglicher Bestimmungen
								</fo:inline>
							</fo:block>
							<fo:block padding-before="2mm">
								Zusätzlich zu den unter Punkten V-1, V-2 and V-3 vorgenommenen Bestimmungen nimmt der Anmelder nach Regel 4.9 Absatz b auch alle anderen nach dem PCT zulässigen Bestimmungen vor mit Ausnahme der nachstehend unter Punkt V-6 angegebenen Staaten. Der Anmelder erklärt, daß diese zusätzlichen Bestimmungen unter dem Vorbehalt einer Bestätigung stehen und jede zusätzliche Bestimmung, die vor Ablauf von 15 Monaten ab dem Prioritätsdatum nicht bestätigt wurde, nach Ablauf dieser Frist als vom Anmelder zurückgenommen gilt.
							</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">
									Staaten, die von der Erklärung über vorsorgliche Bestimmungen ausgenommen werden
								</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>
											KEINE
											<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">
								BESTIMMUNGEN 
							</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">
								Die Einreichung dieses Antrags umfaßt gemäß Regel 4.9 Absatz a die Bestimmung aller Vertragsstaaten, für die der PCT am internationalen Anmeldedatum verbindlich ist, und, insoweit verfügbar, für jede Art von Schutzrecht und sowohl für ein regionales als auch für ein nationales Patent
							</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"/-->
									Feld V-2 kann nur dazu benutzt werden, die betreffenden Bestimmungen (unwiderruflich) auszuschließen, falls die internationale Anmeldung, zum Zeitpunkt ihrer Einreichung oder nachträglich gemäß Regel 26bis.1, in Feld Nr. VI die Priorität einer in dem betreffenden Staat eingereichten früheren nationalen Anmeldung beansprucht, um zu vermeiden, daß diese frühere nationale Anmeldung nach nationalem Recht ihre Wirkung verliert.
								</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">
										Identifizierung der Hauptanmeldung oder des Hauptpatents
									</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">
										Bestimmung
									</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>
									Art der Hauptanmeldung oder des Hauptpatents
								</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>
										Aktenzeichen der Hauptanmeldung oder des Hauptpatents
									</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>
									Datum der Hauptanmeldung oder des Hauptpatents
								</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">
										Identifizierung der Hauptanmeldung oder des Hauptpatents
									</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">
										Bestimmung
									</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>
									Art der Hauptanmeldung oder des Hauptpatents
								</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>
										Aktenzeichen der Hauptanmeldung oder des Hauptpatents
									</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>
									Datum der Hauptanmeldung oder des Hauptpatents
								</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">
								Erklärungen
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopRight">
						<fo:block>
							Anzahl der Erklärungen
						</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')">
								Elektronische Datei(en) beigefügt
							</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>
							Erklärung hinsichtlich der Identität des Erfinders
						</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>
							Erklärung hinsichtlich der Berechtigung des Anmelders, zum Zeitpunkt des internationalen Anmeldedatums, ein Patent zu beantragen und zu erhalten
						</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>
							Erklärung hinsichtlich der Berechtigung des Anmelders, zum Zeitpunkt des internationalen Anmeldedatums, die Priorität einer früheren Anmeldung zu beanspruchen
						</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>
							Erfindererklärung (nur im Hinblick auf die Bestimmung der Vereinigten Staaten von Amerika)
						</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>
							Erklärung hinsichtlich unschädlicher Offenbarungen oder Ausnahmen von der Neuheitsschädlichkeit
						</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">
								Kontrolliste 
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTC" text-align="center">
						<fo:block>
							Anzahl der Blätter
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTL" text-align="center">
						<fo:block>
							Elektronische Datei(en) beigefügt
						</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>
							Antrag (inklusive Erklärungsblätter)
						</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>
							Beschreibung 
							<xsl:if test=".//cl-sequence-listing[@page-count] or .//processing-instruction('seqlist')">
								(ohne Sequenzprotokollteil)
							</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>
							Ansprüche
						</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>
							Zusammenfassung
						</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>
							Zeichnung(en)
						</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>
								Teilanzahl an Blättern
							</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>
													Sequenzprotokoll als Teil der Beschreibung
												</fo:block>
											</xsl:when>
											<xsl:otherwise>
												<fo:block>
													Sequenzprotokollteil der Beschreibung
												</fo:block>
											</xsl:otherwise>
										</xsl:choose>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<xsl:choose>
										<xsl:when test=".//cl-sequence-listing[@page-count]">
											<fo:block>
												Sequenzprotokoll als Teil der Beschreibung
											</fo:block>
										</xsl:when>
										<xsl:otherwise>
											<fo:block>
												Sequenzprotokollteil der Beschreibung
											</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>
										Tabellen in elektronischer Form in Zusammenhang mit Sequenzprotokoll
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										Tabellen im Zusammenhang mit Sequenzprotokollteil der Beschreibung
									</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">
							INSGESAMT
						</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">
								Beigefügte Unterlagen
							</fo:inline>
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdTL" text-align="center">
						<fo:block>
							Unterlage(n) in Papierform beigefügt
						</fo:block>
					</fo:table-cell>
					<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeft">
						<fo:block>
							Elektronische Datei(en) beigefügt
						</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>
								Blatt für die Gebührenberechnung
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY = '1'">
									<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY = '1'">
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<xsl:if test=".//cl-separate-power-of-attorney">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>
								<xsl:text>IX-9</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<fo:block>
								Original einer gesonderten Vollmacht
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY = '1'">
									<fo:block font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY = '1'">
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<xsl:if test=".//cl-general-power-of-attorney">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>
								<xsl:text>IX-10</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<fo:block>
								Original einer allgemeinen Vollmacht
							</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>
								Kopie der allgemeinen Vollmacht
							</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">
													Aktenzeichen 
													<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">
													Aktenzeichen 
													<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>
								Begründung für das Fehlen einer Unterschrift
							</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>
								Prioritätsbeleg(e)
							</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">
												Unterlage(n)  
												<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">
												Unterlage(n)  
												<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>
									Begründung des Antrags auf Wiederherstellung des Prioritätsrechts
							</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>
								Übersetzung der internationalen Anmeldung in die folgende Sprache
								<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>
								Gesonderte Angaben zu hinterlegten Mikroorganismen und/oder anderem biologischen Material
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY='1'">
									<fo:block font-size="10pt" font-family="ZapfDingbats">✓</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
							<xsl:choose>
								<xsl:when test="$EASY='1'">
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats">✓</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
					</fo:table-row>
				</xsl:if>
				<!-- 20090701 RuleChange
				<xsl:if test = "$seqlist-search != 0 or .//processing-instruction('seqlist-additional') or .//cl-sequence-listing/@for-search-only = 'yes' or .//cl-sequence-listing/@additional-copies-including-search-copy = 'yes' or .//cl-sequence-listing/@with-identity-statement = 'yes'">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets = "tdL">
							<fo:block>
								<xsl:text>IX-16(A)</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets = "tdTC">
							<xsl:choose>
								<xsl:when test = "$EASY='1'">
									<fo:block>
										<inc file = "commonText.xml" toTranslate = "seqList_Text"/>
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<inc file = "commonText.xml" toTranslate = "seqListElec_Text"/>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets = "tdTR" text-align = "center">
							<xsl:choose>
								<xsl:when test = "$EASY = '1'">
									<fo:block> </fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight = "bold">-</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets = "tdBorderTopLeftData" text-align = "center">
							<xsl:choose>
								<xsl:when test = "$EASY = '1'">
									<fo:block> </fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block text-align = "center" font-size = "10pt" font-family = "ZapfDingbats" padding-top = "1pt">✓</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>          
					</fo:table-row>
				</xsl:if>
-->
<!-- bug fix 20170928: When there are two SLs IX16 appear even though those SL are submitted as a part of IAs.
				<xsl:if test="$seqlist-search != 0 or .//cl-sequence-listing/@for-search-only = 'yes' or .//cl-sequence-listing/@quantity = '2'">
-->
				<xsl:if test="$seqlist-search != 0 or .//cl-sequence-listing/@for-search-only = 'yes'">
					<!-- 20090701 RuleChange
					<xsl:choose>
						<xsl:when test = "$EASY='1'">
-->
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>
								<xsl:text>IX-16</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<!-- 20090701 RuleChange
									<fo:block start-indent = "3mm">
										<inc file = "commonText.xml" toTranslate = "seqlistSearchOnly_Text"/>
									</fo:block>
-->
							<xsl:choose>
								<xsl:when test=".//cl-sequence-listing/@for-search-only = 'yes'">
									<fo:block>
										Sequenzprotokoll in elektronischer Form (ST.25-Textdatei gemäß Anhang C), ausschließlich für die Zwecke der internationalen Recherche nach Regel 13ter
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										Sequenzprotokoll, eingereicht für die Zwecke der internationalen Recherche nach Regel 13ter 
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
							<fo:block>
								<fo:inline font-weight="bold">-</fo:inline>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
							<xsl:choose>
								<!-- 20090701 RuleChange
										<xsl:when test="$seqlist-search = '0'">
-->
								<xsl:when test=".//cl-sequence-listing[@carriers-type] and $EASY = '1' and .//cl-sequence-listing/@carriers = 'external-electronic' and (.//cl-sequence-listing[@page-count] or .//cl-sequence-listing/@for-search-only = 'yes')">
									<fo:block>
										<fo:inline font-weight="bold">
											<xsl:call-template name="carriersInfo_ChoiceText">
												<xsl:with-param name="carriers_type" select=".//cl-sequence-listing/@carriers-type"></xsl:with-param>
												<xsl:with-param name="carriers_quantity" select=".//cl-sequence-listing/@carriers-quantity"></xsl:with-param>
											</xsl:call-template>
										</fo:inline>
									</fo:block>
								</xsl:when>
								<xsl:when test="$seqlist-search = '0' or $seqlist-search = ''">
									<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										<fo:inline font-weight="bold">
											<xsl:value-of select="$seqlist-search"></xsl:value-of>
										</fo:inline>
									</fo:block>
								</xsl:otherwise>
							</xsl:choose>
						</fo:table-cell>
					</fo:table-row>
					<!-- 20090701 RuleChange
						</xsl:when>
						<xsl:otherwise/>
					</xsl:choose>
-->
				</xsl:if>
				<xsl:if test=".//processing-instruction('seqlist-additional') or .//cl-sequence-listing/@additional-copies-including-search-copy = 'yes'">
					<xsl:choose>
						<xsl:when test="$EASY='1'">
							<fo:table-row>
								<fo:table-cell xsl:use-attribute-sets="tdL">
									<fo:block>
										<xsl:text>IX-16(A)-(ii)</xsl:text>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdTC">
									<fo:block start-indent="3mm">
										Zusätzliche Kopien einschließlich, soweit zutreffend, einer Kopie für die Zwecke der internationalen Recherche nach Regel 13ter
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
									<xsl:choose>
										<xsl:when test=".//processing-instruction('seqlist-additional')">
											<fo:block>
												<fo:inline font-weight="bold">
													<xsl:value-of select=".//processing-instruction('seqlist-additional')"></xsl:value-of>
												</fo:inline>
											</fo:block>
										</xsl:when>
										<xsl:otherwise>
											<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
										</xsl:otherwise>
									</xsl:choose>
								</fo:table-cell>
							</fo:table-row>
						</xsl:when>
						<xsl:otherwise></xsl:otherwise>
					</xsl:choose>
				</xsl:if>
				<xsl:if test=".//cl-sequence-listing/@with-identity-statement = 'yes'">
					<xsl:choose>
						<xsl:when test="$EASY='1'">
							<fo:table-row>
								<fo:table-cell xsl:use-attribute-sets="tdL">
									<fo:block>
										<xsl:text>IX-16(A)-(iii)</xsl:text>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdTC">
									<fo:block start-indent="3mm">
										the information recorded in electronic form is identical to the sequence listing as contained in the application
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdTR" text-align="center">
									<fo:block>
										<fo:inline font-weight="bold">-</fo:inline>
									</fo:block>
								</fo:table-cell>
								<fo:table-cell xsl:use-attribute-sets="tdBorderTopLeftData" text-align="center">
									<fo:block text-align="center" font-size="10pt" font-family="ZapfDingbats" padding-top="1pt">✓</fo:block>
								</fo:table-cell>
							</fo:table-row>
						</xsl:when>
						<xsl:otherwise></xsl:otherwise>
					</xsl:choose>
				</xsl:if>
				<xsl:if test="$seqtab-search != 0 or .//processing-instruction('seqtab-additional')">
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>
								<xsl:text>IX-16(B)</xsl:text>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdTC">
							<xsl:choose>
								<xsl:when test="$EASY='1'">
									<fo:block>
										Tabellen in elektronischer Form in Zusammenhang mit Sequenzprotokoll
									</fo:block>
								</xsl:when>
								<xsl:otherwise>
									<fo:block>
										Tabellen im Zusammenhang mit Sequenzprotokollteil, eingereicht nach Feld 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">
										Kopie ausschließlich für die Zwecke der internationalen Recherche nach Regel 13ter (und nicht als Teil der internationalen Anmeldung)
									</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">
										Zusätzliche Kopien einschließlich, soweit zutreffend, einer Kopie für die Zwecke der internationalen Recherche
									</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>
								Kopie der Ergebnisse der früheren Recherche
							</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 Datenträger
							</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>
								Erklärung, daß "die nach Regel 13ter in Form einer Textdatei (gemäß Anhang C/ST 25) eingereichten Daten mit dem in der internationalen Anmeldung enthaltenen Sequenzprotokoll übereinstimmen."
							</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>
								Sonstige(s)
							</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">
								Nr. der Abb. der Zeichn., die mit der Zusammenf. veröffentlicht werden soll
							</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">
								Sprache der int. Anmeldung
							</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 Anmeldeamt wird ersucht, diese internationale Anmeldung über den Zugangsservice für Prioritätsbelege (DAS) zugänglich zu machen (vorausgesetzt dieser vorgeblichen internationalen Anmeldung wurde ein internationales Aktenzeichen und ein internationales Anmeldedatum zuerkannt).
								</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">
									Ja
								</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">
								VOM ANMELDEAMT AUSZUFÜLLEN
							</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">
								Datum des tatsächlichen Eingangs dieser internationalen Anmeldung
							</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">
								Zeichnung(en):
							</fo:inline>
						</fo:block>
						<fo:block padding-before="1.5mm">
							Eingegangen
						</fo:block>
						<fo:block padding-before="1.5mm">
							Nicht eingegangen
						</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">
								Geändertes Eingangsdatum aufgrund nachträglich, jedoch fristgerecht eingeg. Unterlage(n) oder Zeichnung(en) zur Vervollständigung dieser int. Anmeldung
							</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">
								Datum des fristgerechten Eingangs der Berichtigung nach PCT Artikel 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">
								Internationale Recherchenbehörde 
							</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">
								Übermittlung des Recherchenexemplars bis zur Zahlung der Recherchengebühr aufgeschoben
							</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">
								VOM INTERNATIONALEN BÜRO AUSZUFÜLLEN
							</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">
								Datum des Eingangs des Aktenexemplars beim Internationalen Büro
							</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'">
											Priorität einer früheren regionalen Anmeldung beansprucht
										</xsl:when>
										<xsl:when test="@kind='national'">
											Priorität einer früheren nationalen Anmeldung beansprucht
										</xsl:when>
										<xsl:when test="@kind='international'">
											Priorität einer früheren internationalen Anmeldung beansprucht
										</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>
								Anmeldedatum
							</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>
									Nummer
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block padding-top="1pt">
									<fo:inline font-weight="bold">
										<xsl:value-of select=".//doc-number"></xsl:value-of>
									</fo:inline>
								</fo:block>
							</fo:table-cell>
						</fo:table-row>
					</xsl:if>
					<fo:table-row>
						<fo:table-cell xsl:use-attribute-sets="tdL">
							<fo:block>VI-<xsl:value-of select="$prio_claims_seq"></xsl:value-of>-3</fo:block>
						</fo:table-cell>
						<fo:table-cell xsl:use-attribute-sets="tdC">
							<fo:block>
								<xsl:choose>
									<xsl:when test="@kind='international'">
										PCT-Anmeldeamt
									</xsl:when>
									<xsl:when test="@kind='national'">
										Staat oder Mitglied der WTO 
									</xsl:when>
									<xsl:when test="@kind='regional'">
										Regionales Amt 
									</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>
									Der Mitgliedstaat der Pariser Verbandsübereinkunft zum Schutz des gewerblichen Eigentums oder das Mitglied der Welthandelsorganisation (WTO), in dem die frühere Anmeldung eingereicht wurde
								</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>
									Wiederherstellung des Prioritätsrechts
								</fo:block>
							</fo:table-cell>
							<fo:table-cell xsl:use-attribute-sets="tdR">
								<fo:block padding-top="1pt">
									<fo:inline font-weight="bold">
										Das Anmeldeamt wird ersucht, das Prioritätsrecht wiederherzustellen.
									</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">
									Ersuchen um Erstellung eines Prioritätsbeleges
								</fo:inline>
							</fo:block>
							<fo:block padding-before="2mm">
								Das Internationale Büro wird ersucht, eine beglaubigte Kopie der oben bezeichneten früheren Anmeldung(en) von einer digitalen Bibliothek zu beziehen, gegebenenfalls unter Verwendung des/der nachfolgend angegebenen Zugangscodes:
							</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">
											Zugangscode: 
											<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">
									Ersuchen um Erstellung eines Prioritätsbeleges
								</fo:inline>
							</fo:block>
							<fo:block padding-before="2mm">
								Das Anmeldeamt wird ersucht, eine beglaubigte Abschrift der in der (den) nebenstehend genannten Zeile(n) bezeichneten früheren Anmeldung(en) von einer digitalen Bibliothek zu beziehen und dem Internationalen Büro zu übermitteln:
							</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">
											Zugangscode: 
											<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">
									Ersuchen um Erstellung eines Prioritätsbeleges
								</fo:inline>
							</fo:block>
							<fo:block padding-before="2mm">
								Das Anmeldeamt wird ersucht, eine beglaubigte Abschrift der in der (den) nebenstehend genannten Zeile(n) bezeichneten früheren Anmeldung(en) zu erstellen und dem Internationalen Büro zu übermitteln:
							</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">
									Einbeziehung durch Verweis : 
								</fo:inline>
							</fo:block>
							<fo:block padding-before="2mm">
								Wenn ein in Artikel 11 Absatz 1 Ziffer iii Buchstabe d oder e genannter Bestandteil der internationalen Anmeldung oder ein in Regel 20.5 Absatz a genannter Teil der Beschreibung, der Ansprüche oder der Zeichnungen, oder ein in Regel 20.5​​bis​ Absatz a genannter Bestandteil oder Teil der Beschreibung, der Ansprüche oder der Zeichnungen nicht in sonstiger Weise in der internationalen Anmeldung enthalten ist, aber vollständig in einer früheren Anmeldung enthalten ist, deren Priorität zu dem Datum beansprucht wird, an dem ein oder mehrere in Artikel 11 Absatz 1 Ziffer iii genannten Bestandteile zuerst beim Anmeldeamt eingegangen sind, so ist dieser Bestandteil oder Teil, vorbehaltlich einer Bestätigung gemäß Regel 20.6, durch Verweis in die internationale Anmeldung, für die Zwecke der Regel 20.6, einbezogen.
							</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'">
				Teilfortsetzung
			</xsl:when>
			<xsl:when test="$kind-text = 'certificate-of-addition'">
				Zusatzzertifikat
			</xsl:when>
			<xsl:when test="$kind-text = 'continuation'">
				Fortsetzung
			</xsl:when>
			<xsl:when test="$kind-text = 'inventors-certificate-of-addition'">
				Zusatzerfinderschein
			</xsl:when>
			<xsl:when test="$kind-text = 'patent-of-addition'">
				Zusatzpatent
			</xsl:when>
			<xsl:when test="$kind-text = 'utility-certificate-of-addition'">
				Zusatzgebrauchszertifikat
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="$kind-text"></xsl:value-of>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template match="i">      
		<fo:inline>
			<xsl:if test="not(name(preceding-sibling::node()[1])='i') and not(ancestor::i)">
				<xsl:attribute name="font-style">italic</xsl:attribute>
			</xsl:if>
			<xsl:attribute name="vertical-align">
				<xsl:choose>
					<xsl:when test="name(ancestor::sup2)">
						<xsl:choose>
							<xsl:when test="name(ancestor::sub)">baseline</xsl:when>
							<xsl:otherwise>super</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:when test="name(ancestor::sub2)">
						<xsl:choose>
							<xsl:when test="name(ancestor::sup)">baseline</xsl:when>
							<xsl:otherwise>sub</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when test="name(ancestor::sup)">super</xsl:when>
							<xsl:when test="name(ancestor::sub)">sub</xsl:when>
							<xsl:otherwise>baseline</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:attribute>
			<xsl:apply-templates></xsl:apply-templates>
		</fo:inline>
	</xsl:template><xsl:template match="sub">
		<fo:inline>
			<xsl:attribute name="vertical-align">sub</xsl:attribute>
			<xsl:attribute name="font-size">7pt</xsl:attribute>
			<xsl:apply-templates></xsl:apply-templates>
		</fo:inline>
	</xsl:template><xsl:template match="sup">
		<fo:inline>
			<xsl:attribute name="vertical-align">super</xsl:attribute>
			<xsl:attribute name="font-size">7pt</xsl:attribute>
			<xsl:apply-templates></xsl:apply-templates>
		</fo:inline>
	</xsl:template><xsl:template match="sub2">
		<fo:inline>
			<xsl:attribute name="vertical-align">
				<xsl:choose>
					<xsl:when test="name(ancestor::sup)">baseline</xsl:when>
					<xsl:when test="name(ancestor::sub)">sub</xsl:when>
					<xsl:otherwise>sub</xsl:otherwise>
				</xsl:choose>
			</xsl:attribute>
			<xsl:attribute name="font-size">5pt</xsl:attribute>
			<xsl:apply-templates></xsl:apply-templates>
		</fo:inline>
	</xsl:template><xsl:template match="sup2">
		<fo:inline>
			<xsl:attribute name="vertical-align">
				<xsl:choose>
					<xsl:when test="name(ancestor::sub)">baseline</xsl:when>
					<xsl:when test="name(ancestor::sup)">super</xsl:when>
					<xsl:otherwise>super</xsl:otherwise>
				</xsl:choose>
			</xsl:attribute>
			<xsl:attribute name="font-size">5pt</xsl:attribute>
			<xsl:apply-templates></xsl:apply-templates>
		</fo:inline>
	</xsl:template><xsl:template match="u">   	  
		<xsl:param name="renderer"></xsl:param>      
		<fo:inline>
			<!-- Note: FOP does not support all '@style' values for underline -->
			         
			<xsl:choose>            
				<xsl:when test="$renderer='FOP'">               
					<xsl:attribute name="text-decoration">underline</xsl:attribute>            
				</xsl:when>            
				<xsl:otherwise>               
					<xsl:choose>                  
						<xsl:when test="@style='double'">                     
							<xsl:attribute name="text-decoration">underline</xsl:attribute>                     
							<xsl:attribute name="border-bottom-style">solid</xsl:attribute>                     
							<xsl:attribute name="border-bottom-width">0.1mm</xsl:attribute>                  
						</xsl:when>                  
						<xsl:when test="@style='dash'">                     
							<xsl:attribute name="border-bottom-style">dashed</xsl:attribute>                     
							<xsl:attribute name="border-bottom-width">0.3mm</xsl:attribute>                  
						</xsl:when>                  
						<xsl:when test="@style='dots'">                     
							<xsl:attribute name="border-bottom-style">dotted</xsl:attribute>                     
							<xsl:attribute name="border-bottom-width">0.3mm</xsl:attribute>                  
						</xsl:when>                  
						<xsl:otherwise>                     
							<xsl:attribute name="text-decoration">underline</xsl:attribute>                  
						</xsl:otherwise>               
					</xsl:choose>            
				</xsl:otherwise>         
			</xsl:choose>
			<xsl:attribute name="vertical-align">
				<xsl:choose>
					<xsl:when test="name(ancestor::sup2)">
						<xsl:choose>
							<xsl:when test="name(ancestor::sub)">baseline</xsl:when>
							<xsl:otherwise>super</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:when test="name(ancestor::sub2)">
						<xsl:choose>
							<xsl:when test="name(ancestor::sup)">baseline</xsl:when>
							<xsl:otherwise>sub</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when test="name(ancestor::sup)">super</xsl:when>
							<xsl:when test="name(ancestor::sub)">sub</xsl:when>
							<xsl:otherwise>baseline</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:attribute>
			<xsl:apply-templates></xsl:apply-templates>      
		</fo:inline>
	</xsl:template>
	<LU:organizations>
		<LU:organization name="AP">
			<LU:state name="BW"></LU:state>
			<LU:state name="GH"></LU:state>
			<LU:state name="GM"></LU:state>
			<LU:state name="KE"></LU:state>
			<LU:state name="LR"></LU:state>
			<LU:state name="LS"></LU:state>
			<LU:state name="MW"></LU:state>
			<LU:state name="MZ"></LU:state>
			<LU:state name="NA"></LU:state>
			<LU:state name="SD"></LU:state>
			<LU:state name="SL"></LU:state>
			<LU:state name="SZ"></LU:state>
			<LU:state name="TZ"></LU:state>
			<LU:state name="UG"></LU:state>
			<LU:state name="ZM"></LU:state>
			<LU:state name="ZW"></LU:state>
		</LU:organization>
		<LU:organization name="EA">
			<LU:state name="AM"></LU:state>
			<LU:state name="AZ"></LU:state>
			<LU:state name="BY"></LU:state>
			<LU:state name="KG"></LU:state>
			<LU:state name="KZ"></LU:state>
			<LU:state name="MD"></LU:state>
			<LU:state name="RU"></LU:state>
			<LU:state name="TJ"></LU:state>
			<LU:state name="TM"></LU:state>
		</LU:organization>
		<LU:organization name="EP">
			<LU:state name="AL"></LU:state>
			<LU:state name="AT"></LU:state>
			<LU:state name="BE"></LU:state>
			<LU:state name="BG"></LU:state>
			<LU:state name="CH"></LU:state>
			<LU:state name="LI"></LU:state>
			<LU:state name="CY"></LU:state>
			<LU:state name="CZ"></LU:state>
			<LU:state name="DE"></LU:state>
			<LU:state name="DK"></LU:state>
			<LU:state name="EE"></LU:state>
			<LU:state name="ES"></LU:state>
			<LU:state name="FI"></LU:state>
			<LU:state name="FR"></LU:state>
			<LU:state name="GB"></LU:state>
			<LU:state name="GR"></LU:state>
			<LU:state name="HR"></LU:state>
			<LU:state name="HU"></LU:state>
			<LU:state name="IE"></LU:state>
			<LU:state name="IS"></LU:state>
			<LU:state name="IT"></LU:state>
			<LU:state name="LT"></LU:state>
			<LU:state name="LU"></LU:state>
			<LU:state name="LV"></LU:state>
			<LU:state name="MC"></LU:state>
			<LU:state name="MK"></LU:state>
			<LU:state name="MT"></LU:state>
			<LU:state name="NL"></LU:state>
			<LU:state name="NO"></LU:state>
			<LU:state name="PL"></LU:state>
			<LU:state name="PT"></LU:state>
			<LU:state name="RO"></LU:state>
			<LU:state name="RS"></LU:state>
			<LU:state name="SE"></LU:state>
			<LU:state name="SI"></LU:state>
			<LU:state name="SK"></LU:state>
			<LU:state name="TR"></LU:state>
		</LU:organization>
		<LU:organization name="OA">
			<LU:state name="BF"></LU:state>
			<LU:state name="BJ"></LU:state>
			<LU:state name="CF"></LU:state>
			<LU:state name="CG"></LU:state>
			<LU:state name="CI"></LU:state>
			<LU:state name="CM"></LU:state>
			<LU:state name="GA"></LU:state>
			<LU:state name="GN"></LU:state>
			<LU:state name="GQ"></LU:state>
			<LU:state name="GW"></LU:state>
			<LU:state name="ML"></LU:state>
			<LU:state name="MR"></LU:state>
			<LU:state name="NE"></LU:state>
			<LU:state name="SN"></LU:state>
			<LU:state name="TD"></LU:state>
			<LU:state name="TG"></LU:state>
		</LU:organization>
	</LU:organizations>
	<xsl:template name="nameType">
   	<xsl:param name="nam"></xsl:param>
   	      <xsl:choose>
	         <xsl:when test="$nam//name[@name-type='legal']">
	         	Name 
	         </xsl:when>
	         <xsl:otherwise>
	         	Name (FAMILIENNAME, Vorname)
	         </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'">   
				Alle Bestimmungsstaaten   
			</xsl:when>   
			<xsl:when test="$designation/@designation='all-except-us'">   
				Alle Bestimmungsstaaten mit Ausnahme von US   
			</xsl:when>   
			<xsl:when test="$designation/@designation='us-only'">   
				Nur US   
			</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'">
				Internationale Ausstellung
			</xsl:when>
			<xsl:when test="$type='publication'">
				Veröffentlichung
			</xsl:when>
			<xsl:when test="$type='abuse'">
				Mißbrauch
			</xsl:when>
			<xsl:when test="$type='other'">
				Sonstige(s): 
				<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'">
			Nur Anmelder   
   	  	</xsl:when>
   	  	<xsl:when test="$app-type='applicant-inventor'">
   	  		Anmelder und Erfinder    	  		
   	  	</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'">
				Erbe
			</xsl:when>
			<xsl:when test="$kind='heiress'">
				Erbin
			</xsl:when>
			<xsl:when test="$kind='heirs'">
				Heirs
			</xsl:when>
			<xsl:when test="$kind='executor'">
				Verwalter/Vollstrecker
			</xsl:when>
			<xsl:when test="$kind='executrix'">
				Verwalterin/Vollstreckerin
			</xsl:when>
			<xsl:when test="$kind='executors'">
				Executors
			</xsl:when>
			<xsl:when test="$kind='legal-heirs'">
				Legal-heirs
			</xsl:when>
			<xsl:when test="$kind='legal-representative'">
				Legal-representative
			</xsl:when>
			<xsl:when test="$kind='legal-representatives'">
				Legal-representatives
			</xsl:when>
			<xsl:when test="$kind='administrator'">
				Administrator				
   			</xsl:when>
			<xsl:when test="$kind='administratrix'">
				Administratrix				
   			</xsl:when>
			<xsl:when test="$kind='estate'">
				Nachlaß				
   			</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'">
				alle kompetenten internationalen Behörden 
			</xsl:when>
			<xsl:when test="$arg='isa-only'">
				nur die internationale Recherchenbehörde 				
			</xsl:when>
			<xsl:when test="$arg='ipea-only'">
				nur die mit der internationalen vorläufigen Prüfung beauftragte Behörde
			</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'">
   	  		Anwalt
   	  	</xsl:when>
   	  	<xsl:when test="$rep-type='attorney'">
	   	  	Rechtsanwalt
   	  	</xsl:when>
   	  	<xsl:when test="$rep-type='common-representative'">
	   	  	Gemeinsamer Vertreter
   	  	</xsl:when>
   	  </xsl:choose>
   </xsl:template><xsl:template name="agentTypeEn_ChoiceText">
   <xsl:param name="rep-type"></xsl:param>
   	  <xsl:choose>
   	  	<xsl:when test="$rep-type='agent'">
			<xsl:text>agent</xsl:text>   	  	
   	  	</xsl:when>
   	  	<xsl:when test="$rep-type='attorney'">
   	  		<xsl:text>attorney</xsl:text>
   	  	</xsl:when>
   	  	<xsl:when test="$rep-type='common-representative'">
   	  		<xsl:text>common representative </xsl:text>
   	  	</xsl:when>
   	  </xsl:choose>
   </xsl:template>
	<xsl:template name="country_ChoiceText">
		<xsl:param name="country"></xsl:param>
		<xsl:choose>
			<xsl:when test="$country='AD'">
				Andorra 
			</xsl:when>
			<xsl:when test="$country='AE'">
				Vereinigte Arabische Emirate 
			</xsl:when>
			<xsl:when test="$country='AF'">
				Afghanistan 
			</xsl:when>
			<xsl:when test="$country='AG'">
				Antigua und Barbuda 
			</xsl:when>
			<xsl:when test="$country='AI'">
				Anguilla 
			</xsl:when>
			<xsl:when test="$country='AL'">
				Albanien 
			</xsl:when>
			<xsl:when test="$country='AM'">
				Armenien 
			</xsl:when>
			<xsl:when test="$country='AN'">
				
			</xsl:when>
			<xsl:when test="$country='AO'">
				Angola 
			</xsl:when>
			<xsl:when test="$country='AP'">
				
			</xsl:when>
			<xsl:when test="$country='AQ'">
				Antarktis 
			</xsl:when>
			<xsl:when test="$country='AR'">
				Argentinien 
			</xsl:when>
			<xsl:when test="$country='AS'">
				Amerikanisch-Samoa 
			</xsl:when>
			<xsl:when test="$country='AT'">
				Österreich 
			</xsl:when>
			<xsl:when test="$country='AU'">
				Australien 
			</xsl:when>
			<xsl:when test="$country='AW'">
				Aruba 
			</xsl:when>
			<xsl:when test="$country='AX'">
				Aland 
			</xsl:when>
			<xsl:when test="$country='AZ'">
				Aserbaidschan 
			</xsl:when>
			<xsl:when test="$country='BA'">
				Bosnien und Herzegowina 
			</xsl:when>
			<xsl:when test="$country='BB'">
				Barbados 
			</xsl:when>
			<xsl:when test="$country='BD'">
				Bangladesch 
			</xsl:when>
			<xsl:when test="$country='BE'">
				Belgien 
			</xsl:when>
			<xsl:when test="$country='BF'">
				Burkina Faso 
			</xsl:when>
			<xsl:when test="$country='BG'">
				Bulgarien 
			</xsl:when>
			<xsl:when test="$country='BH'">
				Bahrain 
			</xsl:when>
			<xsl:when test="$country='BI'">
				Burundi 
			</xsl:when>
			<xsl:when test="$country='BJ'">
				Benin 
			</xsl:when>
			<xsl:when test="$country='BM'">
				Bermuda 
			</xsl:when>
			<xsl:when test="$country='BN'">
				Brunei Darussalam 
			</xsl:when>
			<xsl:when test="$country='BO'">
				(Plurinationaler Staat) Bolivien 
			</xsl:when>
			<xsl:when test="$country='BQ'">
				Bonaire, Sint Eustatius und Saba 
			</xsl:when>
			<xsl:when test="$country='BR'">
				Brasilien 
			</xsl:when>
			<xsl:when test="$country='BS'">
				Bahamas 
			</xsl:when>
			<xsl:when test="$country='BT'">
				Bhutan 
			</xsl:when>
			<xsl:when test="$country='BV'">
				Bouvetinsel 
			</xsl:when>
			<xsl:when test="$country='BW'">
				Botswana 
			</xsl:when>
			<xsl:when test="$country='BX'">
				
			</xsl:when>
			<xsl:when test="$country='BY'">
				Belarus 
			</xsl:when>
			<xsl:when test="$country='BZ'">
				Belize 
			</xsl:when>
			<xsl:when test="$country='CA'">
				Kanada 
			</xsl:when>
			<xsl:when test="$country='CC'">
				Kokosinseln 
			</xsl:when>
			<xsl:when test="$country='CD'">
				Demokratische Republik Kongo 
			</xsl:when>
			<xsl:when test="$country='CF'">
				Zentralafrikanische Republik 
			</xsl:when>
			<xsl:when test="$country='CG'">
				Republik Kongo 
			</xsl:when>
			<xsl:when test="$country='CH'">
				Schweiz 
			</xsl:when>
			<xsl:when test="$country='CI'">
				Côte d'Ivoire 
			</xsl:when>
			<xsl:when test="$country='CK'">
				Cookinseln 
			</xsl:when>
			<xsl:when test="$country='CL'">
				Chile 
			</xsl:when>
			<xsl:when test="$country='CM'">
				Kamerun 
			</xsl:when>
			<xsl:when test="$country='CN'">
				China 
			</xsl:when>
			<xsl:when test="$country='CO'">
				Kolumbien 
			</xsl:when>
			<xsl:when test="$country='CR'">
				Costa Rica 
			</xsl:when>
			<xsl:when test="$country='CU'">
				Kuba 
			</xsl:when>
			<xsl:when test="$country='CV'">
				Kap Verde 
			</xsl:when>
			<xsl:when test="$country='CW'">
				Curaçao 
			</xsl:when>
			<xsl:when test="$country='CX'">
				Weihnachtsinsel 
			</xsl:when>
			<xsl:when test="$country='CY'">
				Zypern 
			</xsl:when>
			<xsl:when test="$country='CZ'">
				Tschechien 
			</xsl:when>
			<xsl:when test="$country='DE'">
				Deutschland 
			</xsl:when>
			<xsl:when test="$country='DJ'">
				Dschibuti 
			</xsl:when>
			<xsl:when test="$country='DK'">
				Dänemark 
			</xsl:when>
			<xsl:when test="$country='DM'">
				Dominica 
			</xsl:when>
			<xsl:when test="$country='DO'">
				Dominikanische Republik 
			</xsl:when>
			<xsl:when test="$country='DZ'">
				Algerien 
			</xsl:when>
			<xsl:when test="$country='EA'">
				
			</xsl:when>
			<xsl:when test="$country='EC'">
				Ecuador 
			</xsl:when>
			<xsl:when test="$country='EE'">
				Estland 
			</xsl:when>
			<xsl:when test="$country='EG'">
				Ägypten 
			</xsl:when>
			<xsl:when test="$country='EH'">
				Westsahara 
			</xsl:when>
			<xsl:when test="$country='EM'">
				
			</xsl:when>
			<xsl:when test="$country='EP'">
				
			</xsl:when>
			<xsl:when test="$country='ER'">
				Eritrea 
			</xsl:when>
			<xsl:when test="$country='ES'">
				Spanien 
			</xsl:when>
			<xsl:when test="$country='ET'">
				Äthiopien 
			</xsl:when>
			<xsl:when test="$country='FI'">
				Finnland 
			</xsl:when>
			<xsl:when test="$country='FJ'">
				Fidschi 
			</xsl:when>
			<xsl:when test="$country='FK'">
				Falklandinseln (Malwinen) 
			</xsl:when>
			<xsl:when test="$country='FM'">
				Föderierte Staaten von Mikronesien 
			</xsl:when>
			<xsl:when test="$country='FO'">
				Färöer-Inseln 
			</xsl:when>
			<xsl:when test="$country='FR'">
				Frankreich 
			</xsl:when>
			<xsl:when test="$country='GA'">
				Gabun 
			</xsl:when>
			<xsl:when test="$country='GB'">
				Vereinigtes Königreich 
			</xsl:when>
			<xsl:when test="$country='GC'">
				
			</xsl:when>
			<xsl:when test="$country='GD'">
				Grenada 
			</xsl:when>
			<xsl:when test="$country='GE'">
				Georgien 
			</xsl:when>
			<xsl:when test="$country='GF'">
				Französisch-Guayana 
			</xsl:when>
			<xsl:when test="$country='GG'">
				Guernsey 
			</xsl:when>
			<xsl:when test="$country='GH'">
				Ghana 
			</xsl:when>
			<xsl:when test="$country='GI'">
				Gibraltar 
			</xsl:when>
			<xsl:when test="$country='GL'">
				Grönland 
			</xsl:when>
			<xsl:when test="$country='GM'">
				Gambia 
			</xsl:when>
			<xsl:when test="$country='GN'">
				Guinea 
			</xsl:when>
			<xsl:when test="$country='GP'">
				Guadeloupe 
			</xsl:when>
			<xsl:when test="$country='GQ'">
				Äquatorialguinea 
			</xsl:when>
			<xsl:when test="$country='GR'">
				Griechenland 
			</xsl:when>
			<xsl:when test="$country='GS'">
				Südgeorgien und die Südlichen Sandwichinseln 
			</xsl:when>
			<xsl:when test="$country='GT'">
				Guatemala 
			</xsl:when>
			<xsl:when test="$country='GU'">
				Guam 
			</xsl:when>
			<xsl:when test="$country='GW'">
				Guinea-Bissau 
			</xsl:when>
			<xsl:when test="$country='GY'">
				Guyana 
			</xsl:when>
			<xsl:when test="$country='HK'">
				Hongkong, China 
			</xsl:when>
			<xsl:when test="$country='HM'">
				Heard und McDonald-Inseln 
			</xsl:when>
			<xsl:when test="$country='HN'">
				Honduras 
			</xsl:when>
			<xsl:when test="$country='HR'">
				Kroatien 
			</xsl:when>
			<xsl:when test="$country='HT'">
				Haiti 
			</xsl:when>
			<xsl:when test="$country='HU'">
				Ungarn 
			</xsl:when>
			<xsl:when test="$country='IB'">
				
			</xsl:when>
			<xsl:when test="$country='ID'">
				Indonesien 
			</xsl:when>
			<xsl:when test="$country='IE'">
				Irland 
			</xsl:when>
			<xsl:when test="$country='IL'">
				Israel 
			</xsl:when>
			<xsl:when test="$country='IM'">
				Isle of Man 
			</xsl:when>
			<xsl:when test="$country='IN'">
				Indien 
			</xsl:when>
			<xsl:when test="$country='IO'">
				Britisches Territorium im Indischen Ozean 
			</xsl:when>
			<xsl:when test="$country='IQ'">
				Irak 
			</xsl:when>
			<xsl:when test="$country='IR'">
				Iran (islamische Republik) 
			</xsl:when>
			<xsl:when test="$country='IS'">
				Island 
			</xsl:when>
			<xsl:when test="$country='IT'">
				Italien 
			</xsl:when>
			<xsl:when test="$country='JE'">
				Jersey 
			</xsl:when>
			<xsl:when test="$country='JM'">
				Jamaika 
			</xsl:when>
			<xsl:when test="$country='JO'">
				Jordanien 
			</xsl:when>
			<xsl:when test="$country='JP'">
				Japan 
			</xsl:when>
			<xsl:when test="$country='KE'">
				Kenia 
			</xsl:when>
			<xsl:when test="$country='KG'">
				Kirgisistan 
			</xsl:when>
			<xsl:when test="$country='KH'">
				Kambodscha 
			</xsl:when>
			<xsl:when test="$country='KI'">
				Kiribati 
			</xsl:when>
			<xsl:when test="$country='KM'">
				Komoren 
			</xsl:when>
			<xsl:when test="$country='KN'">
				St. Kitts und Nevis 
			</xsl:when>
			<xsl:when test="$country='KP'">
				Demokratische Volksrepublik Korea 
			</xsl:when>
			<xsl:when test="$country='KR'">
				Republik Korea 
			</xsl:when>
			<xsl:when test="$country='KW'">
				Kuwait 
			</xsl:when>
			<xsl:when test="$country='KY'">
				Kaimaninseln 
			</xsl:when>
			<xsl:when test="$country='KZ'">
				Kasachstan 
			</xsl:when>
			<xsl:when test="$country='LA'">
				Demokratische Volksrepublik Laos 
			</xsl:when>
			<xsl:when test="$country='LB'">
				Libanon 
			</xsl:when>
			<xsl:when test="$country='LC'">
				Saint Lucia 
			</xsl:when>
			<xsl:when test="$country='LI'">
				Liechtenstein 
			</xsl:when>
			<xsl:when test="$country='LK'">
				Sri Lanka 
			</xsl:when>
			<xsl:when test="$country='LR'">
				Liberia 
			</xsl:when>
			<xsl:when test="$country='LS'">
				Lesotho 
			</xsl:when>
			<xsl:when test="$country='LT'">
				Litauen 
			</xsl:when>
			<xsl:when test="$country='LU'">
				Luxemburg 
			</xsl:when>
			<xsl:when test="$country='LV'">
				Lettland 
			</xsl:when>
			<xsl:when test="$country='LY'">
				Libyen 
			</xsl:when>
			<xsl:when test="$country='MA'">
				Marokko 
			</xsl:when>
			<xsl:when test="$country='MC'">
				Monaco 
			</xsl:when>
			<xsl:when test="$country='MD'">
				Republik Moldau 
			</xsl:when>
			<xsl:when test="$country='ME'">
				Montenegro 
			</xsl:when>
			<xsl:when test="$country='MG'">
				Madagaskar 
			</xsl:when>
			<xsl:when test="$country='MH'">
				Marshallinseln 
			</xsl:when>
			<xsl:when test="$country='MK'">
				Nordmazedonien 
			</xsl:when>
			<xsl:when test="$country='ML'">
				Mali 
			</xsl:when>
			<xsl:when test="$country='MM'">
				Myanmar 
			</xsl:when>
			<xsl:when test="$country='MN'">
				Mongolei 
			</xsl:when>
			<xsl:when test="$country='MO'">
				Macau, China 
			</xsl:when>
			<xsl:when test="$country='MP'">
				Nördliche Marianen 
			</xsl:when>
			<xsl:when test="$country='MQ'">
				Martinique 
			</xsl:when>
			<xsl:when test="$country='MR'">
				Mauretanien 
			</xsl:when>
			<xsl:when test="$country='MS'">
				Montserrat 
			</xsl:when>
			<xsl:when test="$country='MT'">
				Malta 
			</xsl:when>
			<xsl:when test="$country='MU'">
				Mauritius 
			</xsl:when>
			<xsl:when test="$country='MV'">
				Malediven 
			</xsl:when>
			<xsl:when test="$country='MW'">
				Malawi 
			</xsl:when>
			<xsl:when test="$country='MX'">
				Mexiko 
			</xsl:when>
			<xsl:when test="$country='MY'">
				Malaysia 
			</xsl:when>
			<xsl:when test="$country='MZ'">
				Mosambik 
			</xsl:when>
			<xsl:when test="$country='NA'">
				Namibia 
			</xsl:when>
			<xsl:when test="$country='NC'">
				Neukaledonien 
			</xsl:when>
			<xsl:when test="$country='NE'">
				Niger 
			</xsl:when>
			<xsl:when test="$country='NF'">
				Norfolkinsel 
			</xsl:when>
			<xsl:when test="$country='NG'">
				Nigeria 
			</xsl:when>
			<xsl:when test="$country='NI'">
				Nicaragua 
			</xsl:when>
			<xsl:when test="$country='NL'">
				Niederlande (Königreich der) 
			</xsl:when>
			<xsl:when test="$country='NO'">
				Norwegen 
			</xsl:when>
			<xsl:when test="$country='NP'">
				Nepal 
			</xsl:when>
			<xsl:when test="$country='NR'">
				Nauru 
			</xsl:when>
			<xsl:when test="$country='NU'">
				Niue 
			</xsl:when>
			<xsl:when test="$country='NZ'">
				Neuseeland 
			</xsl:when>
			<xsl:when test="$country='OA'">
				
			</xsl:when>
			<xsl:when test="$country='OM'">
				Oman 
			</xsl:when>
			<xsl:when test="$country='PA'">
				Panama 
			</xsl:when>
			<xsl:when test="$country='PE'">
				Peru 
			</xsl:when>
			<xsl:when test="$country='PF'">
				Französisch-Polynesien 
			</xsl:when>
			<xsl:when test="$country='PG'">
				Papua-Neuguinea 
			</xsl:when>
			<xsl:when test="$country='PH'">
				Philippinen 
			</xsl:when>
			<xsl:when test="$country='PK'">
				Pakistan 
			</xsl:when>
			<xsl:when test="$country='PL'">
				Polen 
			</xsl:when>
			<xsl:when test="$country='PM'">
				Saint-Pierre und Miquelon 
			</xsl:when>
			<xsl:when test="$country='PN'">
				Pitcairn 
			</xsl:when>
			<xsl:when test="$country='PR'">
				Puerto Rico 
			</xsl:when>
			<xsl:when test="$country='PS'">
				Palästina 
			</xsl:when>
			<xsl:when test="$country='PT'">
				Portugal 
			</xsl:when>
			<xsl:when test="$country='PW'">
				Palau 
			</xsl:when>
			<xsl:when test="$country='PY'">
				Paraguay 
			</xsl:when>
			<xsl:when test="$country='QA'">
				Katar 
			</xsl:when>
			<xsl:when test="$country='RE'">
				Réunion 
			</xsl:when>
			<xsl:when test="$country='RO'">
				Rumänien 
			</xsl:when>
			<xsl:when test="$country='RS'">
				Serbien 
			</xsl:when>
			<xsl:when test="$country='RU'">
				Russische Föderation 
			</xsl:when>
			<xsl:when test="$country='RW'">
				Ruanda 
			</xsl:when>
			<xsl:when test="$country='SA'">
				Saudi-Arabien 
			</xsl:when>
			<xsl:when test="$country='SB'">
				Salomonen 
			</xsl:when>
			<xsl:when test="$country='SC'">
				Seychellen 
			</xsl:when>
			<xsl:when test="$country='SD'">
				Sudan 
			</xsl:when>
			<xsl:when test="$country='SE'">
				Schweden 
			</xsl:when>
			<xsl:when test="$country='SG'">
				Singapur 
			</xsl:when>
			<xsl:when test="$country='SH'">
				St. Helena, Ascension und Tristan da Cunha 
			</xsl:when>
			<xsl:when test="$country='SI'">
				Slowenien 
			</xsl:when>
			<xsl:when test="$country='SJ'">
				Spitzbergen und Jan Mayen 
			</xsl:when>
			<xsl:when test="$country='SK'">
				Slowakei 
			</xsl:when>
			<xsl:when test="$country='SL'">
				Sierra Leone 
			</xsl:when>
			<xsl:when test="$country='SM'">
				San Marino 
			</xsl:when>
			<xsl:when test="$country='SN'">
				Senegal 
			</xsl:when>
			<xsl:when test="$country='SO'">
				Somalia 
			</xsl:when>
			<xsl:when test="$country='SR'">
				Suriname 
			</xsl:when>
			<xsl:when test="$country='SS'">
				Südsudan 
			</xsl:when>
			<xsl:when test="$country='ST'">
				São Tomé und Príncipe 
			</xsl:when>
			<xsl:when test="$country='SV'">
				El Salvador 
			</xsl:when>
			<xsl:when test="$country='SX'">
				Sint Maarten (niederländischer Teil) 
			</xsl:when>
			<xsl:when test="$country='SY'">
				Syrien, Arabische Republik 
			</xsl:when>
			<xsl:when test="$country='SZ'">
				Eswatini 
			</xsl:when>
			<xsl:when test="$country='TC'">
				Turks- und Caicosinseln 
			</xsl:when>
			<xsl:when test="$country='TD'">
				Tschad 
			</xsl:when>
			<xsl:when test="$country='TF'">
				Französische Süd- und Antarktisgebiete 
			</xsl:when>
			<xsl:when test="$country='TG'">
				Togo 
			</xsl:when>
			<xsl:when test="$country='TH'">
				Thailand 
			</xsl:when>
			<xsl:when test="$country='TJ'">
				Tadschikistan 
			</xsl:when>
			<xsl:when test="$country='TK'">
				Tokelau 
			</xsl:when>
			<xsl:when test="$country='TL'">
				Demokratische Republik Timor-Leste 
			</xsl:when>
			<xsl:when test="$country='TM'">
				Turkmenistan 
			</xsl:when>
			<xsl:when test="$country='TN'">
				Tunesien 
			</xsl:when>
			<xsl:when test="$country='TO'">
				Tonga 
			</xsl:when>
			<xsl:when test="$country='TP'">
				Osttimor 
			</xsl:when>
			<xsl:when test="$country='TR'">
				Türkiye 
			</xsl:when>
			<xsl:when test="$country='TT'">
				Trinidad und Tobago 
			</xsl:when>
			<xsl:when test="$country='TV'">
				Tuvalu 
			</xsl:when>
			<xsl:when test="$country='TW'">
				Republik China (Taiwan) 
			</xsl:when>
			<xsl:when test="$country='TZ'">
				Vereinigte Republik Tansania 
			</xsl:when>
			<xsl:when test="$country='UA'">
				Ukraine 
			</xsl:when>
			<xsl:when test="$country='UG'">
				Uganda 
			</xsl:when>
			<xsl:when test="$country='UM'">
				United States Minor Outlying Islands 
			</xsl:when>
			<xsl:when test="$country='US'">
				Vereinigte Staaten von Amerika 
			</xsl:when>
			<xsl:when test="$country='UY'">
				Uruguay 
			</xsl:when>
			<xsl:when test="$country='UZ'">
				Usbekistan 
			</xsl:when>
			<xsl:when test="$country='VA'">
				Heiliger Stuhl 
			</xsl:when>
			<xsl:when test="$country='VC'">
				St. Vincent und die Grenadinen 
			</xsl:when>
			<xsl:when test="$country='VE'">
				(Bolivarische Republik) Venezuela 
			</xsl:when>
			<xsl:when test="$country='VG'">
				Britische Jungferninseln 
			</xsl:when>
			<xsl:when test="$country='VI'">
				Amerikanische Jungferninseln 
			</xsl:when>
			<xsl:when test="$country='VN'">
				Vietnam 
			</xsl:when>
			<xsl:when test="$country='VU'">
				Vanuatu 
			</xsl:when>
			<xsl:when test="$country='WF'">
				Wallis und Futuna 
			</xsl:when>
			<xsl:when test="$country='WO'">
				
			</xsl:when>
			<xsl:when test="$country='WS'">
				Samoa 
			</xsl:when>
			<xsl:when test="$country='XV'">
				
			</xsl:when>
			<xsl:when test="$country='YE'">
				Jemen 
			</xsl:when>
			<xsl:when test="$country='YT'">
				Mayotte 
			</xsl:when>
			<xsl:when test="$country='YU'">
				
			</xsl:when>
			<xsl:when test="$country='ZA'">
				Südafrika 
			</xsl:when>
			<xsl:when test="$country='ZM'">
				Sambia 
			</xsl:when>
			<xsl:when test="$country='ZW'">
				Simbabwe 
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="$country"></xsl:value-of>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="language_ChoiceText">
	<xsl:param name="lang"></xsl:param>
		<xsl:choose>
		  <xsl:when test="$lang='aa'">
			  Afar
		  </xsl:when>
		  <xsl:when test="$lang='ab'">
			 Abchasisch 
		  </xsl:when>
		  <xsl:when test="$lang='ae'">
			 Avestan 
		  </xsl:when>
		  <xsl:when test="$lang='af'">
			 Afrikaans 
		  </xsl:when>
		  <xsl:when test="$lang='am'">
			 Amharisch 
		  </xsl:when>
		  <xsl:when test="$lang='ar'">
			 Arabisch 
		  </xsl:when>
		  <xsl:when test="$lang='as'">
			 Assamesisch 
		  </xsl:when>
		  <xsl:when test="$lang='ay'">
			 Aymara 
		  </xsl:when>
		  <xsl:when test="$lang='az'">
			 Aserbaidschanisch 
		  </xsl:when>
		  <xsl:when test="$lang='ba'">
			 Baschkirisch 
		  </xsl:when>
		  <xsl:when test="$lang='be'">
			 Belorussisch 
		  </xsl:when>
		  <xsl:when test="$lang='bg'">
			 Bulgarirsch 
		  </xsl:when>
		  <xsl:when test="$lang='bh'">
			 Biharisch 
		  </xsl:when>
		  <xsl:when test="$lang='bi'">
			 Bislamisch 
		  </xsl:when>
		  <xsl:when test="$lang='bn'">
			 Bengalisch 
		  </xsl:when>
		  <xsl:when test="$lang='bo'">
			 Tibetanisch 
		  </xsl:when>
		  <xsl:when test="$lang='br'">
			 Bretonisch 
		  </xsl:when>
		  <xsl:when test="$lang='bs'">
			 Bosnian 
		  </xsl:when>
		  <xsl:when test="$lang='ca'">
			 Katalanisch 
		  </xsl:when>
		  <xsl:when test="$lang='ce'">
			 Chechen 
		  </xsl:when>
		  <xsl:when test="$lang='ch'">
			 Chamorro 
		  </xsl:when>
		  <xsl:when test="$lang='co'">
			 Korsisch 
		  </xsl:when>
		  <xsl:when test="$lang='cs'">
			 Tschechisch 
		  </xsl:when>
		  <xsl:when test="$lang='cu'">
			 
		  </xsl:when>
		  <xsl:when test="$lang='cv'">
			 Chuvash 
		  </xsl:when>
		  <xsl:when test="$lang='cy'">
			 Walisisch 
		  </xsl:when>
		  <xsl:when test="$lang='da'">
			 Dänisch 
		  </xsl:when>
		  <xsl:when test="$lang='de'">
			 Deutsch 
		  </xsl:when>
		  <xsl:when test="$lang='dz'">
			 Bhutani 
		  </xsl:when>
		  <xsl:when test="$lang='el'">
			 Griechisch 
		  </xsl:when>
		  <xsl:when test="$lang='en'">
			 Englisch 
		  </xsl:when>
		  <xsl:when test="$lang='eo'">
			 Esperanto 
		  </xsl:when>
		  <xsl:when test="$lang='es'">
			 Spanisch 
		  </xsl:when>
		  <xsl:when test="$lang='et'">
			 Estnisch 
		  </xsl:when>
		  <xsl:when test="$lang='eu'">
			 Baskisch 
		  </xsl:when>
		  <xsl:when test="$lang='fa'">
			 Persisch 
		  </xsl:when>
		  <xsl:when test="$lang='fi'">
			 Finnisch 
		  </xsl:when>
		  <xsl:when test="$lang='fj'">
			 Fiji 
		  </xsl:when>
		  <xsl:when test="$lang='fo'">
			 Faröisch 
		  </xsl:when>
		  <xsl:when test="$lang='fr'">
			 Französisch 
		  </xsl:when>
		  <xsl:when test="$lang='fy'">
			 Friesisch 
		  </xsl:when>
		  <xsl:when test="$lang='ga'">
			 Irisch 
		  </xsl:when>
		  <xsl:when test="$lang='gd'">
			 Schottisches Gälisch 
		  </xsl:when>
		  <xsl:when test="$lang='gl'">
			 Galizisch 
		  </xsl:when>
		  <xsl:when test="$lang='gn'">
			 Guarani 
		  </xsl:when>
		  <xsl:when test="$lang='gu'">
			 Gujaratisch 
		  </xsl:when>
		  <xsl:when test="$lang='gv'">
			 Gälisch der Ile of Man 
		  </xsl:when>
		  <xsl:when test="$lang='ha'">
			 Haussa 
		  </xsl:when>
		  <xsl:when test="$lang='he'">
			 Hebräisch 
		  </xsl:when>
		  <xsl:when test="$lang='hi'">
			 Hindi 
		  </xsl:when>
		  <xsl:when test="$lang='ho'">
			 Hiri Motu 
		  </xsl:when>
		  <xsl:when test="$lang='hr'">
			 Kroatisch 
		  </xsl:when>
		  <xsl:when test="$lang='hu'">
			 Ungarisch 
		  </xsl:when>
		  <xsl:when test="$lang='hy'">
			 Armenisch 
		  </xsl:when>
		  <xsl:when test="$lang='hz'">
			 Herero 
		  </xsl:when>
		  <xsl:when test="$lang='ia'">
			 Interlingua 
		  </xsl:when>
		  <xsl:when test="$lang='id'">
			 Indonesisch 
		  </xsl:when>
		  <xsl:when test="$lang='ie'">
			 Interlingue 
		  </xsl:when>
		  <xsl:when test="$lang='ik'">
			 Inupiak 
		  </xsl:when>
		  <xsl:when test="$lang='io'">
			 Ido 
		  </xsl:when>
		  <xsl:when test="$lang='is'">
			 Isländisch 
		  </xsl:when>
		  <xsl:when test="$lang='it'">
			 Italienisch 
		  </xsl:when>
		  <xsl:when test="$lang='iu'">
			 Inuktitut 
		  </xsl:when>
		  <xsl:when test="$lang='ja'">
			 Japanisch 
		  </xsl:when>
		  <xsl:when test="$lang='jv'">
			 Javanisch 
		  </xsl:when>
		  <xsl:when test="$lang='ka'">
			 Georgisch 
		  </xsl:when>
		  <xsl:when test="$lang='ki'">
			 Kikuyu 
		  </xsl:when>
		  <xsl:when test="$lang='kj'">
			 Kuanyama 
		  </xsl:when>
		  <xsl:when test="$lang='kk'">
			 Kasachisch 
		  </xsl:when>
		  <xsl:when test="$lang='kl'">
			 Grönländisch 
		  </xsl:when>
		  <xsl:when test="$lang='km'">
			 Kambodschanisch 
		  </xsl:when>
		  <xsl:when test="$lang='kn'">
			 Kannada 
		  </xsl:when>
		  <xsl:when test="$lang='ko'">
			 Koreanisch 
		  </xsl:when>
		  <xsl:when test="$lang='ks'">
			 Kaschmirisch 
		  </xsl:when>
		  <xsl:when test="$lang='ku'">
			 Kurdisch 
		  </xsl:when>
		  <xsl:when test="$lang='kv'">
			 Komi 
		  </xsl:when>
		  <xsl:when test="$lang='kw'">
			 Kornisch 
		  </xsl:when>
		  <xsl:when test="$lang='ky'">
			 Kirgisisch 
		  </xsl:when>
		  <xsl:when test="$lang='la'">
			 Lateinisch 
		  </xsl:when>
		  <xsl:when test="$lang='lb'">
			 Luxemburgisch 
		  </xsl:when>
		  <xsl:when test="$lang='ln'">
			 Lingalisch 
		  </xsl:when>
		  <xsl:when test="$lang='lo'">
			 Laotisch 
		  </xsl:when>
		  <xsl:when test="$lang='lt'">
			 Litauisch 
		  </xsl:when>
		  <xsl:when test="$lang='lv'">
			 Lettisch 
		  </xsl:when>
		  <xsl:when test="$lang='mg'">
			 Malagasisch 
		  </xsl:when>
		  <xsl:when test="$lang='mh'">
			 Marshallese 
		  </xsl:when>
		  <xsl:when test="$lang='mi'">
			 Maorisch 
		  </xsl:when>
		  <xsl:when test="$lang='mk'">
			 Mazedonisch 
		  </xsl:when>
		  <xsl:when test="$lang='ml'">
			 Malajalam 
		  </xsl:when>
		  <xsl:when test="$lang='mn'">
			 Mongolisch 
		  </xsl:when>
		  <xsl:when test="$lang='mo'">
			 Moldavisch 
		  </xsl:when>
		  <xsl:when test="$lang='mr'">
			 Marathi 
		  </xsl:when>
		  <xsl:when test="$lang='ms'">
			 Malaysisch 
		  </xsl:when>
		  <xsl:when test="$lang='mt'">
			 Maltesisch 
		  </xsl:when>
		  <xsl:when test="$lang='my'">
			 Burmesisch 
		  </xsl:when>
		  <xsl:when test="$lang='na'">
			 Burmesisch 
		  </xsl:when>
		  <xsl:when test="$lang='nb'">
			 Norwegian Bokmål 
		  </xsl:when>
		  <xsl:when test="$lang='nd'">
			 Ndebele, North 
		  </xsl:when>
		  <xsl:when test="$lang='ne'">
			 Nepalisch 
		  </xsl:when>
		  <xsl:when test="$lang='ng'">
			 Ndonga 
		  </xsl:when>
		  <xsl:when test="$lang='nl'">
			 Holländisch 
		  </xsl:when>
		  <xsl:when test="$lang='nn'">
			 Norwegian Nynorsk 
		  </xsl:when>
		  <xsl:when test="$lang='no'">
			 Norwegisch 
		  </xsl:when>
		  <xsl:when test="$lang='nr'">
			 Ndebele, South 
		  </xsl:when>
		  <xsl:when test="$lang='nv'">
			 Navajo 
		  </xsl:when>
		  <xsl:when test="$lang='ny'">
			 Chichewa 
		  </xsl:when>
		  <xsl:when test="$lang='oc'">
			 Okzitanisch 
		  </xsl:when>
		  <xsl:when test="$lang='om'">
			 Oromo 
		  </xsl:when>
		  <xsl:when test="$lang='or'">
			 Orija 
		  </xsl:when>
		  <xsl:when test="$lang='os'">
			 Ossetian 
		  </xsl:when>
		  <xsl:when test="$lang='pa'">
			 Pundjabisch 
		  </xsl:when>
		  <xsl:when test="$lang='pi'">
			 Pali 
		  </xsl:when>
		  <xsl:when test="$lang='pl'">
			 Polnisch 
		  </xsl:when>
		  <xsl:when test="$lang='ps'">
			 Paschtu 
		  </xsl:when>
		  <xsl:when test="$lang='pt'">
			 Portugiensisch 
		  </xsl:when>
		  <xsl:when test="$lang='qu'">
			 Quechua 
		  </xsl:when>
		  <xsl:when test="$lang='rm'">
			 Rätoromanisch 
		  </xsl:when>
		  <xsl:when test="$lang='rn'">
			 Kirundisch 
		  </xsl:when>
		  <xsl:when test="$lang='ro'">
			 Rumänisch 
		  </xsl:when>
		  <xsl:when test="$lang='ru'">
			 Russisch 
		  </xsl:when>
		  <xsl:when test="$lang='rw'">
			 Kijarwanda 
		  </xsl:when>
		  <xsl:when test="$lang='sa'">
			 Sanskrit 
		  </xsl:when>
		  <xsl:when test="$lang='sc'">
			 Sardinian 
		  </xsl:when>
		  <xsl:when test="$lang='sd'">
			 Zinti 
		  </xsl:when>
		  <xsl:when test="$lang='se'">
			 Northern Sami 
		  </xsl:when>
		  <xsl:when test="$lang='sg'">
			 Sango 
		  </xsl:when>
		  <xsl:when test="$lang='sh'">
			  Serbokroatisch 
		  </xsl:when>      
		  <xsl:when test="$lang='si'">
			 Singhalesisch 
		  </xsl:when>
		  <xsl:when test="$lang='sk'">
			 Slowakisch 
		  </xsl:when>
		  <xsl:when test="$lang='sl'">
			 Slowenisch 
		  </xsl:when>
		  <xsl:when test="$lang='sm'">
			 Samoanisch 
		  </xsl:when>
		  <xsl:when test="$lang='sn'">
			 Schonisch 
		  </xsl:when>
		  <xsl:when test="$lang='so'">
			 Somalisch 
		  </xsl:when>
		  <xsl:when test="$lang='sq'">
			 Albanisch 
		  </xsl:when>
		  <xsl:when test="$lang='sr'">
			 Serbisch 
		  </xsl:when>
		  <xsl:when test="$lang='ss'">
			 Swasiländisch 
		  </xsl:when>
		  <xsl:when test="$lang='st'">
			 Sesothisch 
		  </xsl:when>
		  <xsl:when test="$lang='su'">
			 Sudanesisch 
		  </xsl:when>
		  <xsl:when test="$lang='sv'">
			 Schwedisch 
		  </xsl:when>
		  <xsl:when test="$lang='sw'">
			 Suaheli 
		  </xsl:when>
		  <xsl:when test="$lang='ta'">
			 Tamilisch 
		  </xsl:when>
		  <xsl:when test="$lang='te'">
			 Telugu 
		  </xsl:when>
		  <xsl:when test="$lang='tg'">
			 Tadschikisch 
		  </xsl:when>
		  <xsl:when test="$lang='th'">
			 Thai 
		  </xsl:when>
		  <xsl:when test="$lang='ti'">
			 Tigrinja 
		  </xsl:when>
		  <xsl:when test="$lang='tk'">
			 Turkmenisch 
		  </xsl:when>
		  <xsl:when test="$lang='tl'">
			 Tagalog 
		  </xsl:when>
		  <xsl:when test="$lang='tn'">
			 Sezuan 
		  </xsl:when>
		  <xsl:when test="$lang='to'">
			 Tongaisch 
		  </xsl:when>
		  <xsl:when test="$lang='tr'">
			 Türukisch 
		  </xsl:when>
		  <xsl:when test="$lang='ts'">
			 Tsongaisch 
		  </xsl:when>
		  <xsl:when test="$lang='tt'">
			 Tatarisch 
		  </xsl:when>
		  <xsl:when test="$lang='tw'">
			 Twi 
		  </xsl:when>
		  <xsl:when test="$lang='ty'">
			 Tahitian 
		  </xsl:when>
		  <xsl:when test="$lang='ug'">
			 Uighur 
		  </xsl:when>
		  <xsl:when test="$lang='uk'">
			 Ukrainisch 
		  </xsl:when>
		  <xsl:when test="$lang='ur'">
			 Urdu 
		  </xsl:when>
		  <xsl:when test="$lang='uz'">
			 Uzbekisch 
		  </xsl:when>
		  <xsl:when test="$lang='vi'">
			 Vietnamesisch 
		  </xsl:when>
		  <xsl:when test="$lang='vo'">
			 Volapük 
		  </xsl:when>
		  <xsl:when test="$lang='wa'">
			 Walloon 
		  </xsl:when>
		  <xsl:when test="$lang='wo'">
			 Wolof 
		  </xsl:when>
		  <xsl:when test="$lang='xh'">
			 Xhosa 
		  </xsl:when>
		  <xsl:when test="$lang='yi'">
			 Jiddish 
		  </xsl:when>
		  <xsl:when test="$lang='yo'">
			 Joruba 
		  </xsl:when>
		  <xsl:when test="$lang='za'">
			 Zhuang 
		  </xsl:when>
		  <xsl:when test="$lang='zh'">
			 Chinesisch 
		  </xsl:when>
		  <xsl:when test="$lang='zu'">
			 Zulu 
		  </xsl:when>
		</xsl:choose>
   </xsl:template>
	<xsl:template name="officeName_ChoiceText">
      <xsl:param name="office"></xsl:param>
      <xsl:param name="tOffice" select="translate($office,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"></xsl:param>
      <xsl:choose>
         <xsl:when test="$tOffice='AE'">
	            Internationales Zentrum für die Eintragung von Patenten, Wirtschaftsministerium (Vereinigte Arabische Emirate)	
         </xsl:when>
         <xsl:when test="$tOffice='AG'">
	            Amt für geistiges Eigentum und Handel (Antigua und Barbuda) (ABIPCO)	
         </xsl:when>
         <xsl:when test="$tOffice='AL'">
	            Generaldirektorat für gewerbliches Eigentum (GDIP) (Albanien)	
         </xsl:when>
         <xsl:when test="$tOffice='AM'">
	            Amt für geistiges Eigentum der Republik Armenien	
         </xsl:when>
         <xsl:when test="$tOffice='AO'">
	            Angolanisches Institut für gewerblichen Rechtsschutz	
         </xsl:when>
         <xsl:when test="$tOffice='AP'">
	            Afrikanische regionale Organisation für geistiges Eigentum (ARIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='AT'">
	            Österreichisches Patentamt	
         </xsl:when>
         <xsl:when test="$tOffice='AU'">
	            Australisches Patentamt	
         </xsl:when>
         <xsl:when test="$tOffice='AZ'">
	            Agentur für geistiges Eigentum der Republik Aserbaidschan	
         </xsl:when>
         <xsl:when test="$tOffice='BA'">
	            Institut für geistiges Eigentum von Bosnien und Herzegowina	
         </xsl:when>
         <xsl:when test="$tOffice='BB'">
	            Amt für Körperschaftsangelegenheiten und geistiges Eigentum (Barbados)	
         </xsl:when>
         <xsl:when test="$tOffice='BE'">
	            Belgisches Amt für geistiges Eigentum (IPObel)	
         </xsl:when>
         <xsl:when test="$tOffice='BF'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='BG'">
	            Patentamt der Republik Bulgarien	
         </xsl:when>
         <xsl:when test="$tOffice='BH'">
	            Direktion für Außenhandel und gewerbliches Eigentum, Nationales Patentamt (Bahrain)	
         </xsl:when>
         <xsl:when test="$tOffice='BJ'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='BN'">
	            Amt für geistiges Eigentum (Brunei Darussalam) (BruIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='BR'">
	            Nationales Institut für gewerblichen Rechtsschutz (Brasilien)	
         </xsl:when>
         <xsl:when test="$tOffice='BW'">
	            Behörde für Firmenangelegenheiten und geistiges Eigentum (CIPA) (Botswana)	
         </xsl:when>
         <xsl:when test="$tOffice='BX'">
	            Benelux Office for Intellectual Property (BOIP)	
         </xsl:when>
         <xsl:when test="$tOffice='BY'">
	            Nationales Zentrum für geistiges Eigentum (Belarus)	
         </xsl:when>
         <xsl:when test="$tOffice='BZ'">
	            Amt für geistiges Eigentum (Belize)	
         </xsl:when>
         <xsl:when test="$tOffice='CA'">
	            Kanadisches Amt für geistiges Eigentum	
         </xsl:when>
         <xsl:when test="$tOffice='CF'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CG'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CH'">
	            Eidgenössisches Institut für Geistiges Eigentum	
         </xsl:when>
         <xsl:when test="$tOffice='CI'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CL'">
	            Nationales Institut für gewerblichen Rechtsschutz (Chile)	
         </xsl:when>
         <xsl:when test="$tOffice='CM'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CN'">
	            Chinesische Nationalbehörde für geistiges Eigentum (CNIPA)	
         </xsl:when>
         <xsl:when test="$tOffice='CO'">
	            Aufsichtsbehörde für Industrie und Handel (Kolumbien)	
         </xsl:when>
         <xsl:when test="$tOffice='CR'">
	            Registrieramt für geistiges Eigentum (Costa Rica)	
         </xsl:when>
         <xsl:when test="$tOffice='CS'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='CU'">
	            Kubanisches Amt für gewerblichen Rechtsschutz	
         </xsl:when>
         <xsl:when test="$tOffice='CY'">
	            Zyprische Dienststelle zur Registrierung von Gesellschaften und amtliche Annahmestelle	
         </xsl:when>
         <xsl:when test="$tOffice='CV'">
	            Institut für Qualitätsmanagement und geistiges Eigentum (IGQPI) (Kap Verde)	
         </xsl:when>
         <xsl:when test="$tOffice='CZ'">
	            Amt für gewerbliches Eigentum der Tschechischen Republik	
         </xsl:when>
         <xsl:when test="$tOffice='DD'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='DE'">
	            Deutsches Patent- und Markenamt	
         </xsl:when>
         <xsl:when test="$tOffice='DJ'">
	            Amt für gewerbliches Eigentum und Handel von Dschibuti (ODPIC)	
         </xsl:when>
         <xsl:when test="$tOffice='DK'">
	            Dänisches Patent- und Markenamt	
         </xsl:when>
         <xsl:when test="$tOffice='DM'">
	            Register von Unternehmen und Amt für geistiges Eigentum (Dominica)	
         </xsl:when>
         <xsl:when test="$tOffice='DO'">
	            Nationales Amt für gewerblichen Rechtsschutz (Dominikanische Republik)	
         </xsl:when>
         <xsl:when test="$tOffice='DZ'">
	            Nationales algerisches Institut für gewerblichen Rechtsschutz	
         </xsl:when>
         <xsl:when test="$tOffice='EA'">
	            Eurasisches Patentamt (EAPO)	
         </xsl:when>
         <xsl:when test="$tOffice='EC'">
	            Nationaler Dienst für Rechte am geistigen Eigentum (SENADI) (Ecuador)	
         </xsl:when>
         <xsl:when test="$tOffice='EE'">
	            Estnisches Patentamt	
         </xsl:when>
         <xsl:when test="$tOffice='EG'">
	            Ägyptisches Patentamt	
         </xsl:when>
         <xsl:when test="$tOffice='EM'">
	            Amt der Europäischen Union für geistiges Eigentum	
         </xsl:when>
         <xsl:when test="$tOffice='EP'">
	            Europäisches Patentamt (EPA)	
         </xsl:when>
         <xsl:when test="$tOffice='ES'">
	            Spanisches Patent- und Markenamt	
         </xsl:when>
         <xsl:when test="$tOffice='FI'">
	            Finnisches Patent- und Registrieramt (PRH)	
         </xsl:when>
         <xsl:when test="$tOffice='FR'">
	            Nationales Institut für gewerbliches Eigentum (INPI) (Frankreich)	
         </xsl:when>
         <xsl:when test="$tOffice='GA'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='GB'">
	            Amt für geistiges Eigentum (Vereinigtes Königreich)	
         </xsl:when>
         <xsl:when test="$tOffice='GC'">
	            Patent Office of the Gulf Cooperation Council (GCC)	
         </xsl:when>
         <xsl:when test="$tOffice='GD'">
	            Register des Obersten Gerichtshofs (Grenada)	
         </xsl:when>
         <xsl:when test="$tOffice='GE'">
	            Nationales Zentrum für geistiges Eigentum Georgiens (SAKPATENTI)	
         </xsl:when>
         <xsl:when test="$tOffice='GH'">
	            Registrierabteilung (Ghana)	
         </xsl:when>
         <xsl:when test="$tOffice='GM'">
	            Registrierabteilung, Justizministerium (Gambia)	
         </xsl:when>
         <xsl:when test="$tOffice='GN'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='GQ'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='GR'">
	            Organisation für gewerblichen Rechtsschutz (OBI) (Griechenland)	
         </xsl:when>
         <xsl:when test="$tOffice='GT'">
	            Registrieramt für geistiges Eigentum (Guatemala)	
         </xsl:when>
         <xsl:when test="$tOffice='GW'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='HK'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='HN'">
	            Generaldirektion für geistiges Eigentum (Honduras)	
         </xsl:when>
         <xsl:when test="$tOffice='HR'">
	            Amt für geistiges Eigentum (Kroatien)	
         </xsl:when>
         <xsl:when test="$tOffice='HU'">
	            Ungarisches Amt für geistiges Eigentum (HIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='IB'">
	            Internationales Büro der WIPO	
         </xsl:when>
         <xsl:when test="$tOffice='ID'">
	            Generaldirektion für geistiges Eigentum (Indonesien)	
         </xsl:when>
         <xsl:when test="$tOffice='IE'">
	            Amt für geistiges Eigentum (Irland)	
         </xsl:when>
         <xsl:when test="$tOffice='IL'">
	            Israelisches Patentamt	
         </xsl:when>
         <xsl:when test="$tOffice='IR'">
	            Zentrum für geistiges Eigentum (Islamische Republik Iran)	
         </xsl:when>
         <xsl:when test="$tOffice='IN'">
	            Indisches Patentamt	
         </xsl:when>
         <xsl:when test="$tOffice='IQ'">
	            Irakisches Patentamt (IQPO)	
         </xsl:when>
         <xsl:when test="$tOffice='IS'">
	            Isländisches Amt für geistiges Eigentum (ISIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='IT'">
	            Italienisches Patent- und Markenamt	
         </xsl:when>
         <xsl:when test="$tOffice='JM'">
               Jamaikanisches Amt für geistiges Eigentum (JIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='JO'">
	            Abteilung für gewerblichen Rechtsschutz, Ministerium für Industrie, Handel und Versorgung (Jordanien)	
         </xsl:when>
         <xsl:when test="$tOffice='JP'">
	            Japanisches Patentamt (JPO)	
         </xsl:when>
         <xsl:when test="$tOffice='KE'">
	            Amt für gewerblichen Rechtsschutz (Kenia)	
         </xsl:when>
         <xsl:when test="$tOffice='KG'">
	            Ministerium für Wissenschaft, Höhere Bildung und Innovation der Kirgisischen Republik	
         </xsl:when>
         <xsl:when test="$tOffice='KH'">
	            Abteilung für gewerbliches Eigentum, Ministerium für Industrie, Wissenschaft, Technologie und Innovation (Kambodscha)	
         </xsl:when>
         <xsl:when test="$tOffice='KM'">
	            Amt für geistiges Eigentum (Komoren)	
         </xsl:when>
         <xsl:when test="$tOffice='KN'">
	            Amt für geistiges Eigentum von St. Kitts und Nevis	
         </xsl:when>
         <xsl:when test="$tOffice='KP'">
	            Behörde für geistiges Eigentum (IPA) der Demokratischen Volksrepublik Korea	
         </xsl:when>
         <xsl:when test="$tOffice='KR'">
	            Ministerium für geistiges Eigentum (MOIP) (Republik Korea)	
         </xsl:when>
         <xsl:when test="$tOffice='KW'">
	            Handels- und Industrieministerium, Marken- und Patentabteilung (Kuwait)	
         </xsl:when>
         <xsl:when test="$tOffice='KZ'">
	            Nationales Institut für geistiges Eigentum (NIIP) (Kasachstan)	
         </xsl:when>
         <xsl:when test="$tOffice='LA'">
	            Abteilung für geistiges Eigentum, Ministerium für Wissenschaft und Technologie (Demokratische Volksrepublik Laos)	
         </xsl:when>
         <xsl:when test="$tOffice='LC'">
	            Registrieramt für Gesellschaften und geistiges Eigentum (Saint Lucia)	
         </xsl:when>
         <xsl:when test="$tOffice='LK'">
	            Nationales Amt für geistiges Eigentum (Sri Lanka)	
         </xsl:when>
         <xsl:when test="$tOffice='LR'">
	            Liberianisches Amt für geistiges Eigentum (LIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='LS'">
	            Registrierabteilung (Lesotho)	
         </xsl:when>
         <xsl:when test="$tOffice='LT'">
	            Staatliches Patentamt der Republik Litauen	
         </xsl:when>
         <xsl:when test="$tOffice='LU'">
	            Amt für geistiges Eigentum (Luxemburg)	
         </xsl:when>
         <xsl:when test="$tOffice='LV'">
	            Patentamt der Republik Lettland	
         </xsl:when>
         <xsl:when test="$tOffice='LY'">
	            Amt für gewerblichen Rechtsschutz (Libyen)	
         </xsl:when>
         <xsl:when test="$tOffice='MA'">
	            Marokkanisches Amt für gewerblichen Rechtsschutz (OMPIC)	
         </xsl:when>
         <xsl:when test="$tOffice='MC'">
	            Amt für gewerblichen Rechtsschutz von Monaco (MCIPO)	
         </xsl:when>
         <xsl:when test="$tOffice='MD'">
	            Staatliche Behörde für geistiges Eigentum (Republik Moldau)	
         </xsl:when>
         <xsl:when test="$tOffice='ME'">
	            Ministerium für wirtschaftliche Entwicklung (Montenegro)	
         </xsl:when>
         <xsl:when test="$tOffice='MG'">
	            Madagassisches Amt für gewerblichen Rechtsschutz	
         </xsl:when>
         <xsl:when test="$tOffice='MK'">
	            Amt für gewerbliches Eigentum (Nordmazedonien)	
         </xsl:when>
         <xsl:when test="$tOffice='ML'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='MN'">
	            Amt für geistiges Eigentum (Mongolei)	
         </xsl:when>
         <xsl:when test="$tOffice='MR'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='MT'">
	            Direktion für die Registrierung gewerblicher Schutzrechte, Handelsabteilung (Malta)	
         </xsl:when>
         <xsl:when test="$tOffice='MU'">
	            Amt für gewerblichen Rechtsschutz von Mauritius (IPOM)	
         </xsl:when>
         <xsl:when test="$tOffice='MW'">
	            Justizministerium, Registrierabteilung (Malawi)	
         </xsl:when>
         <xsl:when test="$tOffice='MX'">
	            Mexikanisches Institut für gewerblichen Rechtsschutz	
         </xsl:when>
         <xsl:when test="$tOffice='MY'">
	            Gesellschaft für geistiges Eigentum von Malaysia	
         </xsl:when>
         <xsl:when test="$tOffice='MZ'">
	            Institut für gewerbliches Eigentum (IPI) (Mosambik)	
         </xsl:when>
         <xsl:when test="$tOffice='NA'">
	            Behörde für Firmenregistrierung und geistiges Eigentum (BIPA) (Namibia)	
         </xsl:when>
         <xsl:when test="$tOffice='NE'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='NG'">
	            Registrierstelle für Patente und Designs, Abteilung für Handelsrecht (Nigeria)	
         </xsl:when>
         <xsl:when test="$tOffice='NI'">
	            Registrieramt für geistiges Eigentum (Nicaragua)	
         </xsl:when>
         <xsl:when test="$tOffice='NL'">
	            Niederländisches Patentamt	
         </xsl:when>
         <xsl:when test="$tOffice='NO'">
	            Norwegisches Amt für gewerblichen Rechtsschutz	
         </xsl:when>
         <xsl:when test="$tOffice='NZ'">
	            Neuseeländisches Amt für geistiges Eigentum (IPONZ)	
         </xsl:when>
         <xsl:when test="$tOffice='OA'">
	            Afrikanische Organisation für geistiges Eigentum (OAPI)	
         </xsl:when>
         <xsl:when test="$tOffice='OM'">
	            Nationales Amt für geistiges Eigentum (Ministerium für die Förderung von Handel, Industrie und Investment) (Oman)	
         </xsl:when>
         <xsl:when test="$tOffice='PA'">
	            Generaldirektorat des Registrieramts für gewerblichen Rechtsschutz (DIGERPI) (Panama)	
         </xsl:when>
         <xsl:when test="$tOffice='PE'">
	            Nationales Institut für Wettbewerbsschutz und Schutz des geistigen Eigentums (Peru)	
         </xsl:when>
         <xsl:when test="$tOffice='PG'">
	            Amt für geistiges Eigentum (Papua-Neuguinea)	
         </xsl:when>
         <xsl:when test="$tOffice='PH'">
	            Amt für geistiges Eigentum der Philippinen	
         </xsl:when>
         <xsl:when test="$tOffice='PL'">
	            Patentamt der Republik Polen	
         </xsl:when>
         <xsl:when test="$tOffice='PT'">
	            Nationales Institut für gewerblichen Rechtsschutz (Portugal)	
         </xsl:when>
         <xsl:when test="$tOffice='QA'">
	            Abteilung für geistiges Eigentum (Katar)	
         </xsl:when>
         <xsl:when test="$tOffice='RO'">
	            Staatliches Amt für Erfindungen und Marken (Rumänien)	
         </xsl:when>
         <xsl:when test="$tOffice='RS'">
	            Amt für geistiges Eigentum (Serbien)	
         </xsl:when>
         <xsl:when test="$tOffice='RU'">
	            Föderaler Dienst für geistiges Eigentum (Rospatent) (Russische Föderation)	
         </xsl:when>
         <xsl:when test="$tOffice='RW'">
	            Registrieramt (Ruanda)	
         </xsl:when>
         <xsl:when test="$tOffice='SA'">
	            Saudisches Amt für geistiges Eigentum (SAIP)	
         </xsl:when>
         <xsl:when test="$tOffice='SC'">
	            Registrierungsstelle, Abteilung für Rechtsangelegenheiten (Seychellen)	
         </xsl:when>
         <xsl:when test="$tOffice='SD'">
	            Generalregisterführer der Abteilung für geistiges Eigentum (Sudan) 
         </xsl:when>
         <xsl:when test="$tOffice='SE'">
	            Schwedisches Amt für geistiges Eigentum (PRV)	
         </xsl:when>
         <xsl:when test="$tOffice='SG'">
	            Amt  für geistiges Eigentum (Singapur)	
         </xsl:when>
         <xsl:when test="$tOffice='SI'">
	            Slowenisches Amt für geistiges Eigentum	
         </xsl:when>
         <xsl:when test="$tOffice='SK'">
	            Amt für gewerbliches Eigentum der Slowakischen Republik	
         </xsl:when>
         <xsl:when test="$tOffice='SL'">
	            Registrieramt (Sierra Leone)	
         </xsl:when>
         <xsl:when test="$tOffice='SM'">
	            Patent- und Markenamt (San Marino)	
         </xsl:when>
         <xsl:when test="$tOffice='SN'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='ST'">
	            Nationaler Dienst für gewerblichen Rechtsschutz (SENAPI) (São Tomé und Príncipe)	
         </xsl:when>
         <xsl:when test="$tOffice='SU'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='SV'">
	            Nationales Zentrum für Registrierungen (CNR) (El Salvador)	
         </xsl:when>
         <xsl:when test="$tOffice='SY'">
	            Ministerium für Innenhandel und Konsumentenschutz, Direktorat für gewerblichen Rechtsschutz (Arabische Republik Syrien)	
         </xsl:when>
         <xsl:when test="$tOffice='SZ'">
	            Ministry of Justice
Registrar General's Office	
         </xsl:when>
         <xsl:when test="$tOffice='TD'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='TG'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='TH'">
	            Abteilung für geistiges Eigentum (DIP) (Thailand)	
         </xsl:when>
         <xsl:when test="$tOffice='TJ'">
	            Nationales Zentrum für Patente und Informationen des Ministeriums für Wirtschaftsentwicklung und Handel der Republik Tadschikistan	
         </xsl:when>
         <xsl:when test="$tOffice='TM'">
	            Staatliches Amt für geistiges Eigentum des Ministeriums für Finanzen und Wirtschaft (Turkmenistan)	
         </xsl:when>
         <xsl:when test="$tOffice='TN'">
	            Nationales Institut für Standardisierung und gewerblichen Rechtsschutz (INNORPI) (Tunesien)	
         </xsl:when>
         <xsl:when test="$tOffice='TR'">
	            Türkisches Patent- und Markenamt (Turkpatent)	
         </xsl:when>
         <xsl:when test="$tOffice='TT'">
	            Amt für geistiges Eigentum, Ministerium für Land und Rechtsangelegenheiten (Trinidad und Tobago)	
         </xsl:when>
         <xsl:when test="$tOffice='TZ'">
	            Dienststelle für Gewerberegistrierung und Konzessionserteilung, Wirtschaftsministerium (Vereinigte Republik Tansania)	
         </xsl:when>
         <xsl:when test="$tOffice='UA'">
	            Ukrainisches Nationales Amt für geistiges Eigentum und Innovationen (UANIPIO)	
         </xsl:when>
         <xsl:when test="$tOffice='UG'">
	            Eintragungsdienstebüro von Uganda (URSB)	
         </xsl:when>
         <xsl:when test="$tOffice='US'">
	            US Patent- und Markenamt (USPTO)	
         </xsl:when>
         <xsl:when test="$tOffice='UY'">
	            Nationales Direktorat für gewerbliches Eigentum (DNPI)	
         </xsl:when>
         <xsl:when test="$tOffice='UZ'">
	            Agentur für geistiges Eigentum unter dem Justizministerium der Republik Usbekistan	
         </xsl:when>
         <xsl:when test="$tOffice='VC'">
	            Amt für Handel und geistiges Eigentum (CIPO) (St. Vincent und die Grenadinen)	
         </xsl:when>
         <xsl:when test="$tOffice='VN'">
	            Vietnamesisches Amt für geistiges Eigentum (IP Viet Nam)	
         </xsl:when>
         <xsl:when test="$tOffice='WO'">
	            Weltorganisation für geistiges Eigentum	
         </xsl:when>
         <xsl:when test="$tOffice='WS'">
	            Ministerium für Handel, Industrie und Arbeit (MCIL) (Samoa)	
         </xsl:when>
         <xsl:when test="$tOffice='XN'">
	            Nordisches Patentinstitut	
         </xsl:when>
		 <xsl:when test="$tOffice='XV'">
	            Visegrad-Patentinstitut (VPI)	
         </xsl:when>
         <xsl:when test="$tOffice='YU'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='ZA'">
	            Kommission für Firmen und geistiges Eigentum (CIPC) (Republik Südafrika)	
         </xsl:when>
         <xsl:when test="$tOffice='ZM'">
	            Registrieramt für Patente und Unternehmen (PACRA) (Sambia)	
         </xsl:when>
         <xsl:when test="$tOffice='ZR'">
	            --	
         </xsl:when>
         <xsl:when test="$tOffice='ZW'">
	            Amt für geistiges Eigentum (Simbabwe)	
         </xsl:when>
         <xsl:otherwise>
            <xsl:value-of select="$tOffice"></xsl:value-of>
         </xsl:otherwise>
      </xsl:choose>
   </xsl:template>
	<xsl: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'))">
				Sequenzprotokoll als Teil der Beschreibung
			</xsl:when>
			<xsl:when test="$sequence/@page-count">
				Sequenzprotokollteil der Beschreibung in elektronischer Form, eingereicht zusätzlich zur Einreichung auf Papier (nach Abschnitt 801(a)(ii))
			</xsl:when>
			<xsl:otherwise>
				Sequenzprotokollteil der Beschreibung in elektronischer Form, eingereicht ausschließlich in dieser Form (nach Abschnitt 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>