<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:output method="html" indent="yes" encoding="ISO-8859-1"/>
	<!-- Copyright Tieto Finland Oy -->
	<!-- ============================= updates ====================================== 
TEAPPSXML v.3.0 - INVOICES, root element INVOICE
If you want to use this layout with material, where root element is INVOICE_CENTER change command in row 195  
into this format <xsl:apply-templates select="//INVOICE"/> 
Updated 25.10.2019
================================== updates ====================================== -->
	<!-- ================================================================================= -->
	<!-- decimal format and global variables ============================================= -->
	<xsl:decimal-format name="european" decimal-separator="," grouping-separator=" "/>
	<xsl:variable name="ROWHEIGHT" select="35"/>
	<xsl:variable name="varColor1" select="'#FFFFFF'"/>
	<xsl:variable name="varColor2" select="'#FFFFFF'"/>
	<xsl:variable name="varColor3" select="'#FFFFFF'"/>
	<!-- background color for header information -->
	<xsl:variable name="varColor4" select="'#FFFFFF'"/>
	<!-- background color for even rows -->
	<!-- ================================================================================= -->
	<!-- attribute-sets ================================================================== -->
	<xsl:attribute-set name="TableNoBorder">
		<xsl:attribute name="cellpadding">0</xsl:attribute>
		<xsl:attribute name="cellspacing">0</xsl:attribute>
		<xsl:attribute name="border">0</xsl:attribute>
		<xsl:attribute name="width">100%</xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="TableWithBorder">
		<xsl:attribute name="cellpadding">0</xsl:attribute>
		<xsl:attribute name="cellspacing">0</xsl:attribute>
		<xsl:attribute name="border">1</xsl:attribute>
		<xsl:attribute name="width">100%</xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="TableNoBorderCellpad">
		<xsl:attribute name="cellpadding">1</xsl:attribute>
		<xsl:attribute name="cellspacing">0</xsl:attribute>
		<xsl:attribute name="border">0</xsl:attribute>
		<xsl:attribute name="width">100%</xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="LayoutHeaderTitle">
		<xsl:attribute name="class">layouttext12b</xsl:attribute>
		<xsl:attribute name="colspan">3</xsl:attribute>
		<xsl:attribute name="valign">top</xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="LayoutHeaderColumns">
		<xsl:attribute name="class">layouttext8</xsl:attribute>
		<xsl:attribute name="width">33%</xsl:attribute>
		<xsl:attribute name="valign">top</xsl:attribute>
		<xsl:attribute name="height"><xsl:value-of select="$ROWHEIGHT"/></xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="LayoutHeaderDoubleColumns">
		<xsl:attribute name="class">layouttext8</xsl:attribute>
		<xsl:attribute name="width">66%</xsl:attribute>
		<xsl:attribute name="valign">top</xsl:attribute>
		<xsl:attribute name="height"><xsl:value-of select="$ROWHEIGHT"/></xsl:attribute>
		<xsl:attribute name="colspan">2</xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="LayoutHeaderTripleColumns">
		<xsl:attribute name="class">layouttext8</xsl:attribute>
		<xsl:attribute name="width">99%</xsl:attribute>
		<xsl:attribute name="valign">top</xsl:attribute>
		<xsl:attribute name="height"><xsl:value-of select="$ROWHEIGHT"/></xsl:attribute>
		<xsl:attribute name="colspan">3</xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="LayoutHeaderLowColumns">
		<xsl:attribute name="class">layouttext8</xsl:attribute>
		<xsl:attribute name="valign">top</xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="LayoutHeaderLowColumnsBold">
		<xsl:attribute name="class">layouttext8b</xsl:attribute>
		<xsl:attribute name="valign">top</xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="LayoutHeaderLowColumnsRight">
		<xsl:attribute name="align">right</xsl:attribute>
		<xsl:attribute name="class">layouttext8</xsl:attribute>
		<xsl:attribute name="valign">top</xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="LayoutHeaderLowColumnsRightBold">
		<xsl:attribute name="align">right</xsl:attribute>
		<xsl:attribute name="class">layouttext8b</xsl:attribute>
		<xsl:attribute name="valign">top</xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="LayoutHeaderLowColumns10">
		<xsl:attribute name="class">layouttext10</xsl:attribute>
		<xsl:attribute name="valign">top</xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="LayoutHeaderLowTripleColumns">
		<xsl:attribute name="class">layouttext8</xsl:attribute>
		<xsl:attribute name="valign">top</xsl:attribute>
		<xsl:attribute name="colspan">3</xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="LayoutHeaderQuarterPageColumns">
		<xsl:attribute name="class">layouttext8</xsl:attribute>
		<xsl:attribute name="width">30%</xsl:attribute>
		<xsl:attribute name="valign">top</xsl:attribute>
		<xsl:attribute name="height"><xsl:value-of select="$ROWHEIGHT"/></xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="LayoutHeaderHalfPageColumns">
		<xsl:attribute name="class">layouttext8</xsl:attribute>
		<xsl:attribute name="width">40%</xsl:attribute>
		<xsl:attribute name="valign">top</xsl:attribute>
		<xsl:attribute name="height"><xsl:value-of select="$ROWHEIGHT"/></xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="LayoutHeaderWholePageColumns">
		<xsl:attribute name="class">layouttext8</xsl:attribute>
		<xsl:attribute name="width">100%</xsl:attribute>
		<xsl:attribute name="height"><xsl:value-of select="$ROWHEIGHT"/></xsl:attribute>
	</xsl:attribute-set>
	<xsl:attribute-set name="PartPayment">
		<xsl:attribute name="class">layouttext8</xsl:attribute>
		<xsl:attribute name="width">100%</xsl:attribute>
		<xsl:attribute name="height"><xsl:value-of select="$ROWHEIGHT"/></xsl:attribute>
	</xsl:attribute-set>
	<!-- ================================================================================= -->
	<!-- Main template, basic HTML structure ============================================= -->
	<xsl:template match="/">
		<xsl:text disable-output-escaping="yes"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">]]></xsl:text>
		<html>
			<head>
				<title>
					<xsl:choose>
						<xsl:when test="INVOICE_CENTER/CONTENT_FRAME/INVOICES/INVOICE/HEADER/INVOICE_TYPE = '50' or INVOICE_CENTER/CONTENT_FRAME/INVOICES/INVOICE/HEADER/INVOICE_TYPE = '51'">
							<xsl:choose>
								<xsl:when test="INVOICE_CENTER/CONTENT_FRAME/INVOICES/INVOICE/RECEIVER/CUSTOMER_INFORMATION/LANGUAGE_CODE = 'FI'">
									<xsl:value-of select="'TILAUS'"/>
								</xsl:when>
								<xsl:when test="INVOICE_CENTER/CONTENT_FRAME/INVOICES/INVOICE/RECEIVER/CUSTOMER_INFORMATION/LANGUAGE_CODE = 'SE' or INVOICE_CENTER/CONTENT_FRAME/INVOICES/INVOICE/RECEIVER/CUSTOMER_INFORMATION/LANGUAGE_CODE = 'SV'">
									<xsl:value-of select="'ORDER'"/>
								</xsl:when>
								<xsl:when test="INVOICE_CENTER/CONTENT_FRAME/INVOICES/INVOICE/RECEIVER/CUSTOMER_INFORMATION/LANGUAGE_CODE = 'EE' or INVOICE_CENTER/CONTENT_FRAME/INVOICES/INVOICE/RECEIVER/CUSTOMER_INFORMATION/LANGUAGE_CODE = 'ET'">
									<xsl:value-of select="'TELLIMUS'"/>
								</xsl:when>
								<xsl:when test="INVOICE_CENTER/CONTENT_FRAME/INVOICES/INVOICE/RECEIVER/CUSTOMER_INFORMATION/LANGUAGE_CODE = 'DE'">
									<xsl:value-of select="'AUFTRAG'"/>
								</xsl:when>
								<xsl:when test="INVOICE_CENTER/CONTENT_FRAME/INVOICES/INVOICE/RECEIVER/CUSTOMER_INFORMATION/LANGUAGE_CODE = 'NO'">
									<xsl:value-of select="'ORDRER'"/>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="'ORDER'"/>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:when>
						<xsl:otherwise>
							<xsl:choose>
								<xsl:when test="INVOICE_CENTER/CONTENT_FRAME/INVOICES/INVOICE/RECEIVER/CUSTOMER_INFORMATION/LANGUAGE_CODE = 'FI'">
									<xsl:value-of select="'LASKU'"/>
								</xsl:when>
								<xsl:when test="INVOICE_CENTER/CONTENT_FRAME/INVOICES/INVOICE/RECEIVER/CUSTOMER_INFORMATION/LANGUAGE_CODE = 'SE' or INVOICE_CENTER/CONTENT_FRAME/INVOICES/INVOICE/RECEIVER/CUSTOMER_INFORMATION/LANGUAGE_CODE = 'SV'">
									<xsl:value-of select="'FAKTURA'"/>
								</xsl:when>
								<xsl:when test="INVOICE_CENTER/CONTENT_FRAME/INVOICES/INVOICE/RECEIVER/CUSTOMER_INFORMATION/LANGUAGE_CODE = 'EE' or INVOICE_CENTER/CONTENT_FRAME/INVOICES/INVOICE/RECEIVER/CUSTOMER_INFORMATION/LANGUAGE_CODE = 'ET'">
									<xsl:value-of select="'ARVE'"/>
								</xsl:when>
								<xsl:when test="INVOICE_CENTER/CONTENT_FRAME/INVOICES/INVOICE/RECEIVER/CUSTOMER_INFORMATION/LANGUAGE_CODE = 'DE'">
									<xsl:value-of select="'RECHNUNG'"/>
								</xsl:when>
								<xsl:when test="INVOICE_CENTER/CONTENT_FRAME/INVOICES/INVOICE/RECEIVER/CUSTOMER_INFORMATION/LANGUAGE_CODE = 'NO'">
									<xsl:value-of select="'FAKTURA'"/>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="'INVOICE'"/>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:otherwise>
					</xsl:choose>
				</title>
				<!-- CSS styles -->
				<style type="text/css">
					.layouttext8 {
						font-family: Arial, Helvetica, sans-serif; font-size: x-small; font-weight: normal; text-decoration: none; color: #000000;
					}
					.layouttext8b {
						font-family: Arial, Helvetica, sans-serif; font-size: x-small; font-weight: bold; text-decoration: none; color: #000000;
					}
					.layouttext10 { 
						font-family: Arial, Helvetica, sans-serif; font-size: small; font-weight: normal; text-decoration: none; color: #000000;
					}
					.layouttext10b { 
						font-family: Arial, Helvetica, sans-serif; font-size: small; font-weight: bold; text-decoration: none; color: #000000;
					}	
					.layouttext12 { 
						font-family: Arial, Helvetica, sans-serif; font-size: medium; font-weight: normal; text-decoration: none; color: #000000;
					}
					.layouttext12b{ 
						font-family: Arial, Helvetica, sans-serif; font-size: medium; font-weight: bold; text-decoration: none; color: #000000;
					}
					table {
						padding-left: 3px; padding-right: 3px;
						table-layout: fixed;
						word-wrap: break-word;
					} 
					hr {
						border-width: 0;
						height: 1px;
						background-color: #C0C0C0;
						color: #C0C0C0;
					}
				</style>
			</head>
			<body bgcolor="#FFFFFF">
				<xsl:apply-templates select="INVOICE"/>
			</body>
		</html>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template that matches "INVOICE" nodes  ========================================== -->
	<xsl:template name="INVOICE" match="INVOICE">
		<!-- ================================================================================= -->
		<!-- start: global language variables ================================================ -->
		<!-- LayoutSectionI: LayoutHeader (LH) global language variables ===================== -->
		<xsl:variable name="langcode" select="RECEIVER/CUSTOMER_INFORMATION/LANGUAGE_CODE"/>
		<xsl:variable name="LHtext001">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'ILMOITUS SUORAMAKSUSTA'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'ANM&#196;LAN OM DIREKTBETALNING'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'OTSEARVELDUSE TEADE'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'ANMELDUNG ZUM DIREKTZAHLUNG'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'VARSEL OM DIREKTEBETALING'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'ANNOUNCEMENT OF DIRECT PAYMENT'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="LHtext002">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'LASKU'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'FAKTURA'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'ARVE'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'RECHNUNG'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'FAKTURA'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'INVOICE'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="LHtext003">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'HYVITYSLASKU'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'KREDITNOTA'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'KREEDITARVE'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'GUTSCHRIFT'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'KREDITNOTA'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'CREDIT NOTE'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="LHtext004">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'KOONTILASKU'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'SAMMANDRAGSFAKTURA'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'KOONDARVE'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'SAMMELRECHNUNG'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'SAMLEFAKTURA'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'JOINT INVOICE'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="LHtext005">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'KAUTTALASKU'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'FAKTURA'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'INKASSOARVE'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'TRANSITRECHNUNG'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'FAKTURA'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'TRANSIT INVOICE'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="LHtext006">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'HYVITYSKOONTI'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'KREDITERING AV SAMMANDRAGSFAKTURA'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'KREEDITARVE KAHE V&#213;I ENAMA ALLKIRJAGA'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'GUTSCHRIFT DER SAMMELRECHNUNG'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'KREDITERING AV SAMLEFAKTURA'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'JOINT CREDIT NOTE'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="LHtext007">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'KAUTTALASKUN HYVITYS'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'KREDITERING AV FAKTURA VID VIDAREFAKTURERING'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'INKASSOARVE KREEDITARVE'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'GUTSCHRIFT DER TRANSITRECHNUNG'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'KREDITERING AV FAKTURA VED VIDEREFAKTURERING'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'CREDIT NOTE OF TRANSIT INVOICE'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="LHtext008">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'KORKOLASKU'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'R&#196;NTEFAKTURA'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'INTRESSIARVE'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'ZINSRECHNUNG'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'RENTEFAKTURA'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'INTEREST INVOICE'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="LHtext009">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'KORKOLASKUN HYVITYS'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'KREDITERING AV R&#196;NTEFAKTURA'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'INTRESSIARVE KREEDITARVE'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'ZINSVERG&#220;TUNG'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'KREDITERING AV RENTEFAKTURA'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'CREDIT NOTE OF INTEREST INVOICE'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="LHtext010">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'ENNAKKOILMOITUS'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'F&#214;RHANDSANM&#196;LAN'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'EELTEADE'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'VORANK&#220;NDIGUNG'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'FORH&#197;NDSREGISTERING'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'ADVANCE NOTICE'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="LHtext011">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'P&#228;iv&#228;m&#228;&#228;r&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Datum'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arve kuup&#228;ev'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Rechnungsdatum'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Fakturadato'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Invoice Date'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="LHtext012">
			<xsl:choose>
				<xsl:when test="HEADER/INVOICE_TYPE = '09' or HEADER/INVOICE_TYPE = '50' or HEADER/INVOICE_TYPE = '51'">
					<xsl:choose>
						<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
							<xsl:value-of select="'Nro'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
							<xsl:value-of select="'Nr.'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
							<xsl:value-of select="'Nr.'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'DE'">
							<xsl:value-of select="'Nr.'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'NO'">
							<xsl:value-of select="'Nr.'"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="'Number'"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
							<xsl:value-of select="'Laskun nro'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
							<xsl:value-of select="'Faktura nr'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
							<xsl:value-of select="'Arve nr'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'DE'">
							<xsl:value-of select="'Rechnungsnummer'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'NO'">
							<xsl:value-of select="'Faktura nr'"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="'Invoice No.'"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="LHtext013">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Asiakasnro'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Kundnummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kliendi nr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Kundennummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kundenummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Customer nr'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="LHtext014">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'MAKSUKEHOTUS'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'BETALNINGSP&#197;MINNELSE'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'TASUN&#213;UE'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'ZAHLUNGSAUFFORDERUNG'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'BETALINGSP&#197;MINNELSE'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'REQUEST FOR PAYMENT'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="LHtext015">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'TILAUS'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'ORDER'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'TELLIMUS'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'AUFTRAG'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'ORDRER'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'ORDER'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="LHtext016">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'TILAUSVAHVISTUS'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'BEST&#196;LLNINGSERK&#196;NNANDE'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'TELLIMUSE KINNITUS'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'AUFTRAGSBEST&#196;TIGUNG'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'BESTILLINGSGODKJENNIER'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'ORDER CONFIRMATION'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="LHtext017">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'ITSELASKUTUS'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'SJ&#196;LVFAKTURERING'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'ENDALE ARVE'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'SELBSTFAKTURIERUNG'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'EGENFAKTURERING'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'SELFBILLING'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<!-- ================================================================================= -->
		<!-- LayoutSectionII: InvoiceHeaderI (IHI) global language variables ================= -->
		<xsl:variable name="IHItext001">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Myyj&#228;n viite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'V&#229;r referens'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Vendori viide'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Referenz/Unser Bezug'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Leverand&#248;rreferanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Sellers reference'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHItext002">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'K&#228;sittelij&#228;mme'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'V&#229;r handl&#228;ggare'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Meie vastutaja'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Unser/e Sachbearbeiter/in'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'V&#229;r behandler'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Our Responsible'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHItext003">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Ostajan tilausviite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'K&#246;parens referens'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Ostja viide'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Referenz/Bezug des K&#228;ufers'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kundens referanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Buyer&#8242;s Reference'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHItext004">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'K&#228;sittelij&#228;nne'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Er handl&#228;ggare'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Teie vastutaja'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Ihr/e Sachbearbeiter/in'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Deres behandler'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Your Responsible'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<!-- ================================================================================= -->
		<!-- LayoutSectionIII: InvoiceHeaderII (IHII) global language variables ============== -->
		<xsl:variable name="IHIItext001">
			<xsl:choose>
				<xsl:when test="HEADER/INVOICE_TYPE = '50' or HEADER/INVOICE_TYPE = '51'">
					<xsl:choose>
						<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
							<xsl:value-of select="'Vastaanottajan osoite'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
							<xsl:value-of select="'Mottagarensadress'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
							<xsl:value-of select="'Vastuv&#245;tja aadress'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'DE'">
							<xsl:value-of select="'Rechnungsempf&#228;ngersadresse'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'NO'">
							<xsl:value-of select="'Mottakers adresse'"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="'Receiver Address'"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
							<xsl:value-of select="'Vastaanottaja'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
							<xsl:value-of select="'Mottagare'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
							<xsl:value-of select="'Saaja'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'DE'">
							<xsl:value-of select="'Empf&#228;nger'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'NO'">
							<xsl:value-of select="'Mottaker'"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="'Recipient'"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIItext002">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Yhteyshenkil&#246;nne'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Er kontaktperson'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Teie kontaktisik'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Ihre Kontaktperson'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Deres kontaktperson'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Your Contact Person'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIItext003">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimitusosoite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Leveransadress'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'K&#228;ttetoimetamisaadress'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Lieferadresse'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Leveranseadresse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Delivery Address'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIItext004">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Maksuehdot'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Betalningsvillkor'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Maksetingimused'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Zahlungsbedingungen'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Betalingsbetingelser'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Terms of Payment'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIItext005">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Verkkolaskuosoite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'eFakturaAdress'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'V&#245;rguteenuse tunnus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'eRechnungsadress'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Adresse e-faktura'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'eInvoiceAddress'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIItext006">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Er&#228;p&#228;iv&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'F&#246;rfallodag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Makset&#228;htaeg'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'F&#228;lligkeitstag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Forfallsdato'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Due Date'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIItext007">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Viiv&#228;styskorko'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Dr&#246;jsm&#229;lsr&#228;nta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Leppetrahvi viivis'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Verzugszinsen'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Forsinkelsesrente'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Interest for delayed payments'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIItext007b">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Huomautusaika'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Anm&#228;rkningstid'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Teatamisaeg'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Beanstandungsfrist'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Anmerkningstid'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Notification Time'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIItext007c">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'8 vrk'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'8 dagar'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'8 p&#228;eva'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'8 Tage'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'8 dagar'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'8 days'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIItext008">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimitusehdot'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Leveransvillkor'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tarnetingimused'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Lieferbedingungen'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Leveransevilk&#229;r'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Delivery Terms'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIItext009">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimitusp&#228;iv&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Leveransdag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tarneaeg'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Liefertermin'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Leveransedag'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Delivery Date'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIItext010">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'OVT-tunnus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'EDI'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Osapoole tunnusnumber'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Partei-ID'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'EDI'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Party Identification ID'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIItext011">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Ostaja'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'K&#246;pare'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Ostja'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'K&#228;ufer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kj&#248;per'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Buyer'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIItext012">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'V&#228;litt&#228;j&#228;tunnus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Transmitter'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Vahendaja'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Broker'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Medlems-ID'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Intermediator'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<!-- ================================================================================= -->
		<!-- LayoutSectionIV: PaymentAndSummary (PAS) global language variables ============== -->
		<xsl:variable name="PAStext001">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Pankkiyhteys'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Bankf&#246;rbindelse'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Pank'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Bankverbindung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Bankforbindelse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Banking details'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext002">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Er&#228;p&#228;iv&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'F&#246;rfallodag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Makset&#228;htaeg'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'F&#228;lligkeitstag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Forfallsdato'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Due Date'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext003">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Viitenumero'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Referensnummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Viitenumber'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Referenznummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'KID'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Reference Number'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext004">
			<xsl:choose>
				<xsl:when test="HEADER/INVOICE_TYPE = '50'">
					<xsl:choose>
						<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
							<xsl:value-of select="'Tilauksen rivit yhteens&#228;'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
							<xsl:value-of select="'Rader totalt'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
							<xsl:value-of select="'Ridu kokku'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'DE'">
							<xsl:value-of select="'Reihen insgesamt'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'NO'">
							<xsl:value-of select="'Bestillingsrader totalt'"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="'Rows Total'"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:when test="HEADER/INVOICE_TYPE = '51'">
					<xsl:choose>
						<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
							<xsl:value-of select="'Rivit yhteens&#228;'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
							<xsl:value-of select="'Rader totalt'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
							<xsl:value-of select="'Ridu kokku'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'DE'">
							<xsl:value-of select="'Reihen insgesamt'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'NO'">
							<xsl:value-of select="'Rader totalt'"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="'Rows Total'"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
							<xsl:value-of select="'Laskun rivit yhteens&#228;'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
							<xsl:value-of select="'Rader totalt'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
							<xsl:value-of select="'Ridu kokku'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'DE'">
							<xsl:value-of select="'Reihen insgesamt'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'NO'">
							<xsl:value-of select="'Rader totalt'"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="'Rows Total'"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext005">
			<xsl:choose>
				<xsl:when test="HEADER/INVOICE_TYPE = '50' or HEADER/INVOICE_TYPE = '51'">
					<xsl:choose>
						<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
							<xsl:value-of select="'Tilauksen alennus'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
							<xsl:value-of select="'Rabatt'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
							<xsl:value-of select="'Allahindlus'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'DE'">
							<xsl:value-of select="'Rabatt'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'NO'">
							<xsl:value-of select="'Rabatt'"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="'Discount'"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
							<xsl:value-of select="'Laskun alennus'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
							<xsl:value-of select="'Rabatt'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
							<xsl:value-of select="'Allahindlus'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'DE'">
							<xsl:value-of select="'Rabatt'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'NO'">
							<xsl:value-of select="'Rabatt'"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="'Discount'"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext006">
			<xsl:choose>
				<xsl:when test="HEADER/INVOICE_TYPE = '50' or HEADER/INVOICE_TYPE = '51'">
					<xsl:choose>
						<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
							<xsl:value-of select="'Tilauksen alennus summasta'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
							<xsl:value-of select="'Rabatt p&#229; summan'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
							<xsl:value-of select="'Allahindlus summast'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'DE'">
							<xsl:value-of select="'Rabatt auf Rechnungsbetrag'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'NO'">
							<xsl:value-of select="'Rabatt av sum'"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="'Discount from Amount'"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
							<xsl:value-of select="'Laskun alennukset yhteens&#228;'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
							<xsl:value-of select="'Fakturans rabatter totalt'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
							<xsl:value-of select="'Arve allahindlused kokku'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'DE'">
							<xsl:value-of select="'Rechnungsrabatte insgesamt'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'NO'">
							<xsl:value-of select="'Faktura rabatter totalt'"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="'Invoice discounts total'"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext007">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskutuslis&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Faktureringsavgift'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arve esitamise tasu'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Fakturierungsgeb&#252;hr'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Fakturagebyr'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Billing Fee'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext008">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimituslis&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Leveransavgift'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'K&#228;ttetoimetamistasu'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Liefergeb&#252;hr'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Leveranseavgift'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Delivery Fee'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext009">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Vakuutus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'F&#246;rs&#228;kring'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kindlustus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Versicherung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Forsikring'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Insurance'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext010">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Rahti'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Frakt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Last'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Fracht'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Frakt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Freight'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext011">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'ALV'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'MOMS'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'K&#228;ibemaks'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'MwSt.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'MVA'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'VAT'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext012">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Py&#246;ristys'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Avrundning'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'&#220;mardus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Abrundung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Avrunding'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Rounding'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext013">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'YHTEENS&#196;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'TOTALT'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'KOKKU'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'RECHN.BETR. INSG.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'TOTALT'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'TOTAL'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext014">
			<xsl:choose>
				<xsl:when test="HEADER/INVOICE_TYPE/@EXTENSION != '00' or not(HEADER/INVOICE_TYPE/@EXTENSION)">
					<xsl:choose>
						<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
							<xsl:value-of select="'Sis. ALV'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
							<xsl:value-of select="'Inkl. moms'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
							<xsl:value-of select="'Kokku km-ga'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'DE'">
							<xsl:value-of select="'Inklusive MwSt.'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'NO'">
							<xsl:value-of select="'Inkl. MVA'"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="'Incl. VAT'"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="' '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext015">
			<xsl:choose>
				<xsl:when test="HEADER/INVOICE_TYPE/@EXTENSION != '00' or not(HEADER/INVOICE_TYPE/@EXTENSION)">
					<xsl:choose>
						<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
							<xsl:value-of select="'ALV 0'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
							<xsl:value-of select="'MOMS 0'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
							<xsl:value-of select="'K&#228;ibemaks 0'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'DE'">
							<xsl:value-of select="'MwSt. 0'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'NO'">
							<xsl:value-of select="'Bel&#216;P'"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="'VAT 0'"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="' '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext016">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'MAKSETTAVA'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'ATT BETALA'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'TASUDA'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'F&#196;LLIG'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Til betaling'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'PAYABLE'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext017">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Virtuaaliviivakoodi'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Virtuell streckkod'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Virtuaalne v&#246;&#246;tkood'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Virtualstrichcode'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Visuell strekkode'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Virtual Bar Code'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext018">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Maksettu ennakko'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'F&#246;rskottsbetalning'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Ettemakse'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Vorauszahlung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Forskuddsbetaling'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Advance Payment'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext019">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Viiv&#228;styskorkoa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Dr&#246;jsm&#229;lsr&#228;nta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Intress'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Verzugszinsen'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Forsinkelsesrente'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Interest Charge'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext020">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Kurssi'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Valutakurs'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Valuutakurss'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Wechselkurs'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Valutakurs'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Exchange Rate'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext021">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Maksun tilanne '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Betalningsl&#228;ge '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arve staatus '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Rechnungsstatus '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Betalingsstatus'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Invoice Status '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext022">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Maksutapa '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Betalningss&#228;tt '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Makseviis '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Zahlweise '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Betalingsmetode'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Method of Payment '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<!-- 2.7 new elements -->
		<xsl:variable name="PAStext023">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'K&#228;sittelykulut '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Handl&#228;ggningskostnader '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'K&#228;itlemise tasu '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Bearbeitungsgeb&#252;hr '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Behandlingskostnader'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Processing cost '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext024">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Perint&#228;maksu '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Indrivningsavgift '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Makse inkasso kujul '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Einziehungs-/Inkassogeb&#252;hr '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Inkassosal&#230;r'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Collection Payment '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext025">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Provisio '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Provision '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Vahendustasu '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Provision '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Provisjon'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Commission '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext026">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Postituskulut '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Portokostnad '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Postikulud '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Porto '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Portokostnad'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Postal charges '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext027">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Maksutapatoive'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Betalningss&#228;tts-&#246;nskem&#229;l'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Maksmine wish'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Zahlung w&#252;nschen'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'betaling wish'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Payment wish'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext028">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskun lis&#228;t yhteens&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fakturans belopp totalt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kogu arve summa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Gesamter Rechnungsbetrag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Total faktura bel&#248;p'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Invoice charges total'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext029">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskun summa ennen ennakkomaksuja'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fakturans summa innan f&#246;rskottsbetalningar'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arve summa enne ettemakseid'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Rechnungssumme vor Vorauszahlung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Sum faktura f&#248;r forskuddsbetaling'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Invoice amount before advance payments'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext030">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskun alennukset'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fakturans rabatter'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arve allahindlused'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Rechnungsrabatte'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Faktura rabatter'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Invoice discounts'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext033">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'summasta ALV 0'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'p&#229; summan MOMS 0'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'summast k/m 0'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'auf den Betrag MwSt. 0'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'av bel&#248;p ekskl. MVA'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'from amount VAT 0'"/>
				</xsl:otherwise>
			</xsl:choose>		
		</xsl:variable>
		<xsl:variable name="PAStext034">
			<xsl:choose>
						<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
							<xsl:value-of select="'Sis. ALV'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
							<xsl:value-of select="'Inkl. moms'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
							<xsl:value-of select="'Kokku km-ga'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'DE'">
							<xsl:value-of select="'Inkl. MwSt.'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'NO'">
							<xsl:value-of select="'Inkl. MVA'"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="'Incl. VAT'"/>
						</xsl:otherwise>
					</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PAStext035">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskun lis&#228;t'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fakturans belopp'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arve summa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Rechnungsbetrag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Faktura bel&#248;p'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Invoice charges'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<!-- ================================================================================= -->
		<!-- LayoutSectionV: VATSummary (VAT) global language variables ====================== -->
		<xsl:variable name="VATtext001">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'ALV-erittely'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Momsspecifikation'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Maksu spetsifikatsioon'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'MwSt. Spez'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'MVA spesifikasjon'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Vat specification'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="VATtext002">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Peruste'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Grund'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Vastavalt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Rechnungsgrundlegung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'MVA grunnlag'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'According'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="VATtext003">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Veron m&#228;&#228;r&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Moms'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'K&#228;ibemaks'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'MwSt.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'MVA'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'VAT'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="VATtext004">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'ALV yhteens&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'MOMS totalt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'K&#228;ibemaks kokku'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'MwSt. insgesamt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'MVA totalt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'VAT Total'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="VATtext005">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Yhteens&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Totalt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kokku'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Insgesamt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Totalt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Total'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<!-- ================================================================================= -->
		<!-- LayoutSection: CashDiscount (CD) global language variables ====================== -->
		<xsl:variable name="CDtext001">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'K&#228;teisalennus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Kassarabatt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kassa allahindlus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Barzahlungsnachlass'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kasserabatt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Cash Discount'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<!-- ================================================================================= -->
		<!-- ================================================================================= -->
		<!-- LayoutSectionVI: InvoiceHeaderIII (IHIII) global language variables ============= -->
		<xsl:variable name="IHIIItext001">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Myyj&#228;n tilausnumero'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'S&#228;ljarens best&#228;llningsnummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'M&#252;&#252;ja tellimisnumber'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Verk&#228;ufer Bestellnummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Selgerens bestillingsnummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Seller order No.'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext002">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'L&#228;hete'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Leveransnota'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Veosaateleht'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Lieferschein'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Ordreseddel'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Delivery Note'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext003">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Sopimus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Avtal'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Leping'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Vertrag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kontrakt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Contract'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext004">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Jakso'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Period'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Periood'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Periode'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Periode'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Period'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext005">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Myyj&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'F&#246;rs&#228;ljare'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'M&#252;&#252;gileping'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Verk&#228;ufer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Selger'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Sales Contact'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext006">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Hyvitett&#228;v&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Ska krediteras'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Krediitarve'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Gutschrift'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Skal krediteres'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'To be credited'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext007">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Arvop&#228;iv&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Valuteringdag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'V&#228;&#228;rtusp&#228;ev'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Wertfeststellungstag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Valuteringsdag'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Value Date'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext008">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tilauksenne'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Er Order'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Teie tellimus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Ihr Auftrag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Utstedelsesdato'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Your Order'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext009">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tilausvahvistus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Orderbekr&#228;ftelse'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tellimuse kinnitus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Auftragsbest&#228;tigung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Ordrebekreftelse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Order Confirmation'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext010">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimitustapa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Leveranss&#228;tt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tarne viis'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Lieferart '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Leveransemetode'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Mode of Delivery'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext011">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Kohdemaa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Destinationsland'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Sihtriik'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Bestimmungsland'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Destinasjonsland'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Country of Destination'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext012">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimittaja'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Leverant&#246;r'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tarnija'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Lieferant'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Leverand&#248;r'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Supplier'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext013">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Maksaja'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Betalare'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Maksja'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Bezahler'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Betaler'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Payer'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext014">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Yhteyshenkil&#246;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Kontaktperson'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kontaktisik'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Kontaktperson'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kontaktperson'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Contact Person'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext015">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Ostajan Y-tunnus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'K&#246;parens FO-nummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Ostja reg.nr'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'FK-Nummer des K&#228;ufers'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kundens foretaksnummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Buyer Business ID'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext016">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimitusasiakkaan Y-tunnus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Leveranskundens FO-nummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tarniva osapoole reg.nr'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'FK-Nummer des Lieferkunden'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Shippingkundens FO-nummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Delivery Party Business ID'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext017">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Y-tunnus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Org. nr'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Reg.nr'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'FK-Nr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Foretaksnummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Business ID'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext018">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Alv-tunnus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Moms nr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'KMKR nr'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'FK-Nr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Foretaksregisteret'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Vat no.'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext019">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Ostajan viite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'K&#246;parens referens'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Ostja viide'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Referenz/Bezug des K&#228;ufers'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kundens referanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:text>Buyer&#8242;s Reference</xsl:text>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext020">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimittajan viite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Leverant&#246;rsreferens'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tarnija viide'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Referenz/Bezug des Lieferanten'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Shippingkundens referanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:text>Deliverer&#39;s Reference</xsl:text>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext021">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Hinnasto'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Prislista'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Hinnakiri'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Preisliste'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Prisliste'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Price List'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext022">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimittajanumero'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Leverant&#246;rens nummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tarnija nr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Lieferantennummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Shippingkundens nr'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Deliverer ID'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext023">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Ostajan alv-tunnus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'K&#246;parens Moms nr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Ostja KMKR nr'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'FK-Nr. des K&#228;ufers'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kj&#248;pers MVA nummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Buyer&#8242;s Vat no.'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext024">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimitusasiakkaan alv-tunnus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Leveranskundens Moms nr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tarniva poole KMKR nr'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'FK-Nr. des Lieferkunden'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Shippingkundens MVA nummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Delivery Party&#8242;s Vat no.'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext025">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Puh'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Tfn'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tel'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Tel.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Tlf.'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Tel'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext026">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Fax'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fax'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Faks'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Telefax'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Fax'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Fax'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext027">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'E-mail'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'E-post'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'E-kiri'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'E-Mail'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'E-post'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'E-mail'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext028">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskun k&#228;sittelij&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fakturamottagare'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arve saaja'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Rechnungsbearbeiter/in'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Fakturamottaker'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Invoice Recipient'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext029">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskun l&#228;hett&#228;j&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fakturaavs&#228;ndare'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arve saatja'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Absender der Rechnung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Fakturaavsender'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Invoice Sender'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext030">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Yhteystiedot'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Kontaktuppgift'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kontaktandmed'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Kontaktinformation'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kontaktinformasjon'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Contact Information'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext031">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tilaaja'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Best&#228;llare'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tellija'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Besteller/Auftraggeber'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Bestiller'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Orderer'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext032">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskuttajan Netting'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fakturerarens kod'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Maksesaaja tasaarvelduskood'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Nettingcode des Zahlungsempf&#228;ngers'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Betalingsmottakers referanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Payee Netting Code'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext033">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Vastaanottajan Netting'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Mottagarens kod'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Vastuv&#245;tja tasaarvelduskood'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Nettingcode des Rechnungsempf&#228;ngers'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Mottakers nummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Receiver Netting Code'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext034">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'OVT-tunnus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'EDI'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Osapoole tunnusnumber'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Partei-ID'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'EDI'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Party Identification ID'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext035">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskuttajan OVT-tunnus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fakturerarens EDI'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Maksesaaja osapoole tunnusnumber'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Zahlungsempf&#228;nger-ID'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Betalingsmottakers referanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Payee Party Identification ID'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext036">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimitusasiakkaan yhteyshenkil&#246;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Leveranskundens kontaktperson'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tarniva osapoole kontaktisik'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Kontaktperson des Lieferkunden'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Shippingkundes kontaktperson'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Delivery Party&#8242;s Contact Person'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext037">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Yhteyshenkil&#246;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Kontaktperson'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kontaktisik'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Kontaktperson/Ansprechpartner'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kontaktperson'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Contact Person'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext038">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Haltija'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Innehavare'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Omanik'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Inhaber'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Innehaver'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Holder'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext039">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Edelleen laskutettava'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Vidarefaktureras'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arve esitamine edasi l&#252;katud'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Weiter zu fakturieren'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Viderefaktureres'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Forward Billable'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext040">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Valmistaja'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Tillverkare'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tootja'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Hersteller'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Produsent'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Manufacturer'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext041">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Luottoraja'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Kreditlimit'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Krediidilimiit'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Kreditlimit'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kredittgrense'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Credit Limit'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext042">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Lyhennyser&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Avbetalning'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Osamakse'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Tilgungsrate'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Avbetaling'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Instalment'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext043">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskutusaihe'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fakturering &#228;mne'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arved teema'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Abrechnung Thema'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Faktureringsobjekt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Payment instruction code'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext044">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Projekti'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Projekt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Projekt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Projekt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Prosjekt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Project'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext045">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskuttajan'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fakturerarens'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arve v&#228;ljastajad'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Abteilung des '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Betalingsmottakers referanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Invoice Clerks'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext046">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimipiste'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Verksamhetsort'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tegevuskoht'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Gesch&#228;ftsstelle'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Sted'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Site'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext047">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Osasto'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Avdelning'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Osakond'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Abteilung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Avdeling'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Organization Department'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext048">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tilauspositio'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Orderposition'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tellimuse asukoht'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Auftragsposition'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Bestillingsposisjon'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Order Position'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext049">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Viite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Referens'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Viide'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Referenz/Bezug'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Referanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Reference'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext050">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Valmistajan tilaustiedot'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Tillverkare orderinformation'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tootjapoolne tellimuse info'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Auftragsdaten des Herstellers'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Produsentens ordreinformasjon'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Manufacturer Order Info'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext051">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Alkuper&#228;maa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Ursprungsland'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'P&#228;ritoluriik'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Ursprungsland'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Opprinnelsesland'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Country of Origin'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext052">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'V&#228;lilastauspaikka'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Mellanlastplats'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Mahalaadimiskoht'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Zwischenladeort'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Mellomlagret'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Place of Discharge'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext053">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'M&#228;&#228;r&#228;paikka'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Destinationsort'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Sihtkoht'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Bestimmungsort'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Destinasjonsby'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Destination'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext054">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Kotitullauslupa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Hemf&#246;rtullningstillst&#229;nd'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kodus tollimise luba'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Inland-Verzollungsgenehmigung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Fortollingstillatelse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Home Clearence Permission'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext055">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Sarjanumero'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Serienummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Seerianumber'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Seriennummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Serienummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Serial Number'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext056">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tuoteryhm&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Produktgrupp'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tootegrupp'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Produktgruppe'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Produktgruppe'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Product Group'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext057">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'EAN-koodi'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'EAN-kod'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'EAN-kood'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'EAN-Code'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'EAN-kode'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'EAN-code'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext058">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimittajan tuotenumero'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Leverant&#246;rens produktnummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Pakkuja tootenumber'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Produktnummer des Lieferanten'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Shippingkundens produktnummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Supplier Product Number'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext059">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Valmistajan tuotenumero'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Tillverkarens produktnummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tootja tootenumber'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Produktnummer des Herstellers'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Produsentens produktinformasjon'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Manufacturer Product Number'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext060">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Er&#228;numero'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Partinummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Partiinumber'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Posten-Nummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Batch nummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Batch Number'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext061">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Kuvaus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Beskrivning'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kirjeldus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Beschreibung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Beskrivelse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Description'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext062">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Hyvitett&#228;v&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Ska krediteras'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Krediitarve'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Gutschrift'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Skal krediteres'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'To be credited'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext063">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Keskihinta ALV 0'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Medelpris MOMS 0'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Keskmise hinna k/m 0'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Durchschnittspreis MwSt. 0'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Gjennomsnittspris ekskl. MVA'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Average Price VAT 0'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext064">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Keskihinta Sis. ALV'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Medelpris Inkl. moms'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Keskmine hind sisaldab k/m'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Durchschnittspreis Inklusive MwSt.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Gjennomsnittspris inkl. MVA'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Average Price Incl. VAT'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext065">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tarjouspyynn&#246;n viite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Referens f&#246;r anbudsbeg&#228;ran'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Pakkumisettepaneku viitenumber'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Bezugnahme auf Bitte um Angebot'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Referanse for anbud'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Request of Quotation Reference'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext066">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Viitteemme'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'V&#229;r referens'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Meie viitenumber'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Referenz/Unser Bezug'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'V&#229;r referanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Our Reference'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext067">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Sopimus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Avtal'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Leping'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Vertrag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kontrakt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Contract'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext068">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Sopimusjakso'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Avtalsperiod'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Lepinguperiood'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Vertragslaufzeit'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Avtaleperiode'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Contract Period'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext069">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Hinnasto'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Prislista'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Hinnakiri'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Preisliste'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Prisliste'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Price List'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext070">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Ostajan tilausnumero'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'K&#246;parens best&#228;llningsnummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Ostja tellimuse number'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Bestellnummer des K&#228;ufers'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kj&#248;perens bestillingsnummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Order No.'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext071">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Viite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Referens'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Viide'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Referenz/Bezug'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Referanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Reference'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext072">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tilauspositio'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Orderposition'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tellimuse asukoht'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Auftragsposition'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Bestillingsposisjon'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Order Position'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext073">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Myyj&#228;n tilausnumero'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'S&#228;ljarens best&#228;llningsnummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'M&#252;&#252;ja tellimisnumber'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Verk&#228;ufer Bestellnummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Selgerens bestillingsnummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Seller order No.'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext074">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Valmistajan tilaustiedot'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Tillverkare orderinformation'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tootjapoolne tellimuse info'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Auftragsdaten des Herstellers'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Produsentens ordreinformasjon'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Manufacturer Order Info'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext075">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Myyj&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'F&#246;rs&#228;ljare'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'M&#252;&#252;gileping'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Verk&#228;ufer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Selger'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Sales Contact'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext076">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Projekti'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Projekt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Projekt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Projekt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Prosjekt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Project'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext077">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Hinnasto'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Prislista'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Hinnakiri'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Preisliste'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Prisliste'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Price List'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext078">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimitusnumero'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Leveransnummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Veose number'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Liefernummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Leveransnummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Delivery Number'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext079">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimitusehdot'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Leveransvillkor'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tarnetingimused'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Lieferbedingungen'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Leveransevilk&#229;r'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Delivery Terms'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext080">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Vahvistettu'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Bekr&#228;ftad'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kinnitatud'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Best&#228;tigt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Bekreftet'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Confirmed'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext081">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'J&#228;lkitoimitettava'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Efterleverans'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tarnitakse hiljem'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Nachlieferung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Etterlevering'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Post Delivered'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext082">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Pyydetty hyvityst&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Kreditering beg&#228;rd'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Soovitakse h&#252;vitust'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Erbetene Verg&#252;tung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Krediteringsforesp&#248;rsel'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Credit Requested'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext083">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Palautettu'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Returnerad'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tagastatud'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Zur&#252;ckgegeben'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Returnert'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Returned'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext084">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Yksikk&#246;hinnan nettoarvo ALV 0'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Nettopris f&#246;r enhetspris MOMS 0'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'T&#252;ki hinna netov&#228;&#228;rtus K&#228;ibemaks 0'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Nettowert des Einheit-Preises MwSt. 0'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Nettoverdi per enhet ekskl. MVA'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Net Value of Price per Item VAT 0'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext085">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Yksikk&#246;hinnan nettoarvo Sis. ALV'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Nettopris f&#246;r enhetspris Inkl. moms'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'T&#252;ki hinna netov&#228;&#228;rtus Sisaldab k/m'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Nettowert des Einheit-Preises Inklusive MwSt.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Nettoverdi per enhet inkl. MVA'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Net Value of Price per Item Incl. VAT'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext086">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Nettoarvo ennen lisi&#228; ALV 0'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Nettov&#228;rde f&#246;re till&#228;gg MOMS 0'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Netov&#228;&#228;rtus enne lisamakse, k/m 0 %'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Nettowert ohne ausserordentliche Kosten MwSt. 0'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Nettoverdi f&#248;r tillegg eksl. MVA'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Row Total without Extra Costs VAT 0'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext087">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Nettoarvo ennen lisi&#228; Sis. ALV'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Nettov&#228;rde f&#246;re till&#228;gg Inkl. moms'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Netov&#228;&#228;rtus enne lisamakse, sisaldab k/m'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Nettowert ohne ausserordentliche Kosten Inklusive MwSt.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Nettoverdi f&#248;r tillegg inkl. MVA'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Row Total without Extra Costs Incl. VAT'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext088">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'CN nimikkeen paino'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'CN-vikt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kauba kaal'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'CN-Gewicht'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'CN vekt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'CN Weight'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext089">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Terminaaliosoite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Terminaladress'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Terminali aadress'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Anschrift des Terminals'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Terminaladresse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Terminal Address'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext090">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'V&#228;lilastauspaikka'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Mellanlastplats'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Mahalaadimiskoht'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Zwischenladeort'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Mellomlagret'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Place of Discharge'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext091">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'M&#228;&#228;r&#228;paikka'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Destinationsort'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Sihtkoht'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Bestimmungsort'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Destinasjonsby'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Destination'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext092">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Pakkausmerkint&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'F&#246;rpackningsp&#229;skrift'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Pakendi markeeringud'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Verpackungsvermerk'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Forpakningsmerking'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Packing Mark'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext093">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Kuvaus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Beskrivning'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kirjeldus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Beschreibung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Beskrivelse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Description'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext094">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Kollilkm'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Antal kollin'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Paki nr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Anz. d. Kolli'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Antall kolli'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Package No.'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext095">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Mitat'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'M&#229;tt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'M&#245;&#245;tmed'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Abmessungen'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'M&#229;ling'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Measurements'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext097">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tullinimike'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Tullposition'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tollinom.klat.nr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Zollposition'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Tollposisjon'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Tariff List Number'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext098">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Bruttopaino'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Bruttovikt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Brutokaal'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Bruttogew.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Bruttovekt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Gr. Weight'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext099">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Nettopaino'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Nettovikt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Netokaal'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Nettogewicht'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Nettovekt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Net Weight'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext100">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tilavuus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Volym'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Maht'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Volumen'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Volum'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Volume'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext101a">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Perustililuettelo'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Grundkontof&#246;rteckning'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kontode p&#245;hispetsifikatsioonid'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Konto-Basisverzeichnis'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Standard spesifikasjon'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Basic Specification of Accounts'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext101b">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Lyhyt tilinumero'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Kort kontonummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'L&#252;hike kontonumber'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Kurze Kontonummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kort kontonummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Short Account Id'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext101c">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Normaali tilinumero'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Norm. kontonr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Taval. kontonr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Norm. kontonr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Normalt kontonummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Normal Account Id'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext103">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Myyj&#228;n tili&#246;intitiedot'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'S&#228;ljarens konteringsinformation'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'M&#252;&#252;ja konto andmed'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Buchungsdaten des Verk&#228;ufers'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Selgers konteringsinformasjon'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Seller Account Information'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext103b">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tili&#246;intiviite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Konteringsreferens'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kande seletus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Kontierung Referenz'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Bokf&#248;ringsreferanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Accounting Reference'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext103c">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Raportointikoodi'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Rapportering kod'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Rapordi kood'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Rapportierungscode'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Rapporteringskode'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Reporting Code'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext104">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tarkastusmerkint&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Kontrollm&#228;rkning'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kontrolltempel'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Pr&#252;fvermerk'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kontrollmerking'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Control Stamp'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext105">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Hyv&#228;ksymismerkint&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Anteckning om godk&#228;nnande'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kinnitustempel'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Zulassungsvermerk'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Anmerkning'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Acceptance Stamp'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext106">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Saapumiser&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Inkommande parti'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Saabumise tunnus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Eingangsposten'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Innkommende parti'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Arrival Id'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext107">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Saapumisp&#228;iv&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Ankomstdag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Saabumise kuup&#228;ev'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Eingangsdatum'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Ankomstdag'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Arrival Date'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext108">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Saapunut'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Inkommet'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Saabunud'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Eingegangen'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Innkommet'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Arrived'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext109">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Loppuun toimitettu'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Leveransen slutf&#246;rd'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tarne t&#228;idetud'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Lieferung abgeschlossen'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Leveransedato'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Delivery Completed'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext110">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Vastaanoton tunnus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Symbol f&#246;r mottagande'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'K&#228;ttesaamise tunnus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Empfang-ID'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kvitteringsnummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Receipt Id'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext111">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'L&#228;hetyslista'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Best&#228;llningslista'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Veosaateleht'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Versandliste'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Ordreseddel'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Delivery Note'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext112">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimittajan tuotenimi'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Leverant&#246;rens produktnummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Pakkuja tootenumber'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Produktname des Lieferanten'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Shippingkundens produktnummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Supplier Product Number'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext113">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Korko'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'R&#228;nta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Intress'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Zinsen'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Rente'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Interest'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext114">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'K&#228;ytt&#246;vara'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Bruksgr&#228;ns'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'K&#228;ibevahendid'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Betriebslimit'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Begrensning'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Operation Limit'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext116">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Kollilkm'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Antal kollin'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Paki nr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Anz. d. Kolli'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Antall kolli'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Package No.'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext117">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Pakkausmerkint&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'F&#246;rpackningsp&#229;skrift'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Pakendi markeeringud'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Verpackungsvermerk'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Forpakningsmerking'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Packing Mark'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext118">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Kuvaus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Beskrivning'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kirjeldus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Beschreibung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Beskrivelse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Description'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext119">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tullinimike'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Tullposition'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tollinom.klat.nr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Zollposition'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Tollposisjon'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Tariff List Number'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext120">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Mitat'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'M&#229;tt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'M&#245;&#245;tmed'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Abmessungen'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'M&#229;ling'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Measurements'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext121">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Bruttopaino'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Bruttovikt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Brutokaal'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Bruttogew.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Bruttovekt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Gr. Weight'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext122">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Nettopaino'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Nettovikt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Netokaal'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Nettogewicht'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Nettovekt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Net Weight'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext123">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tilavuus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Volym'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Maht'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Volumen'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Volum'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Volume'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext124">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="' x '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="' x '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="' x '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="' x '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="' x '"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="' x '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext125">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskuttajan viite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fakturering referens'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arved viide'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Referenz/Bezug des Fakturist'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Mottakers referanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:text>Payee&#39;s Reference</xsl:text>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext126">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskun kohde'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fakturareferens'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arve sihtm&#228;rk'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Rechnungsziel'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Faktura m&#229;l'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:text>Invoiced item</xsl:text>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext127">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskun turvaluokka'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fakturans s&#228;kerhetsklass'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arve turvalisusklass'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Rechnungssicherheitsklasse'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Faktura sikkerhetsklasse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:text>Invoice security class</xsl:text>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext128">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tarjouksen viite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Offertreferens'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Pakkumuse viitenumber'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Bezugnahme auf das Angebot'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Tilbud referanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:text>Offer Reference</xsl:text>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext129">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Ostajan tilausnumero'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'K&#246;parens best&#228;llningsnummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Ostja tellimuse number'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Bestellnummer des K&#228;ufers'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kj&#248;perens bestillingsnummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:text>Order No.</xsl:text>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext130">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Maksutapa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fakturering referens'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arved viide'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Referenz/Bezug des Fakturist'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Mottakers referanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:text>Payee&#39;s Reference</xsl:text>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext131">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimialaohje'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Industridirektiv'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'T&#246;&#246;stus Guide'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Industry Guide'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Mottakers referanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:text>Industry guide</xsl:text>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext132">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'K&#228;sittelij&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'V&#229;r handl&#228;ggare'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Meie vastutaja'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Unser/e Sachbearbeiter/in'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'V&#229;r behandler'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Our Responsible'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext133">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskuttajan lis&#228;tiedot'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fakturerarens detaljer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Maksesaaja lisateave'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Informationen des Zahlungsempf&#228;ngers'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Betalingsmottakers detaljer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Payee details'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext134">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Krnro'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Handelsregister nummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Registrikood'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Handelsregisternummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Foretaksnummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Trade reg. no'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext135">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Alv-p&#228;iv&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Moms-dag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'KM-p&#228;evase'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'USt-Tag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'MVA-dagen'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'VAT-day'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="IHIIItext136">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Alv-p&#228;iv&#228;/koodiarvo'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Moms-dag/kodv&#228;rde'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'KM-p&#228;evase/koodiv&#228;&#228;rtuse'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'USt-Tag/codewert'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'MVA-dagen/kodeverdien'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'VAT-day/code value'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<!-- ================================================================================= -->
		<!-- LayoutSection VII: InvoiceHeaderIV (IHIV) global language variables ============= -->
		<!-- ================================================================================= -->
		<!-- LayoutSection VIII: Rows (R) global language variables ========================== -->
		<xsl:variable name="Rtext001">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimitusasiakas'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Leveranskund'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tarnieklient'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Lieferkunde'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Shippingkundens referanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Delivery Customer'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext002">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Selite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Beskrivning'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kirjeldus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Beschreibung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Beskrivelse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Description'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext003">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'M&#228;&#228;r&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'M&#228;ngd'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kogus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Anzahl'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Mengde'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Quantity'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext004">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Yks'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Enhet'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'&#220;hik'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Einheit'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Enhet'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Unit'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext005">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'A-hinta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Pris per enhet'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'&#220;hiku hind'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Preis pro Einheit'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Grunnlag'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Price per Unit'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext006">
			<xsl:choose>
				<xsl:when test="HEADER/INVOICE_TYPE/@EXTENSION != '00' or not(HEADER/INVOICE_TYPE/@EXTENSION)">
					<xsl:choose>
						<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
							<xsl:value-of select="'Sis. ALV'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
							<xsl:value-of select="'Inkl. moms'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
							<xsl:value-of select="'Kokku km-ga'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'DE'">
							<xsl:value-of select="'Inkl. MwSt.'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'NO'">
							<xsl:value-of select="'Inkl. MVA'"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="'Incl. VAT'"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="' '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext008">
			<xsl:choose>
				<xsl:when test="HEADER/INVOICE_TYPE/@EXTENSION != '00' or not(HEADER/INVOICE_TYPE/@EXTENSION)">
					<xsl:choose>
						<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
							<xsl:value-of select="'ALV 0'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
							<xsl:value-of select="'MOMS 0'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
							<xsl:value-of select="'K&#228;ibemaks 0'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'DE'">
							<xsl:value-of select="'MwSt. 0'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'NO'">
							<xsl:value-of select="'Bel&#216;P'"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="'VAT 0'"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="' '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext009">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskun summa valuutassa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Summa i valuta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arve kogusumma v&#228;lisvaluutas'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Rechnungsbetrag in der W&#228;hrung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Fakturabel&#248;p i valuta'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Invoice Sum Total in Foreign Currency'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext009a">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Rivin summa valuutassa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Summa i valuta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Summa valuutas'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'W&#228;hrungsbetrag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Sum i valuta'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Sum in Currency'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext009b">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Kurssi'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Valutakurs'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Valuutakurss'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Wechselkurs'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Valutakurs'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Exchange Rate'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext009c">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Rahoitusyhti&#246;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Finansbolag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Finantsasutus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Finanzgesellschaft'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Finansieringsselskap'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Finance Company'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext009d">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Rahoitussopimusnumero'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Finansieringsavtalsnummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Faktooringulepingu number'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Nummer des Finanzierungsvertrags'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Factoring avtale nummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Factoring Agreement Number'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext009e">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Siirtoluettelo'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Transferlista'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'&#220;lekannete nimekiri'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'&#220;bertragungsverzeichnis'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Overf&#248;ringsliste'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Transmission List'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext009f">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Siirtolauseke'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Transportklausul'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'&#220;lekande tingimus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'&#220;bertragungsklausel'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Overf&#248;ringsklasul'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Transmission Clause'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext010">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'ALV'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'MOMS'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'K&#228;ibemaks'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'MwSt.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'MVA'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'VAT'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext012">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Yhteens&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Totalt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kokku'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Insgesamt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Totalt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Total'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext013">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimitusp&#228;iv&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Leveransdag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tarneaeg'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Liefertermin'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Leveransedag'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Delivery Date'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext014">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Viite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Referens'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Viide'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Referenz/Bezug'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Referanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Reference'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext015">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'L&#228;hete'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Leveransnota'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Veosaateleht'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Lieferschein'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Ordreseddel'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Delivery Note'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext016">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tilausnro'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Best&#228;llningsnummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tellimuse number'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Auftragsnummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Bestillingsnummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Order Number'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext017">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tilausp&#228;iv&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Best&#228;llningsdag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tellimuse kuup&#228;ev'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Auftragsdatum'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Bestillingsdato'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Order Date'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext018">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tarjottu'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Offererats'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Pakutud'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Angeboten'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Tilbud'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Offered'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext019">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tilattu'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Best&#228;llt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tellitud'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Bestellt/In Auftrag gegeben'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Bestilt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Ordered'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext020">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimitettu'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Levererat'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tarnitud'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Geliefert'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Levert'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Delivered'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext021">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Alennus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Rabatt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Allahindlus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Rabatt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Rabatt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Discount '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext022">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'summasta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'p&#229; summan'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'summast'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'auf den Betrag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'av bel&#248;p'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'from amount'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext023">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'on'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'&#228;r'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'on'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'ist'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'er'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'is'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext024">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Vakuutus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'F&#246;rs&#228;kring'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kindlustus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Versicherung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Forsikring'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Insurance'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext025">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Valuuttatiedot'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Valutainformation'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Valuuta info'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'W&#228;hrungsinformation'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Valutainformasjon'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Currency Information'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext026">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Alkuper&#228;inen yksikk&#246;hinta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Ursprungligt enhetspris'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Algne &#252;hiku hind'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Originalpreis pro Einheit'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Original enhetspris'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Original Unit Price'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext027">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Sovittu kurssi'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Avtalad kurs'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kokkulepitud vahetuskurss'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Vereinbarter Wechselkurs'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Avtalt valutakurs'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Agreed Exchange Rate'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext028">
			<xsl:choose>
				<xsl:when test="HEADER/INVOICE_TYPE = '50' or HEADER/INVOICE_TYPE = '51'">
					<xsl:choose>
						<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
							<xsl:value-of select="'Tilausp&#228;iv&#228;n kurssi'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
							<xsl:value-of select="'Best&#228;llningsdagens kurs'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
							<xsl:value-of select="'Tellimuse valuutakurss'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'DE'">
							<xsl:value-of select="'Wechselkurs zum Auftragsdatum'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'NO'">
							<xsl:value-of select="'Bestillingsdatos kurs'"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="'Exchange Rate of Order Date'"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:choose>
						<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
							<xsl:value-of select="'Laskutusp&#228;iv&#228;n kurssi'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
							<xsl:value-of select="'Faktureringsdagens kurs'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
							<xsl:value-of select="'Arve esitamise kuup&#228;eva valuutakurss'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'DE'">
							<xsl:value-of select="'Wechselkurs zum Rechnungsdatum'"/>
						</xsl:when>
						<xsl:when test="$langcode = 'NO'">
							<xsl:value-of select="'Valutakurs faktureringsdato'"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="'Exchange Rate of Invoicing Date'"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext029">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Valuutta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Valuta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Valuuta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'W&#228;hrung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Valuta'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Currency'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext030">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Vaihteluv&#228;li'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Variationsintervall'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Vaheprotsent'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Variationsintervall'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Verifikasjonsintervall'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Interval Percent'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext031">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Sidonnaisuus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Bundenhet'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'S&#245;ltuvus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Gebunden an'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Avhengighet'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Dependency'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext032">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Alkuper&#228;maa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Ursprungsland'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'P&#228;ritoluriik'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Ursprungsland'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Opprinnelsesland'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Country of Origin'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext033">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'M&#228;&#228;r&#228;maa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Destinationsland'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Sihtriik'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Bestimmungsland'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Destinasjonsland'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Country of Destination'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext034">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Kuljetusmuoto'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Transportform'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Transpordi viis'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Transportart'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Transportform'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Mode of Transport'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext035">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Liiketoimen laji'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Transaktionsart'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Transpordi laad'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Art des Gesch&#228;ftsvorgangs'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Transaksjonsart'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Nature of Transaction'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext036">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'CN-nimikkeet'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'CN-beteckningar'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'CN artiklid'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'CN-Titel'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'CN titler'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'CN Items'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext037">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Ostajan tuotetunnus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Mottagarens produktkod'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Ostja tootekood'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Produktcode des K&#228;ufer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Mottakers produktkode'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Receiver Product code'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext038">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tili&#246;intiehdotus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Konteringsf&#246;rslag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Konto ettepanek'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Posting Vorschlag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Konteringsforslag'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Proposed account coding'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext039">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskentakohteet'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Kontoobjekt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arveldusobjektid'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Buchungsgegenst&#228;nde '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kontoobjekt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Accounting Objects'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext040">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Kassa-alennus '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Kassarabatt '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kassa allahindlus '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Barzahlungsnachlass '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kasserabatt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Cash Discount '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext041">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimitustapa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Leveranss&#228;tt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tarne viis'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Lieferart '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Leveransemetode'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Mode of Delivery'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext042">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Bruttosumma'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Bruttosumma'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'&#220;ldsumma'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Bruttobetrag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Brutto sum'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Gross Amount'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext043">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Jakso'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Period'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Periood'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Periode'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Periode'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Period'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext044">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Yhteyshenkil&#246;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Kontaktperson'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kontaktisik'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Kontaktperson'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kontaktperson'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Contact Person'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext045">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Y-tunnus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Org. nr'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Reg.nr'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'FK-Nr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Foretaksnummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Business ID'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext046">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Alv-tunnus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Moms nr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'KMKR nr'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'FK-Nr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Foretaksregisteret'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Vat no.'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext047">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Kulutus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'F&#246;rbrukning'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kulutatud'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Verbrauch'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Forbruk'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Consumed'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext048">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Aikaisempi lukema'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'F&#246;reg&#229;ende m&#228;tv&#228;rde'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Eelmine n&#228;it'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Vorherige Ablesung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Tidligere m&#229;linger'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Previous Reading Quantity'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext049">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Aikaisempi lukup&#228;iv&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'F&#246;reg&#229;ende m&#228;tdatum'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Eelmise n&#228;idu kuup&#228;ev'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Vorheriges Ablesedatum'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Dato for tidliger m&#229;ling'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Previous Reading Date'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext050">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Viimeisin lukema'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Senaste m&#228;tv&#228;rde'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Viimane n&#228;it'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Letzte Ablesung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Seneste dato'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Last Reading Quantity'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext051">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Viimeisin lukup&#228;iv&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Senaste m&#228;tdatum'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Viimase n&#228;idu kuup&#228;ev'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Letztes Ablesedatum'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Seneste dato'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Last Reading Date'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext052">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskutettu m&#228;&#228;r&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fakturerad m&#228;ngd'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arveldatav kogus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'In Rechnung gestellte Menge'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Fakturert mengde'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Invoiced Quantity'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext053">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Rahtikirja'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fraktsedel'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Saatekiri'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Frachtbrief'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Fraktseddel'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Consignment Note'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext054">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Rahtip&#228;iv&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fraktdatum'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Lasti kuup&#228;ev'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Frachttermin'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Frakt dato'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Freight Date'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext055">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tukkuhinta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Partipris'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Hulgihind'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Gro&#223;handelspreis'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Partipris'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Wholesale Price'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext056">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Puh'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Tfn'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tel'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Tel.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Tlf.'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Tel'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext057">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'E-mail'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'E-post'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'E-kiri'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'E-Mail'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'E-post'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'E-mail'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<!-- start: customized -->
		<xsl:variable name="Rtext058">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Verollinen osuus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Pris utan'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Hinnas ei sisaldu'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Preis'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Pris uten'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Price Excluding'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext059">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'ilman veroa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'utan moms'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Ilma k&#228;ibemaksuta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'ohne MwSt.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Uten MVA'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'without VAT'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext060">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Koodi'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Kod'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kood'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Code'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kode'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Code'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext061">
			<!-- Teksti -->
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Teksti'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Text'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Text'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Text'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Text'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Text'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext062">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimitettu'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Levererat'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tarnitud'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Geliefert'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Levert'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Delivered'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<!-- end: customized-->
		<xsl:variable name="Rtext063">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Ohjev&#228;hitt&#228;ishinta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Cirkapris'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Hinnakirja j&#228;rgne hind'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Listenpreis'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Listepris'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'List Price'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext064">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Alennus/yksikk&#246;hinta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Rabatt/pris per enhet'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Allahindlus &#252;hiku hinnast'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Rabatt auf Preis pro Einheit'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Rabatt/enhetspris'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Discount from Price per Unit'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext065">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Alennettu yksikk&#246;hinta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Rabatterat pris per enhet'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'&#220;hiku hind koos allahindlusega'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Rabattierter Preis pro Einheit'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Rabattert pris per enhet'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Price per Unit with Discount'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext066">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Sopimuksen viite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Avtalsreferens'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Lepingu viitenumber'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Bezugnahme auf den Vertrag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kontraktsreferanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Contract Reference'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext067">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tarjouksen viite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Offertreferens'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Pakkumuse viitenumber'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Bezugnahme auf das Angebot'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Tilbud referanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Offer Reference'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext068">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Infokulut'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Informationskostnader'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Infokulud'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Informationskosten'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Informasjonskostnader'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Info Costs'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext070">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Rivin summa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Summa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Summa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Summe/Betrag der Reihe'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Sum'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Sum'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext071">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'valuutassa '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'i valuta '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'valuutas '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'in der W&#228;hrung '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'i valuta'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'in Currency '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext072">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskun nro'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fakturanr'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Originaalarve number'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Rechnungsnummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Faktura nr'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Original Invoice Number'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext073">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Er&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Avbetalning'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Osamakse'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Zahlungsrate'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Avbetaling'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Instalment'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext074">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskun summa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Summa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kokku'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Rechnungsbetrag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Totalt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Total'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext075">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Er&#228;pvm'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'F&#246;rfallodag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Makset&#228;htaeg'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'F&#228;lligkeitstag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Forfallsdato'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Due Date'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext076">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Suor.pvm'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Betaln. dag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Makse kuup&#228;ev'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Zahlungstag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Betalingsdato'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Date of Paym.'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext077">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Korkopvt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'R&#228;ntedagar'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Intressi p&#228;evi'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Zinstage'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Rentedager'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Int. Days'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext078">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Korko'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'R&#228;nta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Intress'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Zinsen'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Rente'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Interest'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext079">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Viite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Referens'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Viide'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Referenz/Bezug'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Referanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Reference'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext080">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskupvm'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Datum'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kuup&#228;ev'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Datum'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Dato'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Date'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext081">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Avoinna'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'&#214;ppen'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tasumata'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Ausstehend'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'&#197;pen'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Unpaid'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext082">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Perint&#228;kerta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Indrivningsg.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Laekumisajad'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Inkassovorgang'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Inkasso nr'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Collect. Times'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext083">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Korko%'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'R&#228;ntefot'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Intress %'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Zinssatz %'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Rentesats'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Interest %'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext084">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Perint&#228;kulut'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Indrivningskostnader'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Sissen&#245;uded kokku'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Inkassospesen'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Inkasso total'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Collection Total'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext085">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Maksettu'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Betald'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tasutud'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Bezahlt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Betalt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Paid'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext086">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Alkup. maksuviite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Ursprungligt referensnummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Algne viitenumber'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Urspr&#252;ngliche Referenznummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Originalt referansenummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Original Reference Number'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext087">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Perint&#228;pvm'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Indrivningsdgr'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Laekumise kuup&#228;ev'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Inkassotag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Inkassodato'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Collect.Date'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext088">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Korkojakso'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'R&#228;nteperiod'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Intressi periood'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Zinsfrist'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Renteberegninsperiode'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Interest Period'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext091">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Yhdyshenkil&#246;n teht&#228;v&#228; '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Kontaktpersonens uppgift'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kontaktisiku ametikoht'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Aufgabe der Kontaktperson'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kontaktpersonens oppgave'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Contact Person&#8242;s Task'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext092">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Osasto'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Avdelning'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Osakond'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Abteilung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Avdeling'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Organization Department'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext093">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Toimipiste'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Verksamhetsort'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tegevuskoht'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Gesch&#228;ftsstelle'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Sted'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Site'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext094">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'E-mail'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'E-post'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'E-kiri'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'E-Mail'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'E-post'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'E-mail'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext156">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskun kohde'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fakturering referens'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arved viide'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Referenz/Bezug des Fakturist'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Mottakers referanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:text>Payee&#39;s Reference</xsl:text>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext157">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Ostajan viite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'K&#246;parens referens'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Ostja viide'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Referenz/Bezug des K&#228;ufers'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kundens referanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:text>Buyer&#8242;s Reference</xsl:text>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Rtext158">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Myyj&#228;n viite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fakturering referens'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arved viide'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Referenz/Bezug des Fakturist'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Mottakers referanse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:text>Payee&#39;s Reference</xsl:text>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
				<xsl:variable name="Rtext159">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Rahtikirjan tyyppi'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fraktsedel typ'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Saatekiri t&#252;&#252;p'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Frachtbrief Typ'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Fraktseddel typ'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Consignment Note Type'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<!-- ================================================================================= -->
		<!-- LayoutSection IX: PartPayment (PP) global language variables ================= -->
		<xsl:variable name="PPtext001">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskutusjakso'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Faktureringsperiod'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arveldusperiood'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Fakturierungsperiode'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Faktureringsperiode'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Invoicing Period'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PPtext002">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Viitenumero'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Referensnummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Viitenumber'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Referenznummer/Bezugsnummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'KID'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Reference Number'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PPtext003">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Er&#228;p&#228;iv&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'F&#246;rfallodag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Makset&#228;htaeg'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'F&#228;lligkeitstag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Forfallsdato'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Due Date'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PPtext004">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Osamaksuer&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Avbetalning'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Osamakse'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Teilzahlungsrate'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Avbetaling'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Instalment'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PPtext005">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Maksamatta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Obetalt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tasumata'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Zahlung ausstehend'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Ubetalt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Unpaid'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PPtext006">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Lyhennys'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Delbetalning'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Osaline makse'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Tilgung'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Delbetaling'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Part Payment'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PPtext007">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Korko'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'R&#228;nta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Intress'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Zinsen'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Rente'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Interest'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PPtext008">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'K&#228;sittelykulut'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Handl&#228;ggningskostnader'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'K&#228;itlemise tasu'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Bearbeitungsgeb&#252;hr'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Behandlingskostnader'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Processing cost'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="PPtext009">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Maksettava'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Totalt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kokku'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Insgesamt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Totalt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Total'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<!-- ================================================================================= -->
		<!-- LayoutSection X: AdditionalInfo (AI) global language variables ================== -->
		<xsl:variable name="AItext001">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Seuraava(t) er&#228;p&#228;iv&#228;(t)'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'F&#246;ljande f&#246;rfallodag(ar)'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'J&#228;rgmised makset&#228;htajad'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'N&#228;chste/s F&#228;lligkeitsdatum/en'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Neste forfallsdag(er)'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Next Due Dates'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext002">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tili&#246;intiehdotus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Konteringsf&#246;rslag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Konto ettepanek'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Posting Vorschlag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Konteringsforslag'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Proposed account coding'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext003">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Summa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Summa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Summa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Betrag'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Bel&#248;p'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Amount'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext004">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Laskentakohteet'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Kontoobjekt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arveldusobjektid'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Buchungsgegenst&#228;nde'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kontoobjekt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Accounting Objects'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext005">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Infokulut yhteens&#228;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Summa informationskostnader '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Infokulud kokku '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Informationskosten insgesamt '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Sum informasjonskostnader'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Total Info Costs '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext007">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Maksuohje: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Betalningsinstruktion: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Selgitus: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Zahlungshinweise: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Betalingsinstruksjon'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Payment Instructions: '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext008">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Lyhyt tilinumero'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Kort kontonummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'L&#252;hike kontonumber'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Kurze Kontonummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kort kontonummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Short Account Id'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext009">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Normaali tilinumero'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Norm. kontonr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Taval. kontonr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Norm. kontonr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Normalt kontonummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Normal Account Id'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext010">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tositelaji: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Typ av verifikat: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kviitungi liik: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Belegart: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Dokumenttype'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Receipt Type: '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext011">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tositenumero: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Verifikatnummer: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kinnitusnumber: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Belegnummer: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Verifikasjonsnummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Verification Number: '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext012">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Kirjanpidon tili: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Bokf&#246;ringskonto: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Raamatupidamise konto: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Buchhaltungskonto: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Bokf&#248;ringskonto'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Book-keeping Account: '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext013">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Avain: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Nyckel: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'V&#245;ti: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Schl&#252;ssel: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'N&#248;kkel'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Key: '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext014">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Maksup&#228;iv&#228;: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Betalningsdag: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Arveldusp&#228;ev: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'F&#228;lligkeitstag: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Betalingsdag'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Settlement Day: '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext015">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Summa: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Summa: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Summa: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Betrag: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Bel&#248;p: '"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Amount: '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext016">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Saajan pankkiyhteys: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Mottagarens bankf&#246;rbindelse: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Maksesaaja pangakonto andmed: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Bankverbindung des Zahlungsempf&#228;ngers: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Mottakers bankforbindelse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Payee Bank Account Details: '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext017">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Maksajan pankkiyhteys: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Betalarens bankf&#246;rbindelse: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Maksja pangakonto andmed: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Bankverbindung des Zahlenden: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Betalers bankforbindelse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Payer Bank Account Details: '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext018">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Tapahtumap&#228;iv&#228;: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'transaktionsdag: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tehingup&#228;ev: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Datum des Vorgangs: '"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Transaksjonsdag: '"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Transaction Day: '"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext019">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Maksutapahtuman tiedot'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Information om betalningstransaktion'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Maksetehingu andmed'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Daten zum Zahlungsvorgang'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Informasjon om betalingstransaksjon'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Payment Transaction Information'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext020">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Sis. ALV'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Inkl. moms'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Sisaldab k/m'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Inklusive MwSt.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Inkl. MVA'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Incl. VAT'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext021">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'ALV 0'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'MOMS 0'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'K&#228;ibemaks 0'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'MwSt. 0'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Bel&#216;P'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'VAT 0'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext031">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Maksukortti'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Betalkort'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Deebetkaardi'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Debitkarte'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Debetkort'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Card number'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext032">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'SEPA-suoraveloitus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'SEPA autogiro'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'SEPA otsekorraldus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'SEPA-Lastschrift'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'SEPA direkte belastning'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'SEPA direct debit'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext033">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Suoraveloitusvaltakirja'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Direktdebiteringsfullmakt'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Otsekorraldus volituse'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Lastschriftmandat'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'AvtaleGiro-fullmakt'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Direct debit mandate'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext034">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Suoraveloittaja'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Direktdebiterare'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'V&#245;lausaldaja'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Gl&#228;ubiger'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kreditor'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Creditor'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext035">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Veloitettava tili'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Debiteringskonto'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Konto debiteeritakse'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Konto wird belastet'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Konto som skal debiteres'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Debited account'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext036">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Alv yhteens&#228; kirjanpitovaluutassa'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'MOMS totalt i bokf&#246;ringsvaluta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'K&#228;ibemaks kokku raamatupidamise valuuta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'MwSt. insgesamt Rechnungs'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'MVA totalt i regnskapsvaluta'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'VAT Total in accounting amount'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="AItext037">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Edelliset maksuer&#228;t'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Tidigare avbetalningar'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Varasemad osamaksetena'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Vergangene Raten'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Tidligere avdrag'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Previous payments'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
				<xsl:variable name="AItext038">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Viiv&#228;stysmaksu'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Dr&#246;jsm&#229;lsr&#228;nta'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Viivist'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Verzugszinsen'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Renter ved forsinket betaling'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Interest on late payment'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<!-- ================================================================================= -->
		<!-- LayoutSection XI: Footer (F) global language variables =========================== -->
		<xsl:variable name="Ftext001">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Postiosoite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Postadress'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Postiaadress'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Postanschrift'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Postadresse'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Postal Address'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Ftext002">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Pankit'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Bank'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Pangad'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Banken'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Bank'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Banks'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Ftext003">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Yhteyshenkil&#246;'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Kontaktperson'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Kontaktisik'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Kontaktperson/Ansprechpartner'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Kontaktperson'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Contact Person'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Ftext004">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Puh'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Tfn'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Tel'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Tel.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Tlf.'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Tel'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Ftext005">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Fax'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Fax'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Faks'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Telefax'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Fax'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Fax'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Ftext006">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'E-mail'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'E-post'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'E-kiri'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'E-Mail'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'E-post'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'E-mail'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Ftext007">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Kotipaikka'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Hemort'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Alaline asukoht'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Fimensitz'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Hjemby'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Domicile'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Ftext008">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Y-tunnus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Org. nr'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Reg.nr'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'FK-Nr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Foretaksnummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Business ID'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Ftext009">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Enn.p.rek.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'F&#246;rskottsuppb&#246;rdsreg.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Ettemakse reg.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Vorausbesteuerungsregister'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Forskuddsbetaling'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Prepayment Reg.'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Ftext010">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'ALV rek.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'MOMS reg.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'K&#228;ibemaksu nr'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'MwSt.-Reg.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'MVA reg.'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'VAT reg.'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Ftext011">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'BIC'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'BIC'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'BIC'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'BIC'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'BIC'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'BIC'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Ftext012">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'IBAN'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'IBAN'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'IBAN'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'IBAN'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'IBAN'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'IBAN'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Ftext013">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Verkkolaskuosoite'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'eFakturaAdress'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'V&#245;rguteenuse tunnus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'eRechnungsadress'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Adresse e-faktura'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'eInvoiceAddress'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Ftext014">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Alv-tunnus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Moms nr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'KMKR nr'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'FK-Nr.'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Foretaksregisteret'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Vat no.'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Ftext015">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'Krnro'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Handelsregister nummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Registrikood'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Handelsregisternummer'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Foretaksnummer'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Trade reg. no'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="Ftext016">
			<xsl:choose>
				<xsl:when test="$langcode = 'FI' or $langcode = '' or not($langcode)">
					<xsl:value-of select="'V&#228;litt&#228;j&#228;tunnus'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'SE' or $langcode = 'SV'">
					<xsl:value-of select="'Transmitter'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'EE' or $langcode = 'ET'">
					<xsl:value-of select="'Vahendaja'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'DE'">
					<xsl:value-of select="'Broker'"/>
				</xsl:when>
				<xsl:when test="$langcode = 'NO'">
					<xsl:value-of select="'Medlems-ID'"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="'Intermediator'"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<!-- ================================================================================= -->
		<!-- start:GLOBAL TABLE for the whole invoice or invoices if several exists ========== -->
		<table xsl:use-attribute-sets="TableNoBorder">
			<!-- start:LayoutSectionI: LayoutHeader ============================================== -->
			<!-- This section is outputted as a header on every printed pages ==================== -->
			<thead style="display: table-header-group">
				<xsl:call-template name="LayoutHeader_25common">
					<xsl:with-param name="LHtextp001" select="$LHtext001"/>
					<xsl:with-param name="LHtextp002" select="$LHtext002"/>
					<xsl:with-param name="LHtextp003" select="$LHtext003"/>
					<xsl:with-param name="LHtextp004" select="$LHtext004"/>
					<xsl:with-param name="LHtextp005" select="$LHtext005"/>
					<xsl:with-param name="LHtextp006" select="$LHtext006"/>
					<xsl:with-param name="LHtextp007" select="$LHtext007"/>
					<xsl:with-param name="LHtextp008" select="$LHtext008"/>
					<xsl:with-param name="LHtextp009" select="$LHtext009"/>
					<xsl:with-param name="LHtextp010" select="$LHtext010"/>
					<xsl:with-param name="LHtextp011" select="$LHtext011"/>
					<xsl:with-param name="LHtextp012" select="$LHtext012"/>
					<xsl:with-param name="LHtextp013" select="$LHtext013"/>
					<xsl:with-param name="LHtextp014" select="$LHtext014"/>
					<xsl:with-param name="LHtextp015" select="$LHtext015"/>
					<xsl:with-param name="LHtextp016" select="$LHtext016"/>
					<xsl:with-param name="LHtextp017" select="$LHtext017"/>
				</xsl:call-template>
			</thead>
			<!-- start:LayoutSection XI: Footer ================================================= -->
			<!-- This section is outputted as a footer on every printed pages ==================== -->
			<tfoot style="display: table-footer-group">
				<!-- A and B-->
				<xsl:call-template name="HorizontalRule_2columns"/>
				<xsl:call-template name="footer">
					<xsl:with-param name="Ftextp001" select="$Ftext001"/>
					<xsl:with-param name="Ftextp002" select="$Ftext002"/>
					<xsl:with-param name="Ftextp003" select="$Ftext003"/>
					<xsl:with-param name="Ftextp004" select="$Ftext004"/>
					<xsl:with-param name="Ftextp005" select="$Ftext005"/>
					<xsl:with-param name="Ftextp006" select="$Ftext006"/>
					<xsl:with-param name="Ftextp007" select="$Ftext007"/>
					<xsl:with-param name="Ftextp008" select="$Ftext008"/>
					<xsl:with-param name="Ftextp009" select="$Ftext009"/>
					<xsl:with-param name="Ftextp010" select="$Ftext010"/>
					<xsl:with-param name="Ftextp011" select="$Ftext011"/>
					<xsl:with-param name="Ftextp012" select="$Ftext012"/>
					<xsl:with-param name="Ftextp013" select="$Ftext013"/>
					<xsl:with-param name="Ftextp014" select="$Ftext014"/>
					<xsl:with-param name="Ftextp015" select="$Ftext015"/>
					<xsl:with-param name="Ftextp016" select="$Ftext016"/>
				</xsl:call-template>
			</tfoot>
			<!-- This section before the closing tbody tag is outputted as a central part ======== -->
			<!-- on every printed pages between header and footer ================================ -->
			<tbody>
				<!-- start:LayoutSectionII: InvoiceHeaderI =========================================== -->
				<xsl:call-template name="InvoiceHeaderI_25common">
					<xsl:with-param name="IHItextp001" select="$IHItext001"/>
					<xsl:with-param name="IHItextp002" select="$IHItext002"/>
					<xsl:with-param name="IHItextp003" select="$IHItext003"/>
					<xsl:with-param name="IHItextp004" select="$IHItext004"/>
				</xsl:call-template>
				<xsl:call-template name="HorizontalRule_2columns"/>
				<!-- start:LayoutSectionIII: InvoiceHeaderII ========================================= -->
				<xsl:call-template name="InvoiceHeaderII_25common">
					<xsl:with-param name="IHIItextp001" select="$IHIItext001"/>
					<xsl:with-param name="IHIItextp002" select="$IHIItext002"/>
					<xsl:with-param name="IHIItextp003" select="$IHIItext003"/>
					<xsl:with-param name="IHIItextp004" select="$IHIItext004"/>
					<xsl:with-param name="IHIItextp005" select="$IHIItext005"/>
					<xsl:with-param name="IHIItextp006" select="$IHIItext006"/>
					<xsl:with-param name="IHIItextp007" select="$IHIItext007"/>
					<xsl:with-param name="IHIItextp007b" select="$IHIItext007b"/>
					<xsl:with-param name="IHIItextp007c" select="$IHIItext007c"/>
					<xsl:with-param name="IHIItextp008" select="$IHIItext008"/>
					<xsl:with-param name="IHIItextp009" select="$IHIItext009"/>
					<xsl:with-param name="IHIItextp010" select="$IHIItext010"/>
					<xsl:with-param name="IHIIItextp028" select="$IHIIItext028"/>
					<xsl:with-param name="IHIItextp011" select="$IHIItext011"/>
					<xsl:with-param name="IHIItextp012" select="$IHIItext012"/>
				</xsl:call-template>
				<xsl:call-template name="HorizontalRule_2columns"/>
				<!-- start:LayoutSectionIV: PaymentAndSummary ======================================= -->
				<xsl:call-template name="PaymentAndSummary_25common">
					<xsl:with-param name="PAStextp001" select="$PAStext001"/>
					<xsl:with-param name="PAStextp002" select="$PAStext002"/>
					<xsl:with-param name="PAStextp003" select="$PAStext003"/>
					<xsl:with-param name="PAStextp004" select="$PAStext004"/>
					<xsl:with-param name="PAStextp005" select="$PAStext005"/>
					<xsl:with-param name="PAStextp006" select="$PAStext006"/>
					<xsl:with-param name="PAStextp007" select="$PAStext007"/>
					<xsl:with-param name="PAStextp008" select="$PAStext008"/>
					<xsl:with-param name="PAStextp009" select="$PAStext009"/>
					<xsl:with-param name="PAStextp010" select="$PAStext010"/>
					<xsl:with-param name="PAStextp011" select="$PAStext011"/>
					<xsl:with-param name="PAStextp012" select="$PAStext012"/>
					<xsl:with-param name="PAStextp013" select="$PAStext013"/>
					<xsl:with-param name="PAStextp014" select="$PAStext014"/>
					<xsl:with-param name="PAStextp015" select="$PAStext015"/>
					<xsl:with-param name="PAStextp016" select="$PAStext016"/>
					<xsl:with-param name="PAStextp017" select="$PAStext017"/>
					<xsl:with-param name="PAStextp018" select="$PAStext018"/>
					<xsl:with-param name="PAStextp019" select="$PAStext019"/>
					<xsl:with-param name="PAStextp020" select="$PAStext020"/>
					<xsl:with-param name="PAStextp021" select="$PAStext021"/>
					<xsl:with-param name="PAStextp022" select="$PAStext022"/>
					<xsl:with-param name="PAStextp023" select="$PAStext023"/>
					<xsl:with-param name="PAStextp024" select="$PAStext024"/>
					<xsl:with-param name="PAStextp025" select="$PAStext025"/>
					<xsl:with-param name="PAStextp026" select="$PAStext026"/>
					<xsl:with-param name="PAStextp027" select="$PAStext027"/>
					<xsl:with-param name="PAStextp028" select="$PAStext028"/>
					<xsl:with-param name="PAStextp029" select="$PAStext029"/>
					<xsl:with-param name="PAStextp030" select="$PAStext030"/>
				</xsl:call-template>
				<!-- start:LayoutSectionV: VAT ==================================================== -->
				<xsl:if test="SUMMARY/VAT_SUMMARY !=''">
					<xsl:call-template name="VAT_25common">
						<xsl:with-param name="VATtextp001" select="$VATtext001"/>
						<xsl:with-param name="VATtextp002" select="$VATtext002"/>
						<xsl:with-param name="VATtextp003" select="$VATtext003"/>
						<xsl:with-param name="VATtextp004" select="$VATtext004"/>
						<xsl:with-param name="VATtextp005" select="$VATtext005"/>
					</xsl:call-template>
				</xsl:if>
				<xsl:call-template name="HorizontalRule_2columns"/>
				<!-- start:LayoutSection: CashDiscount ============================================= -->
				<xsl:if test="HEADER/CASH_DISCOUNT/DATE/DAY !=''
             or HEADER/CASH_DISCOUNT/PER_CENT !=''
             or HEADER/CASH_DISCOUNT/CASH_DISCOUNT_AMOUNT/AMOUNT !=''
             or HEADER/CASH_DISCOUNT/VAT/RATE !=''
             or HEADER/CASH_DISCOUNT/VAT/VAT_AMOUNT/AMOUNT !=''
             or HEADER/CASH_DISCOUNT/VAT/FREE_TEXT !=''
             or HEADER/CASH_DISCOUNT/VAT_TOTAL/AMOUNT !=''
             or HEADER/CASH_DISCOUNT/INVOICE_TOTAL_WITH_CASH_DISCOUNT/AMOUNT !=''
             or HEADER/CASH_DISCOUNT/FREE_TEXT !=''">
					<!-- empty row -->
					<tr valign="top">
						<!-- A and B -->
						<td colspan="2">
							<xsl:text> </xsl:text>
						</td>
					</tr>
					<tr valign="top">
						<!-- A and B -->
						<td colspan="2">
							<table xsl:use-attribute-sets="TableNoBorder">
								<xsl:apply-templates select="HEADER/CASH_DISCOUNT">
									<xsl:with-param name="CDtextp001" select="$CDtext001"/>
								</xsl:apply-templates>
							</table>
						</td>
					</tr>
					<xsl:call-template name="HorizontalRule_2columns"/>
				</xsl:if>
				<!-- start:LayoutSectionVI: InvoiceHeaderIII ========================================= -->
				<xsl:call-template name="InvoiceHeaderIII_25common">
					<xsl:with-param name="IHIIItextp001" select="$IHIIItext001"/>
					<xsl:with-param name="IHIIItextp002" select="$IHIIItext002"/>
					<xsl:with-param name="IHIIItextp003" select="$IHIIItext003"/>
					<xsl:with-param name="IHIIItextp004" select="$IHIIItext004"/>
					<xsl:with-param name="IHIIItextp005" select="$IHIIItext005"/>
					<xsl:with-param name="IHIIItextp006" select="$IHIIItext006"/>
					<xsl:with-param name="IHIIItextp007" select="$IHIIItext007"/>
					<xsl:with-param name="IHIIItextp008" select="$IHIIItext008"/>
					<xsl:with-param name="IHIIItextp009" select="$IHIIItext009"/>
					<xsl:with-param name="IHIIItextp010" select="$IHIIItext010"/>
					<xsl:with-param name="IHIIItextp011" select="$IHIIItext011"/>
					<xsl:with-param name="IHIIItextp012" select="$IHIIItext012"/>
					<xsl:with-param name="IHIIItextp013" select="$IHIIItext013"/>
					<xsl:with-param name="IHIIItextp014" select="$IHIIItext014"/>
					<xsl:with-param name="IHIIItextp015" select="$IHIIItext015"/>
					<xsl:with-param name="IHIIItextp016" select="$IHIIItext016"/>
					<xsl:with-param name="IHIIItextp017" select="$IHIIItext017"/>
					<xsl:with-param name="IHIIItextp018" select="$IHIIItext018"/>
					<xsl:with-param name="IHIIItextp019" select="$IHIIItext019"/>
					<xsl:with-param name="IHIIItextp020" select="$IHIIItext020"/>
					<xsl:with-param name="IHIIItextp021" select="$IHIIItext021"/>
					<xsl:with-param name="IHIIItextp022" select="$IHIIItext022"/>
					<xsl:with-param name="IHIIItextp023" select="$IHIIItext023"/>
					<xsl:with-param name="IHIIItextp024" select="$IHIIItext024"/>
					<xsl:with-param name="IHIIItextp025" select="$IHIIItext025"/>
					<xsl:with-param name="IHIIItextp026" select="$IHIIItext026"/>
					<xsl:with-param name="IHIIItextp027" select="$IHIIItext027"/>
					<xsl:with-param name="IHIIItextp028" select="$IHIIItext028"/>
					<xsl:with-param name="IHIIItextp029" select="$IHIIItext029"/>
					<xsl:with-param name="IHIIItextp030" select="$IHIIItext030"/>
					<xsl:with-param name="IHIIItextp031" select="$IHIIItext031"/>
					<xsl:with-param name="IHIIItextp032" select="$IHIIItext032"/>
					<xsl:with-param name="IHIIItextp033" select="$IHIIItext033"/>
					<xsl:with-param name="IHIIItextp034" select="$IHIIItext034"/>
					<xsl:with-param name="IHIIItextp035" select="$IHIIItext035"/>
					<xsl:with-param name="IHIIItextp036" select="$IHIIItext036"/>
					<xsl:with-param name="IHIIItextp037" select="$IHIIItext037"/>
					<xsl:with-param name="IHIIItextp038" select="$IHIIItext038"/>
					<xsl:with-param name="IHIIItextp039" select="$IHIIItext039"/>
					<xsl:with-param name="IHIIItextp040" select="$IHIIItext040"/>
					<xsl:with-param name="IHIIItextp041" select="$IHIIItext041"/>
					<xsl:with-param name="IHIIItextp042" select="$IHIIItext042"/>
					<xsl:with-param name="IHIIItextp043" select="$IHIIItext043"/>
					<xsl:with-param name="IHIIItextp044" select="$IHIIItext044"/>
					<xsl:with-param name="IHIIItextp045" select="$IHIIItext045"/>
					<xsl:with-param name="IHIIItextp046" select="$IHIIItext046"/>
					<xsl:with-param name="IHIIItextp047" select="$IHIIItext047"/>
					<xsl:with-param name="IHIIItextp048" select="$IHIIItext048"/>
					<xsl:with-param name="IHIIItextp049" select="$IHIIItext049"/>
					<xsl:with-param name="IHIIItextp050" select="$IHIIItext050"/>
					<xsl:with-param name="IHIIItextp051" select="$IHIIItext051"/>
					<xsl:with-param name="IHIIItextp052" select="$IHIIItext052"/>
					<xsl:with-param name="IHIIItextp053" select="$IHIIItext053"/>
					<xsl:with-param name="IHIIItextp054" select="$IHIIItext054"/>
					<xsl:with-param name="IHIIItextp055" select="$IHIIItext113"/>
					<xsl:with-param name="IHIIItextp056" select="$IHIIItext114"/>
					<xsl:with-param name="IHIIItextp058" select="$IHIIItext116"/>
					<xsl:with-param name="IHIIItextp059" select="$IHIIItext117"/>
					<xsl:with-param name="IHIIItextp060" select="$IHIIItext118"/>
					<xsl:with-param name="IHIIItextp061" select="$IHIIItext119"/>
					<xsl:with-param name="IHIIItextp062" select="$IHIIItext120"/>
					<xsl:with-param name="IHIIItextp063" select="$IHIIItext121"/>
					<xsl:with-param name="IHIIItextp064" select="$IHIIItext122"/>
					<xsl:with-param name="IHIIItextp065" select="$IHIIItext123"/>
					<xsl:with-param name="IHIIItextp066" select="$IHIIItext048"/>
					<xsl:with-param name="IHItextp002" select="$IHItext002"/>
					<xsl:with-param name="Rtextp053" select="$Rtext053"/>
					<xsl:with-param name="IHIIItextp089" select="$IHIIItext089"/>
					<xsl:with-param name="IHIIItextp125" select="$IHIIItext125"/>
					<xsl:with-param name="IHIIItextp126" select="$IHIIItext126"/>
					<xsl:with-param name="IHIIItextp127" select="$IHIIItext127"/>
					<xsl:with-param name="IHIIItextp128" select="$IHIIItext128"/>
					<xsl:with-param name="IHIIItextp129" select="$IHIIItext129"/>
					<xsl:with-param name="IHIIItextp131" select="$IHIIItext131"/>
					<xsl:with-param name="IHIIItextp132" select="$IHIIItext132"/>
					<xsl:with-param name="IHIIItextp133" select="$IHIIItext133"/>
					<xsl:with-param name="IHIIItextp134" select="$IHIIItext134"/>
					<xsl:with-param name="IHIIItextp135" select="$IHIIItext135"/>
					<xsl:with-param name="IHIIItextp136" select="$IHIIItext136"/>
				</xsl:call-template>
				<!-- start:LayoutSectionVII: InvoiceHeaderIV (includes HEADER_INFO) and PACKING_MARKS ================== 
     outputted only if content for this section exsists) ============================= -->
				<xsl:if test="HEADER/HEADER_INFO != '' or HEADER/VAT_TEXT != '' or HEADER/FREE_TEXT != '' or HEADER/LINKS/LINK !='' or HEADER/PACKING_MARKS !='' or HEADER/TOTAL_PACKING_MARKS !=''">
					<xsl:call-template name="InvoiceHeaderIV_25common">
						<xsl:with-param name="IHIIItextp012" select="$IHIIItext012"/>
						<xsl:with-param name="IHIIItextp058" select="$IHIIItext116"/>
						<xsl:with-param name="IHIIItextp059" select="$IHIIItext117"/>
						<xsl:with-param name="IHIIItextp060" select="$IHIIItext118"/>
						<xsl:with-param name="IHIIItextp061" select="$IHIIItext119"/>
						<xsl:with-param name="IHIIItextp062" select="$IHIIItext120"/>
						<xsl:with-param name="IHIIItextp063" select="$IHIIItext121"/>
						<xsl:with-param name="IHIIItextp064" select="$IHIIItext122"/>
						<xsl:with-param name="IHIIItextp065" select="$IHIIItext123"/>
					</xsl:call-template>
				</xsl:if>
				<!-- start:LayoutSection VIII: Rows =================================================== -->
				<xsl:call-template name="HorizontalRule_2columns"/>
				<tr valign="top">
					<!-- A and B-->
					<td colspan="2">
						<!-- create a destination anchor where to point on specification rows -->
						<a name="top"/>
						<table xsl:use-attribute-sets="TableNoBorder" border="0">
							<!-- find out row currency code -->
							<xsl:variable name="rowcurrency" select="ROWS/ROW/CURRENCY/CODE"/>
							<!-- create first heading row -->
							<xsl:call-template name="rowheading">
								<xsl:with-param name="Rtextp002" select="$Rtext002"/>
								<xsl:with-param name="Rtextp003" select="$Rtext003"/>
								<xsl:with-param name="Rtextp004" select="$Rtext004"/>
								<xsl:with-param name="Rtextp005" select="$Rtext005"/>
								<xsl:with-param name="Rtextp006" select="$Rtext006"/>
								<xsl:with-param name="Rtextp008" select="$Rtext008"/>
								<xsl:with-param name="Rtextp010" select="$Rtext010"/>
								<xsl:with-param name="Rtextp012" select="$Rtext012"/>
								<xsl:with-param name="Rtextp021" select="$Rtext021"/>
								<xsl:with-param name="rcurrency" select="$rowcurrency"/>
								<!-- start: customized  -->
								<xsl:with-param name="Rtextp058" select="$Rtext058"/>
								<xsl:with-param name="Rtextp059" select="$Rtext059"/>
								<xsl:with-param name="Rtextp060" select="$Rtext060"/>
								<xsl:with-param name="Rtextp061" select="$Rtext061"/>
								<xsl:with-param name="Rtextp062" select="$Rtext062"/>
								<!-- end: customized  -->
								<xsl:with-param name="Rtextp072" select="$Rtext072"/>
								<xsl:with-param name="Rtextp073" select="$Rtext073"/>
								<xsl:with-param name="Rtextp074" select="$Rtext074"/>
								<xsl:with-param name="Rtextp075" select="$Rtext075"/>
								<xsl:with-param name="Rtextp076" select="$Rtext076"/>
								<xsl:with-param name="Rtextp077" select="$Rtext077"/>
								<xsl:with-param name="Rtextp078" select="$Rtext078"/>
								<xsl:with-param name="Rtextp079" select="$Rtext079"/>
								<xsl:with-param name="Rtextp080" select="$Rtext080"/>
								<xsl:with-param name="Rtextp081" select="$Rtext081"/>
								<xsl:with-param name="Rtextp082" select="$Rtext082"/>
								<xsl:with-param name="Rtextp083" select="$Rtext083"/>
								<xsl:with-param name="Rtextp084" select="$Rtext084"/>
								<xsl:with-param name="Rtextp085" select="$Rtext085"/>
								<xsl:with-param name="Rtextp086" select="$Rtext086"/>
								<xsl:with-param name="Rtextp087" select="$Rtext087"/>
								<xsl:with-param name="Rtextp088" select="$Rtext088"/>
								<xsl:with-param name="invoicetype" select="HEADER/INVOICE_TYPE"/>
							</xsl:call-template>
							<!-- create row index if invoice type is 02 or 04 -->
							<!-- loop rows typed with code MAIN -->
							<xsl:if test="HEADER/INVOICE_TYPE = '02' or HEADER/INVOICE_TYPE = '04'">
								<xsl:apply-templates select="ROWS/ROW[@ROW_TYPE = 'MAIN']" mode="rowindex"/>
							</xsl:if>
							<xsl:if test="HEADER/INVOICE_TYPE = '06' or HEADER/INVOICE_TYPE = '07'">
								<xsl:apply-templates select="ROWS/ROW" mode="rowinterest">
									<xsl:with-param name="Rtextp038" select="$Rtext038"/>
									<xsl:with-param name="Rtextp039" select="$Rtext039"/>
									<xsl:with-param name="Rtextp079" select="$Rtext079"/>
									<xsl:with-param name="Rtextp084" select="$Rtext084"/>
									<xsl:with-param name="Rtextp086" select="$Rtext086"/>
									<xsl:with-param name="Rtextp088" select="$Rtext088"/>
									<xsl:with-param name="AItextp008" select="$AItext008"/>
									<xsl:with-param name="AItextp009" select="$AItext009"/>
									<xsl:with-param name="IHIIItextp103b" select="$IHIIItext103b"/>
									<xsl:with-param name="IHIIItextp103c" select="$IHIIItext103c"/>
								</xsl:apply-templates>
							</xsl:if>
							<xsl:if test="HEADER/INVOICE_TYPE = '09'">
								<xsl:apply-templates select="ROWS/ROW" mode="rowrequest">
									<xsl:with-param name="Rtextp038" select="$Rtext038"/>
									<xsl:with-param name="Rtextp039" select="$Rtext039"/>
									<xsl:with-param name="Rtextp079" select="$Rtext079"/>
									<xsl:with-param name="Rtextp084" select="$Rtext084"/>
									<xsl:with-param name="Rtextp086" select="$Rtext086"/>
									<xsl:with-param name="Rtextp088" select="$Rtext088"/>
									<xsl:with-param name="AItextp008" select="$AItext008"/>
									<xsl:with-param name="AItextp009" select="$AItext009"/>
									<xsl:with-param name="IHIIItextp103b" select="$IHIIItext103b"/>
									<xsl:with-param name="IHIIItextp103c" select="$IHIIItext103c"/>
								</xsl:apply-templates>
							</xsl:if>
							<xsl:if test="(HEADER/INVOICE_TYPE != '06' and HEADER/INVOICE_TYPE != '07' and HEADER/INVOICE_TYPE != '09') or (HEADER/INVOICE_TYPE = '06' and not(ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS)) or (HEADER/INVOICE_TYPE = '07' and not(ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS)) or (HEADER/INVOICE_TYPE != '09' and not(ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS)) or not(HEADER/INVOICE_TYPE)">
								<xsl:apply-templates select="ROWS/ROW">
									<xsl:with-param name="Rtextp001" select="$Rtext001"/>
									<xsl:with-param name="Rtextp006" select="$Rtext006"/>
									<xsl:with-param name="Rtextp008" select="$Rtext008"/>
									<xsl:with-param name="Rtextp013" select="$Rtext013"/>
									<xsl:with-param name="Rtextp014" select="$Rtext014"/>
									<xsl:with-param name="Rtextp015" select="$Rtext015"/>
									<xsl:with-param name="Rtextp016" select="$Rtext016"/>
									<xsl:with-param name="Rtextp017" select="$Rtext017"/>
									<xsl:with-param name="Rtextp018" select="$Rtext018"/>
									<xsl:with-param name="Rtextp019" select="$Rtext019"/>
									<xsl:with-param name="Rtextp020" select="$Rtext020"/>
									<xsl:with-param name="Rtextp021" select="$Rtext021"/>
									<xsl:with-param name="Rtextp022" select="$Rtext022"/>
									<xsl:with-param name="Rtextp023" select="$Rtext023"/>
									<xsl:with-param name="Rtextp024" select="$Rtext024"/>
									<xsl:with-param name="Rtextp025" select="$Rtext025"/>
									<xsl:with-param name="Rtextp026" select="$Rtext026"/>
									<xsl:with-param name="Rtextp027" select="$Rtext027"/>
									<xsl:with-param name="Rtextp028" select="$Rtext028"/>
									<xsl:with-param name="Rtextp029" select="$Rtext029"/>
									<xsl:with-param name="Rtextp030" select="$Rtext030"/>
									<xsl:with-param name="Rtextp031" select="$Rtext031"/>
									<xsl:with-param name="Rtextp032" select="$Rtext032"/>
									<xsl:with-param name="Rtextp033" select="$Rtext033"/>
									<xsl:with-param name="Rtextp034" select="$Rtext034"/>
									<xsl:with-param name="Rtextp035" select="$Rtext035"/>
									<xsl:with-param name="Rtextp036" select="$Rtext036"/>
									<xsl:with-param name="Rtextp037" select="$Rtext037"/>
									<xsl:with-param name="Rtextp038" select="$Rtext038"/>
									<xsl:with-param name="Rtextp039" select="$Rtext039"/>
									<xsl:with-param name="Rtextp040" select="$Rtext040"/>
									<xsl:with-param name="Rtextp041" select="$Rtext041"/>
									<xsl:with-param name="Rtextp042" select="$Rtext042"/>
									<xsl:with-param name="Rtextp043" select="$Rtext043"/>
									<xsl:with-param name="Rtextp044" select="$Rtext044"/>
									<xsl:with-param name="Rtextp045" select="$Rtext045"/>
									<xsl:with-param name="Rtextp046" select="$Rtext046"/>
									<xsl:with-param name="Rtextp047" select="$Rtext047"/>
									<xsl:with-param name="Rtextp048" select="$Rtext048"/>
									<xsl:with-param name="Rtextp049" select="$Rtext049"/>
									<xsl:with-param name="Rtextp050" select="$Rtext050"/>
									<xsl:with-param name="Rtextp051" select="$Rtext051"/>
									<xsl:with-param name="Rtextp052" select="$Rtext052"/>
									<xsl:with-param name="Rtextp053" select="$Rtext053"/>
									<xsl:with-param name="Rtextp054" select="$Rtext054"/>
									<xsl:with-param name="Rtextp055" select="$Rtext055"/>
									<xsl:with-param name="Rtextp056" select="$Rtext056"/>
									<xsl:with-param name="Rtextp057" select="$Rtext057"/>
									<xsl:with-param name="Rtextp063" select="$Rtext063"/>
									<xsl:with-param name="Rtextp064" select="$Rtext064"/>
									<xsl:with-param name="Rtextp065" select="$Rtext065"/>
									<xsl:with-param name="Rtextp066" select="$Rtext066"/>
									<xsl:with-param name="Rtextp067" select="$Rtext067"/>
									<xsl:with-param name="Rtextp068" select="$Rtext068"/>
									<xsl:with-param name="Rtextp069" select="$PAStext020"/>
									<xsl:with-param name="Rtextp070" select="$Rtext070"/>
									<xsl:with-param name="Rtextp071" select="$Rtext071"/>
									<xsl:with-param name="Rtextp072" select="$Rtext072"/>
									<xsl:with-param name="Rtextp073" select="$Rtext073"/>
									<xsl:with-param name="Rtextp074" select="$Rtext074"/>
									<xsl:with-param name="Rtextp075" select="$Rtext075"/>
									<xsl:with-param name="Rtextp076" select="$Rtext076"/>
									<xsl:with-param name="Rtextp077" select="$Rtext077"/>
									<xsl:with-param name="Rtextp078" select="$Rtext078"/>
									<xsl:with-param name="Rtextp079" select="$Rtext079"/>
									<xsl:with-param name="Rtextp080" select="$Rtext080"/>
									<xsl:with-param name="Rtextp081" select="$Rtext081"/>
									<xsl:with-param name="Rtextp082" select="$Rtext082"/>
									<xsl:with-param name="Rtextp083" select="$Rtext083"/>
									<xsl:with-param name="Rtextp084" select="$Rtext084"/>
									<xsl:with-param name="Rtextp085" select="$Rtext085"/>
									<xsl:with-param name="Rtextp086" select="$Rtext086"/>
									<xsl:with-param name="Rtextp087" select="$Rtext087"/>
									<xsl:with-param name="Rtextp088" select="$Rtext088"/>
									<xsl:with-param name="Rtextp089" select="$IHIIItext034"/>
									<xsl:with-param name="Rtextp090" select="$IHIIItext026"/>
									<xsl:with-param name="invoicetype" select="HEADER/INVOICE_TYPE"/>
									<xsl:with-param name="Rtextp091" select="$Rtext091"/>
									<xsl:with-param name="Rtextp092" select="$IHIIItext047"/>
									<xsl:with-param name="Rtextp093" select="$IHIIItext046"/>
									<xsl:with-param name="Rtextp094" select="$IHIIItext027"/>
									<xsl:with-param name="Rtextp095" select="$IHIIItext055"/>
									<xsl:with-param name="Rtextp096" select="$IHIIItext056"/>
									<xsl:with-param name="Rtextp097" select="$IHIIItext057"/>
									<xsl:with-param name="Rtextp098" select="$IHIIItext058"/>
									<xsl:with-param name="Rtextp099" select="$IHIIItext059"/>
									<xsl:with-param name="Rtextp100" select="$IHIIItext060"/>
									<xsl:with-param name="Rtextp101" select="$IHIIItext061"/>
									<xsl:with-param name="Rtextp102" select="$IHIIItext062"/>
									<xsl:with-param name="Rtextp103" select="$IHIIItext063"/>
									<xsl:with-param name="Rtextp104" select="$IHIIItext064"/>
									<xsl:with-param name="Rtextp105" select="$IHIIItext065"/>
									<xsl:with-param name="Rtextp106" select="$IHIIItext066"/>
									<xsl:with-param name="Rtextp107" select="$IHIIItext067"/>
									<xsl:with-param name="Rtextp108" select="$IHIIItext068"/>
									<xsl:with-param name="Rtextp109" select="$IHIIItext069"/>
									<xsl:with-param name="Rtextp110" select="$IHIIItext070"/>
									<xsl:with-param name="Rtextp111" select="$IHIIItext071"/>
									<xsl:with-param name="Rtextp112" select="$IHIIItext072"/>
									<xsl:with-param name="Rtextp113" select="$IHIIItext073"/>
									<xsl:with-param name="Rtextp114" select="$IHIIItext074"/>
									<xsl:with-param name="Rtextp115" select="$IHIIItext075"/>
									<xsl:with-param name="Rtextp116" select="$IHIIItext076"/>
									<xsl:with-param name="Rtextp117" select="$IHIIItext077"/>
									<xsl:with-param name="Rtextp118" select="$IHIIItext078"/>
									<xsl:with-param name="Rtextp119" select="$IHIIItext079"/>
									<xsl:with-param name="Rtextp120" select="$IHIIItext080"/>
									<xsl:with-param name="Rtextp121" select="$IHIIItext081"/>
									<xsl:with-param name="Rtextp122" select="$IHIIItext082"/>
									<xsl:with-param name="Rtextp123" select="$IHIIItext083"/>
									<xsl:with-param name="Rtextp124" select="$IHIIItext084"/>
									<xsl:with-param name="Rtextp125" select="$IHIIItext085"/>
									<xsl:with-param name="Rtextp126" select="$IHIIItext086"/>
									<xsl:with-param name="Rtextp127" select="$IHIIItext087"/>
									<xsl:with-param name="Rtextp128" select="$IHIIItext088"/>
									<xsl:with-param name="Rtextp129" select="$IHIIItext089"/>
									<xsl:with-param name="Rtextp130" select="$IHIIItext090"/>
									<xsl:with-param name="Rtextp131" select="$IHIIItext091"/>
									<xsl:with-param name="Rtextp132" select="$IHIIItext092"/>
									<xsl:with-param name="Rtextp133" select="$IHIIItext093"/>
									<xsl:with-param name="Rtextp134" select="$IHIIItext094"/>
									<xsl:with-param name="Rtextp135" select="$IHIIItext095"/>
									<xsl:with-param name="Rtextp137" select="$IHIIItext097"/>
									<xsl:with-param name="Rtextp138" select="$IHIIItext098"/>
									<xsl:with-param name="Rtextp139" select="$IHIIItext099"/>
									<xsl:with-param name="Rtextp140" select="$IHIIItext100"/>
									<xsl:with-param name="Rtextp141a" select="$IHIIItext101a"/>
									<xsl:with-param name="Rtextp141b" select="$IHIIItext101b"/>
									<xsl:with-param name="Rtextp141c" select="$IHIIItext101c"/>
									<xsl:with-param name="Rtextp143" select="$IHIIItext103"/>
									<xsl:with-param name="Rtextp143b" select="$IHIIItext103b"/>
									<xsl:with-param name="Rtextp143c" select="$IHIIItext103c"/>
									<xsl:with-param name="Rtextp144" select="$IHIIItext104"/>
									<xsl:with-param name="Rtextp145" select="$IHIIItext105"/>
									<xsl:with-param name="Rtextp146" select="$IHIIItext106"/>
									<xsl:with-param name="Rtextp147" select="$IHIIItext107"/>
									<xsl:with-param name="Rtextp148" select="$IHIIItext108"/>
									<xsl:with-param name="Rtextp149" select="$IHIIItext109"/>
									<xsl:with-param name="Rtextp150" select="$IHIIItext110"/>
									<xsl:with-param name="Rtextp151" select="$IHIIItext111"/>
									<xsl:with-param name="Rtextp152" select="$IHIIItext112"/>
									<xsl:with-param name="Rtextp154" select="$IHIIItext124"/>
									<xsl:with-param name="Rtextp155" select="$IHIIItext130"/>
									<xsl:with-param name="Rtextp156" select="$Rtext156"/>
									<xsl:with-param name="Rtextp157" select="$Rtext157"/>
									<xsl:with-param name="Rtextp158" select="$Rtext158"/>
																		<xsl:with-param name="Rtextp159" select="$Rtext159"/>
									<xsl:with-param name="IHIIItextp131" select="$IHIIItext131"/>
									<xsl:with-param name="IHIIItextp132" select="$IHIIItext132"/>
									<xsl:with-param name="IHIIItextp133" select="$IHIIItext133"/>
									<xsl:with-param name="IHIIItextp134" select="$IHIIItext134"/>
									<xsl:with-param name="IHIIItextp135" select="$IHIIItext135"/>
									<xsl:with-param name="IHIIItextp136" select="$IHIIItext136"/>
									<xsl:with-param name="AItextp020" select="$AItext020"/>
									<xsl:with-param name="AItextp021" select="$AItext021"/>
								</xsl:apply-templates>
							</xsl:if>
						</table>
					</td>
				</tr>
				<!-- Laskun alennukset - Added for TEAPPSXML 3.0-->
				<!-- summary/discount-->
				<xsl:if test="SUMMARY/DISCOUNT or SUMMARY/CHARGES">
					<xsl:call-template name="DiscountsAndCharges">
						<xsl:with-param name="SRtext2" select="$PAStext033"/>
						<xsl:with-param name="SRtext3" select="$PAStext006"/>
						<xsl:with-param name="SRtext4" select="$PAStext034"/>
						<xsl:with-param name="SRtext10" select="$PAStext035"/>
						<xsl:with-param name="SRtext11" select="$PAStext030"/>
					</xsl:call-template>
				</xsl:if>
				<!-- Laskun lis&#228;t - Added for TEAPPSXML 3.0 -->
				<!-- start:LayoutSection IX: PartPayment ============================================== -->
				<xsl:if test="PART_PAYMENTS">
					<xsl:call-template name="HorizontalRule_2columns"/>
					<xsl:apply-templates select="PART_PAYMENTS/PAYMENT">
						<xsl:with-param name="PPtextp001" select="$PPtext001"/>
						<xsl:with-param name="PPtextp002" select="$PPtext002"/>
						<xsl:with-param name="PPtextp003" select="$PPtext003"/>
						<xsl:with-param name="PPtextp004" select="$PPtext004"/>
						<xsl:with-param name="PPtextp005" select="$PPtext005"/>
						<xsl:with-param name="PPtextp006" select="$PPtext006"/>
						<xsl:with-param name="PPtextp007" select="$PPtext007"/>
						<xsl:with-param name="PPtextp008" select="$PPtext008"/>
						<xsl:with-param name="PPtextp009" select="$PPtext009"/>
						<xsl:with-param name="PPtextp010" select="$AItext020"/>
						<xsl:with-param name="PPtextp011" select="$AItext021"/>
					</xsl:apply-templates>
				</xsl:if>
				<!-- start:LayoutSection X: AdditionalInfo =========================================== -->
				<xsl:if test="      HEADER/NEXT_DUE_DATE !=''
                    or SUMMARY/FREE_TEXT !=''
      or SUMMARY/TOTAL_INFO_COSTS/AMOUNT !=''
                   or SUMMARY/LINKS/LINK !=''
  or HEADER/PAYER_POSTING_GROUP_DEFAULTS !=''
        or HEADER/PAYER_POSTING_DEFAULTS !=''
             or PAYEE/BANKS[1]/BANK_NAME !=''
   or PAYEE/DETAILS_OF_PAYMENT/FREE_TEXT !=''
   or SUMMARY/INVOICE_TOTAL_IN_OTHER_CURRENCY/CURRENCY/CODE !=''
   or HEADER/FACTORING_INFORMATION != ''">
					<xsl:call-template name="AI_25common">
						<xsl:with-param name="AItextp001" select="$AItext001"/>
						<xsl:with-param name="AItextp002" select="$AItext002"/>
						<xsl:with-param name="AItextp003" select="$AItext003"/>
						<xsl:with-param name="AItextp004" select="$AItext004"/>
						<xsl:with-param name="AItextp005" select="$AItext005"/>
						<xsl:with-param name="AItextp006" select="$Rtext006"/>
						<xsl:with-param name="AItextp007" select="$AItext007"/>
						<xsl:with-param name="AItextp008" select="$Rtext008"/>
						<xsl:with-param name="AItextp009" select="$Rtext009"/>
						<xsl:with-param name="AItextp010" select="$Rtext009a"/>
						<xsl:with-param name="AItextp011" select="$Rtext009b"/>
						<xsl:with-param name="AItextp012" select="$Rtext009c"/>
						<xsl:with-param name="AItextp013" select="$Rtext009d"/>
						<xsl:with-param name="AItextp014" select="$Rtext009e"/>
						<xsl:with-param name="AItextp015" select="$Rtext009f"/>
						<xsl:with-param name="AItextp016" select="$IHIIItext103"/>
						<xsl:with-param name="AItextp016b" select="$IHIIItext103b"/>
						<xsl:with-param name="AItextp016c" select="$IHIIItext103c"/>
						<xsl:with-param name="AItextp016d" select="$IHIIItext104"/>
						<xsl:with-param name="AItextp016e" select="$IHIIItext105"/>
						<xsl:with-param name="AItextp017" select="$AItext008"/>
						<xsl:with-param name="AItextp018" select="$AItext009"/>
						<xsl:with-param name="AItextp019" select="$AItext010"/>
						<xsl:with-param name="AItextp020" select="$AItext011"/>
						<xsl:with-param name="AItextp021" select="$AItext012"/>
						<xsl:with-param name="AItextp022" select="$AItext013"/>
						<xsl:with-param name="AItextp023" select="$AItext014"/>
						<xsl:with-param name="AItextp024" select="$AItext015"/>
						<xsl:with-param name="AItextp025" select="$AItext016"/>
						<xsl:with-param name="AItextp026" select="$AItext017"/>
						<xsl:with-param name="AItextp027" select="$AItext018"/>
						<xsl:with-param name="AItextp028" select="$AItext019"/>
						<xsl:with-param name="AItextp029" select="$AItext020"/>
						<xsl:with-param name="AItextp030" select="$AItext021"/>
						<xsl:with-param name="AItextp031" select="$AItext031"/>
						<xsl:with-param name="AItextp032" select="$AItext032"/>
						<xsl:with-param name="AItextp033" select="$AItext033"/>
						<xsl:with-param name="AItextp034" select="$AItext034"/>
						<xsl:with-param name="AItextp035" select="$AItext035"/>
						<xsl:with-param name="AItextp036" select="$AItext036"/>
						<xsl:with-param name="AItextp037" select="$AItext037"/>
						<xsl:with-param name="AItextp038" select="$AItext038"/>
					</xsl:call-template>
				</xsl:if>
			</tbody>
		</table>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- start:general templates ========================================================= -->
	<!-- ================================================================================= -->
	<!-- ================================================================================= -->
	<!-- template for non breaking space entity ========================================== -->
	<xsl:template name="ent.nbspspace">
		<xsl:text disable-output-escaping="yes"><![CDATA[&nbsp; ]]></xsl:text>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for colon and ================================ -->
	<xsl:template name="ent.comma">
		<xsl:text disable-output-escaping="yes"><![CDATA[,]]></xsl:text>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for two columns width horizontal rule ================================== -->
	<xsl:template name="HorizontalRule_2columns">
		<tr>
			<td colspan="2">
				<xsl:text disable-output-escaping="yes"><![CDATA[<hr>]]></xsl:text>
			</td>
		</tr>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for AMOUNT ============================================================= -->
	<xsl:template match="AMOUNT">
		<!-- find out amount of decimals -->
		<xsl:variable name="decimals" select="string-length(substring-after(.,'.'))"/>
		<xsl:if test="@SIGN='-'">-</xsl:if>
		<xsl:choose>
			<xsl:when test="string(number(.)) != 'NaN'">
				<xsl:choose>
					<xsl:when test="$decimals= '0'">
						<xsl:value-of select="format-number(., '# ##0', 'european')"/>
					</xsl:when>
					<xsl:when test="$decimals= '1'">
						<xsl:value-of select="format-number(., '# ##0,0', 'european')"/>
					</xsl:when>
					<xsl:when test="$decimals= '2'">
						<xsl:value-of select="format-number(., '# ##0,00', 'european')"/>
					</xsl:when>
					<xsl:when test="$decimals= '3'">
						<xsl:value-of select="format-number(., '# ##0,000', 'european')"/>
					</xsl:when>
					<xsl:when test="$decimals= '4'">
						<xsl:value-of select="format-number(., '# ##0,0000', 'european')"/>
					</xsl:when>
					<xsl:when test="$decimals= '5'">
						<xsl:value-of select="format-number(., '# ##0,00000', 'european')"/>
					</xsl:when>
					<xsl:when test="$decimals= '6'">
						<xsl:value-of select="format-number(., '# ##0,000000', 'european')"/>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="format-number(., '# ##0,000000', 'european')"/>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="."/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for OFFERED, ORDERED, DELIVERED and CHARGED nodes ============== -->
	<xsl:template match="OFFERED | ORDERED | DELIVERED | CHARGED | USED_QUANTITY | CALCULATED_QUANTITY">
		<xsl:if test="@SIGN='-'">-</xsl:if>
		<xsl:value-of select="."/>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for HEADER/PROJECT_INFORMATION ============== -->
	<xsl:template match="HEADER/PROJECT_INFORMATION">
		<span class="layouttext10">
			<xsl:value-of select="@PROJECT_TYPE"/>
			<xsl:text> </xsl:text>
			<xsl:value-of select="PROJECT_NUMBER"/>
			<xsl:text> </xsl:text>
			<xsl:value-of select="PROJECT_TITLE"/>
			<xsl:text> </xsl:text>
		</span>
		<br/>
		<xsl:if test="FREE_TEXT !=''"/>
		<span class="layouttext10">
			<xsl:value-of select="FREE_TEXT"/>
			<br/>
			<br/>
		</span>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for DATE nodes ========================================================= -->
	<xsl:template match="DATE">
		<xsl:if test="DAY != ''">
			<xsl:value-of select="concat(normalize-space(DAY),'.',MONTH,'.',CENTURY,DECADE_AND_YEAR)"/>
		</xsl:if>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for CUSTOMER INFORMATION nodes ========================================= -->
	<xsl:template match="CUSTOMER_INFORMATION" mode="rows9">
		<tr>
			<td class="layouttext10" colspan="3">
				<xsl:value-of select="CUSTOMER_NAME"/>
				<xsl:text> </xsl:text>
				<!-- no customer id output when receiver -->
				<xsl:if test="not(string(name(../.)) = 'RECEIVER' )">
					<xsl:value-of select="CUSTOMER_ID"/>
				</xsl:if>
			</td>
		</tr>
		<xsl:if test="CUSTOMER_NAME[2] !=''">
			<tr>
				<td class="layouttext10" colspan="3">
					<xsl:value-of select="CUSTOMER_NAME[2]"/>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="CUSTOMER_NAME[3] !=''">
			<tr>
				<td class="layouttext10" colspan="3">
					<xsl:value-of select="CUSTOMER_NAME[3]"/>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
				<xsl:if test="CUSTOMER_NAME[4] !=''">
			<tr>
				<td class="layouttext10" colspan="3">
					<xsl:value-of select="CUSTOMER_NAME[4]"/>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="TRADING_NAME !=''">
			<tr>
				<td class="layouttext10" colspan="3">
					<xsl:value-of select="TRADING_NAME"/>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<tr>
			<td class="layouttext10" colspan="3">
				<xsl:value-of select="ADDRESS/STREET_ADDRESS1"/>
			</td>
		</tr>
		<tr>
			<td class="layouttext10" colspan="3">
				<xsl:value-of select="ADDRESS/STREET_ADDRESS2"/>
			</td>
		</tr>
		<xsl:if test="ADDRESS/STREET_ADDRESS3 and ADDRESS/STREET_ADDRESS3 != ''">
			<tr>
				<td class="layouttext10" colspan="3">
					<xsl:value-of select="ADDRESS/STREET_ADDRESS3"/>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="ADDRESS/STREET_ADDRESS4 and ADDRESS/STREET_ADDRESS4 != ''">
			<tr>
				<td class="layouttext10" colspan="3">
					<xsl:value-of select="ADDRESS/STREET_ADDRESS4"/>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="ADDRESS/SUBDIVISION != ''">
			<tr>
				<td class="layouttext10" colspan="3">
					<xsl:value-of select="ADDRESS/SUBDIVISION"/>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<tr>
			<td class="layouttext10" colspan="3">
				<xsl:value-of select="ADDRESS/POSTAL_CODE"/>
				<xsl:text> </xsl:text>
				<xsl:value-of select="ADDRESS/POST_OFFICE"/>
				<xsl:text> </xsl:text>
			</td>
		</tr>
		<tr>
			<td class="layouttext10" colspan="3">
				<xsl:if test="ADDRESS/COUNTRY_CODE != ''">
					<xsl:value-of select="ADDRESS/COUNTRY_CODE"/>
					<xsl:text> </xsl:text>
				</xsl:if>
				<xsl:value-of select="ADDRESS/COUNTRY"/>
				<xsl:text> </xsl:text>
			</td>
		</tr>
		<tr>
			<td class="layouttext10">
				<xsl:text> </xsl:text>
			</td>
		</tr>
	</xsl:template>
	<!-- ========================================================================== -->
	<!-- another template for CUSTOMER INFORMATION nodes (output for three rows) ==== -->
	<xsl:template match="CUSTOMER_INFORMATION" mode="rows3">
		<xsl:param name="CItext1"/>
		<xsl:param name="CItext2"/>
		<xsl:param name="CItext3"/>
		<xsl:param name="CItext4"/>
		<xsl:param name="CItext5"/>
		<xsl:param name="CItext6"/>
		<xsl:param name="CItext7"/>
		<xsl:param name="CItext8"/>
		<xsl:param name="CItext9"/>
		<xsl:param name="CItext10"/>
		<xsl:param name="CItext11"/>
		<xsl:param name="CItext12"/>
		<tr>
			<td class="layouttext8" colspan="2">
				<br/>
				<xsl:choose>
					<xsl:when test="local-name(..) = 'OTHER_PARTNER'">
						<xsl:value-of select="../@PARTNER_TEXT"/>
					</xsl:when>
					<xsl:otherwise>
						<xsl:value-of select="$CItext1"/>
					</xsl:otherwise>
				</xsl:choose>
				<xsl:text>: </xsl:text>
				<span class="layouttext10">
					<xsl:value-of select="CUSTOMER_NAME[1]"/>
					<xsl:text> </xsl:text>
					<xsl:value-of select="CUSTOMER_ID"/>
					<xsl:if test="CUSTOMER_NAME[2] != ''">
						<br/>
						<xsl:value-of select="CUSTOMER_NAME[2]"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="CUSTOMER_NAME[3] != ''">
						<br/>
						<xsl:value-of select="CUSTOMER_NAME[3]"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="CUSTOMER_NAME[4] != ''">
						<br/>
						<xsl:value-of select="CUSTOMER_NAME[4]"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="CUSTOMER_NAME[5] != ''">
						<br/>
						<xsl:value-of select="CUSTOMER_NAME[5]"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="TRADING_NAME != ''">
						<br/>
						<xsl:value-of select="TRADING_NAME"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</span>
			</td>
		</tr>
		<xsl:if test="ADDRESS/STREET_ADDRESS1 != ''">
			<tr>
				<td class="layouttext10" colspan="2">
					<xsl:value-of select="ADDRESS/STREET_ADDRESS1"/>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="ADDRESS/STREET_ADDRESS2 != ''">
			<tr>
				<td class="layouttext10" colspan="2">
					<xsl:value-of select="ADDRESS/STREET_ADDRESS2"/>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="ADDRESS/STREET_ADDRESS3 != '' or ADDRESS/STREET_ADDRESS4 != ''">
			<tr>
				<td class="layouttext10" colspan="2">
					<xsl:value-of select="ADDRESS/STREET_ADDRESS3"/>
					<xsl:if test="ADDRESS/STREET_ADDRESS4 != ''">
						<xsl:text> </xsl:text>
						<xsl:value-of select="ADDRESS/STREET_ADDRESS4"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="ADDRESS/SUBDIVISION != ''">
			<tr>
				<td class="layouttext10" colspan="2">
					<xsl:value-of select="ADDRESS/SUBDIVISION"/>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="ADDRESS/POSTAL_CODE != '' or ADDRESS/POST_OFFICE != ''">
			<tr>
				<td class="layouttext10" colspan="2">
					<xsl:value-of select="ADDRESS/POSTAL_CODE"/>
					<xsl:text> </xsl:text>
					<xsl:value-of select="ADDRESS/POST_OFFICE"/>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="ADDRESS/COUNTRY_CODE != '' or ADDRESS/COUNTRY !=''">
			<tr>
				<td class="layouttext10" colspan="2">
					<xsl:if test="ADDRESS/COUNTRY_CODE != ''">
						<xsl:value-of select="ADDRESS/COUNTRY_CODE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="ADDRESS/COUNTRY !=''">
						<xsl:value-of select="ADDRESS/COUNTRY"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="CONTACT_INFORMATION/CONTACT_PERSON_FUNCTION 
                or CONTACT_INFORMATION/CONTACT_PERSON
                or CONTACT_INFORMATION/TELEPHONE_NUMBER
                or CONTACT_INFORMATION/TELEFAX_NUMBER
                or CONTACT_INFORMATION/E-MAIL_ADDRESS
                or CONTACT_INFORMATION/FREE_TEXT">
			<tr>
				<td class="layouttext8" colspan="2">
					<xsl:if test="CONTACT_INFORMATION/CONTACT_PERSON_FUNCTION != '' or CONTACT_INFORMATION/CONTACT_PERSON != ''">
						<xsl:value-of select="$CItext2"/>
						<xsl:text>: </xsl:text>
					</xsl:if>
					<xsl:if test="CONTACT_INFORMATION/CONTACT_PERSON_FUNCTION != ''">
						<span class="layouttext10">
							<xsl:value-of select="CONTACT_INFORMATION/CONTACT_PERSON_FUNCTION"/>
							<xsl:text> </xsl:text>
						</span>
					</xsl:if>
					<xsl:if test="CONTACT_INFORMATION/CONTACT_PERSON != ''">
						<span class="layouttext10">
							<xsl:value-of select="CONTACT_INFORMATION/CONTACT_PERSON"/>
							<xsl:text> </xsl:text>
						</span>
					</xsl:if>
					<xsl:if test="CONTACT_INFORMATION/TELEPHONE_NUMBER != ''">
						<xsl:value-of select="$CItext5"/>
						<xsl:text>: </xsl:text>
						<span class="layouttext10">
							<xsl:value-of select="CONTACT_INFORMATION/TELEPHONE_NUMBER"/>
							<xsl:text> </xsl:text>
						</span>
					</xsl:if>
					<xsl:if test="CONTACT_INFORMATION/TELEFAX_NUMBER != ''">
						<xsl:value-of select="$CItext8"/>
						<xsl:text>: </xsl:text>
						<span class="layouttext10">
							<xsl:value-of select="CONTACT_INFORMATION/TELEFAX_NUMBER"/>
							<xsl:text> </xsl:text>
						</span>
					</xsl:if>
					<xsl:if test="CONTACT_INFORMATION/E-MAIL_ADDRESS != ''">
						<xsl:value-of select="$CItext6"/>
						<xsl:text>: </xsl:text>
						<span class="layouttext10">
							<xsl:value-of select="CONTACT_INFORMATION/E-MAIL_ADDRESS"/>
							<xsl:text> </xsl:text>
						</span>
					</xsl:if>
					<xsl:if test="CONTACT_INFORMATION/DEPARTMENT != ''">
						<xsl:value-of select="$CItext11"/>
						<xsl:text>: </xsl:text>
						<span class="layouttext10">
							<xsl:value-of select="CONTACT_INFORMATION/DEPARTMENT"/>
						</span>
					</xsl:if>
					<xsl:if test="CONTACT_INFORMATION/FREE_TEXT != ''">
						<span class="layouttext10">
							<br/>
							<xsl:value-of select="CONTACT_INFORMATION/FREE_TEXT"/>
						</span>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="ORGANIZATION_NUMBER != ''
             or VAT_NUMBER !=''
             or VAT_REG !=''
             or PARTY_IDENTIFICATION_ID != ''
             or ORGANIZATION_DEPARTMENT != ''
             or SITE != ''">
			<tr>
				<td class="layouttext10" colspan="2">
					<xsl:if test="ORGANIZATION_NUMBER != ''">
						<span class="layouttext8">
							<xsl:value-of select="$CItext3"/>
							<xsl:text>: </xsl:text>
						</span>
						<xsl:value-of select="ORGANIZATION_NUMBER"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="VAT_NUMBER != ''">
						<span class="layouttext8">
							<xsl:value-of select="$CItext4"/>
							<xsl:text>: </xsl:text>
						</span>
						<xsl:value-of select="VAT_NUMBER"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="VAT_REG != ''">
						<xsl:value-of select="VAT_REG"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="PARTY_IDENTIFICATION_ID != ''">
						<xsl:for-each select="PARTY_IDENTIFICATION_ID">
							<span class="layouttext8">
								<xsl:choose>
									<xsl:when test="@AUTHORITY = 'EDI' or not(@AUTHORITY) or @AUTHORITY=''">
										<xsl:value-of select="$CItext9"/>
									</xsl:when>
									<xsl:otherwise>
										<xsl:value-of select="@AUTHORITY"/>
									</xsl:otherwise>
								</xsl:choose>
								<xsl:text>: </xsl:text>
							</span>
							<xsl:value-of select="."/>
							<xsl:text> </xsl:text>
						</xsl:for-each>
						<br/>
					</xsl:if>
					<xsl:if test="ORGANIZATION_DEPARTMENT !=''">
						<span class="layouttext8">
							<xsl:value-of select="$CItext11"/>
							<xsl:text>: </xsl:text>
						</span>
						<xsl:apply-templates select="ORGANIZATION_DEPARTMENT[1]"/>
						<xsl:if test="ORGANIZATION_DEPARTMENT[2] != ''">
							<xsl:text> </xsl:text>
							<xsl:apply-templates select="ORGANIZATION_DEPARTMENT[2]"/>
							<xsl:text> </xsl:text>
						</xsl:if>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="SITE !=''">
						<span class="layouttext8">
							<xsl:value-of select="$CItext12"/>
							<xsl:text>: </xsl:text>
						</span>
						<xsl:value-of select="SITE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- Orderer/../Organization_department, Site-->
		<!-- Esimerkki: Receiver/../Organization_department, Site-->
		<xsl:if test="ORDERER/CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT !=''
                 or ORDERER/CUSTOMER_INFORMATION/SITE !=''">
			<tr>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="E-MAIL_ADDRESS != ''">
			<tr>
				<td class="layouttext10" colspan="2">
					<span class="layouttext8">
						<xsl:value-of select="$CItext6"/>
						<xsl:text>: </xsl:text>
					</span>
					<span class="layouttext10">
						<xsl:value-of select="E-MAIL_ADDRESS"/>
					</span>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="NOTE != ''">
			<tr>
				<td class="layouttext10" colspan="2">
					<xsl:value-of select="NOTE"/>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="FREE_TEXT != ''">
			<tr>
				<td class="layouttext10" colspan="2">
					<xsl:value-of select="FREE_TEXT"/>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="LINKS/LINK != ''">
			<tr>
				<td class="layouttext10" colspan="2">
					<xsl:value-of select="LINKS/LINK"/>
				</td>
			</tr>
		</xsl:if>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for START_PERIOD nodes (on both header and row level) ================== -->
	<xsl:template match="START_PERIOD">
		<xsl:choose>
			<xsl:when test="(DATE and ../END_PERIOD/DATE) or (DATE and ../END_PERIOD/DATE and PERIOD_TEXT)">
				<xsl:apply-templates select="DATE"/>
				<xsl:if test="TIME/HOUR != ''">
					<xsl:text disable-output-escaping="yes"> </xsl:text>
					<xsl:value-of select="TIME/HOUR"/>
					<xsl:text disable-output-escaping="yes">:</xsl:text>
					<xsl:value-of select="TIME/MINUTE"/>
				</xsl:if>
				<xsl:text disable-output-escaping="yes"> - </xsl:text>
				<xsl:apply-templates select="../END_PERIOD/DATE"/>
				<xsl:if test="../END_PERIOD/TIME/HOUR != ''">
					<xsl:text disable-output-escaping="yes"> </xsl:text>
					<xsl:value-of select="../END_PERIOD/TIME/HOUR"/>
					<xsl:text disable-output-escaping="yes">:</xsl:text>
					<xsl:value-of select="../END_PERIOD/TIME/MINUTE"/>
				</xsl:if>
				<xsl:text disable-output-escaping="yes"> </xsl:text>
				<xsl:value-of select="PERIOD_TEXT"/>
			</xsl:when>
			<xsl:otherwise>
				<xsl:if test="DATE !='' ">
					<xsl:apply-templates select="DATE"/>
				</xsl:if>
				<xsl:apply-templates select="../END_PERIOD/DATE"/>
				<xsl:value-of select="PERIOD_TEXT"/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for deleting leading zeros from a payment reference ==================== -->
	<xsl:template name="delete-leading-zeros">
		<xsl:param name="paymentref"/>
		<xsl:choose>
			<xsl:when test="substring($paymentref, 1, 1) = '0'">
				<xsl:call-template name="delete-leading-zeros">
					<xsl:with-param name="paymentref" select="substring-after($paymentref, '0')"/>
				</xsl:call-template>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="$paymentref"/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
			<!-- template for  payment reference ==================== -->
	<xsl:template name="payment-reference">
		<xsl:param name="paymentref"/>
		<xsl:choose>
			<xsl:when test="substring($paymentref, 1, 1) = '0'">
				<xsl:value-of select="$paymentref"/>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="$paymentref"/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- end:general templates =========================================================== -->
	<!-- ================================================================================= -->
	<!-- ================================================================================= -->
	<!-- template for common LayoutHeader ================================================ -->
	<xsl:template name="LayoutHeader_25common">
		<xsl:param name="LHtextp001"/>
		<xsl:param name="LHtextp002"/>
		<xsl:param name="LHtextp003"/>
		<xsl:param name="LHtextp004"/>
		<xsl:param name="LHtextp005"/>
		<xsl:param name="LHtextp006"/>
		<xsl:param name="LHtextp007"/>
		<xsl:param name="LHtextp008"/>
		<xsl:param name="LHtextp009"/>
		<xsl:param name="LHtextp010"/>
		<xsl:param name="LHtextp011"/>
		<xsl:param name="LHtextp012"/>
		<xsl:param name="LHtextp013"/>
		<xsl:param name="LHtextp014"/>
		<xsl:param name="LHtextp015"/>
		<xsl:param name="LHtextp016"/>
		<xsl:param name="LHtextp017"/>
		<tr>
			<td width="40%" xsl:use-attribute-sets="LayoutHeaderLowColumns10">
				<!-- A: src reference with alt attribute for logo entity -->
				<img border="0">
					<xsl:attribute name="src"><xsl:value-of select="concat('../logos/',normalize-space(PAYEE/NET_SERVICE_ID),'.gif')"/></xsl:attribute>
					<xsl:attribute name="hspace"><xsl:value-of select="2"/></xsl:attribute>
					<xsl:attribute name="vspace"><xsl:value-of select="1"/></xsl:attribute>
					<xsl:attribute name="alt"><xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/CUSTOMER_NAME"/></xsl:attribute>
				</img>
			</td>
			<!-- INVOICE_TYPE m&#228;&#228;ritykset -->
			<td width="60%">
				<table xsl:use-attribute-sets="TableNoBorder">
					<!-- B1: invoice title text is outputted according to the following rules: -->
					<!--     1. if SUBJECT element contains something
             2. if METHOD_OF_CHARGE is 01
             3. according to the content of INVOICE_TYPE element
             4. fixed default: LASKU-FAKTURA/INVOICE -->
					<tr>
						<td xsl:use-attribute-sets="LayoutHeaderTitle">
							<xsl:choose>
								<xsl:when test="HEADER/SUBJECT != ''">
									<xsl:value-of select="HEADER/SUBJECT"/>
								</xsl:when>
								<xsl:when test="HEADER/METHOD_OF_CHARGE = '01'">
									<xsl:value-of select="$LHtextp001"/>
								</xsl:when>
								<xsl:when test="HEADER/INVOICE_TYPE">
									<xsl:choose>
										<xsl:when test="HEADER/INVOICE_TYPE = '00'">
											<xsl:value-of select="$LHtextp002"/>
										</xsl:when>
										<xsl:when test="HEADER/INVOICE_TYPE = '01'">
											<xsl:value-of select="$LHtextp003"/>
										</xsl:when>
										<xsl:when test="HEADER/INVOICE_TYPE = '02'">
											<xsl:value-of select="$LHtextp004"/>
										</xsl:when>
										<xsl:when test="HEADER/INVOICE_TYPE = '03'">
											<xsl:value-of select="$LHtextp005"/>
										</xsl:when>
										<xsl:when test="HEADER/INVOICE_TYPE = '04'">
											<xsl:value-of select="$LHtextp006"/>
										</xsl:when>
										<xsl:when test="HEADER/INVOICE_TYPE = '05'">
											<xsl:value-of select="$LHtextp007"/>
										</xsl:when>
										<xsl:when test="HEADER/INVOICE_TYPE = '06'">
											<xsl:value-of select="$LHtextp008"/>
										</xsl:when>
										<xsl:when test="HEADER/INVOICE_TYPE = '07'">
											<xsl:value-of select="$LHtextp009"/>
										</xsl:when>
										<xsl:when test="HEADER/INVOICE_TYPE = '08'">
											<xsl:value-of select="$LHtextp010"/>
										</xsl:when>
										<xsl:when test="HEADER/INVOICE_TYPE = '09'">
											<xsl:value-of select="$LHtextp014"/>
										</xsl:when>
										<xsl:when test="HEADER/INVOICE_TYPE = '20'">
											<xsl:value-of select="$LHtextp002"/>
										</xsl:when>
										<xsl:when test="HEADER/INVOICE_TYPE = '50'">
											<xsl:value-of select="$LHtextp015"/>
										</xsl:when>
										<xsl:when test="HEADER/INVOICE_TYPE = '51'">
											<xsl:value-of select="$LHtextp016"/>
										</xsl:when>
										<xsl:when test="HEADER/INVOICE_TYPE = '60'">
											<xsl:value-of select="$LHtextp017"/>
										</xsl:when>
										<xsl:when test="HEADER/INVOICE_TYPE = ''">
											<xsl:value-of select="$LHtextp002"/>
										</xsl:when>
									</xsl:choose>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="$LHtextp002"/>
								</xsl:otherwise>
							</xsl:choose>
						</td>
					</tr>
					<!-- B2: invoice date, invoice number, customer number -->
					<tr>
						<td xsl:use-attribute-sets="LayoutHeaderColumns">
							<xsl:value-of select="$LHtextp011"/>
							<br/>
							<span class="layouttext10">
								<xsl:apply-templates select="HEADER/INVOICE_DATE"/>
							</span>
							<xsl:text> </xsl:text>
						</td>
						<td xsl:use-attribute-sets="LayoutHeaderColumns">
							<xsl:value-of select="$LHtextp012"/>
							<br/>
							<span class="layouttext10">
								<xsl:value-of select="HEADER/INVOICE_ID"/>
							</span>
							<xsl:text> </xsl:text>
						</td>
						<td xsl:use-attribute-sets="LayoutHeaderColumns">
							<xsl:value-of select="$LHtextp013"/>
							<br/>
							<span class="layouttext10">
								<xsl:choose>
									<xsl:when test="RECEIVER/CUSTOMER_INFORMATION/CUSTOMER_ID">
										<xsl:value-of select="RECEIVER/CUSTOMER_INFORMATION/CUSTOMER_ID"/>
									</xsl:when>
									<xsl:otherwise>
										<xsl:value-of select="RECEIVER/CUSTOMER_ID"/>
									</xsl:otherwise>
								</xsl:choose>
							</span>
							<xsl:text> </xsl:text>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for common InvoiceHeaderI ============================================== -->
	<xsl:template name="InvoiceHeaderI_25common">
		<xsl:param name="IHItextp001"/>
		<xsl:param name="IHItextp002"/>
		<xsl:param name="IHItextp003"/>
		<xsl:param name="IHItextp004"/>
		<tr>
			<!-- A: empty column -->
			<td>
				<xsl:text> </xsl:text>
			</td>
			<!-- B -->
			<td>
				<table xsl:use-attribute-sets="TableNoBorder">
					<!-- B1: payee reference, payee contact person -->
					<tr>
						<td xsl:use-attribute-sets="LayoutHeaderColumns">
							<xsl:value-of select="$IHItextp001"/>
							<xsl:text> </xsl:text>
							<br/>
							<span class="layouttext10">
								<xsl:choose>
									<xsl:when test="HEADER/ORDER_INFORMATION[@ORDER_TYPE='VN']/ORDER_REFERENCE">
										<xsl:value-of select="HEADER/ORDER_INFORMATION[@ORDER_TYPE='VN']/ORDER_REFERENCE"/>
									</xsl:when>
									<xsl:when test="PAYEE/PAYEE_REFERENCE !=''">
										<xsl:value-of select="PAYEE/PAYEE_REFERENCE"/>
									</xsl:when>
									<xsl:otherwise>
										<xsl:value-of select="HEADER/ORDER_INFORMATION[@ORDER_TYPE != 'CO' and @ORDER_TYPE != 'MH']/ORDER_REFERENCE"/>
									</xsl:otherwise>
								</xsl:choose>
							</span>
							<xsl:text> </xsl:text>
						</td>
						<td xsl:use-attribute-sets="LayoutHeaderDoubleColumns">
							<xsl:text> </xsl:text>
							<xsl:value-of select="$IHItextp002"/>
							<br/>
							<span class="layouttext10">
								<xsl:text> </xsl:text>
								<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON_FUNCTION"/>
								<xsl:text> </xsl:text>
								<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON"/>
								<xsl:text> </xsl:text>
							</span>
						</td>
					</tr>
					<!-- B2: order reference, credit invoice number, credit invoice due date -->
					<tr>
						<td xsl:use-attribute-sets="LayoutHeaderColumns">
							<xsl:value-of select="$IHItextp003"/>
							<br/>
							<span class="layouttext10">
								<xsl:choose>
									<xsl:when test="HEADER/ORDER_REFERENCE!=''">
										<xsl:value-of select="HEADER/ORDER_REFERENCE"/>
									</xsl:when>
									<xsl:otherwise>
										<xsl:value-of select="HEADER/ORDER_INFORMATION[@ORDER_TYPE='CO']/ORDER_REFERENCE"/>
									</xsl:otherwise>
								</xsl:choose>
							</span>
							<xsl:text> </xsl:text>
						</td>
						<td xsl:use-attribute-sets="LayoutHeaderColumns" colspan="2">
							<xsl:text> </xsl:text>
							<xsl:value-of select="$IHItextp004"/>
							<br/>
							<span class="layouttext10">
								<xsl:choose>
									<xsl:when test="HEADER/CONTROLLER !=''">
										<xsl:text> </xsl:text>
										<xsl:value-of select="HEADER/CONTROLLER"/>
									</xsl:when>
									<xsl:otherwise>
									<xsl:value-of select="RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON_FUNCTION"/>
										<xsl:text> </xsl:text>
										<xsl:value-of select="RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON"/>
									</xsl:otherwise>
								</xsl:choose>
							</span>
							<xsl:text> </xsl:text>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</xsl:template>
	<!-- ================================================================================== -->
	<!-- template for common InvoiceHeaderII (2 rows) ===================================== -->
	<xsl:template name="InvoiceHeaderII_25common">
		<xsl:param name="IHIItextp001"/>
		<xsl:param name="IHIItextp002"/>
		<xsl:param name="IHIItextp003"/>
		<xsl:param name="IHIItextp004"/>
		<xsl:param name="IHIItextp005"/>
		<xsl:param name="IHIItextp006"/>
		<xsl:param name="IHIItextp007"/>
		<xsl:param name="IHIItextp007b"/>
		<xsl:param name="IHIItextp007c"/>
		<xsl:param name="IHIItextp008"/>
		<xsl:param name="IHIItextp009"/>
		<xsl:param name="IHIItextp010"/>
		<xsl:param name="IHIIItextp028"/>
		<xsl:param name="IHIItextp011"/>
		<xsl:param name="IHIItextp012"/>
		<xsl:param name="IHIItextp131"/>
		<tr valign="top">
			<!-- A -->
			<td>
				<table xsl:use-attribute-sets="TableNoBorder">
					<!-- Invoice Recipient -->
					<xsl:if test="INVOICE_RECIPIENT/CUSTOMER_INFORMATION/CUSTOMER_NAME != ''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="3">
								<xsl:value-of select="$IHIItextp001"/>
							</td>
						</tr>
						<xsl:apply-templates select="INVOICE_RECIPIENT/CUSTOMER_INFORMATION" mode="rows9"/>
						<tr>
							<td>&#160;</td>
						</tr>
					</xsl:if>
					<!-- A1: receiver -->
					<tr>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="3">
							<xsl:choose>
								<xsl:when test="INVOICE_RECIPIENT/CUSTOMER_INFORMATION/CUSTOMER_NAME != ''">
									<xsl:value-of select="$IHIItextp011"/>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="$IHIItextp001"/>
									<xsl:text>/</xsl:text>
									<xsl:value-of select="$IHIItextp011"/>
								</xsl:otherwise>
							</xsl:choose>
						</td>
					</tr>
					<xsl:apply-templates select="RECEIVER/CUSTOMER_INFORMATION" mode="rows9"/>
				</table>
			</td>
			<!-- B -->
			<td valign="top">
				<table xsl:use-attribute-sets="TableNoBorder">
					<!-- B1: delivery party -->
					<tr>
						<td xsl:use-attribute-sets="LayoutHeaderLowTripleColumns">
							<xsl:value-of select="$IHIItextp003"/>
						</td>
					</tr>
					<xsl:choose>
						<xsl:when test="DELIVERY_PARTY/CUSTOMER_INFORMATION !='' ">
							<xsl:apply-templates select="DELIVERY_PARTY/CUSTOMER_INFORMATION" mode="rows9"/>
						</xsl:when>
						<xsl:otherwise>
							<tr>
								<td xsl:use-attribute-sets="LayoutHeaderColumns">
									<xsl:text> </xsl:text>
								</td>
							</tr>
							<tr>
								<td xsl:use-attribute-sets="LayoutHeaderColumns">
									<xsl:text> </xsl:text>
								</td>
							</tr>
						</xsl:otherwise>
					</xsl:choose>
				</table>
			</td>
		</tr>
		<tr>
			<!-- A -->
			<td valign="bottom">
				<!-- A4: receiver contact person when header controller also exists, 
             receiver net service id and party identification id -->
				<table xsl:use-attribute-sets="TableNoBorder">
					<tr>
						<td xsl:use-attribute-sets="LayoutHeaderColumns">
							<xsl:if test="HEADER/CONTROLLER !='' 
                       and RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON !=''">
								<xsl:value-of select="$IHIItextp002"/>
								<xsl:text>: </xsl:text>
								<xsl:value-of select="RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON_FUNCTION"/>
								<br/>
								<xsl:value-of select="RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON"/>
							</xsl:if>
							<br/>
							<xsl:if test="RECEIVER/NET_SERVICE_ID !=''">
								<xsl:value-of select="$IHIItextp005"/>
								<xsl:text>: </xsl:text>
								<xsl:value-of select="RECEIVER/NET_SERVICE_ID"/>
							</xsl:if>
							<xsl:if test="RECEIVER/INTERMEDIATOR !=''">
								<xsl:text> </xsl:text>
								<xsl:value-of select="$IHIItextp012"/>
								<xsl:text>: </xsl:text>
								<xsl:value-of select="RECEIVER/INTERMEDIATOR"/>
							</xsl:if>
							<br/>
							<xsl:if test="RECEIVER/CUSTOMER_INFORMATION/PARTY_IDENTIFICATION_ID !=''">
								<xsl:for-each select="RECEIVER/CUSTOMER_INFORMATION/PARTY_IDENTIFICATION_ID">
									<xsl:choose>
										<xsl:when test="@AUTHORITY = 'EDI' or not(@AUTHORITY) or @AUTHORITY=''">
											<xsl:value-of select="$IHIItextp010"/>
										</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select="@AUTHORITY"/>
										</xsl:otherwise>
									</xsl:choose>
									<xsl:text>: </xsl:text>
									<xsl:value-of select="."/>
									<xsl:text>  </xsl:text>
								</xsl:for-each>
							</xsl:if>
						</td>
					</tr>
				</table>
			</td>
			<!-- B -->
			<td>
				<table xsl:use-attribute-sets="TableNoBorder">
					<!-- B2: terms of payment or cash discount/free_text -->
					<tr>
						<td width="20%"/>
						<td width="45%"/>
						<td width="35%"/>
					</tr>
					<tr>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumnsBold" colspan="3">
							<xsl:value-of select="$IHIItextp004"/>
							<xsl:text> </xsl:text>
							<br/>
							<!-- terms of payment and first cash discount -->
							<span class="layouttext10">
								<xsl:if test="HEADER/TERMS_OF_PAYMENT !=''">
									<xsl:value-of select="HEADER/TERMS_OF_PAYMENT"/>
								</xsl:if>
								<xsl:text>  </xsl:text>
							</span>
						</td>
					</tr>
					<!-- B3: due date, interest for delay -->
					<tr>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumnsBold">
							<xsl:value-of select="$IHIItextp006"/>
							<xsl:text> </xsl:text>
							<br/>
							<span class="layouttext10">
								<xsl:apply-templates select="HEADER/DUE_DATE"/>
							</span>
							<xsl:text> </xsl:text>
						</td>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumnsBold">
							<xsl:value-of select="$IHIItextp007"/>
							<br/>
							<xsl:choose>
								<xsl:when test="HEADER/PAYMENT_OVERDUE_FINE/INTEREST_RATE !=''">
									<span class="layouttext10">
										<xsl:value-of select="HEADER/PAYMENT_OVERDUE_FINE/INTEREST_RATE"/>
										<xsl:text> </xsl:text>
										<xsl:text disable-output-escaping="yes">% </xsl:text>
										<xsl:if test="HEADER/PAYMENT_OVERDUE_FINE/FREE_TEXT != ''">
											<xsl:value-of select="HEADER/PAYMENT_OVERDUE_FINE/FREE_TEXT"/>
										</xsl:if>
									</span>
								</xsl:when>
								<!-- Moved under SUMMARY/FREE_TEXT
								<xsl:when test="HEADER/PAYMENT_OVERDUE_FINE/SURCHARGE !=''">
									<span class="layouttext10">
										<xsl:apply-templates select="HEADER/PAYMENT_OVERDUE_FINE/SURCHARGE/AMOUNT"/>
										<xsl:text> </xsl:text>
										<xsl:value-of select="HEADER/CURRENCY/CODE"/>
									</span>
								</xsl:when>-->
								<xsl:otherwise>
									<span class="layouttext8">
										<xsl:value-of select="HEADER/PAYMENT_OVERDUE_FINE/FREE_TEXT"/>
									</span>
								</xsl:otherwise>
							</xsl:choose>
							<xsl:text> </xsl:text>
						</td>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumnsBold">
							<xsl:if test="HEADER/REMARK_TIME != ''">
								<xsl:value-of select="$IHIItextp007b"/>
								<br/>
								<span class="layouttext10">
									<xsl:value-of select="HEADER/REMARK_TIME"/>
								</span>
								<xsl:text> </xsl:text>
							</xsl:if>
						</td>
					</tr>
					<!-- B4: terms of delivery, delivery date -->
					<xsl:if test="HEADER/TERMS_OF_DELIVERY or HEADER/DELIVERY_DATE">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderDoubleColumns" colspan="2">
								<xsl:if test="HEADER/TERMS_OF_DELIVERY">
									<xsl:value-of select="$IHIItextp008"/>
									<xsl:text> </xsl:text>
									<br/>
								</xsl:if>
								<span class="layouttext10">
									<xsl:if test="HEADER/TERMS_OF_DELIVERY/@TERMS_OF_DELIVERY_CODE">
										<xsl:value-of select="HEADER/TERMS_OF_DELIVERY/@TERMS_OF_DELIVERY_CODE"/>
										<xsl:text> </xsl:text>
									</xsl:if>
									<xsl:value-of select="HEADER/TERMS_OF_DELIVERY"/>
									<xsl:text> </xsl:text>
								</span>
							</td>
							<td xsl:use-attribute-sets="LayoutHeaderColumns">
								<xsl:if test="HEADER/DELIVERY_DATE">
									<xsl:value-of select="$IHIItextp009"/>
									<br/>
								</xsl:if>
								<span class="layouttext10">
									<xsl:apply-templates select="HEADER/DELIVERY_DATE"/>
								</span>
								<xsl:text> </xsl:text>
							</td>
						</tr>
					</xsl:if>
				</table>
			</td>
		</tr>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for common InvoiceHeaderIII ============================================ -->
	<xsl:template name="InvoiceHeaderIII_25common">
		<xsl:param name="IHIIItextp001"/>
		<xsl:param name="IHIIItextp002"/>
		<xsl:param name="IHIIItextp003"/>
		<xsl:param name="IHIIItextp004"/>
		<xsl:param name="IHIIItextp005"/>
		<xsl:param name="IHIIItextp006"/>
		<xsl:param name="IHIIItextp007"/>
		<xsl:param name="IHIIItextp008"/>
		<xsl:param name="IHIIItextp009"/>
		<xsl:param name="IHIIItextp010"/>
		<xsl:param name="IHIIItextp011"/>
		<xsl:param name="IHIIItextp012"/>
		<xsl:param name="IHIIItextp013"/>
		<xsl:param name="IHIIItextp014"/>
		<xsl:param name="IHIIItextp015"/>
		<xsl:param name="IHIIItextp016"/>
		<xsl:param name="IHIIItextp017"/>
		<xsl:param name="IHIIItextp018"/>
		<xsl:param name="IHIIItextp019"/>
		<xsl:param name="IHIIItextp020"/>
		<xsl:param name="IHIIItextp021"/>
		<xsl:param name="IHIIItextp022"/>
		<xsl:param name="IHIIItextp023"/>
		<xsl:param name="IHIIItextp024"/>
		<xsl:param name="IHIIItextp025"/>
		<xsl:param name="IHIIItextp026"/>
		<xsl:param name="IHIIItextp027"/>
		<xsl:param name="IHIIItextp028"/>
		<xsl:param name="IHIIItextp029"/>
		<xsl:param name="IHIIItextp030"/>
		<xsl:param name="IHIIItextp031"/>
		<xsl:param name="IHIIItextp032"/>
		<xsl:param name="IHIIItextp033"/>
		<xsl:param name="IHIIItextp034"/>
		<xsl:param name="IHIIItextp035"/>
		<xsl:param name="IHIIItextp036"/>
		<xsl:param name="IHIIItextp037"/>
		<xsl:param name="IHIIItextp038"/>
		<xsl:param name="IHIIItextp039"/>
		<xsl:param name="IHIIItextp040"/>
		<xsl:param name="IHIIItextp041"/>
		<xsl:param name="IHIIItextp042"/>
		<xsl:param name="IHIIItextp043"/>
		<xsl:param name="IHIIItextp044"/>
		<xsl:param name="IHIIItextp045"/>
		<xsl:param name="IHIIItextp046"/>
		<xsl:param name="IHIIItextp047"/>
		<xsl:param name="IHIIItextp048"/>
		<xsl:param name="IHIIItextp049"/>
		<xsl:param name="IHIIItextp050"/>
		<xsl:param name="IHIIItextp051"/>
		<xsl:param name="IHIIItextp052"/>
		<xsl:param name="IHIIItextp053"/>
		<xsl:param name="IHIIItextp054"/>
		<xsl:param name="IHIIItextp055"/>
		<xsl:param name="IHIIItextp056"/>
		<xsl:param name="IHIIItextp057"/>
		<xsl:param name="IHIIItextp058"/>
		<xsl:param name="IHIIItextp059"/>
		<xsl:param name="IHIIItextp060"/>
		<xsl:param name="IHIIItextp061"/>
		<xsl:param name="IHIIItextp062"/>
		<xsl:param name="IHIIItextp063"/>
		<xsl:param name="IHIIItextp064"/>
		<xsl:param name="IHIIItextp065"/>
		<xsl:param name="IHIIItextp066"/>
		<xsl:param name="IHItextp002"/>
		<xsl:param name="Rtextp053"/>
		<xsl:param name="IHIIItextp089"/>
		<xsl:param name="IHIIItextp125"/>
		<xsl:param name="IHIIItextp126"/>
		<xsl:param name="IHIIItextp127"/>
		<xsl:param name="IHIIItextp128"/>
		<xsl:param name="IHIIItextp129"/>
		<xsl:param name="IHIIItextp131"/>
		<xsl:param name="IHIIItextp132"/>
		<xsl:param name="IHIIItextp133"/>
		<xsl:param name="IHIIItextp134"/>
		<xsl:param name="IHIIItextp135"/>
		<xsl:param name="IHIIItextp136"/>
		<tr valign="top">
			<!-- A and B -->
			<td colspan="2">
				<table xsl:use-attribute-sets="TableNoBorder">
					<!-- A/B1: note number, invoice order number and invoice period -->
					<xsl:if test="HEADER/INVOICE_ORDER_NUMBER !='' 
                 or HEADER/ORDER_INFORMATION[@ORDER_TYPE='CO'] !=''
                 or HEADER/NOTE_NUMBER !=''">
						<tr>
							<!-- invoice order number -->
							<td xsl:use-attribute-sets="LayoutHeaderHalfPageColumns">
								<xsl:if test="HEADER/ORDER_INFORMATION[@ORDER_TYPE='CO']/ORDER_NUMBER !='' or HEADER/ORDER_INFORMATION[@ORDER_TYPE='CO']/ORDER_DATE/DAY !='' or HEADER/ORDER_INFORMATION[@ORDER_TYPE='CO']/ORDER_POSITION !=''">
									<xsl:value-of select="$IHIIItextp129"/> <!-- Ostajan tilausnumero-->
									<xsl:text>: </xsl:text>
								</xsl:if>
								<xsl:text> </xsl:text>
								<span class="layouttext10">
									<xsl:apply-templates select="HEADER/ORDER_INFORMATION[@ORDER_TYPE='CO']/ORDER_NUMBER"/>
									<xsl:text> </xsl:text>
									<xsl:apply-templates select="HEADER/ORDER_INFORMATION[@ORDER_TYPE='CO']/ORDER_DATE"/>
									<br/>
								</span>
								<!-- ORDER_POSITION-->
								<xsl:if test="HEADER/ORDER_INFORMATION[@ORDER_TYPE='CO']/ORDER_POSITION != ''">
									<xsl:value-of select="$IHIIItextp066"/>
									<xsl:text>: </xsl:text>
									<span class="layouttext10">
										<xsl:apply-templates select="HEADER/ORDER_INFORMATION[@ORDER_TYPE='CO']/ORDER_POSITION"/>
									</span>
								</xsl:if>
								<xsl:text> </xsl:text>
							</td>
							<!-- note number -->
							<td xsl:use-attribute-sets="LayoutHeaderHalfPageColumns">
								<xsl:if test="HEADER/NOTE_NUMBER !=''">
									<xsl:value-of select="$IHIIItextp002"/>
								</xsl:if>
								<span class="layouttext10">
									<xsl:text> </xsl:text>
									<br/>
									<xsl:value-of select="HEADER/NOTE_NUMBER"/>
								</span>
							</td>
						</tr>
					</xsl:if>
					<!-- A/B1: note number, invoice order number and invoice period -->
					<xsl:if test="HEADER/INVOICE_ORDER_NUMBER !='' 
                 or HEADER/ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='MH')] !=''
                 or HEADER/NOTE_NUMBER !=''">
						<tr>
							<!-- invoice order number -->
							<td xsl:use-attribute-sets="LayoutHeaderHalfPageColumns">
								<xsl:if test="HEADER/INVOICE_ORDER_NUMBER !='' or HEADER/ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='MH')]/ORDER_NUMBER !='' 							or HEADER/ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='MH')]/ORDER_DATE/DAY !='' or HEADER/ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='MH')]/ORDER_POSITION !=''">
									<xsl:value-of select="$IHIIItextp001"/>
								</xsl:if>
								<xsl:text> </xsl:text>
								<br/>
								<xsl:choose>
									<xsl:when test="HEADER/INVOICE_ORDER_NUMBER !='' ">
										<xsl:value-of select="HEADER/INVOICE_ORDER_NUMBER"/>
										<br/>
										<xsl:if test="HEADER/ORDER_INFORMATION[@ORDER_TYPE='VN' or (not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='MH'))]/ORDER_POSITION != ''">
											<xsl:value-of select="$IHIIItextp066"/>
											<xsl:text>: </xsl:text>
											<span class="layouttext10">
												<xsl:choose>
													<xsl:when test="HEADER/ORDER_INFORMATION[@ORDER_TYPE='VN']/ORDER_POSITION">
														<xsl:apply-templates select="HEADER/ORDER_INFORMATION[@ORDER_TYPE='VN']/ORDER_POSITION"/>
													</xsl:when>
													<xsl:when test="HEADER/ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='MH')]/ORDER_POSITION">
														<xsl:apply-templates select="HEADER/ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='MH')]/ORDER_POSITION"/>
													</xsl:when>
												</xsl:choose>
											</span>
										</xsl:if>
									</xsl:when>
									<xsl:when test="HEADER/ORDER_INFORMATION[@ORDER_TYPE='VN']/ORDER_NUMBER !=''">
										<span class="layouttext10">
											<xsl:apply-templates select="HEADER/ORDER_INFORMATION[@ORDER_TYPE='VN']/ORDER_NUMBER"/>
											<xsl:text> </xsl:text>
											<xsl:apply-templates select="HEADER/ORDER_INFORMATION[@ORDER_TYPE='VN']/ORDER_DATE"/>
										</span>
										<!-- ORDER_POSITION-->
										<xsl:if test="HEADER/ORDER_INFORMATION[@ORDER_TYPE='VN']/ORDER_POSITION != ''">
											<xsl:value-of select="$IHIIItextp066"/>
											<xsl:text>: </xsl:text>
											<span class="layouttext10">
												<xsl:apply-templates select="HEADER/ORDER_INFORMATION[@ORDER_TYPE='VN']/ORDER_POSITION"/>
											</span>
										</xsl:if>
									</xsl:when>
									<xsl:when test="HEADER/ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='MH')]/ORDER_NUMBER !=''">
										<span class="layouttext10">
											<xsl:apply-templates select="HEADER/ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='MH')]/ORDER_NUMBER"/>
											<xsl:text> </xsl:text>
											<xsl:apply-templates select="HEADER/ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='MH')]/ORDER_DATE"/>
											<br/>
										</span>
										<!-- ORDER_POSITION-->
										<xsl:if test="HEADER/ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='MH')]/ORDER_POSITION != ''">
											<xsl:value-of select="$IHIIItextp066"/>
											<xsl:text>: </xsl:text>
											<span class="layouttext10">
												<xsl:apply-templates select="HEADER/ORDER_INFORMATION[not(@ORDER_TYPE='CO' and not(@ORDER_TYPE='MH'))]/ORDER_POSITION"/>
											</span>
										</xsl:if>
									</xsl:when>
								</xsl:choose>
								<xsl:text> </xsl:text>
							</td>
						</tr>
					</xsl:if>
					<xsl:if test="HEADER/CONTRACT_INFORMATION !=''
                 or HEADER/START_PERIOD !='' 
                 or HEADER/END_PERIOD !=''">
						<tr>
							<!-- invoice period -->
							<td xsl:use-attribute-sets="LayoutHeaderHalfPageColumns">
								<xsl:if test="HEADER/START_PERIOD !='' or HEADER/END_PERIOD !=''">
									<xsl:value-of select="$IHIIItextp004"/>
								</xsl:if>
								<span class="layouttext10">
									<xsl:text> </xsl:text>
									<br/>
									<xsl:apply-templates select="HEADER/START_PERIOD"/>
									<xsl:if test="not(HEADER/START_PERIOD)">
										<xsl:apply-templates select="HEADER/END_PERIOD"/>
									</xsl:if>
								</span>
							</td>
							<!-- contract -->
							<td xsl:use-attribute-sets="LayoutHeaderHalfPageColumns">
								<xsl:if test="HEADER/CONTRACT_INFORMATION !=''">
									<xsl:value-of select="$IHIIItextp003"/>
									<xsl:text> </xsl:text>
								</xsl:if>
								<br/>
								<span class="layouttext10">
									<xsl:if test="HEADER/CONTRACT_INFORMATION/@CONTRACT_TYPE !=''">
										<xsl:value-of select="HEADER/CONTRACT_INFORMATION/@CONTRACT_TYPE"/>
										<xsl:text> </xsl:text>
									</xsl:if>
									<xsl:if test="HEADER/CONTRACT_INFORMATION/CONTRACT_NUMBER !=''">
										<xsl:value-of select="HEADER/CONTRACT_INFORMATION/CONTRACT_NUMBER"/>
										<xsl:text> </xsl:text>
									</xsl:if>
									<xsl:if test="HEADER/CONTRACT_INFORMATION/CONTRACT_DATE/DATE/DAY !=''  or HEADER/CONTRACT_INFORMATION/CONTRACT_DATE/DATE/MONTH !='' or HEADER/CONTRACT_INFORMATION/CONTRACT_DATE/DATE/CENTURY !='' or HEADER/CONTRACT_INFORMATION/CONTRACT_DATE/DATE/DECADE_AND_YEAR !=''">
										<xsl:apply-templates select="HEADER/CONTRACT_INFORMATION/CONTRACT_DATE/DATE/DAY"/>.<xsl:apply-templates select="HEADER/CONTRACT_INFORMATION/CONTRACT_DATE/DATE/MONTH"/>.<xsl:apply-templates select="HEADER/CONTRACT_INFORMATION/CONTRACT_DATE/DATE/CENTURY"/>
										<xsl:apply-templates select="HEADER/CONTRACT_INFORMATION/CONTRACT_DATE/DATE/DECADE_AND_YEAR"/>
										<xsl:text> </xsl:text>
									</xsl:if>
									<xsl:if test="HEADER/CONTRACT_INFORMATION/CONTRACT_PERIOD !=''">
										<br/>
										<xsl:apply-templates select="HEADER/CONTRACT_INFORMATION/CONTRACT_PERIOD/START_PERIOD"/>
										<xsl:if test="not(HEADER/CONTRACT_INFORMATION/CONTRACT_PERIOD/START_PERIOD)">
											<xsl:apply-templates select="HEADER/CONTRACT_INFORMATION/CONTRACT_PERIOD/END_PERIOD"/>
										</xsl:if>
									</xsl:if>
								</span>
							</td>
						</tr>
					</xsl:if>
					<xsl:if test="HEADER/BUYER_REFERENCE !=''
					or PAYEE/PAYEE_REFERENCE !=''
                 or HEADER/DELIVERER_REFERENCE !='' 
                 or HEADER/CREDIT_INFORMATION/CREDIT_LIMIT/AMOUNT !='' 
                 or HEADER/CREDIT_INFORMATION/INSTALMENT/AMOUNT !=''
                 or HEADER/INVOICED_OBJECT !='' 
                 or HEADER/PAYMENT_INSTRUCTION_IDENTIFIER !='' 
                 or HEADER/CONTRACT_INFORMATION/PRICELIST !='' 
                 or HEADER/PROJECT_INFORMATION/@PROJECT_TYPE !=''
                 or HEADER/PROJECT_INFORMATION/PROJECT_NUMBER !=''
         	 or HEADER/PROJECT_INFORMATION/PROJECT_TITLE !=''
         	 or HEADER/CREDIT_INFORMATION/INTEREST/PER_CENT !=''
         	 or HEADER/CREDIT_INFORMATION/INTEREST/AMOUNT !=''
         	 or HEADER/CREDIT_INFORMATION/OPERATION_LIMIT/AMOUNT !='' 
         	 or HEADER/OFFER_REFERENCE !=''
         	 or HEADER/SECURITY_DETAILS !=''">
						<tr>
							<!-- buyer reference -->
							<td xsl:use-attribute-sets="LayoutHeaderHalfPageColumns">
								<xsl:if test="HEADER/BUYER_REFERENCE !=''">
									<xsl:value-of select="$IHIIItextp019"/>
									<xsl:text> </xsl:text>
									<br/>
									<span class="layouttext10">
										<xsl:value-of select="HEADER/BUYER_REFERENCE"/>
									</span>
									<br/>
								</xsl:if>
								<br/>
								<!-- Credit information/Credit_limit/amount -->
								<xsl:if test="HEADER/CREDIT_INFORMATION/CREDIT_LIMIT/AMOUNT !=''">
									<xsl:value-of select="$IHIIItextp041"/>
									<xsl:text>: </xsl:text>
									<xsl:text> </xsl:text>
									<span class="layouttext10">
										<xsl:value-of select="HEADER/CREDIT_INFORMATION/CREDIT_LIMIT/AMOUNT"/>
									</span>
									<br/>
								</xsl:if>
								<!-- Credit information/Instalment/amount -->
								<xsl:if test="HEADER/CREDIT_INFORMATION/INSTALMENT/AMOUNT !=''">
									<xsl:value-of select="$IHIIItextp042"/>
									<xsl:text>: </xsl:text>
									<xsl:text> </xsl:text>
									<span class="layouttext10">
										<xsl:value-of select="HEADER/CREDIT_INFORMATION/INSTALMENT/AMOUNT"/>
									</span>
									<br/>
								</xsl:if>
								<xsl:if test="HEADER/CREDIT_INFORMATION/INSTALMENT/AMOUNT !='' or HEADER/CREDIT_INFORMATION/CREDIT_LIMIT/AMOUNT !=''">
									<span class="layouttext10">
										<br/>
									</span>
								</xsl:if>
								<!-- Invoiced object -->
								<xsl:if test="HEADER/INVOICED_OBJECT !=''">
									<xsl:value-of select="$IHIIItextp126"/>
									<xsl:text>: </xsl:text>
									<xsl:text> </xsl:text>
									<span class="layouttext10">
										<xsl:value-of select="HEADER/INVOICED_OBJECT"/>
									</span>
									<br/>
								</xsl:if>
								<!-- Security details / Secrecy class, screcy description -->
								<xsl:if test="HEADER/SECURITY_DETAILS/SECRECY_CLASS !='' or HEADER/SECURITY_DETAILS/SECRECY_DESCRIPTION">
									<xsl:value-of select="$IHIIItextp127"/>
									<xsl:text>: </xsl:text>
									<xsl:text> </xsl:text>
									<span class="layouttext10">
										<xsl:value-of select="HEADER/SECURITY_DETAILS/SECRECY_CLASS"/>
										<xsl:text> </xsl:text>
										<xsl:value-of select="HEADER/SECURITY_DETAILS/SECRECY_DESCRIPTION"/>
									</span>
									<br/>
								</xsl:if>
								<!-- Offer reference -->
								<xsl:if test="HEADER/OFFER_REFERENCE !=''">
									<xsl:value-of select="$IHIIItextp128"/>
									<xsl:text>: </xsl:text>
									<xsl:text> </xsl:text>
									<span class="layouttext10">
										<xsl:value-of select="HEADER/OFFER_REFERENCE"/>
									</span>
									<br/>
								</xsl:if>
								<xsl:if test="PAYEE/PAYEE_REFERENCE !='' and HEADER/ORDER_INFORMATION[@ORDER_TYPE='VN']/ORDER_REFERENCE!=''">
									<xsl:value-of select="$IHIIItextp125"/>
									<xsl:text>: </xsl:text>
									<xsl:text> </xsl:text>
									<span class="layouttext10">
										<xsl:value-of select="PAYEE/PAYEE_REFERENCE"/>
									</span>
									<br/>
								</xsl:if>
								<!-- PAYMENT_INSTRUCTION_IDENTIFIER -->
								<xsl:if test="HEADER/PAYMENT_INSTRUCTION_IDENTIFIER !=''">
									<xsl:value-of select="$IHIIItextp043"/>
									<xsl:text>: </xsl:text>
								</xsl:if>
								<xsl:text> </xsl:text>
								<span class="layouttext10">
									<xsl:value-of select="HEADER/PAYMENT_INSTRUCTION_IDENTIFIER"/>
								</span>
								<br/>
								<!-- BUSINESS_PROCESS_TYPE -->
								<xsl:if test="HEADER/BUSINESS_PROCESS_TYPE !=''">
									<xsl:value-of select="$IHIIItextp131"/>
									<xsl:text>: </xsl:text>
								</xsl:if>
								<xsl:text> </xsl:text>
								<span class="layouttext10">
									<xsl:value-of select="HEADER/BUSINESS_PROCESS_TYPE"/>
								</span>
								<br/>
								<!-- CONTRACT_INFORMATION/price list -->
								<xsl:if test="HEADER/CONTRACT_INFORMATION/PRICELIST !=''">
									<xsl:value-of select="$IHIIItextp021"/>
									<xsl:text>: </xsl:text>
								</xsl:if>
								<xsl:text> </xsl:text>
								<span class="layouttext10">
									<xsl:value-of select="HEADER/CONTRACT_INFORMATION/PRICELIST"/>
								</span>
								<br/>
								<!-- Projekti -->
								<xsl:if test="HEADER/PROJECT_INFORMATION/@PROJECT_TYPE !=''
         	    or HEADER/PROJECT_INFORMATION/PROJECT_NUMBER !=''
         	    or HEADER/PROJECT_INFORMATION/PROJECT_TITLE !=''">
									<xsl:value-of select="$IHIIItextp044"/>
									<xsl:text>: </xsl:text>
								</xsl:if>
								<xsl:text> </xsl:text>
								<xsl:apply-templates select="HEADER/PROJECT_INFORMATION"/>
							</td>
							<!-- deliverer reference -->
							<td xsl:use-attribute-sets="LayoutHeaderHalfPageColumns">
								<xsl:if test="HEADER/DELIVERER_REFERENCE !=''">
									<xsl:value-of select="$IHIIItextp020"/>
									<xsl:text> </xsl:text>
									<br/>
									<span class="layouttext10">
										<xsl:value-of select="HEADER/DELIVERER_REFERENCE"/>
										<xsl:text> </xsl:text>
									</span>
									<br/>
								</xsl:if>
								<br/>
								<!-- Credit_information/Interest/per_cent % amount-->
								<xsl:if test="HEADER/CREDIT_INFORMATION/INTEREST !=''">
									<xsl:value-of select="$IHIIItextp055"/>
									<xsl:text>: </xsl:text>
									<xsl:text> </xsl:text>
									<span class="layouttext10">
										<xsl:value-of select="HEADER/CREDIT_INFORMATION/INTEREST/PER_CENT"/>
										<xsl:text> </xsl:text>%
            <xsl:text> </xsl:text>
										<xsl:value-of select="HEADER/CREDIT_INFORMATION/INTEREST/AMOUNT"/>
									</span>
									<br/>
								</xsl:if>
								<!-- Credit_information/operation_limit/amount-->
								<xsl:if test="HEADER/CREDIT_INFORMATION/OPERATION_LIMIT/AMOUNT !=''">
									<xsl:value-of select="$IHIIItextp056"/>
									<xsl:text>: </xsl:text>
									<xsl:text> </xsl:text>
									<span class="layouttext10">
										<xsl:value-of select="HEADER/CREDIT_INFORMATION/OPERATION_LIMIT/AMOUNT"/>
										<xsl:text> </xsl:text>
									</span>
								</xsl:if>
							</td>
						</tr>
					</xsl:if>
					<!-- TRADING NAME -->
					<xsl:if test="PAYEE/CUSTOMER_INFORMATION/CONTACT_INFORMATION/E-MAIL_ADDRESS != '' or PAYEE/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEPHONE_NUMBER[2]!= '' or PAYEE/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON != '' or PAYEE/CUSTOMER_INFORMATION/PARTY_IDENTIFICATION_ID !=''           
            		  or PAYEE/CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT !=''
                          or PAYEE/CUSTOMER_INFORMATION/SITE !='' or PAYEE/CUSTOMER_INFORMATION/CUSTOMER_ID !='' or PAYEE/CUSTOMER_INFORMATION/CONTACT_INFORMATION !='' or PAYEE/CUSTOMER_INFORMATION/FREE_TEXT !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<span class="layouttext8">
									<xsl:value-of select="$IHIIItextp133"/>
									<xsl:text>: </xsl:text>
								</span>
								<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/TRADING_NAME"/>
							</td>
						</tr>
					</xsl:if>
					<xsl:if test="PAYEE/CUSTOMER_INFORMATION/CONTACT_INFORMATION/E-MAIL_ADDRESS != '' or PAYEE/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEPHONE_NUMBER[2]!= ''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<span class="layouttext8">
									<xsl:value-of select="$IHIIItextp132"/>
									<xsl:text>: </xsl:text>
								</span>
								<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON"/>
								<xsl:if test="PAYEE/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEPHONE_NUMBER[2]!= ''">
									<xsl:text> </xsl:text>
									<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEPHONE_NUMBER[2]"/>
								</xsl:if>
								<xsl:text> </xsl:text>
								<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/CONTACT_INFORMATION/E-MAIL_ADDRESS"/>
								<xsl:text> </xsl:text>
								<xsl:if test="PAYEE/CUSTOMER_INFORMATION/CONTACT_INFORMATION/DEPARTMENT">
								<span class="layouttext8">
									<xsl:value-of select="$IHIIItextp047"/>
									<xsl:text>: </xsl:text>
								</span>
								<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/CONTACT_INFORMATION/DEPARTMENT"/>
								</xsl:if>
							</td>
						</tr>
					</xsl:if>
					<!-- Laskuttajan OVT-tunnus -->
					<tr>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
							<xsl:if test="PAYEE/CUSTOMER_INFORMATION/PARTY_IDENTIFICATION_ID !=''           
            		  or PAYEE/CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT !=''
                          or PAYEE/CUSTOMER_INFORMATION/SITE !=''">
								<xsl:for-each select="PAYEE/CUSTOMER_INFORMATION/PARTY_IDENTIFICATION_ID">
									<span class="layouttext8">
										<xsl:choose>
											<xsl:when test="@AUTHORITY = 'EDI' or not(@AUTHORITY) or @AUTHORITY=''">
												<xsl:value-of select="$IHIIItextp035"/>
											</xsl:when>
											<xsl:otherwise>
												<xsl:value-of select="@AUTHORITY"/>
											</xsl:otherwise>
										</xsl:choose>
										<xsl:text>: </xsl:text>
									</span>
									<xsl:value-of select="."/>
									<xsl:text> </xsl:text>
								</xsl:for-each>
							</xsl:if>
							<!-- PAYEE/../ORGANIZATION_DEPARTMENT -->
							<xsl:if test="PAYEE/CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT !=''">
								<span class="layouttext8">
									<xsl:value-of select="$IHIIItextp047"/>
									<xsl:text>: </xsl:text>
								</span>
								<xsl:apply-templates select="PAYEE/CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT[1]"/>
								<xsl:if test="PAYEE/CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT[2] != ''">
									<xsl:text> </xsl:text>
									<xsl:apply-templates select="PAYEE/CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT[2]"/>
									<xsl:text> </xsl:text>
								</xsl:if>
								<xsl:text> </xsl:text>
							</xsl:if>
							<!-- PAYEE/../SITE -->
							<xsl:if test="PAYEE/CUSTOMER_INFORMATION/SITE !=''">
								<span class="layouttext8">
									<xsl:value-of select="$IHIIItextp046"/>
									<xsl:text>: </xsl:text>
								</span>
								<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/SITE"/>
								<xsl:text> </xsl:text>
							</xsl:if>
						</td>
					</tr>
					<!-- PAYEE/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEFAX_NUMBER -->
					<xsl:if test="PAYEE/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEFAX_NUMBER !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<span class="layouttext8">
									<xsl:value-of select="$IHIIItextp026"/>
									<xsl:text>: </xsl:text>
								</span>
								<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEFAX_NUMBER"/>
							</td>
						</tr>
					</xsl:if>
					<!-- PAYEE/CUSTOMER_INFORMATION/TRADE_REGISTRY_NUMBER - Krnro-->
					<xsl:if test="PAYEE/CUSTOMER_INFORMATION/TRADE_REGISTRY_NUMBER !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<span class="layouttext8">
									<xsl:value-of select="$IHIIItextp134"/>
									<xsl:text>: </xsl:text>
								</span>
								<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/TRADE_REGISTRY_NUMBER"/>
							</td>
						</tr>
					</xsl:if>
					<!-- PAYEE/ADDITIONAL_LEGAL_INFO -->
					<xsl:if test="PAYEE/ADDITIONAL_LEGAL_INFO !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<xsl:value-of select="PAYEE/ADDITIONAL_LEGAL_INFO"/>
							</td>
						</tr>
					</xsl:if>
					<!-- PAYEE/CUSTOMER_INFORMATION/CUSTOMER_ID -->
					<xsl:if test="PAYEE/CUSTOMER_INFORMATION/CUSTOMER_ID !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<span class="layouttext8">
									<xsl:value-of select="$IHIIItextp022"/>
									<xsl:text>: </xsl:text>
								</span>
								<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/CUSTOMER_ID"/>
							</td>
						</tr>
					</xsl:if>
					<!-- payee/netting code -->
					<xsl:if test="PAYEE/NETTING_CODE !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<span class="layouttext8">
									<xsl:value-of select="$IHIIItextp032"/>
									<xsl:text>: </xsl:text>
								</span>
								<xsl:value-of select="PAYEE/NETTING_CODE"/>
							</td>
						</tr>
					</xsl:if>
					<!-- payee/note -->
					<xsl:if test="PAYEE/CUSTOMER_INFORMATION/NOTE !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/NOTE"/>
							</td>
						</tr>
					</xsl:if>
					<!-- payee/contact_information/freetext -->
					<xsl:if test="PAYEE/CUSTOMER_INFORMATION/CONTACT_INFORMATION/FREE_TEXT !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/CONTACT_INFORMATION/FREE_TEXT"/>
							</td>
						</tr>
					</xsl:if>
					<!-- payee/freetext -->
					<xsl:if test="PAYEE/CUSTOMER_INFORMATION/FREE_TEXT !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/FREE_TEXT"/>
							</td>
						</tr>
					</xsl:if>
					<!-- receiver/netting code -->
					<xsl:if test="RECEIVER/NETTING_CODE !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<br/>
								<span class="layouttext8">
									<xsl:value-of select="$IHIIItextp033"/>
									<xsl:text>: </xsl:text>
								</span>
								<xsl:value-of select="RECEIVER/NETTING_CODE"/>
							</td>
						</tr>
					</xsl:if>
					<!-- receiver/business ID and VAT number -->
					<xsl:if test="RECEIVER/CUSTOMER_INFORMATION/ORGANIZATION_NUMBER !=''
                 or RECEIVER/CUSTOMER_INFORMATION/VAT_NUMBER !='' 
                 or RECEIVER/CUSTOMER_INFORMATION/VAT_REG !=''
                 or RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEPHONE_NUMBER !=''
                 or RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEFAX_NUMBER !=''
                 or RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/E-MAIL_ADDRESS !='' or RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/DEPARTMENT">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<xsl:if test="RECEIVER/CUSTOMER_INFORMATION/ORGANIZATION_NUMBER !=''">
									<span class="layouttext8">
										<xsl:value-of select="$IHIIItextp015"/>
										<xsl:text>: </xsl:text>
									</span>
									<xsl:value-of select="RECEIVER/CUSTOMER_INFORMATION/ORGANIZATION_NUMBER"/>
									<xsl:text> </xsl:text>
								</xsl:if>
								<xsl:if test="RECEIVER/CUSTOMER_INFORMATION/VAT_NUMBER !=''">
									<span class="layouttext8">
										<xsl:value-of select="$IHIIItextp023"/>
										<xsl:text>: </xsl:text>
									</span>
									<xsl:value-of select="RECEIVER/CUSTOMER_INFORMATION/VAT_NUMBER"/>
									<xsl:text> </xsl:text>
								</xsl:if>
								<xsl:if test="RECEIVER/CUSTOMER_INFORMATION/VAT_REG !=''">
									<xsl:value-of select="RECEIVER/CUSTOMER_INFORMATION/VAT_REG"/>
									<xsl:text> </xsl:text>
								</xsl:if>
								<xsl:if test="RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEPHONE_NUMBER !=''">
									<span class="layouttext8">
										<xsl:value-of select="$IHIIItextp025"/>
										<xsl:text>: </xsl:text>
									</span>
									<xsl:value-of select="RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEPHONE_NUMBER"/>
									<xsl:text> </xsl:text>
								</xsl:if>
								<xsl:if test="RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEFAX_NUMBER !=''">
									<span class="layouttext8">
										<xsl:value-of select="$IHIIItextp026"/>
										<xsl:text>: </xsl:text>
									</span>
									<xsl:value-of select="RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEFAX_NUMBER"/>
									<xsl:text> </xsl:text>
								</xsl:if>
								<xsl:if test="RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/E-MAIL_ADDRESS !=''">
									<span class="layouttext8">
										<xsl:value-of select="$IHIIItextp027"/>
										<xsl:text>: </xsl:text>
									</span>
									<xsl:choose>
										<xsl:when test="RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/E-MAIL_ADDRESS !=''">
											<xsl:value-of select="RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/E-MAIL_ADDRESS"/>
											<xsl:text> </xsl:text>
										</xsl:when>
									</xsl:choose>
								</xsl:if>
								<xsl:if test="RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/DEPARTMENT !=''">
									<span class="layouttext8">
										<xsl:value-of select="$IHIIItextp047"/>
										<xsl:text>: </xsl:text>
									</span>
									<xsl:choose>
										<xsl:when test="RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/DEPARTMENT !=''">
											<xsl:value-of select="RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/DEPARTMENT"/>
										</xsl:when>
									</xsl:choose>
								</xsl:if>
							</td>
						</tr>
					</xsl:if>
					<!-- receiver/../contact_information/free_text -->
					<xsl:if test="RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/FREE_TEXT !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<xsl:value-of select="RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/FREE_TEXT"/>
							</td>
						</tr>
					</xsl:if>
					<!-- Receiver/../Organization_department, Site-->
					<xsl:if test="RECEIVER/CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT !=''
                 or RECEIVER/CUSTOMER_INFORMATION/SITE !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<xsl:if test="RECEIVER/CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT !=''">
									<span class="layouttext8">
										<xsl:value-of select="$IHIIItextp047"/>
										<xsl:text>: </xsl:text>
									</span>
									<xsl:apply-templates select="RECEIVER/CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT[1]"/>
									<xsl:if test="RECEIVER/CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT[2] != ''">
										<xsl:text> </xsl:text>
										<xsl:apply-templates select="RECEIVER/CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT[2]"/>
										<xsl:text> </xsl:text>
									</xsl:if>
									<xsl:text> </xsl:text>
								</xsl:if>
								<xsl:if test="RECEIVER/CUSTOMER_INFORMATION/SITE !=''">
									<span class="layouttext8">
										<xsl:value-of select="$IHIIItextp046"/>
										<xsl:text>: </xsl:text>
									</span>
									<xsl:value-of select="RECEIVER/CUSTOMER_INFORMATION/SITE"/>
									<xsl:text> </xsl:text>
								</xsl:if>
							</td>
						</tr>
					</xsl:if>
					<xsl:if test="RECEIVER/CUSTOMER_INFORMATION/E-MAIL_ADDRESS !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<span class="layouttext8">
									<xsl:value-of select="$IHIIItextp027"/>
									<xsl:text>: </xsl:text>
								</span>
								<xsl:value-of select="RECEIVER/CUSTOMER_INFORMATION/E-MAIL_ADDRESS"/>
							</td>
						</tr>
					</xsl:if>
					<!-- receiver/note -->
					<xsl:if test="RECEIVER/CUSTOMER_INFORMATION/NOTE !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<xsl:value-of select="RECEIVER/CUSTOMER_INFORMATION/NOTE"/>
							</td>
						</tr>
					</xsl:if>
					<!-- receiver/freetext -->
					<xsl:if test="RECEIVER/CUSTOMER_INFORMATION/FREE_TEXT !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<xsl:value-of select="RECEIVER/CUSTOMER_INFORMATION/FREE_TEXT"/>
							</td>
						</tr>
					</xsl:if>
					<xsl:if test="RECEIVER/CUSTOMER_INFORMATION/LINKS/LINK !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<xsl:value-of select="RECEIVER/CUSTOMER_INFORMATION/LINKS/LINK"/>
							</td>
						</tr>
					</xsl:if>
					<!-- Empty row-->
					<tr valign="top">
						<!-- A and B -->
						<td colspan="2">
							<xsl:call-template name="ent.nbspspace"/>
						</td>
					</tr>
					<!-- delivery party/business ID and VAT number -->
					<xsl:if test="DELIVERY_PARTY/CUSTOMER_INFORMATION/ORGANIZATION_NUMBER !=''
                 or DELIVERY_PARTY/CUSTOMER_INFORMATION/VAT_NUMBER !=''
                 or DELIVERY_PARTY/CUSTOMER_INFORMATION/PARTY_IDENTIFICATION_ID !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<xsl:if test="DELIVERY_PARTY/CUSTOMER_INFORMATION/ORGANIZATION_NUMBER !=''">
									<span class="layouttext8">
										<xsl:value-of select="$IHIIItextp016"/>
										<xsl:text>: </xsl:text>
									</span>
									<xsl:value-of select="DELIVERY_PARTY/CUSTOMER_INFORMATION/ORGANIZATION_NUMBER"/>
									<xsl:text> </xsl:text>
								</xsl:if>
								<xsl:if test="DELIVERY_PARTY/CUSTOMER_INFORMATION/VAT_NUMBER !=''">
									<span class="layouttext8">
										<xsl:value-of select="$IHIIItextp024"/>
										<xsl:text>: </xsl:text>
									</span>
									<xsl:value-of select="DELIVERY_PARTY/CUSTOMER_INFORMATION/VAT_NUMBER"/>
									<xsl:text> </xsl:text>
								</xsl:if>
								<xsl:if test="DELIVERY_PARTY/CUSTOMER_INFORMATION/PARTY_IDENTIFICATION_ID !=''">
									<xsl:for-each select="DELIVERY_PARTY/CUSTOMER_INFORMATION/PARTY_IDENTIFICATION_ID">
										<span class="layouttext8">
											<xsl:choose>
												<xsl:when test="@AUTHORITY = 'EDI' or not(@AUTHORITY) or @AUTHORITY=''">
													<xsl:value-of select="$IHIIItextp034"/>
												</xsl:when>
												<xsl:otherwise>
													<xsl:value-of select="@AUTHORITY"/>
												</xsl:otherwise>
											</xsl:choose>
											<xsl:text>: </xsl:text>
										</span>
										<xsl:value-of select="."/>
										<xsl:text> </xsl:text>
									</xsl:for-each>
								</xsl:if>
							</td>
						</tr>
					</xsl:if>
					<!-- delivery party/contact_information -->
					<xsl:if test="DELIVERY_PARTY/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON !=''
                 or DELIVERY_PARTY/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON_FUNCTION !=''
                 or DELIVERY_PARTY/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEPHONE_NUMBER !=''
                 or DELIVERY_PARTY/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEFAX_NUMBER !=''
                 or DELIVERY_PARTY/CUSTOMER_INFORMATION/CONTACT_INFORMATION/E-MAIL_ADDRESS != ''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<xsl:if test="DELIVERY_PARTY/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON_FUNCTION !=''">
									<span class="layouttext8">
										<xsl:value-of select="$IHIIItextp037"/>
										<xsl:text>: </xsl:text>
									</span>
									<xsl:value-of select="DELIVERY_PARTY/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON_FUNCTION"/>
									<xsl:text> </xsl:text>
								</xsl:if>
								<xsl:if test="DELIVERY_PARTY/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON !=''">
									<xsl:value-of select="DELIVERY_PARTY/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON"/>
									<xsl:text> </xsl:text>
								</xsl:if>
								<xsl:if test="DELIVERY_PARTY/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEPHONE_NUMBER !=''">
									<span class="layouttext8">
										<xsl:value-of select="$IHIIItextp025"/>
										<xsl:text>: </xsl:text>
									</span>
									<xsl:value-of select="DELIVERY_PARTY/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEPHONE_NUMBER"/>
									<xsl:text> </xsl:text>
								</xsl:if>
								<xsl:if test="DELIVERY_PARTY/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEFAX_NUMBER !=''">
									<span class="layouttext8">
										<xsl:value-of select="$IHIIItextp026"/>
										<xsl:text>: </xsl:text>
									</span>
									<xsl:value-of select="DELIVERY_PARTY/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEFAX_NUMBER"/>
									<xsl:text> </xsl:text>
								</xsl:if>
								<xsl:if test="DELIVERY_PARTY/CUSTOMER_INFORMATION/CONTACT_INFORMATION/E-MAIL_ADDRESS !=''">
									<span class="layouttext8">
										<xsl:value-of select="$IHIIItextp027"/>
										<xsl:text>: </xsl:text>
									</span>
									<xsl:value-of select="DELIVERY_PARTY/CUSTOMER_INFORMATION/CONTACT_INFORMATION/E-MAIL_ADDRESS"/>
									<xsl:text> </xsl:text>
								</xsl:if>
								<xsl:if test="DELIVERY_PARTY/CUSTOMER_INFORMATION/CONTACT_INFORMATION/DEPARTMENT !=''">
									<span class="layouttext8">
										<xsl:value-of select="$IHIIItextp047"/>
										<xsl:text>: </xsl:text>
									</span>
									<xsl:value-of select="DELIVERY_PARTY/CUSTOMER_INFORMATION/CONTACT_INFORMATION/DEPARTMENT"/>
								</xsl:if>
							</td>
						</tr>
					</xsl:if>
					<!--DELIVERY_PARTY/CUSTOMER_INFORMATION/CONTACT_INFORMATION/FREE_TEXT-->
					<xsl:if test="DELIVERY_PARTY/CUSTOMER_INFORMATION/CONTACT_INFORMATION/FREE_TEXT !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<xsl:value-of select="DELIVERY_PARTY/CUSTOMER_INFORMATION/CONTACT_INFORMATION/FREE_TEXT"/>
							</td>
						</tr>
					</xsl:if>
					<!-- DELIVERY_PARTY/../Organization_department, Site-->
					<xsl:if test="DELIVERY_PARTY/CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT !=''
                 or DELIVERY_PARTY/CUSTOMER_INFORMATION/SITE !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<xsl:if test="DELIVERY_PARTY/CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT !=''">
									<span class="layouttext8">
										<xsl:value-of select="$IHIIItextp047"/>
										<xsl:text>: </xsl:text>
									</span>
									<xsl:apply-templates select="DELIVERY_PARTY/CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT[1]"/>
									<xsl:if test="DELIVERY_PARTY/CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT[2] != ''">
										<xsl:text> </xsl:text>
										<xsl:apply-templates select="DELIVERY_PARTY/CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT[2]"/>
										<xsl:text> </xsl:text>
									</xsl:if>
									<xsl:text> </xsl:text>
								</xsl:if>
								<xsl:if test="DELIVERY_PARTY/CUSTOMER_INFORMATION/SITE !=''">
									<span class="layouttext8">
										<xsl:value-of select="$IHIIItextp046"/>
										<xsl:text>: </xsl:text>
									</span>
									<xsl:value-of select="DELIVERY_PARTY/CUSTOMER_INFORMATION/SITE"/>
									<xsl:text> </xsl:text>
								</xsl:if>
							</td>
						</tr>
					</xsl:if>
					<xsl:if test="DELIVERY_PARTY/CUSTOMER_INFORMATION/E-MAIL_ADDRESS != ''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<span class="layouttext8">
									<xsl:value-of select="$IHIIItextp027"/>
									<xsl:text>: </xsl:text>
								</span>
								<xsl:value-of select="DELIVERY_PARTY/CUSTOMER_INFORMATION/E-MAIL_ADDRESS"/>
							</td>
						</tr>
					</xsl:if>
					<!-- delivery party/note -->
					<xsl:if test="DELIVERY_PARTY/CUSTOMER_INFORMATION/NOTE !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<xsl:value-of select="DELIVERY_PARTY/CUSTOMER_INFORMATION/NOTE"/>
							</td>
						</tr>
					</xsl:if>
					<!-- delivery party/freetext -->
					<xsl:if test="DELIVERY_PARTY/CUSTOMER_INFORMATION/FREE_TEXT !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<xsl:value-of select="DELIVERY_PARTY/CUSTOMER_INFORMATION/FREE_TEXT"/>
							</td>
						</tr>
					</xsl:if>
					<xsl:if test="DELIVERY_PARTY/CUSTOMER_INFORMATION/LINKS/LINK !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns10" colspan="2">
								<xsl:value-of select="DELIVERY_PARTY/CUSTOMER_INFORMATION/LINKS/LINK"/>
							</td>
						</tr>
					</xsl:if>
					<!-- orderer -->
					<xsl:if test="ORDERER !=''">
						<xsl:apply-templates select="ORDERER/CUSTOMER_INFORMATION" mode="rows3">
							<xsl:with-param name="CItext1" select="$IHIIItextp031"/>
							<xsl:with-param name="CItext2" select="$IHIIItextp014"/>
							<xsl:with-param name="CItext3" select="$IHIIItextp017"/>
							<xsl:with-param name="CItext4" select="$IHIIItextp018"/>
							<xsl:with-param name="CItext5" select="$IHIIItextp025"/>
							<xsl:with-param name="CItext6" select="$IHIIItextp027"/>
							<xsl:with-param name="CItext7" select="$IHIIItextp030"/>
							<xsl:with-param name="CItext8" select="$IHIIItextp026"/>
							<xsl:with-param name="CItext9" select="$IHIIItextp034"/>
							<xsl:with-param name="CItext10" select="$IHIIItextp037"/>
							<xsl:with-param name="CItext11" select="$IHIIItextp047"/>
							<xsl:with-param name="CItext12" select="$IHIIItextp046"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- holder -->
					<xsl:if test="HOLDER !=''">
						<xsl:apply-templates select="HOLDER/CUSTOMER_INFORMATION" mode="rows3">
							<xsl:with-param name="CItext1" select="$IHIIItextp038"/>
							<xsl:with-param name="CItext2" select="$IHIIItextp014"/>
							<xsl:with-param name="CItext3" select="$IHIIItextp017"/>
							<xsl:with-param name="CItext4" select="$IHIIItextp018"/>
							<xsl:with-param name="CItext5" select="$IHIIItextp025"/>
							<xsl:with-param name="CItext6" select="$IHIIItextp027"/>
							<xsl:with-param name="CItext7" select="$IHIIItextp030"/>
							<xsl:with-param name="CItext8" select="$IHIIItextp026"/>
							<xsl:with-param name="CItext9" select="$IHIIItextp034"/>
							<xsl:with-param name="CItext10" select="$IHIIItextp037"/>
							<xsl:with-param name="CItext11" select="$IHIIItextp047"/>
							<xsl:with-param name="CItext12" select="$IHIIItextp046"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- payer -->
					<xsl:if test="PAYER !=''">
						<xsl:apply-templates select="PAYER/CUSTOMER_INFORMATION" mode="rows3">
							<xsl:with-param name="CItext1" select="$IHIIItextp013"/>
							<xsl:with-param name="CItext2" select="$IHIIItextp014"/>
							<xsl:with-param name="CItext3" select="$IHIIItextp017"/>
							<xsl:with-param name="CItext4" select="$IHIIItextp018"/>
							<xsl:with-param name="CItext5" select="$IHIIItextp025"/>
							<xsl:with-param name="CItext6" select="$IHIIItextp027"/>
							<xsl:with-param name="CItext7" select="$IHIIItextp030"/>
							<xsl:with-param name="CItext8" select="$IHIIItextp026"/>
							<xsl:with-param name="CItext9" select="$IHIIItextp034"/>
							<xsl:with-param name="CItext10" select="$IHIIItextp037"/>
							<xsl:with-param name="CItext11" select="$IHIIItextp047"/>
							<xsl:with-param name="CItext12" select="$IHIIItextp046"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- payor -->
					<xsl:if test="PAYOR !=''">
						<xsl:apply-templates select="PAYOR/CUSTOMER_INFORMATION" mode="rows3">
							<xsl:with-param name="CItext1" select="$IHIIItextp039"/>
							<xsl:with-param name="CItext2" select="$IHIIItextp014"/>
							<xsl:with-param name="CItext3" select="$IHIIItextp017"/>
							<xsl:with-param name="CItext4" select="$IHIIItextp018"/>
							<xsl:with-param name="CItext5" select="$IHIIItextp025"/>
							<xsl:with-param name="CItext6" select="$IHIIItextp027"/>
							<xsl:with-param name="CItext7" select="$IHIIItextp030"/>
							<xsl:with-param name="CItext8" select="$IHIIItextp026"/>
							<xsl:with-param name="CItext9" select="$IHIIItextp034"/>
							<xsl:with-param name="CItext10" select="$IHIIItextp037"/>
							<xsl:with-param name="CItext11" select="$IHIIItextp047"/>
							<xsl:with-param name="CItext12" select="$IHIIItextp046"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- invoice recipient -->
					<xsl:if test="INVOICE_RECIPIENT !=''">
						<xsl:apply-templates select="INVOICE_RECIPIENT/CUSTOMER_INFORMATION" mode="rows3">
							<xsl:with-param name="CItext1" select="$IHIIItextp028"/>
							<xsl:with-param name="CItext2" select="$IHIIItextp014"/>
							<xsl:with-param name="CItext3" select="$IHIIItextp017"/>
							<xsl:with-param name="CItext4" select="$IHIIItextp018"/>
							<xsl:with-param name="CItext5" select="$IHIIItextp025"/>
							<xsl:with-param name="CItext6" select="$IHIIItextp027"/>
							<xsl:with-param name="CItext7" select="$IHIIItextp030"/>
							<xsl:with-param name="CItext8" select="$IHIIItextp026"/>
							<xsl:with-param name="CItext9" select="$IHIIItextp034"/>
							<xsl:with-param name="CItext10" select="$IHIIItextp037"/>
							<xsl:with-param name="CItext11" select="$IHIIItextp047"/>
							<xsl:with-param name="CItext12" select="$IHIIItextp046"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- invoice sender -->
					<xsl:if test="INVOICE_SENDER !=''">
						<xsl:apply-templates select="INVOICE_SENDER/CUSTOMER_INFORMATION" mode="rows3">
							<xsl:with-param name="CItext1" select="$IHIIItextp029"/>
							<xsl:with-param name="CItext2" select="$IHIIItextp014"/>
							<xsl:with-param name="CItext3" select="$IHIIItextp017"/>
							<xsl:with-param name="CItext4" select="$IHIIItextp018"/>
							<xsl:with-param name="CItext5" select="$IHIIItextp025"/>
							<xsl:with-param name="CItext6" select="$IHIIItextp027"/>
							<xsl:with-param name="CItext7" select="$IHIIItextp030"/>
							<xsl:with-param name="CItext8" select="$IHIIItextp026"/>
							<xsl:with-param name="CItext9" select="$IHIIItextp034"/>
							<xsl:with-param name="CItext10" select="$IHIIItextp037"/>
							<xsl:with-param name="CItext11" select="$IHIIItextp047"/>
							<xsl:with-param name="CItext12" select="$IHIIItextp046"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- manufacturer -->
					<xsl:if test="MANUFACTURER !=''">
						<xsl:apply-templates select="MANUFACTURER/CUSTOMER_INFORMATION" mode="rows3">
							<xsl:with-param name="CItext1" select="$IHIIItextp040"/>
							<xsl:with-param name="CItext2" select="$IHIIItextp014"/>
							<xsl:with-param name="CItext3" select="$IHIIItextp017"/>
							<xsl:with-param name="CItext4" select="$IHIIItextp018"/>
							<xsl:with-param name="CItext5" select="$IHIIItextp025"/>
							<xsl:with-param name="CItext6" select="$IHIIItextp027"/>
							<xsl:with-param name="CItext7" select="$IHIIItextp030"/>
							<xsl:with-param name="CItext8" select="$IHIIItextp026"/>
							<xsl:with-param name="CItext9" select="$IHIIItextp034"/>
							<xsl:with-param name="CItext10" select="$IHIIItextp037"/>
							<xsl:with-param name="CItext11" select="$IHIIItextp047"/>
							<xsl:with-param name="CItext12" select="$IHIIItextp046"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- sales contact -->
					<xsl:if test="SALES_CONTACT !=''">
						<xsl:apply-templates select="SALES_CONTACT/CUSTOMER_INFORMATION" mode="rows3">
							<xsl:with-param name="CItext1" select="$IHIIItextp005"/>
							<xsl:with-param name="CItext2" select="$IHIIItextp014"/>
							<xsl:with-param name="CItext3" select="$IHIIItextp017"/>
							<xsl:with-param name="CItext4" select="$IHIIItextp018"/>
							<xsl:with-param name="CItext5" select="$IHIIItextp025"/>
							<xsl:with-param name="CItext6" select="$IHIIItextp027"/>
							<xsl:with-param name="CItext7" select="$IHIIItextp030"/>
							<xsl:with-param name="CItext8" select="$IHIIItextp026"/>
							<xsl:with-param name="CItext9" select="$IHIIItextp034"/>
							<xsl:with-param name="CItext10" select="$IHIIItextp037"/>
							<xsl:with-param name="CItext11" select="$IHIIItextp047"/>
							<xsl:with-param name="CItext12" select="$IHIIItextp046"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- deliverer -->
					<xsl:if test="DELIVERER !=''">
						<xsl:apply-templates select="DELIVERER/CUSTOMER_INFORMATION" mode="rows3">
							<xsl:with-param name="CItext1" select="$IHIIItextp012"/>
							<xsl:with-param name="CItext2" select="$IHIIItextp014"/>
							<xsl:with-param name="CItext3" select="$IHIIItextp017"/>
							<xsl:with-param name="CItext4" select="$IHIIItextp018"/>
							<xsl:with-param name="CItext5" select="$IHIIItextp025"/>
							<xsl:with-param name="CItext6" select="$IHIIItextp027"/>
							<xsl:with-param name="CItext7" select="$IHIIItextp030"/>
							<xsl:with-param name="CItext8" select="$IHIIItextp026"/>
							<xsl:with-param name="CItext9" select="$IHIIItextp034"/>
							<xsl:with-param name="CItext10" select="$IHIIItextp037"/>
							<xsl:with-param name="CItext11" select="$IHIIItextp047"/>
							<xsl:with-param name="CItext12" select="$IHIIItextp046"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- OTHER_PARTNER/@PARTNER_TEXT -->
					<xsl:if test="OTHER_PARTNER !=''">
						<xsl:apply-templates select="OTHER_PARTNER/CUSTOMER_INFORMATION" mode="rows3">
							<xsl:with-param name="CItext1" select="$IHIIItextp057"/>
							<xsl:with-param name="CItext2" select="$IHIIItextp014"/>
							<xsl:with-param name="CItext3" select="$IHIIItextp017"/>
							<xsl:with-param name="CItext4" select="$IHIIItextp018"/>
							<xsl:with-param name="CItext5" select="$IHIIItextp025"/>
							<xsl:with-param name="CItext6" select="$IHIIItextp027"/>
							<xsl:with-param name="CItext7" select="$IHIIItextp030"/>
							<xsl:with-param name="CItext8" select="$IHIIItextp026"/>
							<xsl:with-param name="CItext9" select="$IHIIItextp034"/>
							<xsl:with-param name="CItext10" select="$IHIIItextp037"/>
							<xsl:with-param name="CItext11" select="$IHIIItextp047"/>
							<xsl:with-param name="CItext12" select="$IHIIItextp046"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- Empty row-->
					<tr valign="top">
						<!-- A and B -->
						<td colspan="2">
							<xsl:call-template name="ent.nbspspace"/>
						</td>
					</tr>
					<!-- credit invoice information -->
					<xsl:if test="HEADER/CREDIT_INVOICE_NUMBER !='' 
                       or HEADER/CREDIT_INVOICE_DATE !=''
                       or HEADER/CREDIT_INVOICE_DUE_DATE !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="2">
								<xsl:value-of select="$IHIIItextp006"/>
								<xsl:text>: </xsl:text>
								<span class="layouttext10">
									<xsl:value-of select="HEADER/CREDIT_INVOICE_NUMBER"/>
									<xsl:text> </xsl:text>
									<xsl:apply-templates select="HEADER/CREDIT_INVOICE_DATE"/>
									<xsl:text> </xsl:text>
									<xsl:apply-templates select="HEADER/CREDIT_INVOICE_DUE_DATE"/>
								</span>
							</td>
						</tr>
					</xsl:if>
					<!-- value date -->
					<xsl:if test="HEADER/VALUE_DATE !='' and (string(HEADER/VALUE_DATE/DATE) != string(HEADER/INVOICE_DATE/DATE))">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="2">
								<xsl:value-of select="$IHIIItextp007"/>
								<xsl:text>: </xsl:text>
								<span class="layouttext10">
									<xsl:apply-templates select="HEADER/VALUE_DATE"/>
								</span>
							</td>
						</tr>
					</xsl:if>
					<!-- tax point date, date code -->
					<xsl:if test="HEADER/TAX_POINT_DATE !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="2">
							<xsl:if test="HEADER/TAX_POINT_DATE/DATE">
								<xsl:value-of select="$IHIIItextp135"/>
								<xsl:text>: </xsl:text>
								<span class="layouttext10">
									<xsl:apply-templates select="HEADER/TAX_POINT_DATE/DATE"/>
								</span>
								<xsl:text> </xsl:text>
								</xsl:if>
								<xsl:if test="HEADER/TAX_POINT_DATE/DATE_CODE">
								<xsl:value-of select="$IHIIItextp136"/>
								<xsl:text>: </xsl:text>
								<span class="layouttext10">
									<xsl:value-of select="HEADER/TAX_POINT_DATE/DATE_CODE"/>
								</span>
								</xsl:if>
							</td>
						</tr>
					</xsl:if>
					<!-- order confirmation -->
					<xsl:if test="HEADER/ORDER_CONFIRMATION !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="2">
								<xsl:value-of select="$IHIIItextp009"/>
								<xsl:text>: </xsl:text>
								<span class="layouttext10">
									<xsl:for-each select="HEADER/ORDER_CONFIRMATION">
										<xsl:value-of select="ORDER_CONFIRMATION_NUMBER"/>
										<xsl:text> </xsl:text>
										<xsl:apply-templates select="ORDER_CONFIRMATION_DATE"/>
										<xsl:text> </xsl:text>
									</xsl:for-each>
								</span>
							</td>
						</tr>
					</xsl:if>
					<!-- order information order_type=MH -->
					<xsl:if test="HEADER/ORDER_INFORMATION[@ORDER_TYPE='MH'] !=''">
						<xsl:if test="HEADER/ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_NUMBER != '' or HEADER/ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_DATE != '' or HEADER/ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_REFERENCE != '' or HEADER/ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_POSITION != ''">
							<tr>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="2">
									<xsl:if test="HEADER/ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_NUMBER != '' or HEADER/ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_DATE != ''">
										<xsl:value-of select="$IHIIItextp050"/>
										<xsl:text>: </xsl:text>
										<span class="layouttext10">
											<xsl:value-of select="HEADER/ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_NUMBER"/>
											<xsl:text> </xsl:text>
											<xsl:apply-templates select="HEADER/ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_DATE"/>
											<xsl:text> </xsl:text>
										</span>
									</xsl:if>
									<xsl:if test="HEADER/ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_REFERENCE != ''">
										<xsl:value-of select="$IHIIItextp049"/>
										<xsl:text>: </xsl:text>
										<span class="layouttext10">
											<xsl:apply-templates select="HEADER/ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_REFERENCE"/>
											<xsl:text> </xsl:text>
										</span>
									</xsl:if>
									<xsl:if test="HEADER/ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_POSITION != ''">
										<xsl:value-of select="$IHIIItextp048"/>
										<xsl:text>: </xsl:text>
										<span class="layouttext10">
											<xsl:apply-templates select="HEADER/ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_POSITION"/>
										</span>
									</xsl:if>
								</td>
							</tr>
						</xsl:if>
					</xsl:if>
					<!-- transport information -->
					<xsl:if test="HEADER/TRANSPORT_INFORMATION !=''">
						<xsl:apply-templates select="HEADER/TRANSPORT_INFORMATION">
							<xsl:with-param name="TItext1" select="$IHIIItextp010"/>
							<xsl:with-param name="IHIIItextp051" select="$IHIIItextp051"/>
							<xsl:with-param name="IHIIItextp052" select="$IHIIItextp052"/>
							<xsl:with-param name="IHIIItextp053" select="$IHIIItextp053"/>
							<xsl:with-param name="IHIIItextp011" select="$IHIIItextp011"/>
							<xsl:with-param name="IRtextp053" select="$Rtextp053"/>
							<xsl:with-param name="IHIIItextp089" select="$IHIIItextp089"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- empty row -->
					<tr>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="2">
							<xsl:text> </xsl:text>
						</td>
					</tr>
					<!--CLEARANCE_NUMBER-->
					<xsl:if test="HEADER/CLEARANCE_NUMBER !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="2">
								<xsl:value-of select="$IHIIItextp054"/>
								<xsl:text>: </xsl:text>
								<span class="layouttext10">
									<xsl:apply-templates select="HEADER/CLEARANCE_NUMBER"/>
								</span>
							</td>
						</tr>
					</xsl:if>
				</table>
			</td>
		</tr>
	</xsl:template>
	<!-- ========================================================================== -->
	<!-- subtemplate for InvoiceHeaderIII_25common: TRANSPORT_INFORMATION node ==== -->
	<xsl:template match="TRANSPORT_INFORMATION">
		<xsl:param name="TItext1"/>
		<xsl:param name="IHIIItextp051"/>
		<xsl:param name="IHIIItextp052"/>
		<xsl:param name="IHIIItextp053"/>
		<xsl:param name="IHIIItextp011"/>
		<xsl:param name="IRtextp053"/>
		<xsl:param name="IHIIItextp089"/>
		<tr>
			<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="2">
				<!-- mode of transport etc. -->
				<xsl:if test="MODE_OF_TRANSPORT!='' or CARRIER/VESSEL!='' or CARRIER/CARRIER_NAME!='' or DATE!='' ">
					<xsl:value-of select="$TItext1"/>
					<xsl:text>: </xsl:text>
				</xsl:if>
				<span class="layouttext10">
					<xsl:value-of select="MODE_OF_TRANSPORT"/>
					<xsl:text> </xsl:text>
					<xsl:value-of select="CARRIER/VESSEL"/>
					<xsl:text> </xsl:text>
					<xsl:value-of select="CARRIER/CARRIER_NAME"/>
					<xsl:text> </xsl:text>
				</span>
				<xsl:if test="LOCATION!=''">
					<xsl:value-of select="$IHIIItextp089"/>
					<xsl:text>: </xsl:text>
					<span class="layouttext10">
						<xsl:value-of select="LOCATION"/>
						<xsl:text> </xsl:text>
					</span>
				</xsl:if>
				<span class="layouttext10">
					<xsl:if test="DATE != ''">
						<xsl:apply-templates select="DATE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</span>
				<xsl:if test="TRANSPORT_NOTE!=''">
					<xsl:value-of select="$IRtextp053"/>
					<xsl:text>: </xsl:text>
					<span class="layouttext10">
						<xsl:value-of select="TRANSPORT_NOTE"/>
					</span>
				</xsl:if>
			</td>
		</tr>
		<!-- transport information/country of origin/country code/country -->
		<xsl:if test="COUNTRY_OF_ORIGIN/COUNTRY_CODE !=''
           or COUNTRY_OF_ORIGIN/COUNTRY !='' ">
			<tr>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="2">
					<xsl:value-of select="$IHIIItextp051"/>
					<xsl:text>: </xsl:text>
					<span class="layouttext10">
						<xsl:if test="COUNTRY_OF_ORIGIN/COUNTRY_CODE !=''">
							<xsl:value-of select="COUNTRY_OF_ORIGIN/COUNTRY_CODE"/>
							<xsl:text> </xsl:text>
						</xsl:if>
						<xsl:value-of select="COUNTRY_OF_ORIGIN/COUNTRY"/>
					</span>
				</td>
			</tr>
		</xsl:if>
		<!-- place of discharge/final destination -->
		<xsl:if test="PLACE_OF_DISCHARGE !=''
           or FINAL_DESTINATION !='' ">
			<tr>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="2">
					<xsl:if test="PLACE_OF_DISCHARGE !=''">
						<xsl:value-of select="$IHIIItextp052"/>
						<xsl:text>: </xsl:text>
					</xsl:if>
					<span class="layouttext10">
						<xsl:value-of select="PLACE_OF_DISCHARGE"/>
						<xsl:text> </xsl:text>
					</span>
					<xsl:if test="FINAL_DESTINATION !='' ">
						<xsl:value-of select="$IHIIItextp053"/>
						<xsl:text>: </xsl:text>
					</xsl:if>
					<span class="layouttext10">
						<xsl:value-of select="FINAL_DESTINATION"/>
					</span>
				</td>
			</tr>
		</xsl:if>
		<!-- transport information/ country of destination -->
		<xsl:if test="COUNTRY_OF_DESTINATION/COUNTRY_CODE !=''
           or COUNTRY_OF_DESTINATION/COUNTRY !='' ">
			<tr>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="2">
					<xsl:value-of select="$IHIIItextp011"/>
					<xsl:text>: </xsl:text>
					<span class="layouttext10">
						<xsl:if test="COUNTRY_OF_DESTINATION/COUNTRY_CODE !=''">
							<xsl:value-of select="COUNTRY_OF_DESTINATION/COUNTRY_CODE"/>
							<xsl:text> </xsl:text>
						</xsl:if>
						<xsl:value-of select="COUNTRY_OF_DESTINATION/COUNTRY"/>
					</span>
				</td>
			</tr>
		</xsl:if>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for common InvoiceHeaderIV ============================================= -->
	<xsl:template name="InvoiceHeaderIV_25common">
		<xsl:param name="IHIIItextp012"/>
		<xsl:param name="IHIIItextp058"/>
		<xsl:param name="IHIIItextp059"/>
		<xsl:param name="IHIIItextp060"/>
		<xsl:param name="IHIIItextp061"/>
		<xsl:param name="IHIIItextp062"/>
		<xsl:param name="IHIIItextp063"/>
		<xsl:param name="IHIIItextp064"/>
		<xsl:param name="IHIIItextp065"/>
		<!-- HeaderInfo -->
		<xsl:if test="HEADER/HEADER_INFO != ''">
			<tr valign="top">
				<!-- A and B -->
				<td colspan="2">
					<table xsl:use-attribute-sets="TableNoBorder">
						<xsl:apply-templates select="HEADER/HEADER_INFO"/>
					</table>
					<br/>
				</td>
			</tr>
		</xsl:if>
		<!-- Kollilkm... -->
		<!--  PACKING_MARKS -->
		<xsl:if test="HEADER/PACKING_MARKS !=''
                 or HEADER/TOTAL_PACKING_MARKS !=''">
			<xsl:call-template name="HorizontalRule_2columns"/>
			<tr>
				<td colspan="8">
					<table xsl:use-attribute-sets="TableNoBorder">
						<!-- heading for default postings-->
						<!-- subheading for default postings-->
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
								<xsl:value-of select="$IHIIItextp058"/>
							</td>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
								<xsl:value-of select="$IHIIItextp059"/>
							</td>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" width="25%">
								<xsl:value-of select="$IHIIItextp060"/>
							</td>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
								<xsl:value-of select="$IHIIItextp061"/>
							</td>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" width="20%">
								<xsl:value-of select="$IHIIItextp062"/>
							</td>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
								<xsl:value-of select="$IHIIItextp063"/>
							</td>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
								<xsl:value-of select="$IHIIItextp064"/>
							</td>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
								<xsl:value-of select="$IHIIItextp065"/>
							</td>
						</tr>
						<!-- DEFAULTS: default posting row -->
						<xsl:if test="HEADER/PACKING_MARKS !=''
	     	or HEADER/TOTAL_PACKING_MARKS !=''">
							<xsl:for-each select="HEADER/PACKING_MARKS">
								<tr>
									<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
										<xsl:apply-templates select="PACK_QUANTITY[@SIGN = '-']/@SIGN"/>
										<xsl:value-of select="PACK_QUANTITY"/>
										<xsl:text> </xsl:text>
										<xsl:choose>
											<xsl:when test="PACK_QUANTITY/@Q_UNIT">
												<xsl:value-of select="PACK_QUANTITY/@Q_UNIT"/>
												<xsl:text> </xsl:text>
											</xsl:when>
											<xsl:otherwise>
												<xsl:value-of select="PACK_QUANTITY/@Q_UNIT_UNECE_CODE"/>
												<xsl:text> </xsl:text>
											</xsl:otherwise>
										</xsl:choose>
									</td>
									<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
										<xsl:value-of select="PACKING_MARK"/>
										<xsl:text> </xsl:text>
									</td>
									<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
										<xsl:value-of select="PACKING_DESCRIPTION"/>
										<xsl:text> </xsl:text>
									</td>
									<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
										<xsl:value-of select="CN_NAME"/>
										<xsl:text> </xsl:text>
									</td>
									<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
										<xsl:choose>
											<xsl:when test="MEASUREMENTS/LENGTH != '' or MEASUREMENTS/WIDTH != '' or MEASUREMENTS/HEIGHT != ''">
												<xsl:apply-templates select="MEASUREMENTS/HEIGHT[@SIGN = '-']/@SIGN"/>
												<xsl:value-of select="MEASUREMENTS/LENGTH"/>
												<xsl:text> </xsl:text>
												<xsl:choose>
													<xsl:when test="MEASUREMENTS/LENGTH/@Q_UNIT">
														<xsl:value-of select="MEASUREMENTS/LENGTH/@Q_UNIT"/>
														<xsl:text> </xsl:text>
													</xsl:when>
													<xsl:otherwise>
														<xsl:value-of select="MEASUREMENTS/LENGTH/@Q_UNIT_UNECE_CODE"/>
														<xsl:text> </xsl:text>
													</xsl:otherwise>
												</xsl:choose>
												<xsl:if test="MEASUREMENTS/LENGTH != '' and MEASUREMENTS/WIDTH != ''">
													<xsl:text> x </xsl:text>
												</xsl:if>
												<xsl:apply-templates select="MEASUREMENTS/HEIGHT[@SIGN = '-']/@SIGN"/>
												<xsl:value-of select="MEASUREMENTS/WIDTH"/>
												<xsl:text> </xsl:text>
												<xsl:choose>
													<xsl:when test="MEASUREMENTS/WIDTH/@Q_UNIT">
														<xsl:value-of select="MEASUREMENTS/WIDTH/@Q_UNIT"/>
														<xsl:text> </xsl:text>
													</xsl:when>
													<xsl:otherwise>
														<xsl:value-of select="MEASUREMENTS/WIDTH/@Q_UNIT_UNECE_CODE"/>
														<xsl:text> </xsl:text>
													</xsl:otherwise>
												</xsl:choose>
												<xsl:if test="(MEASUREMENTS/LENGTH != '' or MEASUREMENTS/WIDTH != '') and MEASUREMENTS/HEIGHT != ''">
													<xsl:text> x </xsl:text>
												</xsl:if>
												<xsl:apply-templates select="MEASUREMENTS/HEIGHT[@SIGN = '-']/@SIGN"/>
												<xsl:value-of select="MEASUREMENTS/HEIGHT"/>
												<xsl:text> </xsl:text>
												<xsl:choose>
													<xsl:when test="MEASUREMENTS/HEIGHT/@Q_UNIT">
														<xsl:value-of select="MEASUREMENTS/HEIGHT/@Q_UNIT"/>
														<xsl:text> </xsl:text>
													</xsl:when>
													<xsl:otherwise>
														<xsl:value-of select="MEASUREMENTS/HEIGHT/@Q_UNIT_UNECE_CODE"/>
														<xsl:text> </xsl:text>
													</xsl:otherwise>
												</xsl:choose>
												<xsl:text> </xsl:text>
											</xsl:when>
											<xsl:otherwise>
												<xsl:value-of select="MEASUREMENT_TEXT"/>
											</xsl:otherwise>
										</xsl:choose>
									</td>
									<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
										<xsl:apply-templates select="GROSS_WEIGHT[@SIGN = '-']/@SIGN"/>
										<xsl:value-of select="GROSS_WEIGHT"/>
										<xsl:text> </xsl:text>
										<xsl:choose>
											<xsl:when test="GROSS_WEIGHT/@Q_UNIT">
												<xsl:value-of select="GROSS_WEIGHT/@Q_UNIT"/>
												<xsl:text> </xsl:text>
											</xsl:when>
											<xsl:otherwise>
												<xsl:value-of select="GROSS_WEIGHT/@Q_UNIT_UNECE_CODE"/>
												<xsl:text> </xsl:text>
											</xsl:otherwise>
										</xsl:choose>
										<xsl:text> </xsl:text>
									</td>
									<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
										<xsl:apply-templates select="NET_WEIGHT[@SIGN = '-']/@SIGN"/>
										<xsl:value-of select="NET_WEIGHT"/>
										<xsl:text> </xsl:text>
										<xsl:choose>
											<xsl:when test="NET_WEIGHT/@Q_UNIT">
												<xsl:value-of select="NET_WEIGHT/@Q_UNIT"/>
												<xsl:text> </xsl:text>
											</xsl:when>
											<xsl:otherwise>
												<xsl:value-of select="NET_WEIGHT/@Q_UNIT_UNECE_CODE"/>
												<xsl:text> </xsl:text>
											</xsl:otherwise>
										</xsl:choose>
										<xsl:text> </xsl:text>
									</td>
									<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
										<xsl:apply-templates select="VOLUME[@SIGN = '-']/@SIGN"/>
										<xsl:value-of select="VOLUME"/>
										<xsl:text> </xsl:text>
										<xsl:choose>
											<xsl:when test="VOLUME/@Q_UNIT">
												<xsl:value-of select="VOLUME/@Q_UNIT"/>
												<xsl:text> </xsl:text>
											</xsl:when>
											<xsl:otherwise>
												<xsl:value-of select="VOLUME/@Q_UNIT_UNECE_CODE"/>
												<xsl:text> </xsl:text>
											</xsl:otherwise>
										</xsl:choose>
										<xsl:text> </xsl:text>
									</td>
								</tr>
								<tr>
									<td>&#160;</td>
								</tr>
							</xsl:for-each>
							<tr>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
									<xsl:apply-templates select="HEADER/TOTAL_PACKING_MARKS/TOTAL_PACK_QUANTITY[@SIGN = '-']/@SIGN"/>
									<xsl:value-of select="HEADER/TOTAL_PACKING_MARKS/TOTAL_PACK_QUANTITY"/>
									<xsl:text> </xsl:text>
									<xsl:choose>
										<xsl:when test="HEADER/TOTAL_PACKING_MARKS/TOTAL_PACK_QUANTITY/@Q_UNIT">
											<xsl:value-of select="HEADER/TOTAL_PACKING_MARKS/TOTAL_PACK_QUANTITY/@Q_UNIT"/>
											<xsl:text> </xsl:text>
										</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select="HEADER/TOTAL_PACKING_MARKS/TOTAL_PACK_QUANTITY/@Q_UNIT_UNECE_CODE"/>
											<xsl:text> </xsl:text>
										</xsl:otherwise>
									</xsl:choose>
								</td>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns"/>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns"/>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns"/>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
									<xsl:choose>
										<xsl:when test="HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/LENGTH != '' or HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/WIDTH != '' or HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/HEIGHT != ''">
											<xsl:apply-templates select="HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/LENGTH[@SIGN = '-']/@SIGN"/>
											<xsl:value-of select="HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/LENGTH"/>
											<xsl:text> </xsl:text>
											<xsl:choose>
												<xsl:when test="HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/LENGTH/@Q_UNIT">
													<xsl:value-of select="HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/LENGTH/@Q_UNIT"/>
													<xsl:text> </xsl:text>
												</xsl:when>
												<xsl:otherwise>
													<xsl:value-of select="HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/LENGTH/@Q_UNIT_UNECE_CODE"/>
													<xsl:text> </xsl:text>
												</xsl:otherwise>
											</xsl:choose>
											<xsl:if test="HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/LENGTH != '' and HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/WIDTH != ''">
												<xsl:text> x </xsl:text>
											</xsl:if>
											<xsl:apply-templates select="HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/WIDTH[@SIGN = '-']/@SIGN"/>
											<xsl:value-of select="HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/WIDTH"/>
											<xsl:text> </xsl:text>
											<xsl:choose>
												<xsl:when test="HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/WIDTH/@Q_UNIT">
													<xsl:value-of select="HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/WIDTH/@Q_UNIT"/>
													<xsl:text> </xsl:text>
												</xsl:when>
												<xsl:otherwise>
													<xsl:value-of select="HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/LENGTH/@Q_UNIT_UNECE_CODE"/>
													<xsl:text> </xsl:text>
												</xsl:otherwise>
											</xsl:choose>
											<xsl:if test="(HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/LENGTH != '' or HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/WIDTH != '') and HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/HEIGHT != ''">
												<xsl:text> x </xsl:text>
											</xsl:if>
											<xsl:apply-templates select="HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/HEIGHT[@SIGN = '-']/@SIGN"/>
											<xsl:value-of select="HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/HEIGHT"/>
											<xsl:text> </xsl:text>
											<xsl:choose>
												<xsl:when test="HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/HEIGHT/@Q_UNIT">
													<xsl:value-of select="HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/HEIGHT/@Q_UNIT"/>
													<xsl:text> </xsl:text>
												</xsl:when>
												<xsl:otherwise>
													<xsl:value-of select="HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENTS/HEIGHT/@Q_UNIT_UNECE_CODE"/>
													<xsl:text> </xsl:text>
												</xsl:otherwise>
											</xsl:choose>
											<xsl:text> </xsl:text>
										</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select="HEADER/TOTAL_PACKING_MARKS/TOTAL_MEASUREMENT_TEXT"/>
										</xsl:otherwise>
									</xsl:choose>
								</td>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
									<xsl:apply-templates select="HEADER/TOTAL_PACKING_MARKS/TOTAL_GROSS_WEIGHT[@SIGN = '-']/@SIGN"/>
									<xsl:value-of select="HEADER/TOTAL_PACKING_MARKS/TOTAL_GROSS_WEIGHT"/>
									<xsl:text> </xsl:text>
									<xsl:choose>
										<xsl:when test="HEADER/TOTAL_PACKING_MARKS/TOTAL_GROSS_WEIGHT/@Q_UNIT">
											<xsl:value-of select="HEADER/TOTAL_PACKING_MARKS/TOTAL_GROSS_WEIGHT/@Q_UNIT"/>
											<xsl:text> </xsl:text>
										</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select="HEADER/TOTAL_PACKING_MARKS/TOTAL_GROSS_WEIGHT/@Q_UNIT_UNECE_CODE"/>
											<xsl:text> </xsl:text>
										</xsl:otherwise>
									</xsl:choose>
								</td>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
									<xsl:apply-templates select="HEADER/TOTAL_PACKING_MARKS/TOTAL_NET_WEIGHT[@SIGN = '-']/@SIGN"/>
									<xsl:value-of select="HEADER/TOTAL_PACKING_MARKS/TOTAL_NET_WEIGHT"/>
									<xsl:text> </xsl:text>
									<xsl:choose>
										<xsl:when test="HEADER/TOTAL_PACKING_MARKS/TOTAL_NET_WEIGHT/@Q_UNIT">
											<xsl:value-of select="HEADER/TOTAL_PACKING_MARKS/TOTAL_NET_WEIGHT/@Q_UNIT"/>
											<xsl:text> </xsl:text>
										</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select="HEADER/TOTAL_PACKING_MARKS/TOTAL_NET_WEIGHT/@Q_UNIT_UNECE_CODE"/>
											<xsl:text> </xsl:text>
										</xsl:otherwise>
									</xsl:choose>
								</td>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
									<xsl:apply-templates select="HEADER/TOTAL_PACKING_MARKS/TOTAL_VOLUME[@SIGN = '-']/@SIGN"/>
									<xsl:value-of select="HEADER/TOTAL_PACKING_MARKS/TOTAL_VOLUME"/>
									<xsl:text> </xsl:text>
									<xsl:choose>
										<xsl:when test="HEADER/TOTAL_PACKING_MARKS/TOTAL_VOLUME/@Q_UNIT">
											<xsl:value-of select="HEADER/TOTAL_PACKING_MARKS/TOTAL_VOLUME/@Q_UNIT"/>
											<xsl:text> </xsl:text>
										</xsl:when>
										<xsl:otherwise>
											<xsl:value-of select="HEADER/TOTAL_PACKING_MARKS/TOTAL_VOLUME/@Q_UNIT_UNECE_CODE"/>
											<xsl:text> </xsl:text>
										</xsl:otherwise>
									</xsl:choose>
								</td>
							</tr>
						</xsl:if>
					</table>
				</td>
			</tr>
		</xsl:if>
		<!-- <xsl:call-template name="HorizontalRule_2columns"/> -->
		<!-- header/vat text, header/free text and header/links -->
		<xsl:if test="HEADER/VAT_TEXT != ''
           or HEADER/FREE_TEXT != ''
           or HEADER/LINKS/LINK !=''">
			<tr valign="top">
				<!-- A and B -->
				<td colspan="2" xsl:use-attribute-sets="LayoutHeaderWholePageColumns">
					<xsl:if test="HEADER/VAT_TEXT != ''">
						<br/>
						<xsl:value-of select="HEADER/VAT_TEXT"/>
					</xsl:if>
					<xsl:if test="HEADER/FREE_TEXT != ''">
						<br/>
						<xsl:for-each select="HEADER/FREE_TEXT">
							<xsl:value-of select="."/>
							<br/>
						</xsl:for-each>
					</xsl:if>
					<xsl:if test="HEADER/LINKS/LINK != ''">
						<br/>
						<xsl:for-each select="HEADER/LINKS/LINK">
							<xsl:value-of select="."/>
							<br/>
						</xsl:for-each>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for common HeaderInfo ================================================== -->
	<xsl:template match="HEADER_INFO">
		<!-- new row and narrow column on odd position  -->
		<xsl:choose>
			<xsl:when test="position() mod 2">
				<xsl:text disable-output-escaping="yes"><![CDATA[<tr><td class="layouttext10" valign="top" width="40%">]]></xsl:text>
			</xsl:when>
			<xsl:otherwise>
				<xsl:text disable-output-escaping="yes"><![CDATA[<td class="layouttext10" valign="top" width="60%">]]></xsl:text>
			</xsl:otherwise>
		</xsl:choose>
		<span class="layouttext8">
			<xsl:value-of select="TITLE"/>
		</span>
		<xsl:if test="CONTENT">
			<xsl:text>: </xsl:text>
		</xsl:if>
		<xsl:if test="CONTENT/@SIGN='-'">
			<xsl:value-of select="CONTENT/@SIGN"/>
			<xsl:text> </xsl:text>
		</xsl:if>
		<xsl:value-of select="CONTENT"/>
		<xsl:text> </xsl:text>
		<xsl:choose>
			<xsl:when test="CONTENT/@Q_UNIT">
				<xsl:value-of select="CONTENT/@Q_UNIT"/>
				<xsl:text> </xsl:text>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="CONTENT/@Q_UNIT_UNECE_CODE"/>
				<xsl:text> </xsl:text>
			</xsl:otherwise>
		</xsl:choose>
		<!-- end of row on even position -->
		<xsl:choose>
			<xsl:when test="not(position() mod 2)">
				<xsl:text disable-output-escaping="yes"><![CDATA[</td></tr>]]></xsl:text>
			</xsl:when>
			<xsl:otherwise>
				<xsl:text disable-output-escaping="yes"><![CDATA[</td>]]></xsl:text>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for common PaymentAndSummary =========================================== -->
	<xsl:template name="PaymentAndSummary_25common">
		<xsl:param name="PAStextp001"/>
		<xsl:param name="PAStextp002"/>
		<xsl:param name="PAStextp003"/>
		<xsl:param name="PAStextp004"/>
		<xsl:param name="PAStextp005"/>
		<xsl:param name="PAStextp006"/>
		<xsl:param name="PAStextp007"/>
		<xsl:param name="PAStextp008"/>
		<xsl:param name="PAStextp009"/>
		<xsl:param name="PAStextp010"/>
		<xsl:param name="PAStextp011"/>
		<xsl:param name="PAStextp012"/>
		<xsl:param name="PAStextp013"/>
		<xsl:param name="PAStextp014"/>
		<xsl:param name="PAStextp015"/>
		<xsl:param name="PAStextp016"/>
		<xsl:param name="PAStextp017"/>
		<xsl:param name="PAStextp018"/>
		<xsl:param name="PAStextp019"/>
		<xsl:param name="PAStextp020"/>
		<xsl:param name="PAStextp021"/>
		<xsl:param name="PAStextp022"/>
		<xsl:param name="PAStextp023"/>
		<xsl:param name="PAStextp024"/>
		<xsl:param name="PAStextp025"/>
		<xsl:param name="PAStextp026"/>
		<xsl:param name="PAStextp027"/>
		<xsl:param name="PAStextp028"/>
		<xsl:param name="PAStextp029"/>
		<xsl:param name="PAStextp030"/>
		<tr valign="top">
			<!-- A -->
			<td bgcolor="{$varColor3}">
				<table xsl:use-attribute-sets="TableNoBorder">
					<!-- A1: banks (row per each bank) -->
					<tr>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumnsBold" colspan="2" bgcolor="{$varColor3}">
							<xsl:value-of select="$PAStextp001"/>
						</td>
					</tr>
					<xsl:for-each select="PAYEE/BANKS">
						<tr>
							<xsl:choose>
								<xsl:when test="SWIFT_CODE != '' and IBAN_ACCOUNT_NUMBER != ''">
									<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}">
										<xsl:value-of select="SWIFT_CODE"/>
									</td>
									<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}">
										<span class="layouttext8">
											<xsl:call-template name="formatIBAN">
												<xsl:with-param name="accountNumber" select="IBAN_ACCOUNT_NUMBER"/>
											</xsl:call-template>
										</span>
									</td>
								</xsl:when>
								<xsl:otherwise>
									<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}">
										<xsl:value-of select="BANK_NAME"/>
									</td>
									<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}">
										<span class="layouttext8">
											<xsl:call-template name="formatBBAN">
												<xsl:with-param name="accountNumber" select="BANK_ACCOUNT_NUMBER"/>
											</xsl:call-template>
										</span>
									</td>
								</xsl:otherwise>
							</xsl:choose>
						</tr>
					</xsl:for-each>
					<!-- A2: due date -->
					<tr>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumnsBold" bgcolor="{$varColor3}">
							<xsl:value-of select="$PAStextp002"/>
						</td>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}">
							<span class="layouttext8">
								<xsl:apply-templates select="HEADER/DUE_DATE"/>
							</span>
						</td>
					</tr>
					<!-- A3: payment reference -->
					<!-- separate reference strings consist of five numbers -->
					<xsl:variable name="refB">
						<xsl:choose>
							<xsl:when test="(PAYEE/DETAILS_OF_PAYMENT/FI_PAYMENT_REFERENCE)">
							<xsl:if test="string-length(PAYEE/DETAILS_OF_PAYMENT/FI_PAYMENT_REFERENCE) &lt; 36">
								<xsl:call-template name="formatFI">
									<xsl:with-param name="fiReference" select="translate(PAYEE/DETAILS_OF_PAYMENT/FI_PAYMENT_REFERENCE, ' ', '')"/>
								</xsl:call-template>
								</xsl:if>
								<xsl:if test="string-length(PAYEE/DETAILS_OF_PAYMENT/FI_PAYMENT_REFERENCE) > 35">
								<xsl:value-of select="PAYEE/DETAILS_OF_PAYMENT/FI_PAYMENT_REFERENCE"/>
								</xsl:if>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="PAYEE/DETAILS_OF_PAYMENT/FREE_TEXT"/>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:variable>
					<!-- IPI rules -->
					<xsl:variable name="refIPI">
						<xsl:call-template name="formatIPI">
							<xsl:with-param name="ipiReference" select="PAYEE/DETAILS_OF_PAYMENT/IPI_REFERENCE"/>
						</xsl:call-template>
					</xsl:variable>
					<!-- print reference-->
					<tr>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumnsBold" bgcolor="{$varColor3}">
							<xsl:value-of select="$PAStextp003"/>
						</td>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}">
							<xsl:choose>
								<xsl:when test="PAYEE/DETAILS_OF_PAYMENT/FI_PAYMENT_REFERENCE != ''">
									<xsl:value-of select="$refB"/>
								</xsl:when>
								<xsl:when test="PAYEE/DETAILS_OF_PAYMENT/IPI_REFERENCE != ''">
									<xsl:value-of select="$refIPI"/>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="$refB"/>
								</xsl:otherwise>
							</xsl:choose>
						</td>
					</tr>
					<xsl:variable name="rate">
						<xsl:value-of select="HEADER/CURRENCY/RATE"/>
					</xsl:variable>
					<xsl:if test="HEADER/CURRENCY/RATE!='' and HEADER/CURRENCY/RATE != '1' and HEADER/CURRENCY/RATE != '1.0' and HEADER/CURRENCY/RATE != '1.00'">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumnsBold" bgcolor="{$varColor3}">
								<xsl:value-of select="$PAStextp020"/>
							</td>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}">
								<xsl:value-of select="$rate"/>
								<xsl:text> </xsl:text>
								<xsl:for-each select="HEADER/CURRENCY">
									<xsl:if test="DATE/DAY != ''">
										<xsl:text disable-output-escaping="yes"><![CDATA[/]]></xsl:text>
										<xsl:text> </xsl:text>
										<xsl:apply-templates select="DATE"/>
										<xsl:call-template name="ent.nbspspace"/>
									</xsl:if>
								</xsl:for-each>
							</td>
						</tr>
					</xsl:if>
					<xsl:if test="HEADER/INVOICE_STATUS != '' or HEADER/INVOICE_STATUS/@STATUS_CODE !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumnsBold" bgcolor="{$varColor3}">
								<xsl:value-of select="$PAStextp021"/>
							</td>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}">
							<xsl:value-of select="HEADER/INVOICE_STATUS/@STATUS_CODE"/>
							<xsl:text> </xsl:text>
								<xsl:value-of select="HEADER/INVOICE_STATUS"/>
								
								
							</td>
						</tr>
					</xsl:if>
					<!-- method of payment - rule added-->
					<xsl:if test="PAYEE/METHOD_OF_PAYMENT != '' and PAYEE/METHOD_OF_PAYMENT != 'SHA' and PAYEE/METHOD_OF_PAYMENT != 'OUR' and PAYEE/METHOD_OF_PAYMENT != 'BEN' and PAYEE/METHOD_OF_PAYMENT != 'SLEV'">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumnsBold" bgcolor="{$varColor3}">
								<xsl:value-of select="$PAStextp022"/>
							</td>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}">
								<xsl:value-of select="PAYEE/METHOD_OF_PAYMENT"/>
							</td>
						</tr>
					</xsl:if>
					<!-- Added in TEAPPSXML 3.0 - Maksutapatoive-->
					<xsl:if test="PAYEE/PAYMENT_MEANS !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumnsBold" bgcolor="{$varColor3}">
								<xsl:value-of select="$PAStextp027"/>
							</td>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}">
								<xsl:value-of select="PAYEE/PAYMENT_MEANS/@PAYMENT_MEANS_CODE"/>
								<xsl:text> </xsl:text>
								<xsl:value-of select="PAYEE/PAYMENT_MEANS"/>
							</td>
						</tr>
					</xsl:if>
				</table>
			</td>
			<!-- B -->
			<td bgcolor="{$varColor3}">
				<table xsl:use-attribute-sets="TableNoBorder">
					<!-- B1: titles -->
					<tr>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}" width="45%">
						</td>
						<!-- vat excluded -->
						<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight" bgcolor="{$varColor3}">
							<xsl:text> </xsl:text>
							<xsl:value-of select="$PAStextp015"/>
							<br/>
						</td>
						<!-- vat included -->
						<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight" bgcolor="{$varColor3}">
							<xsl:text> </xsl:text>
							<xsl:value-of select="$PAStextp014"/>
							<br/>
						</td>
					</tr>
					<!-- B2: rows total -->
					<xsl:if test="SUMMARY/ROWS_TOTAL/AMOUNT != ''">
						<xsl:apply-templates select="SUMMARY/ROWS_TOTAL">
							<xsl:with-param name="SRtext1" select="$PAStextp004"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- B4: surcharge total -->
					<xsl:if test="SUMMARY/SURCHARGE_TOTAL/AMOUNT != ''">
						<xsl:apply-templates select="SUMMARY/SURCHARGE_TOTAL">
							<xsl:with-param name="SRtext1" select="$PAStextp007"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- B5: delivery extra -->
					<xsl:if test="SUMMARY/DELIVERY_EXTRA/AMOUNT != ''">
						<xsl:apply-templates select="SUMMARY/DELIVERY_EXTRA">
							<xsl:with-param name="SRtext1" select="$PAStextp008"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- B6: insurance total -->
					<xsl:if test="SUMMARY/INSURANCE_TOTAL/AMOUNT != ''">
						<xsl:apply-templates select="SUMMARY/INSURANCE_TOTAL">
							<xsl:with-param name="SRtext1" select="$PAStextp009"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- B7: cargo -->
					<xsl:if test="SUMMARY/CARGO/AMOUNT != ''">
						<xsl:apply-templates select="SUMMARY/CARGO">
							<xsl:with-param name="SRtext1" select="$PAStextp010"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- POSTAGE_COSTS -->
					<xsl:if test="SUMMARY/POSTAGE_COSTS/AMOUNT != ''">
						<xsl:apply-templates select="SUMMARY/POSTAGE_COSTS">
							<xsl:with-param name="SRtext1" select="$PAStextp026"/>
						</xsl:apply-templates>
					</xsl:if>
					<!--processing costs -->
					<xsl:if test="SUMMARY/PROCESSING_COSTS/AMOUNT != ''">
						<xsl:apply-templates select="SUMMARY/PROCESSING_COSTS">
							<xsl:with-param name="SRtext1" select="$PAStextp023"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- Collection Surcharge Total-->
					<xsl:if test="SUMMARY/COLLECTION_SURCHARGE_TOTAL/AMOUNT != ''">
						<xsl:apply-templates select="SUMMARY/COLLECTION_SURCHARGE_TOTAL">
							<xsl:with-param name="SRtext4" select="$PAStextp024"/>
							<xsl:with-param name="SRtext5" select="'totalrow'"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- Interest charge -->
					<xsl:if test="SUMMARY/INTEREST_CHARGE/AMOUNT != ''">
						<xsl:apply-templates select="SUMMARY/INTEREST_CHARGE">
							<xsl:with-param name="SRtext1" select="$PAStextp019"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- Commission amount - Provisio-->
					<xsl:if test="SUMMARY/COMMISSION/COMMISSION_AMOUNT/AMOUNT != ''">
						<xsl:apply-templates select="SUMMARY/COMMISSION/COMMISSION_AMOUNT">
							<xsl:with-param name="SRtext4" select="$PAStextp025"/>
							<!-- Otsikkotieto -->
							<xsl:with-param name="SRtext5" select="'totalrow'"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- Discounts total -->
					<xsl:if test="SUMMARY/DISCOUNTS_TOTAL/AMOUNT != ''">
						<xsl:apply-templates select="SUMMARY/DISCOUNTS_TOTAL">
							<xsl:with-param name="SRtext2" select="$PAStextp005"/>
							<xsl:with-param name="SRtext3" select="$PAStextp006"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- TEAPPSXML 3.0 - Charges total -->
					<xsl:if test="SUMMARY/CHARGES_TOTAL/AMOUNT != ''">
						<xsl:apply-templates select="SUMMARY/CHARGES_TOTAL">
							<xsl:with-param name="SRtext6" select="$PAStextp028"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- TEAPPSXML 3.0 Laskun summa ennen ennakkomaksuja-->
					<xsl:if test="SUMMARY/INVOICE_TOTAL_WITHOUT_ADVANCE_PAYMENT/AMOUNT != '' and SUMMARY/ADVANCE_PAYMENT !=''">
						<xsl:apply-templates select="SUMMARY/INVOICE_TOTAL_WITHOUT_ADVANCE_PAYMENT">
							<xsl:with-param name="SRtext7" select="$PAStextp029"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- advance payment -->
					<xsl:if test="SUMMARY/ADVANCE_PAYMENT/AMOUNT != ''">
						<xsl:apply-templates select="SUMMARY/ADVANCE_PAYMENT">
							<xsl:with-param name="SRtext1" select="$PAStextp018"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- B8: roundings -->
					<xsl:if test="SUMMARY/ROUNDINGS != ''">
						<xsl:apply-templates select="SUMMARY/ROUNDINGS">
							<xsl:with-param name="SRtext1" select="$PAStextp012"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- B9: invoice total (ex and in) -->
					<xsl:apply-templates select="SUMMARY/INVOICE_TOTAL">
						<xsl:with-param name="SRtext4" select="$PAStextp013"/>
						<xsl:with-param name="SRtext5" select="'totalrow'"/>
					</xsl:apply-templates>
					<!-- B10: vat total -->
					<xsl:if test="SUMMARY/VAT_TOTAL/AMOUNT != ''">
						<xsl:apply-templates select="SUMMARY/VAT_TOTAL">
							<xsl:with-param name="SRtext1" select="$PAStextp011"/>
						</xsl:apply-templates>
					</xsl:if>
					<!-- B11: invoice total (just included) -->
					<xsl:if test="SUMMARY/INVOICE_TOTAL/AMOUNT[@VAT='INCLUDED']">
						<xsl:apply-templates select="SUMMARY/INVOICE_TOTAL">
							<xsl:with-param name="SRtext4" select="$PAStextp016"/>
							<xsl:with-param name="SRtext5" select="'payablerow'"/>
						</xsl:apply-templates>
					</xsl:if>
				</table>
			</td>
		</tr>
		<!-- virtual bar code -->
		<xsl:if test="PAYEE/BANK_BARCODE">
			<tr bgcolor="{$varColor3}">
				<td colspan="2" xsl:use-attribute-sets="LayoutHeaderLowColumnsRightBold">
					<xsl:call-template name="ent.nbspspace"/>
				</td>
			</tr>
			<tr bgcolor="{$varColor3}">
				<td colspan="2" xsl:use-attribute-sets="LayoutHeaderLowColumnsRightBold" align="center">
					<xsl:value-of select="$PAStextp017"/>
					<xsl:text>: </xsl:text>
					<xsl:choose>
						<xsl:when test="PAYEE/BANK_BARCODE/FI_BANK_BARCODE">
							<xsl:value-of select="PAYEE/BANK_BARCODE/FI_BANK_BARCODE"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="PAYEE/BANK_BARCODE/IPI_BANK_BARCODE"/>
						</xsl:otherwise>
					</xsl:choose>
				</td>
			</tr>
			<tr bgcolor="{$varColor3}">
				<td colspan="2" xsl:use-attribute-sets="LayoutHeaderLowColumnsRightBold">
					<xsl:call-template name="ent.nbspspace"/>
				</td>
			</tr>
		</xsl:if>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- subtemplate for common PaymentAndSummary: SUMMARY nodes ========================= -->
	<xsl:template match="ROWS_TOTAL | SURCHARGE_TOTAL | DELIVERY_EXTRA | INSURANCE_TOTAL | CARGO | POSTAGE_COSTS | PROCESSING_COSTS | ADVANCE_PAYMENT | COLLECTION_SURCHARGE_TOTAL | INTEREST_CHARGE | VAT_TOTAL | ROUNDINGS">
		<xsl:param name="SRtext1"/>
		<tr>
			<!-- column for title -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}">
				<xsl:value-of select="$SRtext1"/>
			</td>
			<!-- column for roundings and amounts with vat excluded and without vat attribute -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight" bgcolor="{$varColor3}">
				<xsl:choose>
					<xsl:when test="string(name(.)) = 'ROUNDINGS'">
						<xsl:choose>
							<xsl:when test="string(number(.)) != 'NaN'">
								<xsl:value-of select="format-number(., '# ##0,00', 'european')"/>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="."/>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:when>
					<xsl:when test="string(name(.)) = 'VAT_TOTAL'">
						<xsl:apply-templates select="AMOUNT[1]"/>
					</xsl:when>
					<xsl:otherwise>
						<xsl:apply-templates select="AMOUNT[@VAT='EXCLUDED']"/>
						<xsl:apply-templates select="AMOUNT[not(@VAT)]"/>
					</xsl:otherwise>
				</xsl:choose>
			</td>
			<!-- column for amounts vat included -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight" bgcolor="{$varColor3}">
				<xsl:if test="not(string(name(.)) = 'VAT_TOTAL')">
					<xsl:choose>
						<xsl:when test="string(name(.)) = 'ROUNDINGS'">
							<xsl:choose>
								<xsl:when test="string(number(.)) != 'NaN'">
									<xsl:value-of select="format-number(., '# ##0,00', 'european')"/>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="."/>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:when>
						<xsl:otherwise>
							<xsl:apply-templates select="AMOUNT[@VAT='INCLUDED']"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:if>
				<xsl:call-template name="ent.nbspspace"/>
				<xsl:value-of select="../../HEADER/CURRENCY/CODE"/>
			</td>
			<!-- currency -->
		</tr>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- subtemplate for common PaymentAndSummary: SUMMARY/DISCOUNTS_TOTAL node ========== -->
	<xsl:template match="DISCOUNTS_TOTAL">
		<xsl:param name="SRtext2"/>
		<xsl:param name="SRtext3"/>
		<tr>
			<!-- column for title -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}">
				<xsl:value-of select="$SRtext3"/>
			</td>
			<!-- column for amount vat excluded  -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight" bgcolor="{$varColor3}">
				<xsl:apply-templates select="AMOUNT[@VAT='EXCLUDED']"/>
			</td>
			<!-- column for amount vat included -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight" bgcolor="{$varColor3}">
				<xsl:apply-templates select="AMOUNT[@VAT='INCLUDED']"/>
				<xsl:call-template name="ent.nbspspace"/>
				<xsl:value-of select="../../HEADER/CURRENCY/CODE"/>
			</td>
		</tr>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- subtemplate for common PaymentAndSummary: SUMMARY/CHARGES_TOTAL node ========== -->
	<xsl:template match="CHARGES_TOTAL">
		<xsl:param name="SRtext6"/>
		<tr>
			<!-- column for title -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}">
				<xsl:value-of select="$SRtext6"/>
			</td>
			<!-- column for amount vat excluded  -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight" bgcolor="{$varColor3}">
				<xsl:apply-templates select="AMOUNT[@VAT='EXCLUDED']"/>
			</td>
			<!-- column for amount vat included -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight" bgcolor="{$varColor3}">
				<xsl:apply-templates select="AMOUNT[@VAT='INCLUDED']"/>
				<xsl:call-template name="ent.nbspspace"/>
				<xsl:value-of select="../../HEADER/CURRENCY/CODE"/>
			</td>
		</tr>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- subtemplate for common PaymentAndSummary: SUMMARY/INVOICE_TOTAL_WITHOUT_ADVANCE_PAYMENT node ========== -->
	<xsl:template match="INVOICE_TOTAL_WITHOUT_ADVANCE_PAYMENT">
		<xsl:param name="SRtext7"/>
		<tr>
			<!-- column for title -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}">
				<xsl:value-of select="$SRtext7"/>
			</td>
			<!-- column for amount vat excluded  -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight" bgcolor="{$varColor3}">
				<xsl:apply-templates select="AMOUNT[@VAT='EXCLUDED']"/>
			</td>
			<!-- column for amount vat included -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight" bgcolor="{$varColor3}">
				<xsl:apply-templates select="AMOUNT[@VAT='INCLUDED']"/>
				<xsl:call-template name="ent.nbspspace"/>
				<xsl:value-of select="../../HEADER/CURRENCY/CODE"/>
			</td>
		</tr>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- Template for common PaymentAndSummary: SUMMARY/DISCOUNT/DISCOUNT_AMOUNT node ==========-->
	<xsl:template name="DiscountsAndCharges">
		<xsl:param name="SRtext2"/>
		<xsl:param name="SRtext3"/>
		<xsl:param name="SRtext4"/>
		<xsl:param name="SRtext10"/>
		<xsl:param name="SRtext11"/>
		<tr valign="top">
			<!-- A -->
			<td colspan="2">
				<table xsl:use-attribute-sets="TableNoBorder">
					<xsl:if test="./SUMMARY/DISCOUNT !=''">
					<!-- empty row -->
					<tr valign="top">
						<td colspan="2">
							<xsl:call-template name="ent.nbspspace"/>
						</td>
					</tr>
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="4">
								<xsl:value-of select="$SRtext11"/>
								<xsl:text> </xsl:text>
							</td>
						</tr>
					</xsl:if>
					<xsl:for-each select="./SUMMARY/DISCOUNT">
						<tr>
							<!-- discount name -->
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="2">
								<xsl:text> </xsl:text>
								<xsl:value-of select="DISCOUNT_NAME"/>
								<xsl:text> </xsl:text>
								<xsl:if test="@TYPE !=''">
									<xsl:text>(</xsl:text>
									<xsl:value-of select="@TYPE"/>
									<xsl:text>) </xsl:text>
								</xsl:if>
								<xsl:if test="PER_CENT">
								<xsl:value-of select="PER_CENT"/>
								<xsl:text> % </xsl:text>
								</xsl:if>
							</td>
							<!-- discount from amount -->
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="2">
							<xsl:if test="DISCOUNT_FROM_AMOUNT/AMOUNT[@VAT='EXCLUDED']">
								<xsl:value-of select="$SRtext2"/>
								<xsl:text>: </xsl:text>
								<xsl:apply-templates select="DISCOUNT_FROM_AMOUNT/AMOUNT[@VAT='EXCLUDED']"/>
								<xsl:text> </xsl:text>
								</xsl:if>
							<xsl:if test="DISCOUNT_FROM_AMOUNT/AMOUNT[@VAT='INCLUDED']">	
								<xsl:value-of select="$SRtext4"/>
								<xsl:text>: </xsl:text>
								<xsl:apply-templates select="DISCOUNT_FROM_AMOUNT/AMOUNT[@VAT='INCLUDED']"/>
								<xsl:text> </xsl:text>
								</xsl:if>
							</td>
							<!-- discount vat type-->
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
								<xsl:text> </xsl:text>
								<xsl:value-of select="VAT/@VAT_TYPE"/>
							</td>
							<!-- discount vat rate -->
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
								<xsl:text> </xsl:text>
								<xsl:value-of select="VAT/RATE"/>
							</td>
							<!-- discount vat amount -->
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
								<xsl:text> </xsl:text>
								<xsl:apply-templates select="VAT/VAT_AMOUNT"/>
							</td>
							<!-- discount amount ex -->
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
								<xsl:text> </xsl:text>
								<xsl:apply-templates select="DISCOUNT_AMOUNT/AMOUNT[@VAT='EXCLUDED']"/>
							</td>
							<!-- discount amount in -->
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
								<xsl:text> </xsl:text>
								<xsl:apply-templates select="DISCOUNT_AMOUNT/AMOUNT[@VAT='INCLUDED']"/>
							</td>
						</tr>
					</xsl:for-each>
					<!-- empty row -->
					<tr valign="top">
						<!-- A and B -->
						<td colspan="2">
							<xsl:call-template name="ent.nbspspace"/>
						</td>
					</tr>
					<xsl:if test="./SUMMARY/CHARGES!=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="4">
								<xsl:value-of select="$SRtext10"/>
								<xsl:text> </xsl:text>
							</td>
						</tr>
					</xsl:if>
					<xsl:for-each select="./SUMMARY/CHARGES">
						<tr>
							<!-- charge name -->
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="2">
								<xsl:text> </xsl:text>
								<xsl:value-of select="CHARGE_NAME"/>
								<xsl:text> </xsl:text>
								<xsl:if test="@TYPE !=''">
									<xsl:text>(</xsl:text>
									<xsl:value-of select="@TYPE"/>
									<xsl:text>) </xsl:text>
								</xsl:if>
								<xsl:if test="PER_CENT">
								<xsl:value-of select="PER_CENT"/>
								<xsl:text> % </xsl:text>
								</xsl:if>
							</td>
							<!-- charge from amount -->
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="2">
							<xsl:if test="CHARGE_FROM_AMOUNT/AMOUNT[@VAT='EXCLUDED']">
								<xsl:value-of select="$SRtext2"/>
								<xsl:text>: </xsl:text>
								<xsl:apply-templates select="CHARGE_FROM_AMOUNT/AMOUNT[@VAT='EXCLUDED']"/>
								<xsl:text> </xsl:text>
							</xsl:if>
							<xsl:if test="CHARGE_FROM_AMOUNT/AMOUNT[@VAT='INCLUDED']">
								<xsl:value-of select="$SRtext4"/>
								<xsl:text>: </xsl:text>
								<xsl:apply-templates select="CHARGE_FROM_AMOUNT/AMOUNT[@VAT='INCLUDED']"/>
								<xsl:text> </xsl:text>
							</xsl:if>
							</td>
							<!-- charge vat type-->
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
								<xsl:text> </xsl:text>
								<xsl:value-of select="VAT/@VAT_TYPE"/>
							</td>
							<!-- discount vat rate -->
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
								<xsl:text> </xsl:text>
								<xsl:value-of select="VAT/RATE"/>
							</td>
							<!-- charge vat amount -->
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
								<xsl:text> </xsl:text>
								<xsl:apply-templates select="VAT/VAT_AMOUNT"/>
							</td>
							<!-- charge amount ex -->
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
								<xsl:text> </xsl:text>
								<xsl:apply-templates select="CHARGE_AMOUNT/AMOUNT[@VAT='EXCLUDED']"/>
							</td>
							<!-- charge amount in -->
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
								<xsl:text> </xsl:text>
								<xsl:apply-templates select="CHARGE_AMOUNT/AMOUNT[@VAT='INCLUDED']"/>
							</td>
						</tr>
					</xsl:for-each>
				</table>
			</td>
		</tr>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- subtemplate for: SUMMARY/COLLECTION_SURCHARGE_TOTAL node ============ -->
	<xsl:template match="COLLECTION_SURCHARGE_TOTAL">
		<xsl:param name="SRtext4"/>
		<xsl:param name="SRtext5"/>
		<tr>
			<!-- column for title -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}">
				<xsl:choose>
					<xsl:when test="$SRtext5 = 'totalrow'">
						<span class="layouttext8">
							<xsl:value-of select="$SRtext4"/>
						</span>
					</xsl:when>
					<xsl:otherwise>
						<span class="layouttext8b">
							<xsl:value-of select="$SRtext4"/>
						</span>
					</xsl:otherwise>
				</xsl:choose>
			</td>
			<!-- column for amount vat excluded -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRightBold" bgcolor="{$varColor3}">
				<xsl:choose>
					<xsl:when test="$SRtext5 = 'totalrow'">
						<span class="layouttext8">
							<xsl:apply-templates select="AMOUNT[@VAT='EXCLUDED']"/>
						</span>
					</xsl:when>
					<xsl:otherwise>
						<xsl:apply-templates select="AMOUNT[@VAT='INCLUDED']"/>
					</xsl:otherwise>
				</xsl:choose>
			</td>
			<!-- column for amount vat included -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRightBold" bgcolor="{$varColor3}">
				<xsl:choose>
					<xsl:when test="$SRtext5 = 'totalrow'">
						<span class="layouttext8">
							<xsl:apply-templates select="AMOUNT[@VAT='INCLUDED']"/>
						</span>
					</xsl:when>
					<xsl:otherwise>
						<xsl:apply-templates select="AMOUNT[@VAT='INCLUDED']"/>
					</xsl:otherwise>
				</xsl:choose>
				<xsl:call-template name="ent.nbspspace"/>
				<xsl:choose>
					<xsl:when test="$SRtext5 = 'totalrow'">
						<span class="layouttext8">
							<xsl:value-of select="../../HEADER/CURRENCY/CODE"/>
						</span>
					</xsl:when>
					<xsl:otherwise>
						<span class="layouttext8b">
							<xsl:value-of select="../../HEADER/CURRENCY/CODE"/>
						</span>
					</xsl:otherwise>
				</xsl:choose>
			</td>
		</tr>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- subtemplate for: SUMMARY/COMMISSION/COMMISSION_AMOUNT node ============ -->
	<xsl:template match="COMMISSION/COMMISSION_AMOUNT">
		<xsl:param name="SRtext4"/>
		<xsl:param name="SRtext5"/>
		<tr>
			<!-- column for title -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}">
				<xsl:choose>
					<xsl:when test="$SRtext5 = 'totalrow'">
						<span class="layouttext8">
							<xsl:value-of select="$SRtext4"/>
							<xsl:call-template name="COMMISSION_SUB"/>
						</span>
					</xsl:when>
					<xsl:otherwise>
						<span class="layouttext8b">
							<xsl:value-of select="$SRtext4"/>
							<xsl:call-template name="COMMISSION_SUB"/>
						</span>
					</xsl:otherwise>
				</xsl:choose>
			</td>
			<!-- column for amount vat excluded -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRightBold" bgcolor="{$varColor3}">
				<xsl:choose>
					<xsl:when test="$SRtext5 = 'totalrow'">
						<span class="layouttext8">
							<xsl:apply-templates select="AMOUNT[@VAT='EXCLUDED']"/>
						</span>
					</xsl:when>
					<xsl:otherwise>
						<xsl:apply-templates select="AMOUNT[@VAT='INCLUDED']"/>
					</xsl:otherwise>
				</xsl:choose>
			</td>
			<!-- column for amount vat included -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRightBold" bgcolor="{$varColor3}">
				<xsl:choose>
					<xsl:when test="$SRtext5 = 'totalrow'">
						<span class="layouttext8">
							<xsl:apply-templates select="AMOUNT[@VAT='INCLUDED']"/>
						</span>
					</xsl:when>
					<xsl:otherwise>
						<xsl:apply-templates select="AMOUNT[@VAT='INCLUDED']"/>
					</xsl:otherwise>
				</xsl:choose>
				<xsl:call-template name="ent.nbspspace"/>
				<xsl:choose>
					<xsl:when test="$SRtext5 = 'totalrow'">
						<span class="layouttext8">
							<xsl:value-of select="../../../HEADER/CURRENCY/CODE"/>
						</span>
					</xsl:when>
					<xsl:otherwise>
						<span class="layouttext8b">
							<xsl:value-of select="../../../HEADER/CURRENCY/CODE"/>
						</span>
					</xsl:otherwise>
				</xsl:choose>
			</td>
		</tr>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- subtemplate for COMMISSION/COMMISSION_AMOUNT -->
	<xsl:template name="COMMISSION_SUB">
		<xsl:value-of select="../COMMISSION_NAME"/>
		<xsl:value-of select="' '"/>
		<xsl:if test="../PER_CENT != ''">
			<xsl:value-of select="../PER_CENT"/>
			<xsl:value-of select="' %'"/>
		</xsl:if>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- subtemplate for common PaymentAndSummary: SUMMARY/INVOICE_TOTAL node ============ -->
	<xsl:template match="INVOICE_TOTAL">
		<xsl:param name="SRtext4"/>
		<xsl:param name="SRtext5"/>
		<tr>
			<!-- column for title -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}">
				<xsl:choose>
					<xsl:when test="$SRtext5 = 'totalrow'">
						<span class="layouttext8">
							<xsl:value-of select="$SRtext4"/>
						</span>
					</xsl:when>
					<xsl:otherwise>
						<span class="layouttext8b">
							<xsl:value-of select="$SRtext4"/>
						</span>
					</xsl:otherwise>
				</xsl:choose>
			</td>
			<!-- column for amount vat excluded -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRightBold" bgcolor="{$varColor3}">
				<xsl:choose>
					<xsl:when test="$SRtext5 = 'totalrow'">
						<span class="layouttext8">
							<xsl:apply-templates select="AMOUNT[@VAT='EXCLUDED']"/>
						</span>
					</xsl:when>
					<xsl:otherwise>
						<xsl:apply-templates select="AMOUNT[@VAT='INCLUDED']"/>
					</xsl:otherwise>
				</xsl:choose>
			</td>
			<!-- column for amount vat included -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRightBold" bgcolor="{$varColor3}">
				<xsl:choose>
					<xsl:when test="$SRtext5 = 'totalrow'">
						<span class="layouttext8">
							<xsl:apply-templates select="AMOUNT[@VAT='INCLUDED']"/>
						</span>
					</xsl:when>
					<xsl:otherwise>
						<xsl:apply-templates select="AMOUNT[@VAT='INCLUDED']"/>
					</xsl:otherwise>
				</xsl:choose>
				<xsl:call-template name="ent.nbspspace"/>
				<xsl:choose>
					<xsl:when test="$SRtext5 = 'totalrow'">
						<span class="layouttext8">
							<xsl:value-of select="../../HEADER/CURRENCY/CODE"/>
						</span>
					</xsl:when>
					<xsl:otherwise>
						<span class="layouttext8b">
							<xsl:value-of select="../../HEADER/CURRENCY/CODE"/>
						</span>
					</xsl:otherwise>
				</xsl:choose>
			</td>
		</tr>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for common VAT summary ================================================= -->
	<xsl:template name="VAT_25common">
		<xsl:param name="VATtextp001"/>
		<xsl:param name="VATtextp002"/>
		<xsl:param name="VATtextp003"/>
		<xsl:param name="VATtextp004"/>
		<xsl:param name="VATtextp005"/>
		<!-- empty row -->
		<tr valign="top">
			<!-- A and B -->
			<td colspan="2">
				<xsl:call-template name="ent.nbspspace"/>
			</td>
		</tr>
		<tr valign="top">
			<!-- A and B -->
			<td colspan="2">
				<table xsl:use-attribute-sets="TableNoBorder">
					<!-- A/B1: VAT summary heading -->
					<tr>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumnsBold" colspan="2">
							<xsl:value-of select="$VATtextp001"/>
							<xsl:text> </xsl:text>
						</td>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight">
							<xsl:text> </xsl:text>
							<xsl:value-of select="$VATtextp002"/>
						</td>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight">
							<xsl:text> </xsl:text>
						</td>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight">
							<xsl:text> </xsl:text>
							<xsl:value-of select="$VATtextp003"/>
						</td>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight" width="8%"/>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight" width="12%">
							<xsl:if test="SUMMARY/VAT_SUMMARY/VAT_GROUP_TOTAL/AMOUNT != ''">
								<xsl:text> </xsl:text>
								<xsl:value-of select="$VATtextp005"/>
							</xsl:if>
						</td>
					</tr>
					<!-- call vat summary template to output each vat rate -->
					<xsl:apply-templates select="SUMMARY/VAT_SUMMARY"/>
					<!-- vat group total -->
					<xsl:if test="SUMMARY/VAT_TOTAL/AMOUNT">
						<xsl:if test="SUMMARY/VAT_SUMMARY/CURRENCY_CODE = HEADER/CURRENCY/CODE or not(SUMMARY/VAT_SUMMARY/CURRENCY_CODE)">
							<tr>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight" colspan="5">
									<xsl:value-of select="$VATtextp004"/>
									<xsl:text> </xsl:text>
									<xsl:apply-templates select="SUMMARY/VAT_TOTAL/AMOUNT"/>
								</td>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight">
									<xsl:text> </xsl:text>
								</td>
							</tr>
						</xsl:if>
					</xsl:if>
				</table>
			</td>
		</tr>
	</xsl:template>
	<!-- ========================================================================== -->
	<!-- subtemplate for common PaymentAndSummary: SUMMARY/VAT_SUMMARY node ======= -->
	<xsl:template match="VAT_SUMMARY">
		<tr>
			<!-- vat description -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="2">
				<xsl:if test="@VAT_TYPE != ''">
					<xsl:value-of select="@VAT_TYPE"/>
					<xsl:text> </xsl:text>
				</xsl:if>
				<xsl:value-of select="VAT_DESCRIPTION"/>
				<xsl:text> </xsl:text>
				<xsl:value-of select="EXEMPTION_REASON_CODE"/>
			</td>
			<!-- according for vat -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight">
				<xsl:apply-templates select="ACCORDING/AMOUNT"/>
			</td>
			<!-- vat rate -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight">
				<xsl:value-of select="RATE"/>
				<xsl:text> </xsl:text>
				<xsl:if test="RATE != ''">
					<xsl:text disable-output-escaping="yes"> %</xsl:text>
				</xsl:if>
			</td>
			<!-- vat rate total -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight">
				<xsl:apply-templates select="VAT_RATE_TOTAL/AMOUNT"/>
			</td>
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight">
				<xsl:value-of select="CURRENCY_CODE"/>
			</td>
			<!-- vat group total -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight">
				<xsl:apply-templates select="VAT_GROUP_TOTAL/AMOUNT"/>
			</td>
		</tr>
		<xsl:if test="VAT_ADDITIONAL_INFO">
			<xsl:for-each select="VAT_ADDITIONAL_INFO/VAT_INFO">
				<tr>
					<!-- base description -->
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="2">
						<xsl:call-template name="ent.nbspspace"/>
						<xsl:call-template name="ent.nbspspace"/>
						<xsl:value-of select="BASE_DESCRIPTION"/>
					</td>
					<!-- base amout -->
					<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight">
						<xsl:apply-templates select="BASE_AMOUNT/AMOUNT"/>
					</td>
					<!-- empty colums -->
					<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight" colspan="4">
						<xsl:text> </xsl:text>
					</td>
				</tr>
			</xsl:for-each>
		</xsl:if>
	</xsl:template>
	<!-- ========================================================================== -->
	<!-- template for common CASH_DISCOUNT nodes ================================== -->
	<xsl:template name="CD_25common" match="CASH_DISCOUNT">
		<xsl:param name="CDtextp001"/>
		<!-- cash discount -->
		<tr>
			<!-- per cent -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumns" width="20%">
				<xsl:value-of select="$CDtextp001"/>
				<xsl:text> </xsl:text>
				<xsl:value-of select="PER_CENT"/>
				<xsl:text disable-output-escaping="yes"> %</xsl:text>
				<xsl:text> </xsl:text>
			</td>
			<!-- date -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumns" width="12%">
				<xsl:apply-templates select="DATE"/>
				<xsl:text> </xsl:text>
			</td>
			<!-- cash discount amout vat excluded or not vat -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight">
				<xsl:choose>
					<xsl:when test="CASH_DISCOUNT_AMOUNT/AMOUNT[@VAT='EXCLUDED']">
						<xsl:apply-templates select="CASH_DISCOUNT_AMOUNT/AMOUNT[@VAT='EXCLUDED']"/>
					</xsl:when>
					<xsl:otherwise>
						<xsl:apply-templates select="CASH_DISCOUNT_AMOUNT/AMOUNT[not(@VAT)]"/>
					</xsl:otherwise>
				</xsl:choose>
				<xsl:text> </xsl:text>
			</td>
			<!-- vat total amout -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight">
				<xsl:apply-templates select="VAT_TOTAL/AMOUNT"/>
				<xsl:if test="VAT/RATE != ''
                     or VAT/VAT_AMOUNT/AMOUNT != ''
                     or VAT/FREE_TEXT != ''">
					<xsl:for-each select="VAT">
						<br/>
						<xsl:if test="position() = 1">
							<xsl:text disable-output-escaping="yes">(</xsl:text>
						</xsl:if>
						<!-- vat rate -->
						<xsl:value-of select="RATE"/>
						<xsl:text disable-output-escaping="yes"> % </xsl:text>
						<!-- vat amount -->
						<xsl:apply-templates select="VAT_AMOUNT/AMOUNT"/>
						<xsl:if test="position() = last()">
							<xsl:text disable-output-escaping="yes">)</xsl:text>
						</xsl:if>
						<!-- vat free text -->
						<xsl:if test="FREE_TEXT != ''">
							<br/>
							<xsl:value-of select="FREE_TEXT"/>
						</xsl:if>
					</xsl:for-each>
				</xsl:if>
			</td>
			<!-- cash discount amout vat included -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight">
				<xsl:apply-templates select="CASH_DISCOUNT_AMOUNT/AMOUNT[@VAT='INCLUDED']"/>
				<xsl:text> </xsl:text>
			</td>
			<!-- currency -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight" width="8%">
				<xsl:if test="CASH_DISCOUNT_AMOUNT/AMOUNT != ''
                   or VAT_TOTAL/AMOUNT != ''
                   or INVOICE_TOTAL_WITH_CASH_DISCOUNT/AMOUNT != ''">
					<xsl:value-of select="../../HEADER/CURRENCY/CODE"/>
					<xsl:text> </xsl:text>
				</xsl:if>
			</td>
			<!-- invoice total with cash discount -->
			<td xsl:use-attribute-sets="LayoutHeaderLowColumnsRight" width="12%">
				<xsl:choose>
					<xsl:when test="INVOICE_TOTAL_WITH_CASH_DISCOUNT/AMOUNT[@VAT='INCLUDED']">
						<xsl:apply-templates select="INVOICE_TOTAL_WITH_CASH_DISCOUNT/AMOUNT[@VAT='INCLUDED']"/>
					</xsl:when>
					<xsl:otherwise>
						<xsl:apply-templates select="INVOICE_TOTAL_WITH_CASH_DISCOUNT/AMOUNT[@VAT='EXCLUDED']"/>
					</xsl:otherwise>
				</xsl:choose>
				<xsl:text> </xsl:text>
			</td>
		</tr>
		<tr>
			<td xsl:use-attribute-sets="LayoutHeaderLowColumns" width="20%">
				<xsl:value-of select="FREE_TEXT"/>
			</td>
		</tr>
	</xsl:template>
	<!-- template for rowheading ================================================== -->
	<xsl:template name="rowheading">
		<xsl:param name="Rtextp002"/>
		<xsl:param name="Rtextp003"/>
		<xsl:param name="Rtextp004"/>
		<xsl:param name="Rtextp005"/>
		<xsl:param name="Rtextp006"/>
		<xsl:param name="Rtextp008"/>
		<xsl:param name="Rtextp010"/>
		<xsl:param name="Rtextp012"/>
		<xsl:param name="Rtextp021"/>
		<xsl:param name="rcurrency"/>
		<!-- start: customized  -->
		<xsl:param name="invoicetype"/>
		<xsl:param name="Rtextp058"/>
		<xsl:param name="Rtextp059"/>
		<xsl:param name="Rtextp060"/>
		<xsl:param name="Rtextp061"/>
		<xsl:param name="Rtextp062"/>
		<!-- end: customized  -->
		<xsl:param name="Rtextp072"/>
		<xsl:param name="Rtextp073"/>
		<xsl:param name="Rtextp074"/>
		<xsl:param name="Rtextp075"/>
		<xsl:param name="Rtextp076"/>
		<xsl:param name="Rtextp077"/>
		<xsl:param name="Rtextp078"/>
		<xsl:param name="Rtextp079"/>
		<xsl:param name="Rtextp080"/>
		<xsl:param name="Rtextp081"/>
		<xsl:param name="Rtextp082"/>
		<xsl:param name="Rtextp083"/>
		<xsl:param name="Rtextp084"/>
		<xsl:param name="Rtextp085"/>
		<xsl:param name="Rtextp086"/>
		<xsl:param name="Rtextp087"/>
		<xsl:param name="Rtextp088"/>
		<xsl:param name="Rtextp089"/>
		<xsl:param name="Rtextp090"/>
		<xsl:param name="Rtextp091"/>
		<xsl:param name="Rtextp092"/>
		<xsl:param name="Rtextp093"/>
		<xsl:param name="Rtextp094"/>
		<xsl:param name="Rtextp095"/>
		<xsl:param name="Rtextp096"/>
		<xsl:param name="Rtextp097"/>
		<xsl:param name="Rtextp098"/>
		<xsl:param name="Rtextp099"/>
		<xsl:param name="Rtextp100"/>
		<xsl:param name="Rtextp101"/>
		<xsl:param name="Rtextp102"/>
		<xsl:param name="Rtextp103"/>
		<xsl:param name="Rtextp104"/>
		<xsl:param name="Rtextp105"/>
		<xsl:param name="Rtextp106"/>
		<xsl:param name="Rtextp107"/>
		<xsl:param name="Rtextp108"/>
		<xsl:param name="Rtextp109"/>
		<xsl:param name="Rtextp110"/>
		<xsl:param name="Rtextp111"/>
		<xsl:param name="Rtextp112"/>
		<xsl:param name="Rtextp113"/>
		<xsl:param name="Rtextp114"/>
		<xsl:param name="Rtextp115"/>
		<xsl:param name="Rtextp116"/>
		<xsl:param name="Rtextp117"/>
		<xsl:param name="Rtextp118"/>
		<xsl:param name="Rtextp119"/>
		<xsl:param name="Rtextp120"/>
		<xsl:param name="Rtextp121"/>
		<xsl:param name="Rtextp122"/>
		<xsl:param name="Rtextp123"/>
		<xsl:param name="Rtextp124"/>
		<xsl:param name="Rtextp125"/>
		<xsl:param name="Rtextp126"/>
		<xsl:param name="Rtextp127"/>
		<xsl:param name="Rtextp128"/>
		<xsl:param name="Rtextp129"/>
		<xsl:param name="Rtextp130"/>
		<xsl:param name="Rtextp131"/>
		<xsl:param name="Rtextp132"/>
		<xsl:param name="Rtextp133"/>
		<xsl:param name="Rtextp134"/>
		<xsl:param name="Rtextp135"/>
		<xsl:param name="Rtextp137"/>
		<xsl:param name="Rtextp138"/>
		<xsl:param name="Rtextp139"/>
		<xsl:param name="Rtextp140"/>
		<xsl:param name="Rtextp141a"/>
		<xsl:param name="Rtextp141b"/>
		<xsl:param name="Rtextp141c"/>
		<xsl:param name="Rtextp142"/>
		<xsl:param name="Rtextp143"/>
		<xsl:param name="Rtextp143b"/>
		<xsl:param name="Rtextp143c"/>
		<xsl:param name="Rtextp144"/>
		<xsl:param name="Rtextp145"/>
		<xsl:param name="Rtextp146"/>
		<xsl:param name="Rtextp147"/>
		<xsl:param name="Rtextp148"/>
		<xsl:param name="Rtextp149"/>
		<xsl:param name="Rtextp150"/>
		<xsl:param name="Rtextp151"/>
		<xsl:param name="Rtextp152"/>
		<xsl:param name="Rtextp153"/>
		<xsl:param name="Rtextp154"/>
		<xsl:param name="Rtextp155"/>
		<xsl:param name="Rtextp156"/>
		<xsl:param name="Rtextp157"/>
		<xsl:param name="Rtextp158"/>
				<xsl:param name="Rtextp159"/>
		<xsl:if test="(HEADER/INVOICE_TYPE = '06' or HEADER/INVOICE_TYPE = '07') and ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS !=''">
			<!-- first row-->
			<tr>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}" colspan="2">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_ID != ''">
						<xsl:value-of select="$Rtextp072"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_DATE != ''">
						<xsl:value-of select="$Rtextp080"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/PART_ID != ''">
						<xsl:call-template name="ent.nbspspace"/>
						<xsl:value-of select="$Rtextp073"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_TOTAL/AMOUNT != ''">
						<xsl:value-of select="$Rtextp074"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/PAID_AMOUNT/AMOUNT != ''">
						<xsl:value-of select="$Rtextp085"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/UNPAID/AMOUNT != ''">
						<xsl:value-of select="$Rtextp081"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/NUMBER_OF_INTEREST_DAY != ''">
						<xsl:value-of select="$Rtextp077"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_RATE != ''">
						<xsl:value-of select="$Rtextp083"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_CHARGE/AMOUNT != ''">
						<xsl:value-of select="$Rtextp078"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
			</tr>
			<!-- second row-->
			<tr>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}" colspan="2">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_PAYMENT_REFERENCE != ''">
						<xsl:value-of select="$Rtextp086"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_DUE_DATE/DATE/DAY != ''">
						<xsl:value-of select="$Rtextp075"/>
					</xsl:if>
					<xsl:call-template name="ent.nbspspace"/>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}" colspan="2">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/DATE_OF_PAYMENT/DATE/DAY != ''">
						<xsl:value-of select="$Rtextp076"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}" colspan="5">
					<xsl:text> </xsl:text>
				</td>
			</tr>
			<!-- empty row -->
			<tr bgcolor="#FFFFFF">
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="10">
					<xsl:text disable-output-escaping="yes"><![CDATA[<hr>]]></xsl:text>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="HEADER/INVOICE_TYPE = '09' and ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS !=''">
			<tr>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}" colspan="3">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_ID != ''">
						<xsl:value-of select="$Rtextp072"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_DATE != ''">
						<xsl:value-of select="$Rtextp080"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_TOTAL/AMOUNT != ''">
						<xsl:value-of select="$Rtextp074"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/UNPAID/AMOUNT != ''">
						<xsl:value-of select="$Rtextp081"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/COLLECTION_TIMES != ''">
						<xsl:value-of select="$Rtextp082"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/NUMBER_OF_INTEREST_DAY != ''">
						<xsl:value-of select="$Rtextp077"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_CHARGE/AMOUNT != ''">
						<xsl:value-of select="$Rtextp078"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/ROW_TOTAL/AMOUNT[@VAT='EXCLUDED']">
						<xsl:value-of select="$Rtextp012"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/ROW_TOTAL/AMOUNT[@VAT='INCLUDED']">
						<xsl:value-of select="$Rtextp012"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
			</tr>
			<!-- second_row -->
			<tr>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}" colspan="3">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/PART_ID != ''">
						<xsl:value-of select="$Rtextp073"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_DUE_DATE/DATE/DAY != ''">
						<xsl:value-of select="$Rtextp075"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/DATE_OF_PAYMENT/DATE/DAY != ''">
						<xsl:value-of select="$Rtextp076"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/PAID_AMOUNT/AMOUNT != ''">
						<xsl:value-of select="$Rtextp085"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/COLLECTION_DATE/DATE/DAY != ''">
						<xsl:value-of select="$Rtextp087"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_RATE != ''">
						<xsl:value-of select="$Rtextp083"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/ROW_TOTAL/AMOUNT[@VAT='EXCLUDED']">
						<xsl:value-of select="$Rtextp008"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/ROW_TOTAL/AMOUNT[@VAT='INCLUDED']">
						<xsl:value-of select="$Rtextp006"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
			</tr>
			<!-- empty row -->
			<tr bgcolor="#FFFFFF">
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:text disable-output-escaping="yes"><![CDATA[<hr>]]></xsl:text>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="(HEADER/INVOICE_TYPE != '06' and HEADER/INVOICE_TYPE != '07' and HEADER/INVOICE_TYPE != '09') or (HEADER/INVOICE_TYPE = '06' and not(ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS)) or (HEADER/INVOICE_TYPE = '07' and not(ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS)) or (HEADER/INVOICE_TYPE = '09' and not(ROWS/ROW/INFORMATION_OF_OVERDUE_PAYMENTS)) or not(HEADER/INVOICE_TYPE)">
			<!-- first heading row -->
			<tr>
				<!-- 1:explanation -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}" colspan="3" width="15%">
					<xsl:value-of select="$Rtextp002"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- 2:quantity[1] -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}" width="10%">
					<xsl:if test="ROWS/ROW/QUANTITY/CHARGED[1]">
						<xsl:value-of select="$Rtextp003"/>
					</xsl:if>
					<xsl:call-template name="ent.nbspspace"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- 3:unit -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}" width="10%">
					<xsl:if test="ROWS/ROW/QUANTITY/CHARGED[1]/@Q_UNIT !='' or ROWS/ROW/UNIT !=''">
						<xsl:value-of select="$Rtextp004"/>
					</xsl:if>
					<xsl:call-template name="ent.nbspspace"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- 4:quantity[2] -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/QUANTITY/CHARGED[2]">
						<xsl:value-of select="$Rtextp003"/>
					</xsl:if>
					<xsl:call-template name="ent.nbspspace"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- 5:unit -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/QUANTITY/CHARGED[2]">
						<xsl:value-of select="$Rtextp004"/>
					</xsl:if>
					<xsl:call-template name="ent.nbspspace"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- 6:price per unit vat excluded -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/PRICE_PER_UNIT/AMOUNT[@VAT='EXCLUDED']">
						<xsl:value-of select="$Rtextp005"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<!-- 7:price per unit vat included  -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/PRICE_PER_UNIT/AMOUNT[@VAT='INCLUDED']">
						<xsl:value-of select="$Rtextp005"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<!-- 8:vat percent -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/VAT/RATE != ''">
						<xsl:value-of select="$Rtextp010"/>
						<xsl:text disable-output-escaping="yes"> %</xsl:text>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<!-- 9:vat amount -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/VAT/VAT_AMOUNT/AMOUNT != ''">
						<xsl:value-of select="$Rtextp010"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<!-- 10:total vat excluded -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/ROW_TOTAL/AMOUNT[@VAT='EXCLUDED']">
						<xsl:value-of select="$Rtextp012"/>
						<xsl:if test="$rcurrency != ''">
							<xsl:text> </xsl:text>
							<xsl:value-of select="$rcurrency"/>
						</xsl:if>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<!-- 11:total vat included -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/ROW_TOTAL/AMOUNT[@VAT='INCLUDED']">
						<xsl:value-of select="$Rtextp012"/>
						<xsl:if test="$rcurrency != ''">
							<xsl:text> </xsl:text>
							<xsl:value-of select="$rcurrency"/>
						</xsl:if>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
			</tr>
			<!-- second heading row -->
			<tr>
				<!-- 1-5: empty column -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" bgcolor="{$varColor3}" colspan="7">
					<xsl:text> </xsl:text>
				</td>
				<!-- 6:price per unit vat excluded -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/PRICE_PER_UNIT/AMOUNT[@VAT='EXCLUDED']">
						<xsl:value-of select="$Rtextp008"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<!-- 7:price per unit vat included  -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/PRICE_PER_UNIT/AMOUNT[@VAT='INCLUDED']">
						<xsl:value-of select="$Rtextp006"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<!-- 8:vat percent (empty) -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}" colspan="2">
					<xsl:text> </xsl:text>
				</td>
				<!-- 10:total vat excluded -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/ROW_TOTAL/AMOUNT[@VAT='EXCLUDED']">
						<xsl:value-of select="$Rtextp008"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
				<!-- 11:total vat included -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" bgcolor="{$varColor3}">
					<xsl:if test="ROWS/ROW/ROW_TOTAL/AMOUNT[@VAT='INCLUDED']">
						<xsl:value-of select="$Rtextp006"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
			</tr>
			<!-- empty row -->
			<tr bgcolor="#FFFFFF">
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="14">
					<xsl:text disable-output-escaping="yes"><![CDATA[<hr>]]></xsl:text>
				</td>
			</tr>
		</xsl:if>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for rowindex =========================================================== -->
	<xsl:template match="ROW[@ROW_TYPE = 'MAIN']" mode="rowindex">
		<xsl:variable name="rowid" select="@ROW_ID"/>
		<xsl:variable name="color">
			<xsl:choose>
				<xsl:when test="position() mod 2 = false()">
					<xsl:value-of select="$varColor1"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$varColor2"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<tr>
			<xsl:attribute name="bgcolor"><xsl:value-of select="$color"/></xsl:attribute>
			<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="3">
				<!-- create internal source anchor for pointing to the specification rows -->
				<!-- output ARTICLE_ID and ARTICLE_NAME -->
				<a>
					<xsl:attribute name="href"><xsl:value-of select="concat('#',@ROW_ID)"/></xsl:attribute>
					<xsl:value-of select="ARTICLE/ARTICLE_ID"/>
					<xsl:text> </xsl:text>
					<xsl:value-of select="ARTICLE/ARTICLE_NAME"/>
				</a>
			</td>
			<!-- call another template to output columns from the first subtotal row with same row id -->
			<xsl:apply-templates select="following-sibling::ROW[@ROW_TYPE ='SUBTOTAL' and @ROW_ID = $rowid][1]" mode="rowindexcolums">
				<xsl:with-param name="backgroundcolour" select="$color"/>
			</xsl:apply-templates>
			<!-- another call of same template with name when no SUBTOTAL rows exsists -->
			<xsl:if test="not(following-sibling::ROW[@ROW_TYPE ='SUBTOTAL' and @ROW_ID = $rowid])">
				<xsl:call-template name="makecolums"/>
			</xsl:if>
		</tr>
		<xsl:for-each select="following-sibling::ROW[@ROW_TYPE ='SUBTOTAL' and @ROW_ID = $rowid][position() > 1]">
			<tr>
				<!-- two empty colums -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="2">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$color"/></xsl:attribute>
					<xsl:text> </xsl:text>
				</td>
				<!-- call another template to output columns from second and further subtotal rows with same row id -->
				<xsl:apply-templates select="." mode="rowindexcolums">
					<xsl:with-param name="backgroundcolour" select="$color"/>
				</xsl:apply-templates>
			</tr>
		</xsl:for-each>
		<xsl:if test="position() = last()">
			<!-- empty row -->
			<tr bgcolor="#FFFFFF">
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="13">
					<xsl:text disable-output-escaping="yes"><![CDATA[<hr>]]></xsl:text>
				</td>
			</tr>
		</xsl:if>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for rowindexcolums =========================================================== -->
	<xsl:template match="ROW" name="makecolums" mode="rowindexcolums">
		<xsl:param name="backgroundcolour"/>
		<!-- 2:quantity[1] FROM SUBTOTAL -->
		<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
			<xsl:attribute name="bgcolor"><xsl:value-of select="$backgroundcolour"/></xsl:attribute>
			<xsl:apply-templates select="QUANTITY/CHARGED[1]"/>
			<xsl:text> </xsl:text>
		</td>
		<!-- 3:unit[1] FROM SUBTOTAL -->
		<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
			<xsl:attribute name="bgcolor"><xsl:value-of select="$backgroundcolour"/></xsl:attribute>
			<xsl:choose>
				<xsl:when test="QUANTITY/CHARGED[1]/@Q_UNIT != '' or QUANTITY/CHARGED[1]/@Q_UNIT_UNECE_CODE != ''">
					<xsl:choose>
						<xsl:when test="QUANTITY/CHARGED[1]/@Q_UNIT">
							<xsl:value-of select="QUANTITY/CHARGED[1]/@Q_UNIT"/>
							<xsl:text> </xsl:text>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="QUANTITY/CHARGED[1]/@Q_UNIT_UNECE_CODE"/>
							<xsl:text> </xsl:text>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="UNIT"/>
				</xsl:otherwise>
			</xsl:choose>
			<xsl:text> </xsl:text>
		</td>
		<!-- 4:quantity[2] FROM SUBTOTAL -->
		<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
			<xsl:attribute name="bgcolor"><xsl:value-of select="$backgroundcolour"/></xsl:attribute>
			<xsl:apply-templates select="QUANTITY/CHARGED[2]"/>
			<xsl:text> </xsl:text>
		</td>
		<!-- 5:unit[2] FROM SUBTOTAL -->
		<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
			<xsl:attribute name="bgcolor"><xsl:value-of select="$backgroundcolour"/></xsl:attribute>
			<xsl:choose>
				<xsl:when test="QUANTITY/CHARGED[2]/@Q_UNIT">
					<xsl:value-of select="QUANTITY/CHARGED[2]/@Q_UNIT"/>
					<xsl:text> </xsl:text>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="QUANTITY/CHARGED[2]/@Q_UNIT_UNECE_CODE"/>
					<xsl:text> </xsl:text>
				</xsl:otherwise>
			</xsl:choose>
			<xsl:text> </xsl:text>
		</td>
		<!-- 6:price per unit vat excluded FROM SUBTOTAL -->
		<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
			<xsl:attribute name="bgcolor"><xsl:value-of select="$backgroundcolour"/></xsl:attribute>
			<xsl:apply-templates select="PRICE_PER_UNIT/AMOUNT[@VAT='EXCLUDED']"/>
			<xsl:text> </xsl:text>
			<xsl:if test="PRICE_PER_UNIT[AMOUNT/@VAT='EXCLUDED']">
				<xsl:value-of select="PRICE_PER_UNIT[AMOUNT/@VAT='EXCLUDED']/@PR_UNIT"/>
			</xsl:if>
			<xsl:text> </xsl:text>
		</td>
		<!-- 7:price per unit vat included FROM SUBTOTAL -->
		<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
			<xsl:attribute name="bgcolor"><xsl:value-of select="$backgroundcolour"/></xsl:attribute>
			<xsl:apply-templates select="PRICE_PER_UNIT/AMOUNT[@VAT='INCLUDED']"/>
			<xsl:text> </xsl:text>
			<xsl:if test="PRICE_PER_UNIT[AMOUNT/@VAT='INCLUDED']">
				<xsl:value-of select="PRICE_PER_UNIT[AMOUNT/@VAT='INCLUDED']/@PR_UNIT"/>
			</xsl:if>
			<xsl:text> </xsl:text>
		</td>
		<!-- 8:vat percent FROM SUBTOTAL -->
		<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
			<xsl:attribute name="bgcolor"><xsl:value-of select="$backgroundcolour"/></xsl:attribute>
			<xsl:value-of select="VAT/RATE"/>
			<xsl:text> </xsl:text>
			<xsl:text> </xsl:text>
		</td>
		<!-- 9:vat amount FROM SUBTOTAL -->
		<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
			<xsl:attribute name="bgcolor"><xsl:value-of select="$backgroundcolour"/></xsl:attribute>
			<xsl:apply-templates select="VAT/VAT_AMOUNT/AMOUNT"/>
			<xsl:text> </xsl:text>
		</td>
		<!-- 10:total vat excluded FROM SUBTOTAL -->
		<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
			<xsl:attribute name="bgcolor"><xsl:value-of select="$backgroundcolour"/></xsl:attribute>
			<xsl:text> </xsl:text>
			<xsl:apply-templates select="ROW_TOTAL/AMOUNT[@VAT='EXCLUDED']"/>
			<xsl:text> </xsl:text>
		</td>
		<!-- 11:total vat included FROM SUBTOTAL -->
		<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
			<xsl:attribute name="bgcolor"><xsl:value-of select="$backgroundcolour"/></xsl:attribute>
			<xsl:text> </xsl:text>
			<xsl:apply-templates select="ROW_TOTAL/AMOUNT[@VAT='INCLUDED']"/>
			<xsl:text> </xsl:text>
		</td>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for common rows ======================================================== -->
	<xsl:template name="Row_25common" match="ROW">
		<xsl:param name="Rtextp001"/>
		<xsl:param name="Rtextp006"/>
		<xsl:param name="Rtextp008"/>
		<xsl:param name="Rtextp013"/>
		<xsl:param name="Rtextp014"/>
		<xsl:param name="Rtextp015"/>
		<xsl:param name="Rtextp016"/>
		<xsl:param name="Rtextp017"/>
		<xsl:param name="Rtextp018"/>
		<xsl:param name="Rtextp019"/>
		<xsl:param name="Rtextp020"/>
		<xsl:param name="Rtextp021"/>
		<xsl:param name="Rtextp022"/>
		<xsl:param name="Rtextp023"/>
		<xsl:param name="Rtextp024"/>
		<xsl:param name="Rtextp025"/>
		<xsl:param name="Rtextp026"/>
		<xsl:param name="Rtextp027"/>
		<xsl:param name="Rtextp028"/>
		<xsl:param name="Rtextp029"/>
		<xsl:param name="Rtextp030"/>
		<xsl:param name="Rtextp031"/>
		<xsl:param name="Rtextp032"/>
		<xsl:param name="Rtextp033"/>
		<xsl:param name="Rtextp034"/>
		<xsl:param name="Rtextp035"/>
		<xsl:param name="Rtextp036"/>
		<xsl:param name="Rtextp037"/>
		<xsl:param name="Rtextp038"/>
		<xsl:param name="Rtextp039"/>
		<xsl:param name="Rtextp040"/>
		<xsl:param name="Rtextp041"/>
		<xsl:param name="Rtextp042"/>
		<xsl:param name="Rtextp043"/>
		<xsl:param name="Rtextp044"/>
		<xsl:param name="Rtextp045"/>
		<xsl:param name="Rtextp046"/>
		<xsl:param name="Rtextp047"/>
		<xsl:param name="Rtextp048"/>
		<xsl:param name="Rtextp049"/>
		<xsl:param name="Rtextp050"/>
		<xsl:param name="Rtextp051"/>
		<xsl:param name="Rtextp052"/>
		<xsl:param name="Rtextp053"/>
		<xsl:param name="Rtextp054"/>
		<xsl:param name="Rtextp055"/>
		<xsl:param name="Rtextp056"/>
		<xsl:param name="Rtextp057"/>
		<xsl:param name="Rtextp063"/>
		<xsl:param name="Rtextp064"/>
		<xsl:param name="Rtextp065"/>
		<xsl:param name="Rtextp066"/>
		<xsl:param name="Rtextp067"/>
		<xsl:param name="Rtextp068"/>
		<xsl:param name="Rtextp069"/>
		<xsl:param name="Rtextp070"/>
		<xsl:param name="Rtextp071"/>
		<xsl:param name="Rtextp072"/>
		<xsl:param name="Rtextp073"/>
		<xsl:param name="Rtextp074"/>
		<xsl:param name="Rtextp075"/>
		<xsl:param name="Rtextp076"/>
		<xsl:param name="Rtextp077"/>
		<xsl:param name="Rtextp089"/>
		<xsl:param name="Rtextp090"/>
		<xsl:param name="invoicetype"/>
		<xsl:param name="Rtextp091"/>
		<xsl:param name="Rtextp092"/>
		<xsl:param name="Rtextp093"/>
		<xsl:param name="Rtextp094"/>
		<xsl:param name="Rtextp095"/>
		<xsl:param name="Rtextp096"/>
		<xsl:param name="Rtextp097"/>
		<xsl:param name="Rtextp098"/>
		<xsl:param name="Rtextp099"/>
		<xsl:param name="Rtextp100"/>
		<xsl:param name="Rtextp101"/>
		<xsl:param name="Rtextp102"/>
		<xsl:param name="Rtextp103"/>
		<xsl:param name="Rtextp104"/>
		<xsl:param name="Rtextp105"/>
		<xsl:param name="Rtextp106"/>
		<xsl:param name="Rtextp107"/>
		<xsl:param name="Rtextp108"/>
		<xsl:param name="Rtextp109"/>
		<xsl:param name="Rtextp110"/>
		<xsl:param name="Rtextp111"/>
		<xsl:param name="Rtextp112"/>
		<xsl:param name="Rtextp113"/>
		<xsl:param name="Rtextp114"/>
		<xsl:param name="Rtextp115"/>
		<xsl:param name="Rtextp116"/>
		<xsl:param name="Rtextp117"/>
		<xsl:param name="Rtextp118"/>
		<xsl:param name="Rtextp119"/>
		<xsl:param name="Rtextp120"/>
		<xsl:param name="Rtextp121"/>
		<xsl:param name="Rtextp122"/>
		<xsl:param name="Rtextp123"/>
		<xsl:param name="Rtextp124"/>
		<xsl:param name="Rtextp125"/>
		<xsl:param name="Rtextp126"/>
		<xsl:param name="Rtextp127"/>
		<xsl:param name="Rtextp128"/>
		<xsl:param name="Rtextp129"/>
		<xsl:param name="Rtextp130"/>
		<xsl:param name="Rtextp131"/>
		<xsl:param name="Rtextp132"/>
		<xsl:param name="Rtextp133"/>
		<xsl:param name="Rtextp134"/>
		<xsl:param name="Rtextp135"/>		
		<xsl:param name="Rtextp137"/>
		<xsl:param name="Rtextp138"/>
		<xsl:param name="Rtextp139"/>
		<xsl:param name="Rtextp140"/>
		<xsl:param name="Rtextp141a"/>
		<xsl:param name="Rtextp141b"/>
		<xsl:param name="Rtextp141c"/>
		<xsl:param name="Rtextp142"/>
		<xsl:param name="Rtextp143"/>
		<xsl:param name="Rtextp143b"/>
		<xsl:param name="Rtextp143c"/>
		<xsl:param name="Rtextp144"/>
		<xsl:param name="Rtextp145"/>
		<xsl:param name="Rtextp146"/>
		<xsl:param name="Rtextp147"/>
		<xsl:param name="Rtextp148"/>
		<xsl:param name="Rtextp149"/>
		<xsl:param name="Rtextp150"/>
		<xsl:param name="Rtextp151"/>
		<xsl:param name="Rtextp152"/>
		<xsl:param name="Rtextp153"/>
		<xsl:param name="Rtextp154"/>
		<xsl:param name="Rtextp155"/>
		<xsl:param name="Rtextp156"/>
		<xsl:param name="Rtextp157"/>
		<xsl:param name="Rtextp158"/>
				<xsl:param name="Rtextp159"/>
		<xsl:param name="AItextp020"/>
		<xsl:param name="AItextp021"/>
		<!-- output first extra empty row if ROW_TYPE is MAIN -->
		<xsl:if test="@ROW_TYPE = 'MAIN'">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="13">
					<!-- make anchor for joint invoices -->
					<a>
						<xsl:attribute name="name"><xsl:value-of select="@ROW_ID"/></xsl:attribute>
					</a>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<!-- if ROW_TYPE is SUBTOTAL output extra row with a short rule -->
		<xsl:if test="@ROW_TYPE = 'SUBTOTAL'">
			<tr valign="bottom">
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td colspan="10">
					<xsl:text> </xsl:text>
				</td>
				<td colspan="3" align="right">
					<xsl:text disable-output-escaping="yes"><![CDATA[<hr>]]></xsl:text>
				</td>
			</tr>
		</xsl:if>
		<!-- delivery receiver -->
		<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CUSTOMER_NAME[1] != '' 
	        or  DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CUSTOMER_NAME[2] != ''
	        or  DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CUSTOMER_NAME[3] != ''
	        or  DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CUSTOMER_ID != '' or  DELIVERY_RECEIVER/CUSTOMER_INFORMATION/TRADING_NAME != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td class="layouttext8" colspan="13">
					<xsl:value-of select="$Rtextp001"/>
					<xsl:text>: </xsl:text>
					<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CUSTOMER_NAME[1]"/>
					<xsl:text> </xsl:text>
					<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CUSTOMER_NAME[2]"/>
					<xsl:text> </xsl:text>
					<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CUSTOMER_NAME[3]"/>
					<xsl:text> </xsl:text>
					<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CUSTOMER_ID"/>
					<xsl:text> </xsl:text>
					<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/TRADING_NAME"/>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS1 != '' 
	        or  DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS2 != ''
	        or  DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS3 != ''
	        or  DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS4 != ''
			or  DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ADDRESS/SUBDIVISION != ''
	        or  DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ADDRESS/POSTAL_CODE != ''
	        or  DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ADDRESS/POST_OFFICE != ''
	        or  DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ADDRESS/COUNTRY_CODE != ''
	        or  DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ADDRESS/COUNTRY != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td class="layouttext8" colspan="13">
					<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS1"/>
					<xsl:text> </xsl:text>
					<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS2"/>
					<xsl:text> </xsl:text>
					<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS3 != ''">
						<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS3"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS4 != ''">
						<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS4"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ADDRESS/SUBDIVISION"/>
					<xsl:text> </xsl:text>
					<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ADDRESS/POSTAL_CODE"/>
					<xsl:text> </xsl:text>
					<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ADDRESS/POST_OFFICE"/>
					<xsl:text> </xsl:text>
					<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ADDRESS/COUNTRY_CODE != ''">
						<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ADDRESS/COUNTRY_CODE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ADDRESS/COUNTRY"/>
				</td>
			</tr>
		</xsl:if>
		<!--Delivery_receiver Contact Information-->
		<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON_FUNCTION != ''
      		or  DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON != '' 
	        or  DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEPHONE_NUMBER != ''
	        or  DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEFAX_NUMBER != ''
	        or  DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/E-MAIL_ADDRESS != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td class="layouttext8" colspan="13">
					<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON_FUNCTION != '' or
						DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON != ''">
						<xsl:value-of select="$Rtextp044"/>
						<xsl:text>: </xsl:text>
					</xsl:if>
					<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON_FUNCTION != ''">
						<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON_FUNCTION"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON != ''">
						<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEPHONE_NUMBER != ''">
						<xsl:value-of select="$Rtextp056"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEPHONE_NUMBER"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEFAX_NUMBER != ''">
						<xsl:value-of select="$Rtextp090"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEFAX_NUMBER"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/E-MAIL_ADDRESS != ''">
						<xsl:value-of select="$Rtextp057"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/E-MAIL_ADDRESS"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/DEPARTMENT != ''">
						<xsl:value-of select="$Rtextp092"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/DEPARTMENT"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/FREE_TEXT -->
		<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/FREE_TEXT != '' ">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td class="layouttext8" colspan="13">
					<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/FREE_TEXT"/>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ORGANIZATION_NUMBER != ''
                 or DELIVERY_RECEIVER/CUSTOMER_INFORMATION/VAT_NUMBER != ''
                 or DELIVERY_RECEIVER/CUSTOMER_INFORMATION/VAT_REG != ''
                 or DELIVERY_RECEIVER/CUSTOMER_INFORMATION/PARTY_IDENTIFICATION_ID != ''
                 or DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT != ''
                 or DELIVERY_RECEIVER/CUSTOMER_INFORMATION/SITE != ''
                 or DELIVERY_RECEIVER/CUSTOMER_INFORMATION/E-MAIL_ADDRESS != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td class="layouttext8" colspan="13">
					<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ORGANIZATION_NUMBER !=''">
						<xsl:value-of select="$Rtextp045"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ORGANIZATION_NUMBER"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/VAT_NUMBER !='' or DELIVERY_RECEIVER/CUSTOMER_INFORMATION/VAT_REG !=''">
						<span class="layouttext8">
							<xsl:value-of select="$Rtextp046"/>
							<xsl:text>: </xsl:text>
						</span>
						<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/VAT_NUMBER"/>
						<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/VAT_NUMBER != ''">
							<xsl:text> </xsl:text>
						</xsl:if>
						<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/VAT_REG"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/PARTY_IDENTIFICATION_ID !=''">
						<xsl:for-each select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/PARTY_IDENTIFICATION_ID">
							<span class="layouttext8">
								<xsl:choose>
									<xsl:when test="@AUTHORITY = 'EDI' or not(@AUTHORITY) or @AUTHORITY=''">
										<xsl:value-of select="$Rtextp089"/>
									</xsl:when>
									<xsl:otherwise>
										<xsl:value-of select="@AUTHORITY"/>
									</xsl:otherwise>
								</xsl:choose>
								<xsl:text>: </xsl:text>
							</span>
							<xsl:value-of select="."/>
							<xsl:text> </xsl:text>
						</xsl:for-each>
						<xsl:text> </xsl:text>
					</xsl:if>
					<br/>
					<!-- Delivery Receiver Organization and Site -->
					<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT != '' ">
						<span class="layouttext8">
							<xsl:value-of select="$Rtextp092"/>
							<xsl:text>: </xsl:text>
						</span>
						<xsl:apply-templates select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT[1]"/>
						<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT[2] != ''">
							<xsl:text> </xsl:text>
							<xsl:apply-templates select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT[2]"/>
							<xsl:text> </xsl:text>
						</xsl:if>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/SITE != ''">
						<span class="layouttext8">
							<xsl:value-of select="$Rtextp093"/>
							<xsl:text>: </xsl:text>
						</span>
						<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/SITE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<br/>
					<!-- E-Mail address -->
					<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/E-MAIL_ADDRESS != ''">
						<span class="layouttext8">
							<xsl:value-of select="$Rtextp094"/>
							<xsl:text>: </xsl:text>
						</span>
						<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/E-MAIL_ADDRESS"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- Delivery_receiver note-->
		<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/NOTE != '' ">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td class="layouttext8" colspan="13">
					<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/NOTE"/>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/FREE_TEXT != '' ">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td class="layouttext8" colspan="13">
					<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/FREE_TEXT"/>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/LINKS/LINK != '' ">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td class="layouttext8" colspan="13">
					<xsl:value-of select="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/LINKS/LINK"/>
					<br/>
					<br/>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="DELIVERY_RECEIVER/CUSTOMER_INFORMATION/CUSTOMER_NAME != ''">
			<tr>
				<td class="layouttext8" colspan="13">&#160;</td>
			</tr>
		</xsl:if>
		<!--OTHER_PARTNER/@PARTNER_TEXT:...-->
		<xsl:if test="OTHER_PARTNER">
			<xsl:for-each select="OTHER_PARTNER">
				<xsl:if test="position() &gt; 1">
					<tr>
						<td class="layouttext8">&#160;</td>
					</tr>
				</xsl:if>
				<xsl:if test="CUSTOMER_INFORMATION/CUSTOMER_NAME[1] != '' 
			        or  CUSTOMER_INFORMATION/CUSTOMER_NAME[2] != ''
			        or  CUSTOMER_INFORMATION/CUSTOMER_ID != ''
			        or CUSTOMER_INFORMATION/TRADING_NAME !=''">
					<tr>
						<td class="layouttext8" colspan="13">
							<xsl:value-of select="@PARTNER_TEXT"/>
							<xsl:text>: </xsl:text>
							<xsl:value-of select="CUSTOMER_INFORMATION/CUSTOMER_NAME[1]"/>
							<xsl:text> </xsl:text>
							<xsl:value-of select="CUSTOMER_INFORMATION/CUSTOMER_NAME[2]"/>
							<xsl:text> </xsl:text>
							<xsl:value-of select="CUSTOMER_INFORMATION/CUSTOMER_NAME[3]"/>
							<xsl:text> </xsl:text>
							<xsl:value-of select="CUSTOMER_INFORMATION/CUSTOMER_ID"/>
							<xsl:text> </xsl:text>
							<xsl:value-of select="CUSTOMER_INFORMATION/TRADING_NAME"/>
						</td>
					</tr>
				</xsl:if>
				<xsl:if test="CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS1 != '' 
			        or  CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS2 != ''
			        or  CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS3 != ''
			        or  CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS4 != ''
			        or  CUSTOMER_INFORMATION/ADDRESS/SUBDIVISION != ''
			        or  CUSTOMER_INFORMATION/ADDRESS/POSTAL_CODE != ''
			        or  CUSTOMER_INFORMATION/ADDRESS/POST_OFFICE != ''
			        or  CUSTOMER_INFORMATION/ADDRESS/COUNTRY_CODE != ''
			        or  CUSTOMER_INFORMATION/ADDRESS/COUNTRY != ''">
					<tr>
						<td class="layouttext8" colspan="13">
							<xsl:value-of select="CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS1"/>
							<xsl:text> </xsl:text>
							<xsl:value-of select="CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS2"/>
							<xsl:text> </xsl:text>
							<xsl:if test="CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS3 != ''">
								<xsl:value-of select="CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS3"/>
								<xsl:text> </xsl:text>
							</xsl:if>
							<xsl:if test="CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS4 != ''">
								<xsl:value-of select="CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS4"/>
								<xsl:text> </xsl:text>
							</xsl:if>
							<xsl:value-of select="CUSTOMER_INFORMATION/ADDRESS/SUBDIVISION"/>
							<xsl:text> </xsl:text>
							<xsl:value-of select="CUSTOMER_INFORMATION/ADDRESS/POSTAL_CODE"/>
							<xsl:text> </xsl:text>
							<xsl:value-of select="CUSTOMER_INFORMATION/ADDRESS/POST_OFFICE"/>
							<xsl:text> </xsl:text>
							<xsl:if test="CUSTOMER_INFORMATION/ADDRESS/COUNTRY_CODE != ''">
								<xsl:value-of select="CUSTOMER_INFORMATION/ADDRESS/COUNTRY_CODE"/>
								<xsl:text> </xsl:text>
							</xsl:if>
							<xsl:value-of select="CUSTOMER_INFORMATION/ADDRESS/COUNTRY"/>
						</td>
					</tr>
				</xsl:if>
				<!--OTHER_PARTNER Contact Information-->
				<xsl:if test="CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON_FUNCTION != ''
		      		or  CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON != '' 
			        or  CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEPHONE_NUMBER != ''
			        or  CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEFAX_NUMBER != ''
			        or  CUSTOMER_INFORMATION/CONTACT_INFORMATION/E-MAIL_ADDRESS != ''">
					<tr>
						<td class="layouttext8" colspan="13">
							<xsl:if test="CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON_FUNCTION != '' or
								CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON != ''">
								<xsl:value-of select="$Rtextp044"/>
								<xsl:text>: </xsl:text>
							</xsl:if>
							<xsl:if test="CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON_FUNCTION != ''">
								<xsl:value-of select="CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON_FUNCTION"/>
								<xsl:text> </xsl:text>
							</xsl:if>
							<xsl:if test="CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON != ''">
								<xsl:value-of select="CUSTOMER_INFORMATION/CONTACT_INFORMATION/CONTACT_PERSON"/>
								<xsl:text> </xsl:text>
							</xsl:if>
							<xsl:if test="CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEPHONE_NUMBER != ''">
								<xsl:value-of select="$Rtextp056"/>
								<xsl:text>: </xsl:text>
								<xsl:value-of select="CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEPHONE_NUMBER"/>
								<xsl:text> </xsl:text>
							</xsl:if>
							<xsl:if test="CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEFAX_NUMBER != ''">
								<xsl:value-of select="$Rtextp090"/>
								<xsl:text>: </xsl:text>
								<xsl:value-of select="CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEFAX_NUMBER"/>
								<xsl:text> </xsl:text>
							</xsl:if>
							<xsl:if test="CUSTOMER_INFORMATION/CONTACT_INFORMATION/E-MAIL_ADDRESS != ''">
								<xsl:value-of select="$Rtextp057"/>
								<xsl:text>: </xsl:text>
								<xsl:value-of select="CUSTOMER_INFORMATION/CONTACT_INFORMATION/E-MAIL_ADDRESS"/>
								<xsl:text> </xsl:text>
							</xsl:if>
							<xsl:if test="CUSTOMER_INFORMATION/CONTACT_INFORMATION/DEPARTMENT != ''">
								<xsl:value-of select="$Rtextp092"/>
								<xsl:text>: </xsl:text>
								<xsl:value-of select="CUSTOMER_INFORMATION/CONTACT_INFORMATION/DEPARTMENT"/>
							</xsl:if>
						</td>
					</tr>
				</xsl:if>
				<!-- OTHER_PARTNER/CUSTOMER_INFORMATION/CONTACT_INFORMATION/FREE_TEXT -->
				<xsl:if test="CUSTOMER_INFORMATION/CONTACT_INFORMATION/FREE_TEXT != '' ">
					<tr>
						<td class="layouttext8" colspan="13">
							<xsl:value-of select="CUSTOMER_INFORMATION/CONTACT_INFORMATION/FREE_TEXT"/>
						</td>
					</tr>
				</xsl:if>
				<xsl:if test="CUSTOMER_INFORMATION/ORGANIZATION_NUMBER != ''
		                 or CUSTOMER_INFORMATION/VAT_NUMBER != ''
		                 or CUSTOMER_INFORMATION/VAT_REG != ''
		                 or CUSTOMER_INFORMATION/PARTY_IDENTIFICATION_ID != ''
		                 or CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT != ''
		                 or CUSTOMER_INFORMATION/SITE != '' 
		                 or CUSTOMER_INFORMATION/E-MAIL_ADDRESS != ''">
					<tr>
						<td class="layouttext8" colspan="13">
							<xsl:if test="CUSTOMER_INFORMATION/ORGANIZATION_NUMBER !=''">
								<xsl:value-of select="$Rtextp045"/>
								<xsl:text>: </xsl:text>
								<xsl:value-of select="CUSTOMER_INFORMATION/ORGANIZATION_NUMBER"/>
								<xsl:text> </xsl:text>
							</xsl:if>
							<xsl:if test="CUSTOMER_INFORMATION/VAT_NUMBER !=''">
								<span class="layouttext8">
									<xsl:value-of select="$Rtextp046"/>
									<xsl:text>: </xsl:text>
								</span>
								<xsl:value-of select="CUSTOMER_INFORMATION/VAT_NUMBER"/>
								<xsl:text> </xsl:text>
								<xsl:value-of select="CUSTOMER_INFORMATION/VAT_REG"/>
								<xsl:text> </xsl:text>
							</xsl:if>
							<xsl:if test="CUSTOMER_INFORMATION/PARTY_IDENTIFICATION_ID !=''">
								<xsl:for-each select="CUSTOMER_INFORMATION/PARTY_IDENTIFICATION_ID">
									<span class="layouttext8">
										<xsl:choose>
											<xsl:when test="@AUTHORITY = 'EDI' or not(@AUTHORITY) or @AUTHORITY=''">
												<xsl:value-of select="$Rtextp089"/>
											</xsl:when>
											<xsl:otherwise>
												<xsl:value-of select="@AUTHORITY"/>
											</xsl:otherwise>
										</xsl:choose>
										<xsl:text>: </xsl:text>
									</span>
									<xsl:value-of select="."/>
									<xsl:text> </xsl:text>
								</xsl:for-each>
								<xsl:text> </xsl:text>
							</xsl:if>
							<br/>
							<!-- OTHER_PARTNER Organization and Site -->
							<xsl:if test="CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT != '' ">
								<span class="layouttext8">
									<xsl:value-of select="$Rtextp092"/>
									<xsl:text>: </xsl:text>
								</span>
								<xsl:apply-templates select="CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT[1]"/>
								<xsl:if test="CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT[2] != ''">
									<xsl:text> </xsl:text>
									<xsl:apply-templates select="CUSTOMER_INFORMATION/ORGANIZATION_DEPARTMENT[2]"/>
									<xsl:text> </xsl:text>
								</xsl:if>
								<xsl:text> </xsl:text>
							</xsl:if>
							<xsl:if test="CUSTOMER_INFORMATION/SITE != '' ">
								<span class="layouttext8">
									<xsl:value-of select="$Rtextp093"/>
									<xsl:text>: </xsl:text>
								</span>
								<xsl:value-of select="CUSTOMER_INFORMATION/SITE"/>
								<xsl:text> </xsl:text>
							</xsl:if>
							<br/>
							<!-- E-Mail address -->
							<xsl:if test="CUSTOMER_INFORMATION/E-MAIL_ADDRESS != ''">
								<span class="layouttext8">
									<xsl:value-of select="$Rtextp094"/>
									<xsl:text>: </xsl:text>
								</span>
								<xsl:value-of select="CUSTOMER_INFORMATION/E-MAIL_ADDRESS"/>
								<xsl:text> </xsl:text>
							</xsl:if>
						</td>
					</tr>
				</xsl:if>
				<!-- OTHER_PARTNER note-->
				<xsl:if test="CUSTOMER_INFORMATION/NOTE != '' ">
					<tr>
						<td class="layouttext8" colspan="13">
							<xsl:value-of select="CUSTOMER_INFORMATION/NOTE"/>
						</td>
					</tr>
				</xsl:if>
				<xsl:if test="CUSTOMER_INFORMATION/FREE_TEXT != '' ">
					<tr>
						<td class="layouttext8" colspan="13">
							<xsl:value-of select="CUSTOMER_INFORMATION/FREE_TEXT"/>
						</td>
					</tr>
				</xsl:if>
				<xsl:if test="CUSTOMER_INFORMATION/LINKS/LINK != '' ">
					<tr>
						<td class="layouttext8" colspan="13">
							<xsl:value-of select="CUSTOMER_INFORMATION/LINKS/LINK"/>
							<br/>
							<br/>
						</td>
					</tr>
				</xsl:if>
			</xsl:for-each>
			<tr>
				<td class="layouttext8" colspan="13">&#160;</td>
			</tr>
		</xsl:if>
		<!-- -->
		<!-- output row: row number and article name [1] -->
		<xsl:if test="ROW_NUMBER != '' or ARTICLE/ARTICLE_NAME != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="13">
					<!-- indent specification and subtotal rows four charachters -->
					<xsl:if test="@ROW_TYPE = 'SPECIFICATION' or @ROW_TYPE = 'SUBTOTAL'">
						<xsl:call-template name="ent.nbspspace"/>
						<xsl:call-template name="ent.nbspspace"/>
					</xsl:if>
					<xsl:if test="ROW_NUMBER != ''">
						<xsl:value-of select="ROW_NUMBER"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<!-- make source anchor to main rows when invoice type is 02 or 04 -->
					<xsl:choose>
						<xsl:when test="($invoicetype = '02' or $invoicetype = '04') and @ROW_TYPE='MAIN'">
							<a href="#top">
								<xsl:value-of select="ARTICLE/ARTICLE_NAME"/>
							</a>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="ARTICLE/ARTICLE_NAME"/>
						</xsl:otherwise>
					</xsl:choose>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: article name [2] -->
		<xsl:if test="ARTICLE/ARTICLE_NAME2 !='' ">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="13">
					<xsl:if test="@ROW_TYPE = 'SPECIFICATION' or @ROW_TYPE = 'SUBTOTAL'">
						<xsl:call-template name="ent.nbspspace"/>
						<xsl:call-template name="ent.nbspspace"/>
					</xsl:if>
					<xsl:value-of select="ARTICLE/ARTICLE_NAME2"/>
				</td>
			</tr>
		</xsl:if>
		<!--  article row -->
		<xsl:if test="ARTICLE/ARTICLE_ID != ''
                   or QUANTITY/CHARGED != ''
              or PRICE_PER_UNIT/AMOUNT != ''
                           or VAT/RATE != ''
              or VAT/VAT_AMOUNT/AMOUNT != '' 
                   or ROW_TOTAL/AMOUNT != ''">
			<tr>
				<!-- 1:explanation -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" width="15%" colspan="3">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:if test="@ROW_TYPE = 'SPECIFICATION' or @ROW_TYPE = 'SUBTOTAL'">
						<xsl:call-template name="ent.nbspspace"/>
						<xsl:call-template name="ent.nbspspace"/>
					</xsl:if>
					<xsl:value-of select="ARTICLE/ARTICLE_ID"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- 2:quantity[1] -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" width="10%">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:apply-templates select="QUANTITY/CHARGED[1]"/>
					<xsl:call-template name="ent.nbspspace"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- 3:unit[1] -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" width="10%">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:choose>
						<xsl:when test="QUANTITY/CHARGED[1]/@Q_UNIT!='' or QUANTITY/CHARGED[1]/@Q_UNIT_UNECE_CODE">
							<xsl:choose>
								<xsl:when test="QUANTITY/CHARGED[1]/@Q_UNIT">
									<xsl:value-of select="QUANTITY/CHARGED[1]/@Q_UNIT"/>
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="QUANTITY/CHARGED[1]/@Q_UNIT_UNECE_CODE"/>
									<xsl:text> </xsl:text>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="UNIT"/>
						</xsl:otherwise>
					</xsl:choose>
					<xsl:text> </xsl:text>
				</td>
				<!-- 4:quantity[2] -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:apply-templates select="QUANTITY/CHARGED[2]"/>
					<xsl:call-template name="ent.nbspspace"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- 5:unit[2] -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:choose>
						<xsl:when test="QUANTITY/CHARGED[2]/@Q_UNIT !='' or QUANTITY/CHARGED[2]/@Q_UNIT_UNECE_CODE !=''">
							<xsl:choose>
								<xsl:when test="QUANTITY/CHARGED[2]/@Q_UNIT">
									<xsl:value-of select="QUANTITY/CHARGED[2]/@Q_UNIT"/>
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="QUANTITY/CHARGED[2]/@Q_UNIT_UNECE_CODE"/>
									<xsl:text> </xsl:text>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:when>
						<xsl:when test="QUANTITY/CHARGED[2] !='' and QUANTITY/CHARGED[2]/@Q_UNIT =''">
							<xsl:value-of select="UNIT"/>
						</xsl:when>
					</xsl:choose>
					<xsl:text> </xsl:text>
				</td>
				<!-- 6:price per unit vat excluded -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:apply-templates select="PRICE_PER_UNIT/AMOUNT[@VAT='EXCLUDED']"/>
					<xsl:text> </xsl:text>
					<xsl:if test="PRICE_PER_UNIT/AMOUNT[@VAT='EXCLUDED']">
						<xsl:choose>
							<xsl:when test="PRICE_PER_UNIT/@PR_QTY!=''">
								<xsl:text> / </xsl:text>
								<xsl:value-of select="PRICE_PER_UNIT/@PR_QTY"/>
							</xsl:when>
							<xsl:otherwise> </xsl:otherwise>
						</xsl:choose>
					</xsl:if>
					<xsl:text> </xsl:text>
					<xsl:if test="PRICE_PER_UNIT/AMOUNT[@VAT='EXCLUDED']">
						<xsl:choose>
							<xsl:when test="PRICE_PER_UNIT/@PR_UNIT!=''">
								<xsl:value-of select="PRICE_PER_UNIT/@PR_UNIT"/>
							</xsl:when>
							<xsl:otherwise> </xsl:otherwise>
						</xsl:choose>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<!-- 7:price per unit vat included -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:apply-templates select="PRICE_PER_UNIT/AMOUNT[@VAT='INCLUDED']"/>
					<xsl:text> </xsl:text>
					<xsl:if test="PRICE_PER_UNIT/AMOUNT[@VAT='INCLUDED']">
						<xsl:choose>
							<xsl:when test="PRICE_PER_UNIT/@PR_QTY!=''">
								<xsl:text> / </xsl:text>
								<xsl:value-of select="PRICE_PER_UNIT/@PR_QTY"/>
							</xsl:when>
							<xsl:otherwise> </xsl:otherwise>
						</xsl:choose>
					</xsl:if>
					<xsl:text> </xsl:text>
					<xsl:if test="PRICE_PER_UNIT/AMOUNT[@VAT='INCLUDED']">
						<xsl:choose>
							<xsl:when test="PRICE_PER_UNIT/@PR_UNIT!=''">
								<xsl:value-of select="PRICE_PER_UNIT/@PR_UNIT"/>
							</xsl:when>
							<xsl:otherwise> </xsl:otherwise>
						</xsl:choose>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<!-- 8:vat percent -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:value-of select="VAT/RATE"/>
					<xsl:text> </xsl:text>
					<xsl:text> </xsl:text>
				</td>
				<!-- 9:vat amount -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:apply-templates select="VAT/VAT_AMOUNT/AMOUNT"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- 10:total vat excluded -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:text> </xsl:text>
					<xsl:apply-templates select="ROW_TOTAL/AMOUNT[@VAT='EXCLUDED']"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- 11:total vat included -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:text> </xsl:text>
					<xsl:apply-templates select="ROW_TOTAL/AMOUNT[@VAT='INCLUDED']"/>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<!-- repeat QUANTITY/CHARGED -elements -->
		<xsl:if test="QUANTITY/CHARGED[3]!= '' or QUANTITY/CHARGED[4]!= ''">
			<tr>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="3">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<!-- charged-->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:apply-templates select="QUANTITY/CHARGED[3]"/>
					<xsl:call-template name="ent.nbspspace"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- unit-->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:choose>
						<xsl:when test="QUANTITY/CHARGED[3]/@Q_UNIT!='' or QUANTITY/CHARGED[3]/@Q_UNIT_UNECE_CODE !=''">
							<xsl:choose>
								<xsl:when test="QUANTITY/CHARGED[3]/@Q_UNIT">
									<xsl:value-of select="QUANTITY/CHARGED[3]/@Q_UNIT"/>
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="QUANTITY/CHARGED[3]/@Q_UNIT_UNECE_CODE"/>
									<xsl:text> </xsl:text>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:when>
						<xsl:when test="QUANTITY/CHARGED[3] !='' and QUANTITY/CHARGED[3]/@Q_UNIT =''">
							<xsl:value-of select="UNIT"/>
						</xsl:when>
					</xsl:choose>
					<xsl:text> </xsl:text>
				</td>
				<!-- charged -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:apply-templates select="QUANTITY/CHARGED[4]"/>
					<xsl:call-template name="ent.nbspspace"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- unit -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:choose>
						<xsl:when test="QUANTITY/CHARGED[4]/@Q_UNIT !='' or QUANTITY/CHARGED[4]/@Q_UNIT_UNECE_CODE !=''">
							<xsl:choose>
								<xsl:when test="QUANTITY/CHARGED[4]/@Q_UNIT">
									<xsl:value-of select="QUANTITY/CHARGED[4]/@Q_UNIT"/>
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="QUANTITY/CHARGED[4]/@Q_UNIT_UNECE_CODE"/>
									<xsl:text> </xsl:text>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:when>
						<xsl:when test="QUANTITY/CHARGED[4] !='' and QUANTITY/CHARGED[4]/@Q_UNIT =''">
							<xsl:value-of select="UNIT"/>
						</xsl:when>
					</xsl:choose>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="QUANTITY/CHARGED[5]!= '' or QUANTITY/CHARGED[6]!= ''">
			<tr>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="3">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<!-- charged-->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:apply-templates select="QUANTITY/CHARGED[5]"/>
					<xsl:call-template name="ent.nbspspace"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- unit-->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:choose>
						<xsl:when test="QUANTITY/CHARGED[5]/@Q_UNIT!='' or QUANTITY/CHARGED[5]/@Q_UNIT_UNECE_CODE!=''">
							<xsl:choose>
								<xsl:when test="QUANTITY/CHARGED[5]/@Q_UNIT">
									<xsl:value-of select="QUANTITY/CHARGED[5]/@Q_UNIT"/>
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="QUANTITY/CHARGED[5]/@Q_UNIT_UNECE_CODE"/>
									<xsl:text> </xsl:text>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:when>
						<xsl:when test="QUANTITY/CHARGED[5] !='' and QUANTITY/CHARGED[5]/@Q_UNIT =''">
							<xsl:value-of select="UNIT"/>
						</xsl:when>
					</xsl:choose>
					<xsl:text> </xsl:text>
				</td>
				<!-- charged -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:apply-templates select="QUANTITY/CHARGED[6]"/>
					<xsl:call-template name="ent.nbspspace"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- unit -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:choose>
						<xsl:when test="QUANTITY/CHARGED[6]/@Q_UNIT!='' or QUANTITY/CHARGED[6]/@Q_UNIT_UNECE_CODE!=''">
							<xsl:choose>
								<xsl:when test="QUANTITY/CHARGED[6]/@Q_UNIT">
									<xsl:value-of select="QUANTITY/CHARGED[6]/@Q_UNIT"/>
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="QUANTITY/CHARGED[6]/@Q_UNIT_UNECE_CODE"/>
									<xsl:text> </xsl:text>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:when>
						<xsl:when test="QUANTITY/CHARGED[6] !='' and QUANTITY/CHARGED[6]/@Q_UNIT =''">
							<xsl:value-of select="UNIT"/>
						</xsl:when>
					</xsl:choose>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="QUANTITY/CHARGED[7]!= '' or QUANTITY/CHARGED[8]!= ''">
			<tr>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="3">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<!-- charged-->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:apply-templates select="QUANTITY/CHARGED[7]"/>
					<xsl:call-template name="ent.nbspspace"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- unit-->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:choose>
						<xsl:when test="QUANTITY/CHARGED[7]/@Q_UNIT!='' or QUANTITY/CHARGED[7]/@Q_UNIT_UNECE_CODE!=''">
							<xsl:choose>
								<xsl:when test="QUANTITY/CHARGED[7]/@Q_UNIT">
									<xsl:value-of select="QUANTITY/CHARGED[7]/@Q_UNIT"/>
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="QUANTITY/CHARGED[7]/@Q_UNIT_UNECE_CODE"/>
									<xsl:text> </xsl:text>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:when>
						<xsl:when test="QUANTITY/CHARGED[7] !='' and QUANTITY/CHARGED[7]/@Q_UNIT =''">
							<xsl:value-of select="UNIT"/>
						</xsl:when>
					</xsl:choose>
					<xsl:text> </xsl:text>
				</td>
				<!-- charged -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:apply-templates select="QUANTITY/CHARGED[8]"/>
					<xsl:call-template name="ent.nbspspace"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- unit -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:choose>
						<xsl:when test="QUANTITY/CHARGED[8]/@Q_UNIT!='' or QUANTITY/CHARGED[8]/@Q_UNIT_UNECE_CODE!=''">
							<xsl:choose>
								<xsl:when test="QUANTITY/CHARGED[8]/@Q_UNIT">
									<xsl:value-of select="QUANTITY/CHARGED[8]/@Q_UNIT"/>
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="QUANTITY/CHARGED[8]/@Q_UNIT_UNECE_CODE"/>
									<xsl:text> </xsl:text>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:when>
						<xsl:when test="QUANTITY/CHARGED[8] !='' and QUANTITY/CHARGED[8]/@Q_UNIT =''">
							<xsl:value-of select="UNIT"/>
						</xsl:when>
					</xsl:choose>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="QUANTITY/CHARGED[9]!= '' or QUANTITY/CHARGED[10]!= ''">
			<tr>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="3">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<!-- charged-->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:apply-templates select="QUANTITY/CHARGED[9]"/>
					<xsl:call-template name="ent.nbspspace"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- unit-->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:choose>
						<xsl:when test="QUANTITY/CHARGED[9]/@Q_UNIT!='' or QUANTITY/CHARGED[9]/@Q_UNIT_UNECE_CODE!=''">
							<xsl:choose>
								<xsl:when test="QUANTITY/CHARGED[9]/@Q_UNIT">
									<xsl:value-of select="QUANTITY/CHARGED[9]/@Q_UNIT"/>
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="QUANTITY/CHARGED[9]/@Q_UNIT_UNECE_CODE"/>
									<xsl:text> </xsl:text>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:when>
						<xsl:when test="QUANTITY/CHARGED[9] !='' and QUANTITY/CHARGED[9]/@Q_UNIT =''">
							<xsl:value-of select="UNIT"/>
						</xsl:when>
					</xsl:choose>
					<xsl:text> </xsl:text>
				</td>
				<!-- charged -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:apply-templates select="QUANTITY/CHARGED[10]"/>
					<xsl:call-template name="ent.nbspspace"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- unit -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:choose>
						<xsl:when test="QUANTITY/CHARGED[10]/@Q_UNIT!='' or QUANTITY/CHARGED[10]/@Q_UNIT_UNECE_CODE!=''">
							<xsl:choose>
								<xsl:when test="QUANTITY/CHARGED[10]/@Q_UNIT">
									<xsl:value-of select="QUANTITY/CHARGED[10]/@Q_UNIT"/>
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="QUANTITY/CHARGED[10]/@Q_UNIT_UNECE_CODE"/>
									<xsl:text> </xsl:text>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:when>
						<xsl:when test="QUANTITY/CHARGED[10] !='' and QUANTITY/CHARGED[10]/@Q_UNIT =''">
							<xsl:value-of select="UNIT"/>
						</xsl:when>
					</xsl:choose>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="QUANTITY/CHARGED[11]!= '' or QUANTITY/CHARGED[12]!= ''">
			<tr>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="3">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<!-- charged-->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:apply-templates select="QUANTITY/CHARGED[11]"/>
					<xsl:call-template name="ent.nbspspace"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- unit-->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:choose>
						<xsl:when test="QUANTITY/CHARGED[11]/@Q_UNIT!='' or QUANTITY/CHARGED[11]/@Q_UNIT_UNECE_CODE!=''">
							<xsl:choose>
								<xsl:when test="QUANTITY/CHARGED[11]/@Q_UNIT">
									<xsl:value-of select="QUANTITY/CHARGED[11]/@Q_UNIT"/>
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="QUANTITY/CHARGED[11]/@Q_UNIT_UNECE_CODE"/>
									<xsl:text> </xsl:text>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:when>
						<xsl:when test="QUANTITY/CHARGED[11] !='' and QUANTITY/CHARGED[11]/@Q_UNIT =''">
							<xsl:value-of select="UNIT"/>
						</xsl:when>
					</xsl:choose>
					<xsl:text> </xsl:text>
				</td>
				<!-- charged -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:apply-templates select="QUANTITY/CHARGED[12]"/>
					<xsl:call-template name="ent.nbspspace"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- unit -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:choose>
						<xsl:when test="QUANTITY/CHARGED[12]/@Q_UNIT!='' or QUANTITY/CHARGED[12]/@Q_UNIT_UNECE_CODE!=''">
							<xsl:choose>
								<xsl:when test="QUANTITY/CHARGED[12]/@Q_UNIT">
									<xsl:value-of select="QUANTITY/CHARGED[12]/@Q_UNIT"/>
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="QUANTITY/CHARGED[12]/@Q_UNIT_UNECE_CODE"/>
									<xsl:text> </xsl:text>
								</xsl:otherwise>
							</xsl:choose>
						</xsl:when>
						<xsl:when test="QUANTITY/CHARGED[12] !='' and QUANTITY/CHARGED[12]/@Q_UNIT =''">
							<xsl:value-of select="UNIT"/>
						</xsl:when>
					</xsl:choose>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: vat/free_text -->
		<xsl:if test="VAT/FREE_TEXT != '' or VAT/@VAT_TYPE!= ''">
			<tr>
				<!-- 1:empty colums -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="10">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<!-- 2:vat free text -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="left" colspan="3">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:if test="VAT/@VAT_TYPE!= ''">
						<xsl:value-of select="VAT/@VAT_TYPE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:apply-templates select="VAT/FREE_TEXT"/>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<!-- ARTICLE/PRODUCT_GROUP and ARTICLE/EAN_CODE -->
		<xsl:if test="ARTICLE/PRODUCT_GROUP != ''
or ARTICLE/EAN_CODE != '' ">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td class="layouttext8" colspan="13">
					<xsl:if test="ARTICLE/PRODUCT_GROUP !=''">
						<xsl:value-of select="$Rtextp096"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="ARTICLE/PRODUCT_GROUP"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="ARTICLE/EAN_CODE !=''">
						<xsl:value-of select="$Rtextp097"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="ARTICLE/EAN_CODE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- ARTICLE/SUPPLIER_ARTICLE_ID and ARTICLE/MANUFACTURER_ARTICLE_ID-->
		<xsl:if test="ARTICLE/SUPPLIER_ARTICLE_ID != ''
or ARTICLE/MANUFACTURER_ARTICLE_ID != '' ">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td class="layouttext8" colspan="13">
					<xsl:if test="ARTICLE/SUPPLIER_ARTICLE_ID !=''">
						<xsl:value-of select="$Rtextp098"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="ARTICLE/SUPPLIER_ARTICLE_ID"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="ARTICLE/MANUFACTURER_ARTICLE_ID !=''">
						<xsl:value-of select="$Rtextp099"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="ARTICLE/MANUFACTURER_ARTICLE_ID"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- ARTICLE/SERIAL_NUMBER-->
		<xsl:if test="ARTICLE/SERIAL_NUMBER != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td class="layouttext8" colspan="13">
					<xsl:if test="ARTICLE/SERIAL_NUMBER !=''">
						<xsl:value-of select="$Rtextp095"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="ARTICLE/SERIAL_NUMBER"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- ARTICLE/LOT/LOT_NUMBER and ARTICLE/LOT/LOT_DESCRIPTION-->
		<xsl:if test="ARTICLE/LOT/LOT_NUMBER != ''
or ARTICLE/LOT/LOT_DESCRIPTION != '' ">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td class="layouttext8" colspan="13">
					<xsl:if test="ARTICLE/LOT/LOT_NUMBER !=''">
						<xsl:value-of select="$Rtextp100"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="ARTICLE/LOT/LOT_NUMBER"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="ARTICLE/LOT/LOT_DESCRIPTION !=''">
						<xsl:value-of select="$Rtextp101"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="ARTICLE/LOT/LOT_DESCRIPTION"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: article description -->
		<xsl:if test="ARTICLE/ARTICLE_DESCRIPTIONS !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="13">
					<xsl:apply-templates select="ARTICLE/ARTICLE_DESCRIPTIONS/ARTICLE_DESCRIPTION"/>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: article free text -->
		<xsl:if test="ARTICLE/FREE_TEXT !=''">
			<xsl:for-each select="ARTICLE/FREE_TEXT">
				<tr>
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
						<xsl:text> </xsl:text>
					</td>
					<!-- 1:explanation -->
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="13">
						<xsl:value-of select="."/>
						<xsl:text> </xsl:text>
					</td>
				</tr>
			</xsl:for-each>
		</xsl:if>
		<!-- output row: invoiced object -->
		<xsl:if test="INVOICED_OBJECT !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="13">
					<xsl:value-of select="$Rtextp156"/>
					<xsl:text>: </xsl:text>
					<xsl:apply-templates select="INVOICED_OBJECT"/>
				</td>
			</tr>
		</xsl:if>
		<!--ROW_ACTION-->
		<xsl:if test="ROW_ACTION !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="13">
					<xsl:apply-templates select="ROW_ACTION"/>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: row/currency -->
		<xsl:variable name="rate">
			<xsl:value-of select="CURRENCY/RATE"/>
		</xsl:variable>
		<xsl:if test="CURRENCY/CODE != ../../HEADER/CURRENCY/CODE">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:value-of select="CURRENCY/CODE"/>
					<xsl:text> </xsl:text>
					<xsl:if test="CURRENCY/RATE!=''">
						<xsl:value-of select="$Rtextp069"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="$rate"/>
					</xsl:if>
					<xsl:text> </xsl:text>
					<xsl:for-each select="CURRENCY">
						<xsl:if test="DATE/DAY != ''">
							<xsl:text disable-output-escaping="yes"><![CDATA[/]]></xsl:text>
							<xsl:text> </xsl:text>
							<xsl:apply-templates select="DATE"/>
							<xsl:call-template name="ent.nbspspace"/>
						</xsl:if>
					</xsl:for-each>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: row_total_in_other_currency -->
		<xsl:if test="ROW_TOTAL_IN_OTHER_CURRENCY != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<!-- with vat excluded -->
					<xsl:if test="ROW_TOTAL_IN_OTHER_CURRENCY/AMOUNT[@VAT='EXCLUDED']!=''">
						<xsl:value-of select="$Rtextp070"/>
						<xsl:text> </xsl:text>
						<xsl:value-of select="$Rtextp071"/>
						<xsl:value-of select="ROW_TOTAL_IN_OTHER_CURRENCY/CURRENCY/CODE"/>
						<xsl:text> </xsl:text>
						<xsl:value-of select="$Rtextp008"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="ROW_TOTAL_IN_OTHER_CURRENCY/AMOUNT[@VAT='EXCLUDED']"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<!--  with vat included -->
					<xsl:if test="ROW_TOTAL_IN_OTHER_CURRENCY/AMOUNT[@VAT='INCLUDED']!=''">
						<xsl:value-of select="$Rtextp070"/>
						<xsl:text> </xsl:text>
						<xsl:value-of select="$Rtextp071"/>
						<xsl:value-of select="ROW_TOTAL_IN_OTHER_CURRENCY/CURRENCY/CODE"/>
						<xsl:text> </xsl:text>
						<xsl:value-of select="$Rtextp006"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="ROW_TOTAL_IN_OTHER_CURRENCY/AMOUNT[@VAT='INCLUDED']"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="ROW_TOTAL_IN_OTHER_CURRENCY/CURRENCY/RATE !='' or ROW_TOTAL_IN_OTHER_CURRENCY/CURRENCY/DATE != ''">
						<xsl:value-of select="$Rtextp069"/>
						<xsl:text> </xsl:text>
						<xsl:value-of select="ROW_TOTAL_IN_OTHER_CURRENCY/CURRENCY/RATE"/>
						<xsl:text> </xsl:text>
						<xsl:for-each select="ROW_TOTAL_IN_OTHER_CURRENCY/CURRENCY">
							<xsl:if test="DATE/DAY != ''">
								<xsl:text disable-output-escaping="yes"><![CDATA[/]]></xsl:text>
								<xsl:text> </xsl:text>
								<xsl:apply-templates select="DATE"/>
								<xsl:call-template name="ent.nbspspace"/>
							</xsl:if>
						</xsl:for-each>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- CREDIT_INVOICE_NUMBER -->
		<xsl:if test="CREDIT_INVOICE_NUMBER != '' ">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:value-of select="$Rtextp102"/>
					<xsl:text>: </xsl:text>
					<xsl:value-of select="CREDIT_INVOICE_NUMBER"/>
					<xsl:text> </xsl:text>
					<xsl:apply-templates select="CREDIT_INVOICE_DATE/DATE"/>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: location id/used quantity -->
		<xsl:if test="LOCATION_ID/USED_QUANTITY != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:value-of select="$Rtextp047"/>
					<xsl:text>: </xsl:text>
					<xsl:apply-templates select="LOCATION_ID/USED_QUANTITY"/>
					<xsl:if test="LOCATION_ID/USED_QUANTITY/@Q_UNIT !='' or LOCATION_ID/USED_QUANTITY/@Q_UNIT_UNECE_CODE!=''">
						<xsl:text> </xsl:text>
						<xsl:choose>
							<xsl:when test="LOCATION_ID/USED_QUANTITY/@Q_UNIT">
								<xsl:value-of select="LOCATION_ID/USED_QUANTITY/@Q_UNIT"/>
								<xsl:text> </xsl:text>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="LOCATION_ID/USED_QUANTITY/@Q_UNIT_UNECE_CODE"/>
								<xsl:text> </xsl:text>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: location id/previous meter reading -->
		<xsl:if test="LOCATION_ID/PREVIOUS_METER_READING != ''
                 or LOCATION_ID/PREVIOUS_METER_READING_DATE/DATE != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="LOCATION_ID/PREVIOUS_METER_READING != ''">
						<xsl:value-of select="$Rtextp048"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="LOCATION_ID/PREVIOUS_METER_READING"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="LOCATION_ID/PREVIOUS_METER_READING_DATE/DATE != ''">
						<xsl:value-of select="$Rtextp049"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="LOCATION_ID/PREVIOUS_METER_READING_DATE/DATE"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: location id/latest meter reading -->
		<xsl:if test="LOCATION_ID/LATEST_METER_READING != ''
                 or LOCATION_ID/LATEST_METER_READING_DATE/DATE != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="LOCATION_ID/LATEST_METER_READING != ''">
						<xsl:value-of select="$Rtextp050"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="LOCATION_ID/LATEST_METER_READING"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="LOCATION_ID/LATEST_METER_READING_DATE/DATE != ''">
						<xsl:value-of select="$Rtextp051"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="LOCATION_ID/LATEST_METER_READING_DATE/DATE"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: location id/calculated quantity -->
		<xsl:if test="LOCATION_ID/CALCULATED_QUANTITY != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:value-of select="$Rtextp052"/>
					<xsl:text>: </xsl:text>
					<xsl:apply-templates select="LOCATION_ID/CALCULATED_QUANTITY"/>
					<xsl:if test="LOCATION_ID/CALCULATED_QUANTITY/@Q_UNIT !='' or LOCATION_ID/CALCULATED_QUANTITY/@Q_UNIT_UNECE_CODE !=''">
						<xsl:text> </xsl:text>
						<xsl:choose>
							<xsl:when test="LOCATION_ID/CALCULATED_QUANTITY/@Q_UNIT">
								<xsl:value-of select="LOCATION_ID/CALCULATED_QUANTITY/@Q_UNIT"/>
								<xsl:text> </xsl:text>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="LOCATION_ID/CALCULATED_QUANTITY/@Q_UNIT_UNECE_CODE"/>
								<xsl:text> </xsl:text>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- AVERAGE_PRICE/AMOUNT, ex and in -->
		<xsl:if test="LOCATION_ID/AVERAGE_PRICE/AMOUNT!=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="LOCATION_ID/AVERAGE_PRICE/AMOUNT[@VAT='EXCLUDED']!=''">
						<xsl:value-of select="$Rtextp103"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="LOCATION_ID/AVERAGE_PRICE/AMOUNT[@VAT='EXCLUDED']"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="LOCATION_ID/AVERAGE_PRICE/AMOUNT[@VAT='INCLUDED']!=''">
						<xsl:value-of select="$Rtextp104"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="LOCATION_ID/AVERAGE_PRICE/AMOUNT[@VAT='INCLUDED']"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: contract reference, request of quantion reference, offer reference and payee reference -->
		<xsl:if test="CONTRACT_REFERENCE != '' or REQUEST_OF_QUOTATION_REFERENCE != '' or OFFER_REFERENCE != '' or PAYEE_REFERENCE != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="CONTRACT_REFERENCE != ''">
						<xsl:value-of select="$Rtextp066"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="CONTRACT_REFERENCE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="REQUEST_OF_QUOTATION_REFERENCE != ''">
						<xsl:value-of select="$Rtextp105"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="REQUEST_OF_QUOTATION_REFERENCE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="OFFER_REFERENCE != ''">
						<xsl:value-of select="$Rtextp067"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="OFFER_REFERENCE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="PAYEE_REFERENCE != ''">
						<xsl:value-of select="$Rtextp106"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="PAYEE_REFERENCE"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- @CONTRACT TYPE, CONTRACT NUMBER, CONTRACT DATE -->
		<xsl:if test="CONTRACT_INFORMATION !='' or CONTRACT_INFORMATION/CONTRACT_NUMBER != '' or CONTRACT_INFORMATION/CONTRACT_DATE != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="CONTRACT_INFORMATION !='' or CONTRACT_INFORMATION/CONTRACT_NUMBER != '' or CONTRACT_INFORMATION/CONTRACT_DATE != ''">
						<xsl:value-of select="$Rtextp107"/>
						<xsl:text>: </xsl:text>
					</xsl:if>
					<xsl:if test="CONTRACT_INFORMATION/@CONTRACT_TYPE != ''">
						<xsl:value-of select="CONTRACT_INFORMATION/@CONTRACT_TYPE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="CONTRACT_INFORMATION/CONTRACT_NUMBER != ''">
						<xsl:value-of select="CONTRACT_INFORMATION/CONTRACT_NUMBER"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="CONTRACT_INFORMATION/CONTRACT_DATE/DATE/DAY != ''">
						<xsl:value-of select="CONTRACT_INFORMATION/CONTRACT_DATE/DATE/DAY"/>.<xsl:value-of select="CONTRACT_INFORMATION/CONTRACT_DATE/DATE/MONTH"/>.<xsl:value-of select="CONTRACT_INFORMATION/CONTRACT_DATE/DATE/CENTURY"/>
						<xsl:value-of select="CONTRACT_INFORMATION/CONTRACT_DATE/DATE/DECADE_AND_YEAR"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="CONTRACT_INFORMATION/CONTRACT_PERIOD/START_PERIOD/DATE != '' or CONTRACT_INFORMATION/CONTRACT_PERIOD/START_PERIOD/TIME != ''">
						<xsl:value-of select="$Rtextp108"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="CONTRACT_INFORMATION/CONTRACT_PERIOD/START_PERIOD/DATE/DAY"/>.<xsl:value-of select="CONTRACT_INFORMATION/CONTRACT_PERIOD/START_PERIOD/DATE/MONTH"/>.<xsl:value-of select="CONTRACT_INFORMATION/CONTRACT_PERIOD/START_PERIOD/DATE/CENTURY"/>
						<xsl:value-of select="CONTRACT_INFORMATION/CONTRACT_PERIOD/START_PERIOD/DATE/DECADE_AND_YEAR"/>
						<xsl:text> </xsl:text>
						<xsl:if test="CONTRACT_INFORMATION/CONTRACT_PERIOD/START_PERIOD/TIME/HOUR != ''">
							<xsl:value-of select="CONTRACT_INFORMATION/CONTRACT_PERIOD/START_PERIOD/TIME/HOUR"/>
						</xsl:if>
						<xsl:if test="CONTRACT_INFORMATION/CONTRACT_PERIOD/START_PERIOD/TIME/MINUTE != ''">
							<xsl:text>:</xsl:text>
							<xsl:value-of select="CONTRACT_INFORMATION/CONTRACT_PERIOD/START_PERIOD/TIME/MINUTE"/>
						</xsl:if>
						<xsl:if test="CONTRACT_INFORMATION/CONTRACT_PERIOD/START_PERIOD/TIME/SECOND != ''">
							<xsl:text>:</xsl:text>
							<xsl:value-of select="CONTRACT_INFORMATION/CONTRACT_PERIOD/START_PERIOD/TIME/SECOND"/>
						</xsl:if>
						<xsl:text> </xsl:text>-
		        </xsl:if>
					<xsl:if test="CONTRACT_INFORMATION/CONTRACT_PERIOD/END_PERIOD/DATE != '' or CONTRACT_INFORMATION/CONTRACT_PERIOD/END_PERIOD/TIME != ''">
						<xsl:value-of select="CONTRACT_INFORMATION/CONTRACT_PERIOD/END_PERIOD/DATE/DAY"/>.<xsl:value-of select="CONTRACT_INFORMATION/CONTRACT_PERIOD/END_PERIOD/DATE/MONTH"/>.<xsl:value-of select="CONTRACT_INFORMATION/CONTRACT_PERIOD/END_PERIOD/DATE/CENTURY"/>
						<xsl:value-of select="CONTRACT_INFORMATION/CONTRACT_PERIOD/END_PERIOD/DATE/DECADE_AND_YEAR"/>
						<xsl:text> </xsl:text>
						<xsl:if test="CONTRACT_INFORMATION/CONTRACT_PERIOD/END_PERIOD/TIME/HOUR != ''">
							<xsl:value-of select="CONTRACT_INFORMATION/CONTRACT_PERIOD/END_PERIOD/TIME/HOUR"/>
						</xsl:if>
						<xsl:if test="CONTRACT_INFORMATION/CONTRACT_PERIOD/END_PERIOD/TIME/MINUTE != ''">
							<xsl:text>:</xsl:text>
							<xsl:value-of select="CONTRACT_INFORMATION/CONTRACT_PERIOD/END_PERIOD/TIME/MINUTE"/>
						</xsl:if>
						<xsl:if test="CONTRACT_INFORMATION/CONTRACT_PERIOD/END_PERIOD/TIME/SECOND != ''">
							<xsl:text>:</xsl:text>
							<xsl:value-of select="CONTRACT_INFORMATION/CONTRACT_PERIOD/END_PERIOD/TIME/SECOND"/>
						</xsl:if>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="CONTRACT_INFORMATION/CONTRACT_PERIOD/START_PERIOD/PERIOD_TEXT != ''">
						<xsl:value-of select="CONTRACT_INFORMATION/CONTRACT_PERIOD/START_PERIOD/PERIOD_TEXT"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="CONTRACT_INFORMATION/PRICELIST != ''">
						<xsl:value-of select="$Rtextp109"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="CONTRACT_INFORMATION/PRICELIST"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: order number and order date -->
		<xsl:if test="ORDER_NUMBER != '' or ORDER_DATE != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="ORDER_NUMBER != ''">
						<xsl:value-of select="$Rtextp016"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="ORDER_NUMBER"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="ORDER_DATE != ''">
						<xsl:value-of select="$Rtextp017"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="ORDER_DATE"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- Tilauksenne O_I/ORDER_NUMBER@ORDER_TYPE='CO' ORDER_DATE, ORDER_REFERENCE, ORDER_POSITION -->
		<xsl:if test="ORDER_INFORMATION[@ORDER_TYPE='CO'] != ''">
			<xsl:if test="ORDER_INFORMATION[@ORDER_TYPE='CO']/ORDER_NUMBER != '' or ORDER_INFORMATION[@ORDER_TYPE='CO']/ORDER_DATE != '' or ORDER_INFORMATION[@ORDER_TYPE='CO']/ORDER_REFERENCE != '' or ORDER_INFORMATION[@ORDER_TYPE='CO']/ORDER_POSITION != ''">
				<tr>
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
						<xsl:text> </xsl:text>
					</td>
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
						
						<xsl:if test="ORDER_INFORMATION[@ORDER_TYPE='CO']/ORDER_NUMBER != ''">
							<xsl:value-of select="$Rtextp110"/>
							<xsl:text>: </xsl:text>
							<xsl:value-of select="ORDER_INFORMATION[@ORDER_TYPE='CO']/ORDER_NUMBER"/>
							<xsl:text> </xsl:text>
						</xsl:if>
						<xsl:if test="ORDER_INFORMATION[@ORDER_TYPE='CO']/ORDER_DATE != ''">
							<xsl:value-of select="$Rtextp017"/>
							<xsl:text>: </xsl:text>
							<xsl:apply-templates select="ORDER_INFORMATION[@ORDER_TYPE='CO']/ORDER_DATE"/>
							<xsl:text> </xsl:text>
						</xsl:if>
						<xsl:if test="ORDER_INFORMATION[@ORDER_TYPE='CO']/ORDER_REFERENCE != ''">
							<xsl:value-of select="$Rtextp157"/>
							<xsl:text>: </xsl:text>
							<xsl:apply-templates select="ORDER_INFORMATION[@ORDER_TYPE='CO']/ORDER_REFERENCE"/>
							<xsl:text> </xsl:text>
						</xsl:if>
						<xsl:if test="ORDER_INFORMATION[@ORDER_TYPE='CO']/ORDER_POSITION != ''">
							<xsl:value-of select="$Rtextp112"/>
							<xsl:text>: </xsl:text>
							<xsl:apply-templates select="ORDER_INFORMATION[@ORDER_TYPE='CO']/ORDER_POSITION"/>
						</xsl:if>
					</td>
				</tr>
			</xsl:if>
		</xsl:if>
		<!-- Tilauksemme O_I/ORDER_NUMBER@ORDER_TYPE='VN' or not(@ORDER_TYPE='CO') ORDER_DATE, ORDER_REFERENCE, ORDER_POSITION -->
		<xsl:if test="ORDER_INFORMATION[@ORDER_TYPE='VN']/ORDER_NUMBER or ORDER_INFORMATION[@ORDER_TYPE='VN']/ORDER_DATE != '' or ORDER_INFORMATION[@ORDER_TYPE='VN']/ORDER_REFERENCE != '' or ORDER_INFORMATION[@ORDER_TYPE='VN']/ORDER_POSITION != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					
					<xsl:if test="ORDER_INFORMATION[@ORDER_TYPE='VN']/ORDER_NUMBER != ''">
						<xsl:value-of select="$Rtextp113"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="ORDER_INFORMATION[@ORDER_TYPE='VN']/ORDER_NUMBER"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="ORDER_INFORMATION[@ORDER_TYPE='VN']/ORDER_DATE != ''">
						<xsl:value-of select="$Rtextp017"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="ORDER_INFORMATION[@ORDER_TYPE='VN']/ORDER_DATE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="ORDER_INFORMATION[@ORDER_TYPE='VN']/ORDER_REFERENCE != ''">
						<xsl:value-of select="$Rtextp158"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="ORDER_INFORMATION[@ORDER_TYPE='VN']/ORDER_REFERENCE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="ORDER_INFORMATION[@ORDER_TYPE='VN']/ORDER_POSITION != ''">
						<xsl:value-of select="$Rtextp112"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="ORDER_INFORMATION[@ORDER_TYPE='VN']/ORDER_POSITION"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- Valmistajan tilaustiedot O_I/ORDER_NUMBER@ORDER_TYPE='MH', ORDER_DATE, ORDER_REFERENCE, ORDER_POSITION -->
		<xsl:if test="ORDER_INFORMATION[@ORDER_TYPE='MH'] != ''">
			<xsl:if test="ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_NUMBER != '' or ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_DATE != '' or ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_REFERENCE != '' or ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_POSITION != ''">
				<tr>
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
						<xsl:text> </xsl:text>
					</td>
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
						<xsl:value-of select="$Rtextp114"/>
						<xsl:text> / </xsl:text>
						
						<xsl:if test="ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_NUMBER != ''">
							<xsl:value-of select="$Rtextp016"/>
							<xsl:text>: </xsl:text>
							<xsl:value-of select="ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_NUMBER"/>
							<xsl:text> </xsl:text>
						</xsl:if>
						<xsl:if test="ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_DATE != ''">
							<xsl:value-of select="$Rtextp017"/>
							<xsl:text>: </xsl:text>
							<xsl:apply-templates select="ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_DATE"/>
							<xsl:text> </xsl:text>
						</xsl:if>
						<xsl:if test="ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_REFERENCE != ''">
							<xsl:value-of select="$Rtextp111"/>
							<xsl:text>: </xsl:text>
							<xsl:apply-templates select="ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_REFERENCE"/>
							<xsl:text> </xsl:text>
						</xsl:if>
						<xsl:if test="ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_POSITION != ''">
							<xsl:value-of select="$Rtextp112"/>
							<xsl:text>: </xsl:text>
							<xsl:apply-templates select="ORDER_INFORMATION[@ORDER_TYPE='MH']/ORDER_POSITION"/>
						</xsl:if>
					</td>
				</tr>
			</xsl:if>
		</xsl:if>
		<!-- Muut tilaustiedot O_I/ORDER_NUMBER@ORDER_TYPE != 'CO, VN & MH', ORDER_DATE, ORDER_REFERENCE, ORDER_POSITION -->
		<xsl:if test="ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='VN') and not(@ORDER_TYPE='MH')] != ''">
			<xsl:if test="ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='VN') and not(@ORDER_TYPE='MH')]/ORDER_NUMBER != '' or ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='VN') and not(@ORDER_TYPE='MH')]/ORDER_DATE != '' or ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='VN') and not(@ORDER_TYPE='MH')]/ORDER_REFERENCE != '' or ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='VN') and not(@ORDER_TYPE='MH')]/ORDER_POSITION != ''">
				<tr>
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
						<xsl:text> </xsl:text>
					</td>
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
						
						<xsl:if test="ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='VN') and not(@ORDER_TYPE='MH')]/ORDER_NUMBER != ''">
							<xsl:value-of select="$Rtextp016"/>
							<xsl:text>: </xsl:text>
							<xsl:value-of select="ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='VN') and not(@ORDER_TYPE='MH')]/ORDER_NUMBER"/>
							<xsl:text> </xsl:text>
						</xsl:if>
						<xsl:if test="ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='VN') and not(@ORDER_TYPE='MH')]/ORDER_DATE != ''">
							<xsl:value-of select="$Rtextp017"/>
							<xsl:text>: </xsl:text>
							<xsl:apply-templates select="ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='VN') and not(@ORDER_TYPE='MH')]/ORDER_DATE"/>
							<xsl:text> </xsl:text>
						</xsl:if>
						<xsl:if test="ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='VN') and not(@ORDER_TYPE='MH')]/ORDER_REFERENCE != ''">
							<xsl:value-of select="$Rtextp111"/>
							<xsl:text>: </xsl:text>
							<xsl:apply-templates select="ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='VN') and not(@ORDER_TYPE='MH')]/ORDER_REFERENCE"/>
							<xsl:text> </xsl:text>
						</xsl:if>
						<xsl:if test="ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='VN') and not(@ORDER_TYPE='MH')]/ORDER_POSITION != ''">
							<xsl:value-of select="$Rtextp112"/>
							<xsl:text>: </xsl:text>
							<xsl:apply-templates select="ORDER_INFORMATION[not(@ORDER_TYPE='CO') and not(@ORDER_TYPE='VN') and not(@ORDER_TYPE='MH')]/ORDER_POSITION"/>
						</xsl:if>
					</td>
				</tr>
			</xsl:if>
		</xsl:if>
		<!-- SALES_PERSON -->
		<xsl:if test="SALES_PERSON != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="SALES_PERSON != ''">
						<xsl:value-of select="$Rtextp115"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="SALES_PERSON"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- @PROJECT_TYPE PROJECT_NUMBER PROJECT_TITLE 
PROJECT_INFORMATION/FREE_TEXT-->
		<xsl:if test="PROJECT_INFORMATION != '' or PROJECT_INFORMATION/PROJECT_NUMBER != '' or PROJECT_INFORMATION/PROJECT_TITLE != '' or PROJECT_INFORMATION/FREE_TEXT != ''">
			<xsl:for-each select="PROJECT_INFORMATION">
				<tr>
					<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
						<xsl:text> </xsl:text>
					</td>
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
						<xsl:if test="position() = 1">
							<xsl:value-of select="$Rtextp116"/>
							<xsl:text>: </xsl:text>
						</xsl:if>
						<xsl:if test="@PROJECT_TYPE != ''">
							<xsl:value-of select="@PROJECT_TYPE"/>
							<xsl:text> </xsl:text>
						</xsl:if>
						<xsl:if test="PROJECT_NUMBER != ''">
							<xsl:value-of select="PROJECT_NUMBER"/>
							<xsl:text> </xsl:text>
						</xsl:if>
						<xsl:if test="PROJECT_TITLE != ''">
							<xsl:value-of select="PROJECT_TITLE"/>
						</xsl:if>
						<br/>
						<xsl:if test="FREE_TEXT != ''">
							<xsl:value-of select="FREE_TEXT"/>
							<xsl:text> </xsl:text>
						</xsl:if>
					</td>
				</tr>
			</xsl:for-each>
		</xsl:if>
		<!-- ROW/PRICELIST-->
		<xsl:if test="PRICELIST != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="PRICELIST != ''">
						<xsl:value-of select="$Rtextp117"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="PRICELIST"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: start and end period -->
		<xsl:if test="START_PERIOD != '' or END_PERIOD != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:value-of select="$Rtextp043"/>
					<xsl:text>: </xsl:text>
					<xsl:apply-templates select="START_PERIOD"/>
					<xsl:if test="not(START_PERIOD)">
						<xsl:apply-templates select="END_PERIOD"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: delivery date and delivery information -->
		<xsl:if test="ARTICLE/DELIVERY_DATE != '' or DELIVERY_INFORMATION != ''  or DELIVERY_INFORMATION/@DELIVERY_CODE !='' or DELIVERY_NUMBER != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="ARTICLE/DELIVERY_DATE != ''">
						<xsl:value-of select="$Rtextp013"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="ARTICLE/DELIVERY_DATE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="DELIVERY_INFORMATION != '' or DELIVERY_INFORMATION/@DELIVERY_CODE !=''">
						<xsl:value-of select="$Rtextp041"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="DELIVERY_INFORMATION/@DELIVERY_CODE"/>
						<xsl:text> </xsl:text>
						<xsl:value-of select="DELIVERY_INFORMATION"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="DELIVERY_NUMBER != ''">
						<xsl:value-of select="$Rtextp118"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="DELIVERY_NUMBER"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!--(FI:toimitusehdot) @TERMS_OF_DELIVERY_CODE, TERMS_OF_DELIVERY -->
		<xsl:if test="TERMS_OF_DELIVERY/@TERMS_OF_DELIVERY_CODE != '' or TERMS_OF_DELIVERY != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="TERMS_OF_DELIVERY != ''">
						<xsl:value-of select="$Rtextp119"/>
						<xsl:text>: </xsl:text>
						<xsl:if test="TERMS_OF_DELIVERY/@TERMS_OF_DELIVERY_CODE != ''">
							<xsl:value-of select="TERMS_OF_DELIVERY/@TERMS_OF_DELIVERY_CODE"/>
							<xsl:text> </xsl:text>
						</xsl:if>
					</xsl:if>
					<xsl:if test="TERMS_OF_DELIVERY != ''">
						<xsl:apply-templates select="TERMS_OF_DELIVERY"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: order reference and note number -->
		<xsl:if test="ORDER_REFERENCE != '' or NOTE_NUMBER != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="ORDER_REFERENCE != ''">
						<xsl:value-of select="$Rtextp014"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="ORDER_REFERENCE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="NOTE_NUMBER != ''">
						<xsl:value-of select="$Rtextp015"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="NOTE_NUMBER"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: Transport note and transport date -->
		<xsl:if test="TRANSPORT_NOTE != '' or TRANSPORT_DATE != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="TRANSPORT_NOTE != ''">
						<xsl:value-of select="$Rtextp053"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="TRANSPORT_NOTE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="TRANSPORT_NOTE/@TRANSPORT_NOTE_TYPE != ''">
						<xsl:value-of select="$Rtextp159"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="TRANSPORT_NOTE/@TRANSPORT_NOTE_TYPE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="TRANSPORT_DATE != ''">
						<xsl:value-of select="$Rtextp054"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="TRANSPORT_DATE/DATE"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: offered, ordered, confirmed and delivered quantity -->
		<xsl:if test="QUANTITY/OFFERED != '' or QUANTITY/ORDERED != '' or QUANTITY/CONFIRMED != '' or QUANTITY/DELIVERED">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="QUANTITY/OFFERED != ''">
						<xsl:value-of select="$Rtextp018"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="QUANTITY/OFFERED"/>
						<xsl:text> </xsl:text>
						<xsl:choose>
							<xsl:when test="QUANTITY/OFFERED/@Q_UNIT">
								<xsl:value-of select="QUANTITY/OFFERED/@Q_UNIT"/>
								<xsl:text> </xsl:text>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="QUANTITY/OFFERED/@Q_UNIT_UNECE_CODE"/>
								<xsl:text> </xsl:text>
							</xsl:otherwise>
						</xsl:choose>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="QUANTITY/ORDERED != ''">
						<xsl:value-of select="$Rtextp019"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="QUANTITY/ORDERED"/>
						<xsl:text> </xsl:text>
						<xsl:choose>
							<xsl:when test="QUANTITY/ORDERED/@Q_UNIT">
								<xsl:value-of select="QUANTITY/ORDERED/@Q_UNIT"/>
								<xsl:text> </xsl:text>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="QUANTITY/ORDERED/@Q_UNIT_UNECE_CODE"/>
								<xsl:text> </xsl:text>
							</xsl:otherwise>
						</xsl:choose>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="QUANTITY/CONFIRMED != ''">
						<xsl:value-of select="$Rtextp120"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="QUANTITY/CONFIRMED"/>
						<xsl:text> </xsl:text>
						<xsl:choose>
							<xsl:when test="QUANTITY/CONFIRMED/@Q_UNIT">
								<xsl:value-of select="QUANTITY/CONFIRMED/@Q_UNIT"/>
								<xsl:text> </xsl:text>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="QUANTITY/CONFIRMED/@Q_UNIT_UNECE_CODE"/>
								<xsl:text> </xsl:text>
							</xsl:otherwise>
						</xsl:choose>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="QUANTITY/DELIVERED != ''">
						<xsl:value-of select="$Rtextp020"/>
						<xsl:text>: </xsl:text>
						<xsl:for-each select="QUANTITY/DELIVERED">
							<xsl:apply-templates select="."/>
							<xsl:text> </xsl:text>
							<xsl:choose>
								<xsl:when test="@Q_UNIT">
									<xsl:value-of select="@Q_UNIT"/>
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="@Q_UNIT_UNECE_CODE"/>
									<xsl:text> </xsl:text>
								</xsl:otherwise>
							</xsl:choose>
							<xsl:if test="position() != last()">
								<xsl:text disable-output-escaping="yes"><![CDATA[, ]]></xsl:text>
							</xsl:if>
						</xsl:for-each>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: Postdelivered, credit requested and returned q-unit -->
		<xsl:if test="QUANTITY/POSTDELIVERED != '' or QUANTITY/CREDIT_REQUESTED != '' or QUANTITY/RETURNED != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="QUANTITY/POSTDELIVERED != ''">
						<xsl:value-of select="$Rtextp121"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="QUANTITY/POSTDELIVERED"/>
						<xsl:text> </xsl:text>
						<xsl:choose>
							<xsl:when test="QUANTITY/POSTDELIVERED/@Q_UNIT">
								<xsl:value-of select="QUANTITY/POSTDELIVERED/@Q_UNIT"/>
								<xsl:text> </xsl:text>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="QUANTITY/POSTDELIVERED/@Q_UNIT_UNECE_CODE"/>
								<xsl:text> </xsl:text>
							</xsl:otherwise>
						</xsl:choose>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="QUANTITY/CREDIT_REQUESTED != ''">
						<xsl:value-of select="$Rtextp122"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="QUANTITY/CREDIT_REQUESTED"/>
						<xsl:text> </xsl:text>
						<xsl:choose>
							<xsl:when test="QUANTITY/CREDIT_REQUESTED/@Q_UNIT">
								<xsl:value-of select="QUANTITY/CREDIT_REQUESTED/@Q_UNIT"/>
								<xsl:text> </xsl:text>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="QUANTITY/CREDIT_REQUESTED/@Q_UNIT_UNECE_CODE"/>
								<xsl:text> </xsl:text>
							</xsl:otherwise>
						</xsl:choose>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="QUANTITY/RETURNED != ''">
						<xsl:value-of select="$Rtextp123"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="QUANTITY/RETURNED"/>
						<xsl:text> </xsl:text>
						<xsl:choose>
							<xsl:when test="QUANTITY/RETURNED/@Q_UNIT">
								<xsl:value-of select="QUANTITY/RETURNED/@Q_UNIT"/>
								<xsl:text> </xsl:text>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="QUANTITY/RETURNED/@Q_UNIT_UNECE_CODE"/>
								<xsl:text> </xsl:text>
							</xsl:otherwise>
						</xsl:choose>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: wholesale price -->
		<xsl:if test="WHOLESALE_PRICE != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<!-- wholesale price with vat excluded -->
					<xsl:if test="WHOLESALE_PRICE/AMOUNT[@VAT='EXCLUDED']!=''">
						<xsl:value-of select="$Rtextp055"/>
						<xsl:text> </xsl:text>
						<xsl:value-of select="$Rtextp008"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="WHOLESALE_PRICE/AMOUNT[@VAT='EXCLUDED']"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<!-- wholesale price with vat included -->
					<xsl:if test="WHOLESALE_PRICE/AMOUNT[@VAT='INCLUDED']!=''">
						<xsl:value-of select="$Rtextp055"/>
						<xsl:text> </xsl:text>
						<xsl:value-of select="$Rtextp006"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="WHOLESALE_PRICE/AMOUNT[@VAT='INCLUDED']"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: list price -->
		<xsl:if test="LIST_PRICE != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<!-- list price with vat excluded -->
					<xsl:if test="LIST_PRICE/AMOUNT[@VAT='EXCLUDED']!=''">
						<xsl:value-of select="$Rtextp063"/>
						<xsl:text> </xsl:text>
						<xsl:value-of select="$Rtextp008"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="LIST_PRICE/AMOUNT[@VAT='EXCLUDED']"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<!-- list price with vat included -->
					<xsl:if test="LIST_PRICE/AMOUNT[@VAT='INCLUDED']!=''">
						<xsl:value-of select="$Rtextp063"/>
						<xsl:text> </xsl:text>
						<xsl:value-of select="$Rtextp006"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="LIST_PRICE/AMOUNT[@VAT='INCLUDED']"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: row amout -->
		<xsl:if test="ROW_AMOUNT/AMOUNT">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<!-- row amount with vat excluded -->
					<xsl:if test="ROW_AMOUNT/AMOUNT[@VAT='EXCLUDED']">
						<xsl:value-of select="$Rtextp042"/>
						<xsl:text> </xsl:text>
						<xsl:value-of select="$Rtextp008"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="ROW_AMOUNT/AMOUNT[@VAT='EXCLUDED']"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<!-- row amount with vat included -->
					<xsl:if test="ROW_AMOUNT/AMOUNT[@VAT='INCLUDED']">
						<xsl:value-of select="$Rtextp042"/>
						<xsl:text> </xsl:text>
						<xsl:value-of select="$Rtextp006"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="ROW_AMOUNT/AMOUNT[@VAT='INCLUDED']"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: discounts -->
		<xsl:if test="DISCOUNT/DISCOUNT_AMOUNT/AMOUNT != ''
                 or DISCOUNT/PER_CENT != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:apply-templates select="DISCOUNT">
						<xsl:with-param name="subRtext006" select="$Rtextp006"/>
						<xsl:with-param name="subRtext008" select="$Rtextp008"/>
						<xsl:with-param name="subRtext021" select="$Rtextp021"/>
						<xsl:with-param name="subRtext040" select="$Rtextp040"/>
						<xsl:with-param name="subRtext022" select="$Rtextp022"/>
					</xsl:apply-templates>
				</td>
			</tr>
		</xsl:if>
		<!--  output row: discount_from_price_per_unit -->
		<xsl:if test="DISCOUNT_FROM_PRICE_PER_UNIT/AMOUNT">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<!--  with vat excluded -->
					<xsl:if test="DISCOUNT_FROM_PRICE_PER_UNIT/AMOUNT[@VAT='EXCLUDED']">
						<xsl:value-of select="$Rtextp064"/>
						<xsl:text> </xsl:text>
						<xsl:value-of select="$Rtextp008"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="DISCOUNT_FROM_PRICE_PER_UNIT/AMOUNT[@VAT='EXCLUDED']"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<!--  with vat included -->
					<xsl:if test="DISCOUNT_FROM_PRICE_PER_UNIT/AMOUNT[@VAT='INCLUDED']">
						<xsl:value-of select="$Rtextp064"/>
						<xsl:text> </xsl:text>
						<xsl:value-of select="$Rtextp006"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="DISCOUNT_FROM_PRICE_PER_UNIT/AMOUNT[@VAT='INCLUDED']"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!--  output row: price_per_unit_with_discount -->
		<xsl:if test="PRICE_PER_UNIT_WITH_DISCOUNT/AMOUNT">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<!--  with vat excluded -->
					<xsl:if test="PRICE_PER_UNIT_WITH_DISCOUNT/AMOUNT[@VAT='EXCLUDED']">
						<xsl:value-of select="$Rtextp065"/>
						<xsl:text> </xsl:text>
						<xsl:value-of select="$Rtextp008"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="PRICE_PER_UNIT_WITH_DISCOUNT/AMOUNT[@VAT='EXCLUDED']"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<!--  with vat included -->
					<xsl:if test="PRICE_PER_UNIT_WITH_DISCOUNT/AMOUNT[@VAT='INCLUDED']">
						<xsl:value-of select="$Rtextp065"/>
						<xsl:text> </xsl:text>
						<xsl:value-of select="$Rtextp006"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="PRICE_PER_UNIT_WITH_DISCOUNT/AMOUNT[@VAT='INCLUDED']"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- PRICE_PER_UNIT_NET ex and in -->
		<xsl:if test="PRICE_PER_UNIT_NET/AMOUNT != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<!--  with vat excluded -->
					<xsl:if test="PRICE_PER_UNIT_NET/AMOUNT[@VAT='EXCLUDED']">
						<xsl:value-of select="$Rtextp124"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="PRICE_PER_UNIT_NET/AMOUNT[@VAT='EXCLUDED']"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<!--  with vat included -->
					<xsl:if test="PRICE_PER_UNIT_NET/AMOUNT[@VAT='INCLUDED']">
						<xsl:value-of select="$Rtextp125"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="PRICE_PER_UNIT_NET/AMOUNT[@VAT='INCLUDED']"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- ROW_TOTAL_WITHOUT_EXTRA_COSTS ex and in-->
		<xsl:if test="ROW_TOTAL_WITHOUT_EXTRA_COSTS/AMOUNT != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<!--  with vat excluded -->
					<xsl:if test="ROW_TOTAL_WITHOUT_EXTRA_COSTS/AMOUNT[@VAT='EXCLUDED']">
						<xsl:value-of select="$Rtextp126"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="ROW_TOTAL_WITHOUT_EXTRA_COSTS/AMOUNT[@VAT='EXCLUDED']"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<!--  with vat included -->
					<xsl:if test="ROW_TOTAL_WITHOUT_EXTRA_COSTS/AMOUNT[@VAT='INCLUDED']">
						<xsl:value-of select="$Rtextp127"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="ROW_TOTAL_WITHOUT_EXTRA_COSTS/AMOUNT[@VAT='INCLUDED']"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: row charge -->
		<xsl:if test="ROW_CHARGE/CHARGE_AMOUNT">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:apply-templates select="ROW_CHARGE">
						<xsl:with-param name="subRtext022" select="$Rtextp022"/>
						<xsl:with-param name="subRtext023" select="$Rtextp023"/>
						<xsl:with-param name="subAItext020" select="$AItextp020"/>
						<xsl:with-param name="subAItext021" select="$AItextp021"/>
					</xsl:apply-templates>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: row insurance -->
		<xsl:if test="INSURANCE/INSURANCE_AMOUNT/AMOUNT != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:value-of select="$Rtextp024"/>
					<xsl:text>: </xsl:text>
					<!-- insurance per cent -->
					<xsl:if test="INSURANCE/PER_CENT !=''">
						<xsl:value-of select="INSURANCE/PER_CENT"/>
						<xsl:text disable-output-escaping="yes"><![CDATA[%]]></xsl:text>
						<xsl:text> </xsl:text>
					</xsl:if>
					<!-- insurance from amount -->
					<xsl:if test="INSURANCE/FROM_AMOUNT/AMOUNT !=''">
						<xsl:value-of select="$Rtextp022"/>
						<xsl:text> </xsl:text>
						<xsl:apply-templates select="INSURANCE/FROM_AMOUNT/AMOUNT"/>
						<xsl:text> </xsl:text>
						<xsl:value-of select="$Rtextp023"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<!-- insurance amount -->
					<xsl:apply-templates select="INSURANCE/INSURANCE_AMOUNT/AMOUNT"/>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<!--  output row: info_cost -->
		<xsl:if test="INFO_COSTS/AMOUNT">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<!--  with vat excluded -->
					<xsl:if test="INFO_COSTS/AMOUNT[@VAT='EXCLUDED']">
						<xsl:value-of select="$Rtextp068"/>
						<xsl:text> </xsl:text>
						<xsl:value-of select="$Rtextp008"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="INFO_COSTS/AMOUNT[@VAT='EXCLUDED']"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<!--  with vat included -->
					<xsl:if test="INFO_COSTS/AMOUNT[@VAT='INCLUDED']">
						<xsl:value-of select="$Rtextp068"/>
						<xsl:text> </xsl:text>
						<xsl:value-of select="$Rtextp006"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="INFO_COSTS/AMOUNT[@VAT='INCLUDED']"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: currency information/ term explanation and original unit price -->
		<xsl:if test="CURRENCY_INFORMATION/TERM_EXPLANATION != ''
                 or CURRENCY_INFORMATION/FIXED_PRICE_PER_UNIT/AMOUNT !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:value-of select="$Rtextp025"/>
					<xsl:text>: </xsl:text>
					<!-- term explanation -->
					<xsl:value-of select="CURRENCY_INFORMATION/TERM_EXPLANATION"/>
					<xsl:text> </xsl:text>
					<!-- original unit price -->
					<xsl:if test="CURRENCY_INFORMATION/FIXED_PRICE_PER_UNIT/AMOUNT !=''">
						<xsl:value-of select="$Rtextp026"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="CURRENCY_INFORMATION/FIXED_PRICE_PER_UNIT/AMOUNT"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: currency information/ fixed exhange rate and invoicing date rate -->
		<xsl:if test="CURRENCY_INFORMATION/FIXED_EXCHANGE_RATE !=''
                 or CURRENCY_INFORMATION/INVOICE_DATE_RATE !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<!-- fixed exhange rate -->
					<xsl:if test="CURRENCY_INFORMATION/FIXED_EXCHANGE_RATE !=''">
						<xsl:value-of select="$Rtextp027"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="CURRENCY_INFORMATION/FIXED_EXCHANGE_RATE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<!-- invoicing date rate -->
					<xsl:if test="CURRENCY_INFORMATION/INVOICE_DATE_RATE !=''">
						<xsl:value-of select="$Rtextp028"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="CURRENCY_INFORMATION/INVOICE_DATE_RATE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: currency information/ currency code, variance and linkage  -->
		<xsl:if test="CURRENCY_INFORMATION/CURRENCY_CODE !=''
                 or CURRENCY_INFORMATION/VARIANCE_PER_CENT !=''
                 or CURRENCY_INFORMATION/TERM_LINKAGE_PER_CENT !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<!-- currency code -->
					<xsl:if test="CURRENCY_INFORMATION/CURRENCY_CODE !=''">
						<xsl:value-of select="$Rtextp029"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="CURRENCY_INFORMATION/CURRENCY_CODE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<!-- variance -->
					<xsl:if test="CURRENCY_INFORMATION/VARIANCE_PER_CENT !=''">
						<xsl:value-of select="$Rtextp030"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="CURRENCY_INFORMATION/VARIANCE_PER_CENT[1]"/>
						<xsl:text disable-output-escaping="yes"> %</xsl:text>
						<xsl:text> </xsl:text>
						<!-- per cent 2 -->
						<xsl:if test="CURRENCY_INFORMATION/VARIANCE_PER_CENT[2] !=''">
							<xsl:text disable-output-escaping="yes"><![CDATA[-]]></xsl:text>
							<xsl:text> </xsl:text>
							<xsl:value-of select="CURRENCY_INFORMATION/VARIANCE_PER_CENT[2]"/>
							<xsl:text disable-output-escaping="yes"> % </xsl:text>
						</xsl:if>
					</xsl:if>
					<!-- linkage -->
					<xsl:if test="CURRENCY_INFORMATION/TERM_LINKAGE_PER_CENT !=''">
						<xsl:value-of select="$Rtextp031"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="CURRENCY_INFORMATION/TERM_LINKAGE_PER_CENT"/>
						<xsl:text disable-output-escaping="yes"> %</xsl:text>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: CN/ country of origin code and name -->
		<xsl:if test="CN/COUNTRY_OF_ORIGIN_CODE !='' 
                 or CN/COUNTRY_OF_ORIGIN_NAME !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:value-of select="$Rtextp032"/>
					<xsl:text>: </xsl:text>
					<xsl:value-of select="CN/COUNTRY_OF_ORIGIN_CODE"/>
					<xsl:if test="CN/COUNTRY_OF_ORIGIN_NAME !=''">
						<xsl:text> </xsl:text>
						<xsl:value-of select="CN/COUNTRY_OF_ORIGIN_NAME"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: CN/ country of destination code and name -->
		<xsl:if test="CN/COUNTRY_OF_DESTINATION_CODE !='' 
                 or CN/COUNTRY_OF_DESTINATION_NAME !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:value-of select="$Rtextp033"/>
					<xsl:text>: </xsl:text>
					<xsl:value-of select="CN/COUNTRY_OF_DESTINATION_CODE"/>
					<xsl:if test="CN/COUNTRY_OF_DESTINATION_NAME !=''">
						<xsl:text> </xsl:text>
						<xsl:value-of select="CN/COUNTRY_OF_DESTINATION_NAME"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: CN/ mode of transport code and nature of transaction code -->
		<xsl:if test="CN/MODE_OF_TRANSPORT_CODE !=''
      		 or CN/CN_TRANSPORT_TEXT !='' 
                 or CN/NATURE_OF_TRANSACTION_CODE !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="CN/MODE_OF_TRANSPORT_CODE !=''">
						<xsl:value-of select="$Rtextp034"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="CN/MODE_OF_TRANSPORT_CODE"/>
					</xsl:if>
					<xsl:if test="CN/CN_TRANSPORT_TEXT !=''">
						<xsl:text> </xsl:text>
						<xsl:value-of select="CN/CN_TRANSPORT_TEXT"/>
					</xsl:if>
					<xsl:if test="CN/NATURE_OF_TRANSACTION_CODE !=''">
						<xsl:text> </xsl:text>
						<xsl:value-of select="$Rtextp035"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="CN/NATURE_OF_TRANSACTION_CODE"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: CN/ cn class and name [1] and [2] -->
		<xsl:if test="CN/CN_CODE !=''
	         or CN/CN_NAME !=''
	         or CN/CN_WEIGHT !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="CN/CN_CODE != '' or CN/CN_NAME != ''">
						<xsl:value-of select="$Rtextp036"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="CN/CN_CODE"/>
						<xsl:text> </xsl:text>
						<xsl:value-of select="CN/CN_NAME[1]"/>
						<xsl:text> </xsl:text>
						<xsl:value-of select="CN/CN_NAME[2]"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="CN/CN_WEIGHT !=''">
						<xsl:value-of select="$Rtextp128"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="CN/CN_WEIGHT"/>
						<xsl:text> </xsl:text>
						<xsl:choose>
							<xsl:when test="CN/CN_WEIGHT/@Q_UNIT">
								<xsl:value-of select="CN/CN_WEIGHT/@Q_UNIT"/>
								<xsl:text> </xsl:text>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="CN/CN_WEIGHT/@Q_UNIT_UNECE_CODE"/>
								<xsl:text> </xsl:text>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- TERMINAL_ADDRESS, PLACE_OF_DISCHARGE, FINAL_DESTINATION -->
		<xsl:if test="TERMINAL_ADDRESS !=''
      		 or PLACE_OF_DISCHARGE !='' 
                 or FINAL_DESTINATION !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="TERMINAL_ADDRESS !=''">
						<xsl:value-of select="$Rtextp129"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="TERMINAL_ADDRESS"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="PLACE_OF_DISCHARGE !=''">
						<xsl:value-of select="$Rtextp130"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="PLACE_OF_DISCHARGE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="FINAL_DESTINATION !=''">
						<xsl:value-of select="$Rtextp131"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="FINAL_DESTINATION"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- PACKING_MARK and PACKING_DESCRPTION-->
		<xsl:if test="PACKING_MARKS/PACKING_MARK !=''
                 or PACKING_MARKS/PACKING_DESCRIPTION !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="PACKING_MARKS/PACKING_MARK !=''">
						<xsl:value-of select="$Rtextp132"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="PACKING_MARKS/PACKING_MARK"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="PACKING_MARKS/PACKING_DESCRIPTION !=''">
						<xsl:value-of select="$Rtextp133"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="PACKING_MARKS/PACKING_DESCRIPTION"/>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- PACKING_MARKS/PACK_QUANTITY, Q_UNIT, MEASUREMENTS/LENGTH, Q_UNIT x WIDHT, Q_UNIT x HEIGHT, Q_UNIT tai MEASUREMENT_TEXT-->
		<xsl:if test="PACKING_MARKS/PACK_QUANTITY !=''
    		 or PACKING_MARKS/PACK_QUANTITY/@Q_UNIT !='' or PACKING_MARKS/PACK_QUANTITY/@Q_UNIT_UNECE_CODE !=''
    		 or PACKING_MARKS/MEASUREMENTS !=''
                 or PACKING_MARKS/MEASUREMENT_TEXT !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="PACKING_MARKS/PACK_QUANTITY !=''">
						<xsl:value-of select="$Rtextp134"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="PACKING_MARKS/PACK_QUANTITY[@SIGN = '-']/@SIGN"/>
						<xsl:value-of select="PACKING_MARKS/PACK_QUANTITY"/>
						<xsl:text> </xsl:text>
						<xsl:choose>
							<xsl:when test="PACKING_MARKS/PACK_QUANTITY/@Q_UNIT">
								<xsl:value-of select="PACKING_MARKS/PACK_QUANTITY/@Q_UNIT"/>
								<xsl:text> </xsl:text>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="PACKING_MARKS/PACK_QUANTITY/@Q_UNIT_UNECE_CODE"/>
								<xsl:text> </xsl:text>
							</xsl:otherwise>
						</xsl:choose>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:choose>
						<xsl:when test="PACKING_MARKS/MEASUREMENTS !=''">
							<xsl:text> </xsl:text>
							<xsl:value-of select="$Rtextp135"/>
							<xsl:text>: </xsl:text>
							<xsl:apply-templates select="PACKING_MARKS/MEASUREMENTS/LENGTH[@SIGN = '-']/@SIGN"/>
							<xsl:value-of select="PACKING_MARKS/MEASUREMENTS/LENGTH"/>
							<xsl:text> </xsl:text>
							<xsl:choose>
								<xsl:when test="PACKING_MARKS/MEASUREMENTS/LENGTH/@Q_UNIT">
									<xsl:value-of select="PACKING_MARKS/MEASUREMENTS/LENGTH/@Q_UNIT"/>
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="PACKING_MARKS/MEASUREMENTS/LENGTH/@Q_UNIT_UNECE_CODE"/>
									<xsl:text> </xsl:text>
								</xsl:otherwise>
							</xsl:choose>
							<xsl:value-of select="$Rtextp154"/>
							<xsl:apply-templates select="PACKING_MARKS/MEASUREMENTS/WIDTH[@SIGN = '-']/@SIGN"/>
							<xsl:value-of select="PACKING_MARKS/MEASUREMENTS/WIDTH"/>
							<xsl:text> </xsl:text>
							<xsl:choose>
								<xsl:when test="PACKING_MARKS/MEASUREMENTS/WIDTH/@Q_UNIT">
									<xsl:value-of select="PACKING_MARKS/MEASUREMENTS/WIDTH/@Q_UNIT"/>
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="PACKING_MARKS/MEASUREMENTS/WIDTH/@Q_UNIT_UNECE_CODE"/>
									<xsl:text> </xsl:text>
								</xsl:otherwise>
							</xsl:choose>
							<xsl:value-of select="$Rtextp154"/>
							<xsl:apply-templates select="PACKING_MARKS/MEASUREMENTS/HEIGHT[@SIGN = '-']/@SIGN"/>
							<xsl:value-of select="PACKING_MARKS/MEASUREMENTS/HEIGHT"/>
							<xsl:text> </xsl:text>
							<xsl:choose>
								<xsl:when test="PACKING_MARKS/MEASUREMENTS/HEIGHT/@Q_UNIT">
									<xsl:value-of select="PACKING_MARKS/MEASUREMENTS/HEIGHT/@Q_UNIT"/>
									<xsl:text> </xsl:text>
								</xsl:when>
								<xsl:otherwise>
									<xsl:value-of select="PACKING_MARKS/MEASUREMENTS/HEIGHT/@Q_UNIT_UNECE_CODE"/>
									<xsl:text> </xsl:text>
								</xsl:otherwise>
							</xsl:choose>
							<xsl:text> </xsl:text>
						</xsl:when>
						<xsl:otherwise>
							<xsl:text> </xsl:text>
							<xsl:value-of select="PACKING_MARKS/MEASUREMENT_TEXT"/>
							<xsl:text> </xsl:text>
						</xsl:otherwise>
					</xsl:choose>
				</td>
			</tr>
		</xsl:if>
		<!-- CN/CN_NAME-->
		<xsl:if test="PACKING_MARKS/CN_NAME !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:value-of select="$Rtextp137"/>
					<xsl:text>: </xsl:text>
					<xsl:value-of select="PACKING_MARKS/CN_NAME"/>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<!-- GROSS_WEIGHT, Q_UNIT, NET_WEIGHT, Q_UNIT, VOLUME, Q_UNIT-->
		<xsl:if test="PACKING_MARKS/GROSS_WEIGHT !=''
    		 or PACKING_MARKS/NET_WEIGHT !=''
                 or PACKING_MARKS/VOLUME !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="PACKING_MARKS/GROSS_WEIGHT !=''">
						<xsl:value-of select="$Rtextp138"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="PACKING_MARKS/GROSS_WEIGHT[@SIGN = '-']/@SIGN"/>
						<xsl:value-of select="PACKING_MARKS/GROSS_WEIGHT"/>
						<xsl:text> </xsl:text>
						<xsl:choose>
							<xsl:when test="PACKING_MARKS/GROSS_WEIGHT/@Q_UNIT">
								<xsl:value-of select="PACKING_MARKS/GROSS_WEIGHT/@Q_UNIT"/>
								<xsl:text> </xsl:text>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="PACKING_MARKS/GROSS_WEIGHT/@Q_UNIT_UNECE_CODE"/>
								<xsl:text> </xsl:text>
							</xsl:otherwise>
						</xsl:choose>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="PACKING_MARKS/NET_WEIGHT !=''">
						<xsl:value-of select="$Rtextp139"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="PACKING_MARKS/NET_WEIGHT[@SIGN = '-']/@SIGN"/>
						<xsl:value-of select="PACKING_MARKS/NET_WEIGHT"/>
						<xsl:text> </xsl:text>
						<xsl:choose>
							<xsl:when test="PACKING_MARKS/NET_WEIGHT/@Q_UNIT">
								<xsl:value-of select="PACKING_MARKS/NET_WEIGHT/@Q_UNIT"/>
								<xsl:text> </xsl:text>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="PACKING_MARKS/NET_WEIGHT/@Q_UNIT_UNECE_CODE"/>
								<xsl:text> </xsl:text>
							</xsl:otherwise>
						</xsl:choose>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="PACKING_MARKS/VOLUME !=''">
						<xsl:value-of select="$Rtextp140"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="PACKING_MARKS/VOLUME[@SIGN = '-']/@SIGN"/>
						<xsl:value-of select="PACKING_MARKS/VOLUME"/>
						<xsl:text> </xsl:text>
						<xsl:choose>
							<xsl:when test="PACKING_MARKS/VOLUME/@Q_UNIT">
								<xsl:value-of select="PACKING_MARKS/VOLUME/@Q_UNIT"/>
								<xsl:text> </xsl:text>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="PACKING_MARKS/VOLUME/@Q_UNIT_UNECE_CODE"/>
								<xsl:text> </xsl:text>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: receiver product code -->
		<xsl:if test="RECEIVER_PRODUCT_CODE != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:value-of select="$Rtextp037"/>
					<xsl:text>: </xsl:text>
					<xsl:value-of select="RECEIVER_PRODUCT_CODE"/>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: payee default postings -->
		<xsl:if test="DEFAULT_ROW_POSTING !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="DEFAULT_ROW_POSTING/CREDIT_ACCOUNT !='' or DEFAULT_ROW_POSTING/DIMENSIONS/DIMENSION !=''">
						<xsl:value-of select="$Rtextp038"/>
						<xsl:text>: </xsl:text>
					</xsl:if>
					<!-- account -->
					<xsl:if test="DEFAULT_ROW_POSTING/CREDIT_ACCOUNT !=''">
						<xsl:value-of select="DEFAULT_ROW_POSTING/CREDIT_ACCOUNT"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="DEFAULT_ROW_POSTING/CREDIT_ACCOUNT_2 !=''">
						<xsl:value-of select="DEFAULT_ROW_POSTING/CREDIT_ACCOUNT_2"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<!-- dimensions -->
					<xsl:if test="DEFAULT_ROW_POSTING/DIMENSIONS/DIMENSION !=''">
						<xsl:value-of select="$Rtextp039"/>
						<xsl:text>: </xsl:text>
						<xsl:for-each select="DEFAULT_ROW_POSTING/DIMENSIONS/DIMENSION">
							<xsl:text disable-output-escaping="yes"><![CDATA[ *]]></xsl:text>
							<xsl:if test="DIMENSION_NAME != ''">
								<xsl:value-of select="DIMENSION_NAME"/>
								<xsl:text>: </xsl:text>
							</xsl:if>
							<xsl:value-of select="DIMENSION_VALUE"/>
						</xsl:for-each>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- DEFAULT_ROW_POSTING/SHORT_ACCOUNT_ID, DEFAULT_ROW_POSTING/NORMAL_ACCOUNT_ID -->
		<xsl:if test="DEFAULT_ROW_POSTING/SHORT_ACCOUNT_ID !=''
    		 or DEFAULT_ROW_POSTING/NORMAL_ACCOUNT_ID !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="DEFAULT_ROW_POSTING/SHORT_ACCOUNT_ID !='' or DEFAULT_ROW_POSTING/NORMAL_ACCOUNT_ID !=''">
						<xsl:value-of select="$Rtextp141a"/>
						<xsl:text>: </xsl:text>
					</xsl:if>
					<xsl:if test="DEFAULT_ROW_POSTING/SHORT_ACCOUNT_ID !=''">
						<xsl:value-of select="$Rtextp141b"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="DEFAULT_ROW_POSTING/SHORT_ACCOUNT_ID"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="DEFAULT_ROW_POSTING/NORMAL_ACCOUNT_ID !=''">
						<xsl:value-of select="$Rtextp141c"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="DEFAULT_ROW_POSTING/NORMAL_ACCOUNT_ID"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- ROW/SELLER_ACCOUNT_TEXT       Rtextp143 -->
		<xsl:if test="SELLER_ACCOUNT_TEXT !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:value-of select="$Rtextp143"/>
					<xsl:text>: </xsl:text>
					<xsl:value-of select="SELLER_ACCOUNT_TEXT"/>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="DEFAULT_ROW_POSTING/ACCOUNT_REFERENCE != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:value-of select="$Rtextp143b"/>
					<xsl:text>: </xsl:text>
					<xsl:value-of select="DEFAULT_ROW_POSTING/ACCOUNT_REFERENCE"/>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="DEFAULT_ROW_POSTING/REPORTING_CODE != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:value-of select="$Rtextp143c"/>
					<xsl:text>: </xsl:text>
					<xsl:value-of select="DEFAULT_ROW_POSTING/REPORTING_CODE"/>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<!-- PAYMENT_MEANS_CODE-->
		<xsl:if test="PAYMENT_MEANS != ''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:value-of select="$Rtextp155"/>
					<xsl:text>: </xsl:text>
					<xsl:value-of select="PAYMENT_MEANS/@PAYMENT_MEANS_CODE"/>
					<xsl:text> </xsl:text>
					<xsl:value-of select="PAYMENT_MEANS"/>
				</td>
			</tr>
		</xsl:if>
		<!-- ROW/CONTROL_STAMP/CONTROL_DATE CONTROL_USER       Rtextp144-->
		<xsl:if test="CONTROL_STAMP/CONTROL_DATE/DATE !=''
    		 or CONTROL_STAMP/CONTROL_USER !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:value-of select="$Rtextp144"/>
					<xsl:text>: </xsl:text>
					<xsl:value-of select="CONTROL_STAMP/CONTROL_DATE/DATE/DAY"/>.<xsl:value-of select="CONTROL_STAMP/CONTROL_DATE/DATE/MONTH"/>.<xsl:value-of select="CONTROL_STAMP/CONTROL_DATE/DATE/CENTURY"/>
					<xsl:value-of select="CONTROL_STAMP/CONTROL_DATE/DATE/DECADE_AND_YEAR"/>
					<xsl:text> </xsl:text>
					<xsl:value-of select="CONTROL_STAMP/CONTROL_USER"/>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<!-- ROW/ACCEPTANCE_STAMP/ACCEPTANCE_DATE ACCEPTANCE_USER -->
		<xsl:if test="ACCEPTANCE_STAMP/ACCEPTANCE_DATE/DATE !=''
    		 or ACCEPTANCE_STAMP/ACCEPT_USER !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:value-of select="$Rtextp145"/>
					<xsl:text>: </xsl:text>
					<xsl:value-of select="ACCEPTANCE_STAMP/ACCEPTANCE_DATE/DATE/DAY"/>.<xsl:value-of select="ACCEPTANCE_STAMP/ACCEPTANCE_DATE/DATE/MONTH"/>.<xsl:value-of select="ACCEPTANCE_STAMP/ACCEPTANCE_DATE/DATE/CENTURY"/>
					<xsl:value-of select="ACCEPTANCE_STAMP/ACCEPTANCE_DATE/DATE/DECADE_AND_YEAR"/>
					<xsl:text> </xsl:text>
					<xsl:value-of select="ACCEPTANCE_STAMP/ACCEPT_USER"/>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<!-- ARRIVAL_ID, ARRIVAL_DATE-->
		<xsl:if test="ARRIVAL_INFO/ARRIVAL_ID !=''
    		 or ARRIVAL_INFO/ARRIVAL_DATE !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="ARRIVAL_INFO/ARRIVAL_ID !=''">
						<xsl:value-of select="$Rtextp146"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="ARRIVAL_INFO/ARRIVAL_ID"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="ARRIVAL_INFO/ARRIVAL_DATE/DATE !=''">
						<xsl:value-of select="$Rtextp147"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="ARRIVAL_INFO/ARRIVAL_DATE/DATE/DAY"/>.<xsl:value-of select="ARRIVAL_INFO/ARRIVAL_DATE/DATE/MONTH"/>.<xsl:value-of select="ARRIVAL_INFO/ARRIVAL_DATE/DATE/CENTURY"/>
						<xsl:value-of select="ARRIVAL_INFO/ARRIVAL_DATE/DATE/DECADE_AND_YEAR"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- ARRIVED Q_UNIT, DELIVERY_COMPLETED -->
		<xsl:if test="ARRIVAL_INFO/ARRIVED !=''
    		 or ARRIVAL_INFO/DELIVERY_COMPLETED !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="ARRIVAL_INFO/ARRIVED !=''">
						<xsl:value-of select="$Rtextp148"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="ARRIVAL_INFO/ARRIVED"/>
						<xsl:text> </xsl:text>
						<xsl:choose>
							<xsl:when test="ARRIVAL_INFO/ARRIVED/@Q_UNIT">
								<xsl:value-of select="ARRIVAL_INFO/ARRIVED/@Q_UNIT"/>
								<xsl:text> </xsl:text>
							</xsl:when>
							<xsl:otherwise>
								<xsl:value-of select="ARRIVAL_INFO/ARRIVED/@Q_UNIT_UNECE_CODE"/>
								<xsl:text> </xsl:text>
							</xsl:otherwise>
						</xsl:choose>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="ARRIVAL_INFO/DELIVERY_COMPLETED !=''">
						<xsl:value-of select="$Rtextp149"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="ARRIVAL_INFO/DELIVERY_COMPLETED"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- RECEIPT_ID -->
		<xsl:if test="ARRIVAL_INFO/RECEIPT_ID !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:value-of select="$Rtextp150"/>
					<xsl:text>: </xsl:text>
					<xsl:value-of select="ARRIVAL_INFO/RECEIPT_ID"/>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<!-- DELIVERY_NOTE, SUPPLIER_ARTICLE_NAME -->
		<xsl:if test="ARRIVAL_INFO/DELIVERY_NOTE !=''
    		 or ARRIVAL_INFO/SUPPLIER_ARTICLE_NAME !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="ARRIVAL_INFO/DELIVERY_NOTE !=''">
						<xsl:value-of select="$Rtextp151"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="ARRIVAL_INFO/DELIVERY_NOTE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="ARRIVAL_INFO/SUPPLIER_ARTICLE_NAME !=''">
						<xsl:value-of select="$Rtextp152"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="ARRIVAL_INFO/SUPPLIER_ARTICLE_NAME"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- ROW/ARRIVAL_INFO/FREE_TEXT -->
		<xsl:if test="ARRIVAL_INFO/FREE_TEXT !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:value-of select="ARRIVAL_INFO/FREE_TEXT "/>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: row free text -->
		<xsl:if test="FREE_TEXT !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<!-- 1:explanation -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="13">
					<xsl:for-each select="FREE_TEXT">
						<xsl:if test="position() &gt; 1">
							<br/>
						</xsl:if>
						<xsl:if test="@ROW_TYPE = 'SPECIFICATION' or @ROW_TYPE = 'SUBTOTAL'">
							<xsl:call-template name="ent.nbspspace"/>
							<xsl:call-template name="ent.nbspspace"/>
						</xsl:if>
						<xsl:value-of select="."/>
						<xsl:text> </xsl:text>
					</xsl:for-each>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: ROW/LINKS/LINK -->
		<xsl:if test="LINKS/LINK !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<!-- 1:explanation -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="13">
					<xsl:if test="@ROW_TYPE = 'SPECIFICATION' or @ROW_TYPE = 'SUBTOTAL'">
						<xsl:call-template name="ent.nbspspace"/>
						<xsl:call-template name="ent.nbspspace"/>
					</xsl:if>
					<xsl:value-of select="LINKS/LINK"/>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<tr>
			<td>&#160;</td>
		</tr>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for rowinterest (06/07)================================================= -->
	<xsl:template match="ROW" mode="rowinterest">
		<xsl:param name="Rtextp038"/>
		<xsl:param name="Rtextp039"/>
		<xsl:param name="Rtextp079"/>
		<xsl:param name="Rtextp084"/>
		<xsl:param name="Rtextp086"/>
		<xsl:param name="Rtextp088"/>
		<xsl:param name="AItextp008"/>
		<xsl:param name="AItextp009"/>
		<xsl:param name="IHIIItextp103b"/>
		<xsl:param name="IHIIItextp103c"/>
		<xsl:variable name="color">
			<xsl:choose>
				<xsl:when test="position() mod 2 = false()">
					<xsl:value-of select="$varColor1"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$varColor2"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:if test="INFORMATION_OF_OVERDUE_PAYMENTS != ''">
			<xsl:if test="INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_ID != '' or
	INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_DATE != '' or 
	INFORMATION_OF_OVERDUE_PAYMENTS/PART_ID != '' or
	INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_TOTAL/AMOUNT != '' or 
	INFORMATION_OF_OVERDUE_PAYMENTS/PAID_AMOUNT/AMOUNT != '' or
	INFORMATION_OF_OVERDUE_PAYMENTS/UNPAID/AMOUNT != '' or
	INFORMATION_OF_OVERDUE_PAYMENTS/NUMBER_OF_INTEREST_DAY != '' or
	INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_RATE != '' or 
	INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_CHARGE/AMOUNT != ''">
				<xsl:if test="position() &gt; 1">
					<tr>
						<td>&#160;</td>
					</tr>
				</xsl:if>
				<tr>
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="2">
						<xsl:if test="position() mod 2 = false()">
							<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
						</xsl:if>
						<xsl:value-of select="INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_ID"/>
						<xsl:text> </xsl:text>
					</td>
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
						<xsl:if test="position() mod 2 = false()">
							<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
						</xsl:if>
						<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_DATE"/>
						<xsl:text> </xsl:text>
					</td>
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
						<xsl:if test="position() mod 2 = false()">
							<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
						</xsl:if>
						<xsl:call-template name="ent.nbspspace"/>
						<xsl:value-of select="INFORMATION_OF_OVERDUE_PAYMENTS/PART_ID"/>
						<xsl:text> </xsl:text>
					</td>
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
						<xsl:if test="position() mod 2 = false()">
							<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_TOTAL/AMOUNT[@VAT='INCLUDED'] !=''">
								<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_TOTAL/AMOUNT[@VAT='INCLUDED']"/>
							</xsl:when>
							<xsl:when test="INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_TOTAL/AMOUNT[@VAT='EXCLUDED'] !=''">
								<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_TOTAL/AMOUNT[@VAT='EXCLUDED']"/>
							</xsl:when>
						</xsl:choose>
						<xsl:text> </xsl:text>
					</td>
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
						<xsl:if test="position() mod 2 = false()">
							<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="INFORMATION_OF_OVERDUE_PAYMENTS/PAID_AMOUNT/AMOUNT[@VAT='INCLUDED'] !=''">
								<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/PAID_AMOUNT/AMOUNT[@VAT='INCLUDED']"/>
							</xsl:when>
							<xsl:when test="INFORMATION_OF_OVERDUE_PAYMENTS/PAID_AMOUNT/AMOUNT[@VAT='EXCLUDED'] !=''">
								<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/PAID_AMOUNT/AMOUNT[@VAT='EXCLUDED']"/>
							</xsl:when>
						</xsl:choose>
						<xsl:text> </xsl:text>
					</td>
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
						<xsl:if test="position() mod 2 = false()">
							<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="INFORMATION_OF_OVERDUE_PAYMENTS/UNPAID/AMOUNT[@VAT='INCLUDED'] !=''">
								<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/UNPAID/AMOUNT[@VAT='INCLUDED']"/>
							</xsl:when>
							<xsl:when test="INFORMATION_OF_OVERDUE_PAYMENTS/UNPAID/AMOUNT[@VAT='EXCLUDED'] !=''">
								<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/UNPAID/AMOUNT[@VAT='EXCLUDED']"/>
							</xsl:when>
						</xsl:choose>
						<xsl:text> </xsl:text>
					</td>
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
						<xsl:if test="position() mod 2 = false()">
							<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
						</xsl:if>
						<xsl:value-of select="INFORMATION_OF_OVERDUE_PAYMENTS/NUMBER_OF_INTEREST_DAY"/>
						<xsl:text> </xsl:text>
					</td>
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
						<xsl:if test="position() mod 2 = false()">
							<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
						</xsl:if>
						<xsl:value-of select="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_RATE"/>
						<xsl:text> </xsl:text>
					</td>
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
						<xsl:if test="position() mod 2 = false()">
							<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
						</xsl:if>
						<xsl:choose>
							<xsl:when test="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_CHARGE/AMOUNT[@VAT='INCLUDED'] !=''">
								<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_CHARGE/AMOUNT[@VAT='INCLUDED']"/>
								<xsl:text> </xsl:text>
								<xsl:if test="INFORMATION_OF_OVERDUE_PAYMENTS/CURRENCY/CODE != ''">
									<xsl:value-of select="INFORMATION_OF_OVERDUE_PAYMENTS/CURRENCY/CODE"/>
								</xsl:if>
							</xsl:when>
							<xsl:when test="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_CHARGE/AMOUNT[@VAT='EXCLUDED'] !=''">
								<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_CHARGE/AMOUNT[@VAT='EXCLUDED']"/>
								<xsl:text> </xsl:text>
								<xsl:if test="INFORMATION_OF_OVERDUE_PAYMENTS/CURRENCY/CODE != ''">
									<xsl:value-of select="INFORMATION_OF_OVERDUE_PAYMENTS/CURRENCY/CODE"/>
								</xsl:if>
							</xsl:when>
						</xsl:choose>
					</td>
				</tr>
			</xsl:if>
			<!-- -->
			<xsl:if test="INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_PAYMENT_REFERENCE != '' or
		INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_DUE_DATE != '' or 
		INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_PERIOD != ''">
				<tr>
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="2">
						<xsl:if test="position() mod 2 = false()">
							<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
						</xsl:if>
						<xsl:value-of select="INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_PAYMENT_REFERENCE"/>
						<xsl:text> </xsl:text>
					</td>
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
						<xsl:if test="position() mod 2 = false()">
							<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
						</xsl:if>
						<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_DUE_DATE"/>
						<xsl:text> </xsl:text>
					</td>
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
						<xsl:if test="position() mod 2 = false()">
							<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
						</xsl:if>
						<xsl:text> </xsl:text>
					</td>
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
						<xsl:if test="position() mod 2 = false()">
							<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
						</xsl:if>
						<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/DATE_OF_PAYMENT"/>
						<xsl:text> </xsl:text>
					</td>
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="5">
						<xsl:if test="position() mod 2 = false()">
							<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
						</xsl:if>
						<xsl:if test="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_PERIOD/START_PERIOD !='' or INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_PERIOD/END_PERIOD !=''">
							<xsl:call-template name="ent.nbspspace"/>
							<xsl:value-of select="$Rtextp088"/>
							<xsl:text>: </xsl:text>
						</xsl:if>
						<xsl:text> </xsl:text>
						<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_PERIOD/START_PERIOD"/>
						<xsl:if test="not(INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_PERIOD/START_PERIOD)">
							<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_PERIOD/END_PERIOD"/>
						</xsl:if>
					</td>
				</tr>
			</xsl:if>
			<xsl:if test="INFORMATION_OF_OVERDUE_PAYMENTS/REFERENCE !=''">
				<tr>
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="10">
						<xsl:if test="position() mod 2 = false()">
							<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
						</xsl:if>
						<xsl:value-of select="$Rtextp079"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="INFORMATION_OF_OVERDUE_PAYMENTS/REFERENCE"/>
						<xsl:text> </xsl:text>
					</td>
				</tr>
			</xsl:if>
			<!-- output row: payee default postings -->
			<xsl:if test="DEFAULT_ROW_POSTING !=''">
				<tr>
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
						<xsl:text> </xsl:text>
					</td>
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="9">
						<xsl:value-of select="$Rtextp038"/>
						<xsl:text>: </xsl:text>
						<!-- account -->
						<xsl:if test="DEFAULT_ROW_POSTING/CREDIT_ACCOUNT !=''">
							<xsl:value-of select="DEFAULT_ROW_POSTING/CREDIT_ACCOUNT"/>
							<xsl:text> </xsl:text>
							<xsl:value-of select="DEFAULT_ROW_POSTING/CREDIT_ACCOUNT_2"/>
							<xsl:text> </xsl:text>
						</xsl:if>
						<!-- short account id -->
						<xsl:if test="DEFAULT_ROW_POSTING/SHORT_ACCOUNT_ID != ''">
							<xsl:value-of select="$AItextp008"/>
							<xsl:text>: </xsl:text>
							<xsl:value-of select="DEFAULT_ROW_POSTING/SHORT_ACCOUNT_ID"/>
							<xsl:text> </xsl:text>
						</xsl:if>
						<!-- normal account id -->
						<xsl:if test="DEFAULT_ROW_POSTING/NORMAL_ACCOUNT_ID != ''">
							<xsl:value-of select="$AItextp009"/>
							<xsl:text>: </xsl:text>
							<xsl:value-of select="DEFAULT_ROW_POSTING/NORMAL_ACCOUNT_ID"/>
							<xsl:text> </xsl:text>
						</xsl:if>
						<!-- account reference -->
						<xsl:if test="DEFAULT_ROW_POSTING/ACCOUNT_REFERENCE != ''">
							<xsl:value-of select="$IHIIItextp103b"/>
							<xsl:text>: </xsl:text>
							<xsl:value-of select="DEFAULT_ROW_POSTING/ACCOUNT_REFERENCE"/>
							<xsl:text> </xsl:text>
						</xsl:if>
						<!-- reporting code -->
						<xsl:if test="DEFAULT_ROW_POSTING/REPORTING_CODE != ''">
							<xsl:value-of select="$IHIIItextp103c"/>
							<xsl:text>: </xsl:text>
							<xsl:value-of select="DEFAULT_ROW_POSTING/REPORTING_CODE"/>
							<xsl:text> </xsl:text>
						</xsl:if>
						<!-- dimensions -->
						<xsl:if test="DEFAULT_ROW_POSTING/DIMENSIONS/DIMENSION !=''">
							<xsl:value-of select="$Rtextp039"/>
							<xsl:text>: </xsl:text>
							<xsl:for-each select="DEFAULT_ROW_POSTING/DIMENSIONS/DIMENSION">
								<xsl:text disable-output-escaping="yes"><![CDATA[ *]]></xsl:text>
								<xsl:if test="DIMENSION_NAME != ''">
									<xsl:value-of select="DIMENSION_NAME"/>
									<xsl:text>: </xsl:text>
								</xsl:if>
								<xsl:value-of select="DIMENSION_VALUE"/>
							</xsl:for-each>
						</xsl:if>
					</td>
				</tr>
			</xsl:if>
			<!-- output row: row free text -->
			<xsl:if test="FREE_TEXT !=''">
				<tr>
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<!-- 1:explanation -->
					<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="10">
						<xsl:for-each select="FREE_TEXT">
							<xsl:if test="position() &gt; 1">
								<br/>
							</xsl:if>
							<xsl:if test="@ROW_TYPE = 'SPECIFICATION' or @ROW_TYPE = 'SUBTOTAL'">
								<xsl:call-template name="ent.nbspspace"/>
								<xsl:call-template name="ent.nbspspace"/>
							</xsl:if>
							<xsl:value-of select="."/>
							<xsl:text> </xsl:text>
						</xsl:for-each>
					</td>
				</tr>
			</xsl:if>
		</xsl:if>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for rowrequest (09)===================================================== -->
	<xsl:template match="ROW" mode="rowrequest">
		<xsl:param name="Rtextp038"/>
		<xsl:param name="Rtextp039"/>
		<xsl:param name="Rtextp079"/>
		<xsl:param name="Rtextp084"/>
		<xsl:param name="Rtextp086"/>
		<xsl:param name="Rtextp088"/>
		<xsl:param name="AItextp008"/>
		<xsl:param name="AItextp009"/>
		<xsl:param name="IHIIItextp103b"/>
		<xsl:param name="IHIIItextp103c"/>
		<xsl:variable name="color">
			<xsl:choose>
				<xsl:when test="position() mod 2 = false()">
					<xsl:value-of select="$varColor1"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$varColor2"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:if test="INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_ID != '' or 
  INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_DATE != '' or
  INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_TOTAL/AMOUNT != '' or 
  INFORMATION_OF_OVERDUE_PAYMENTS/UNPAID/AMOUNT != '' or
  INFORMATION_OF_OVERDUE_PAYMENTS/COLLECTION_TIMES != '' or 
  INFORMATION_OF_OVERDUE_PAYMENTS/NUMBER_OF_INTEREST_DAY!='' or
  INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_CHARGE/AMOUNT != '' or
  ROW_TOTAL/AMOUNT != ''">
			<xsl:if test="position() &gt; 1">
				<tr>
					<td>&#160;</td>
				</tr>
			</xsl:if>
			<tr>
				<!-- 1:original_invoice_id -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="3">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:value-of select="INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_ID"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- 2:original_invoice_date -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_DATE"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- 3:original_invoice_total -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:choose>
						<xsl:when test="INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_TOTAL/AMOUNT[@VAT='INCLUDED'] !=''">
							<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_TOTAL/AMOUNT[@VAT='INCLUDED']"/>
						</xsl:when>
						<xsl:when test="INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_TOTAL/AMOUNT[@VAT='EXCLUDED'] !=''">
							<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_TOTAL/AMOUNT[@VAT='EXCLUDED']"/>
						</xsl:when>
					</xsl:choose>
					<xsl:text> </xsl:text>
				</td>
				<!-- 4: unpaid -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:choose>
						<xsl:when test="INFORMATION_OF_OVERDUE_PAYMENTS/UNPAID/AMOUNT[@VAT='INCLUDED'] !=''">
							<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/UNPAID/AMOUNT[@VAT='INCLUDED']"/>
						</xsl:when>
						<xsl:when test="INFORMATION_OF_OVERDUE_PAYMENTS/UNPAID/AMOUNT[@VAT='EXCLUDED'] !=''">
							<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/UNPAID/AMOUNT[@VAT='EXCLUDED']"/>
						</xsl:when>
					</xsl:choose>
					<xsl:text> </xsl:text>
				</td>
				<!-- 5:collection_times -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:value-of select="INFORMATION_OF_OVERDUE_PAYMENTS/COLLECTION_TIMES"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- 6:number_of_interest_day -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:value-of select="INFORMATION_OF_OVERDUE_PAYMENTS/NUMBER_OF_INTEREST_DAY"/>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:if test="INFORMATION_OF_OVERDUE_PAYMENTS/CURRENCY/CODE != ''">
						<xsl:value-of select="INFORMATION_OF_OVERDUE_PAYMENTS/CURRENCY/CODE"/>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
				<!--7:interest_charge -->
				<xsl:choose>
					<xsl:when test="ROW_TOTAL/AMOUNT[@VAT='EXCLUDED']!='' or ROW_TOTAL/AMOUNT[@VAT='INCLUDED']!=''">
						<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
							<xsl:if test="position() mod 2 = false()">
								<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
							</xsl:if>
							<xsl:choose>
								<xsl:when test="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_CHARGE/AMOUNT[@VAT='INCLUDED'] !=''">
									<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_CHARGE/AMOUNT[@VAT='INCLUDED']"/>
								</xsl:when>
								<xsl:when test="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_CHARGE/AMOUNT[@VAT='EXCLUDED'] !=''">
									<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_CHARGE/AMOUNT[@VAT='EXCLUDED']"/>
								</xsl:when>
							</xsl:choose>
							<xsl:text> </xsl:text>
						</td>
					</xsl:when>
					<xsl:otherwise>
						<xsl:choose>
							<xsl:when test="../../ROWS/ROW/ROW_TOTAL/AMOUNT[@VAT='EXCLUDED'] or ../../ROWS/ROW/ROW_TOTAL/AMOUNT[@VAT='INCLUDED']">
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
									<xsl:if test="position() mod 2 = false()">
										<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
									</xsl:if>
									<xsl:choose>
										<xsl:when test="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_CHARGE/AMOUNT[@VAT='INCLUDED'] !=''">
											<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_CHARGE/AMOUNT[@VAT='INCLUDED']"/>
										</xsl:when>
										<xsl:when test="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_CHARGE/AMOUNT[@VAT='EXCLUDED'] !=''">
											<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_CHARGE/AMOUNT[@VAT='EXCLUDED']"/>
										</xsl:when>
									</xsl:choose>
									<xsl:text> </xsl:text>
								</td>
							</xsl:when>
							<xsl:otherwise>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" colspan="3">
									<xsl:if test="position() mod 2 = false()">
										<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
									</xsl:if>
									<xsl:choose>
										<xsl:when test="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_CHARGE/AMOUNT[@VAT='INCLUDED'] !=''">
											<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_CHARGE/AMOUNT[@VAT='INCLUDED']"/>
										</xsl:when>
										<xsl:when test="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_CHARGE/AMOUNT[@VAT='EXCLUDED'] !=''">
											<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_CHARGE/AMOUNT[@VAT='EXCLUDED']"/>
										</xsl:when>
									</xsl:choose>
									<xsl:text> </xsl:text>
								</td>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:otherwise>
				</xsl:choose>
				<!--row_total, excluded -->
				<xsl:choose>
					<xsl:when test="ROW_TOTAL/AMOUNT[@VAT='EXCLUDED']!='' and not(ROW_TOTAL/AMOUNT[@VAT='INCLUDED'])">
						<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
							<xsl:if test="position() mod 2 = false()">
								<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
							</xsl:if>
							<xsl:text> </xsl:text>
							<xsl:apply-templates select="ROW_TOTAL/AMOUNT[@VAT='EXCLUDED']"/>
							<xsl:text> </xsl:text>
						</td>
					</xsl:when>
					<xsl:when test="ROW_TOTAL/AMOUNT[@VAT='EXCLUDED']!='' and ROW_TOTAL/AMOUNT[@VAT='INCLUDED']!=''">
						<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
							<xsl:if test="position() mod 2 = false()">
								<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
							</xsl:if>
							<xsl:text> </xsl:text>
							<xsl:apply-templates select="ROW_TOTAL/AMOUNT[@VAT='EXCLUDED']"/>
							<xsl:text> </xsl:text>
						</td>
					</xsl:when>
					<xsl:otherwise>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
							<xsl:if test="position() mod 2 = false()">
								<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
							</xsl:if>
							<xsl:text> </xsl:text>
						</td>
					</xsl:otherwise>
				</xsl:choose>
				<!--row_total, included -->
				<xsl:choose>
					<xsl:when test="ROW_TOTAL/AMOUNT[@VAT='INCLUDED']!='' and not(ROW_TOTAL/AMOUNT[@VAT='EXCLUDED'])">
						<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
							<xsl:if test="position() mod 2 = false()">
								<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
							</xsl:if>
							<xsl:text> </xsl:text>
							<xsl:apply-templates select="ROW_TOTAL/AMOUNT[@VAT='INCLUDED']"/>
							<xsl:text> </xsl:text>
						</td>
					</xsl:when>
					<xsl:when test="ROW_TOTAL/AMOUNT[@VAT='INCLUDED']!=''">
						<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
							<xsl:if test="position() mod 2 = false()">
								<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
							</xsl:if>
							<xsl:text> </xsl:text>
							<xsl:apply-templates select="ROW_TOTAL/AMOUNT[@VAT='INCLUDED']"/>
							<xsl:text> </xsl:text>
						</td>
					</xsl:when>
					<xsl:otherwise>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
							<xsl:if test="position() mod 2 = false()">
								<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
							</xsl:if>
							<xsl:text> </xsl:text>
						</td>
					</xsl:otherwise>
				</xsl:choose>
			</tr>
		</xsl:if>
		<!-- -->
		<xsl:if test="INFORMATION_OF_OVERDUE_PAYMENTS/PART_ID != '' or 
  INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_INVOICE_DUE_DATE != '' or
  INFORMATION_OF_OVERDUE_PAYMENTS/DATE_OF_PAYMENT != '' or 
  INFORMATION_OF_OVERDUE_PAYMENTS/PAID_AMOUNT/AMOUNT != '' or
  INFORMATION_OF_OVERDUE_PAYMENTS/COLLECTION_DATE != '' or 
  INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_RATE!=''">
			<tr>
				<!-- 1:part_id -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="3">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:value-of select="INFORMATION_OF_OVERDUE_PAYMENTS/PART_ID"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- 2:original_due_date -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_DUE_DATE"/>
					<xsl:text> </xsl:text>
				</td>
				<!-- 3:date_of_payment -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/DATE_OF_PAYMENT"/>
				</td>
				<!-- 4:paid_amount -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:choose>
						<xsl:when test="INFORMATION_OF_OVERDUE_PAYMENTS/PAID_AMOUNT/AMOUNT[@VAT='INCLUDED'] !=''">
							<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/PAID_AMOUNT/AMOUNT[@VAT='INCLUDED']"/>
						</xsl:when>
						<xsl:when test="INFORMATION_OF_OVERDUE_PAYMENTS/PAID_AMOUNT/AMOUNT[@VAT='EXCLUDED'] !=''">
							<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/PAID_AMOUNT/AMOUNT[@VAT='EXCLUDED']"/>
						</xsl:when>
					</xsl:choose>
					<xsl:text> </xsl:text>
				</td>
				<!-- 5:collection_date -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/COLLECTION_DATE"/>
				</td>
				<!-- 7:interest_rate -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:value-of select="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_RATE"/>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" align="right" colspan="4">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<!-- -->
		<xsl:if test="INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_PAYMENT_REFERENCE !=''">
			<tr>
				<!-- 1:original_payment_reference -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:if test="INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_PAYMENT_REFERENCE !=''">
						<xsl:value-of select="$Rtextp086"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="INFORMATION_OF_OVERDUE_PAYMENTS/ORIGINAL_PAYMENT_REFERENCE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- -->
		<xsl:if test="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_PERIOD/START_PERIOD !='' or INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_PERIOD/END_PERIOD !='' or INFORMATION_OF_OVERDUE_PAYMENTS/REFERENCE != ''">
			<tr>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:if test="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_PERIOD/START_PERIOD !='' or INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_PERIOD/END_PERIOD !=''">
						<xsl:value-of select="$Rtextp088"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_PERIOD/START_PERIOD"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="not(INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_PERIOD/START_PERIOD) and INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_PERIOD/END_PERIOD != '' ">
						<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/INTEREST_PERIOD/END_PERIOD"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<xsl:if test="INFORMATION_OF_OVERDUE_PAYMENTS/REFERENCE !=''">
						<xsl:value-of select="$Rtextp079"/>
						<xsl:text>: </xsl:text>
						<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/REFERENCE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<xsl:if test="INFORMATION_OF_OVERDUE_PAYMENTS/COLLECTION_SURCHARGE_TOTAL/AMOUNT !=''">
			<tr>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="3">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:if test="INFORMATION_OF_OVERDUE_PAYMENTS/COLLECTION_SURCHARGE_TOTAL/AMOUNT !=''">
						<xsl:value-of select="$Rtextp084"/>
						<xsl:text> </xsl:text>
					</xsl:if>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="3" align="right">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:choose>
						<xsl:when test="INFORMATION_OF_OVERDUE_PAYMENTS/COLLECTION_SURCHARGE_TOTAL/AMOUNT[@VAT='INCLUDED'] !=''">
							<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/COLLECTION_SURCHARGE_TOTAL/AMOUNT[@VAT='INCLUDED']"/>
						</xsl:when>
						<xsl:when test="INFORMATION_OF_OVERDUE_PAYMENTS/COLLECTION_SURCHARGE_TOTAL/AMOUNT[@VAT='EXCLUDED'] !=''">
							<xsl:apply-templates select="INFORMATION_OF_OVERDUE_PAYMENTS/COLLECTION_SURCHARGE_TOTAL/AMOUNT[@VAT='EXCLUDED']"/>
						</xsl:when>
					</xsl:choose>
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
					<xsl:if test="position() mod 2 = false()">
						<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
					</xsl:if>
					<xsl:text> </xsl:text>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: payee default postings -->
		<xsl:if test="DEFAULT_ROW_POSTING !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<td width="5%" xsl:use-attribute-sets="LayoutHeaderLowColumns">
					<xsl:text> </xsl:text>
				</td>
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="11">
					<xsl:value-of select="$Rtextp038"/>
					<xsl:text>: </xsl:text>
					<!-- account -->
					<xsl:if test="DEFAULT_ROW_POSTING/CREDIT_ACCOUNT !=''">
						<xsl:value-of select="DEFAULT_ROW_POSTING/CREDIT_ACCOUNT"/>
						<xsl:text> </xsl:text>
						<xsl:value-of select="DEFAULT_ROW_POSTING/CREDIT_ACCOUNT_2"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<!-- short account id -->
					<xsl:if test="DEFAULT_ROW_POSTING/SHORT_ACCOUNT_ID != ''">
						<xsl:value-of select="$AItextp008"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="DEFAULT_ROW_POSTING/SHORT_ACCOUNT_ID"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<!-- normal account id -->
					<xsl:if test="DEFAULT_ROW_POSTING/NORMAL_ACCOUNT_ID != ''">
						<xsl:value-of select="$AItextp009"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="DEFAULT_ROW_POSTING/NORMAL_ACCOUNT_ID"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<!-- account reference -->
					<xsl:if test="DEFAULT_ROW_POSTING/ACCOUNT_REFERENCE != ''">
						<xsl:value-of select="$IHIIItextp103b"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="DEFAULT_ROW_POSTING/ACCOUNT_REFERENCE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<!-- reporting code -->
					<xsl:if test="DEFAULT_ROW_POSTING/REPORTING_CODE != ''">
						<xsl:value-of select="$IHIIItextp103c"/>
						<xsl:text>: </xsl:text>
						<xsl:value-of select="DEFAULT_ROW_POSTING/REPORTING_CODE"/>
						<xsl:text> </xsl:text>
					</xsl:if>
					<!-- dimensions -->
					<xsl:if test="DEFAULT_ROW_POSTING/DIMENSIONS/DIMENSION !=''">
						<xsl:value-of select="$Rtextp039"/>
						<xsl:text>: </xsl:text>
						<xsl:for-each select="DEFAULT_ROW_POSTING/DIMENSIONS/DIMENSION">
							<xsl:text disable-output-escaping="yes"><![CDATA[ *]]></xsl:text>
							<xsl:if test="DIMENSION_NAME != ''">
								<xsl:value-of select="DIMENSION_NAME"/>
								<xsl:text>: </xsl:text>
							</xsl:if>
							<xsl:value-of select="DIMENSION_VALUE"/>
						</xsl:for-each>
					</xsl:if>
				</td>
			</tr>
		</xsl:if>
		<!-- output row: row free text -->
		<xsl:if test="FREE_TEXT !=''">
			<tr>
				<xsl:if test="position() mod 2 = false()">
					<xsl:attribute name="bgcolor"><xsl:value-of select="$varColor4"/></xsl:attribute>
				</xsl:if>
				<!-- 1:explanation -->
				<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="12">
					<xsl:for-each select="FREE_TEXT">
						<xsl:if test="position() &gt; 1">
							<br/>
						</xsl:if>
						<xsl:if test="@ROW_TYPE = 'SPECIFICATION' or @ROW_TYPE = 'SUBTOTAL'">
							<xsl:call-template name="ent.nbspspace"/>
							<xsl:call-template name="ent.nbspspace"/>
						</xsl:if>
						<xsl:value-of select="."/>
						<xsl:text> </xsl:text>
					</xsl:for-each>
				</td>
			</tr>
		</xsl:if>
	</xsl:template>
	<!-- ========================================================================== -->
	<!-- subtemplate for common rows: article description =============================== -->
	<xsl:template name="ARTICLE_DESCRIPTION" match="ARTICLE_DESCRIPTION">
		<xsl:value-of select="DESCRIPTION_TYPE"/>
		<xsl:text> </xsl:text>
		<xsl:value-of select="DESCRIPTION_VALUE"/>
		<xsl:text> </xsl:text>
		<xsl:value-of select="DESCRIPTION_UNIT"/>
		<br/>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- subtemplate for common rows: discount rows ====================================== -->
	<xsl:template name="DISCOUNT" match="DISCOUNT">
		<xsl:param name="subRtext006"/>
		<xsl:param name="subRtext008"/>
		<xsl:param name="subRtext021"/>
		<xsl:param name="subRtext040"/>
		<xsl:param name="subRtext022"/>
		<xsl:if test="DISCOUNT_AMOUNT/AMOUNT !='' or PER_CENT !=''">
			<xsl:choose>
				<xsl:when test="DISCOUNT_NAME != ''">
					<xsl:value-of select="DISCOUNT_NAME"/>
					<xsl:if test="@TYPE !=''">
					<xsl:text> (</xsl:text>
					<xsl:value-of select="@TYPE"/>
					<xsl:text>)</xsl:text>
					</xsl:if>
				</xsl:when>
				<xsl:when test="@TYPE='01'">
					<xsl:value-of select="$subRtext040"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$subRtext021"/>
					<xsl:if test="@TYPE !=''">
					<xsl:text> (</xsl:text>
					<xsl:value-of select="@TYPE"/>
					<xsl:text>)</xsl:text>
					</xsl:if>
				</xsl:otherwise>
			</xsl:choose>
			<!-- percent if exists -->
			<xsl:if test="PER_CENT != ''">
				<xsl:text> </xsl:text>
				<xsl:value-of select="PER_CENT"/>
				<xsl:text disable-output-escaping="yes"><![CDATA[ % ]]></xsl:text>
			</xsl:if>
			<xsl:if test="DISCOUNT_FROM_AMOUNT/AMOUNT">
				<xsl:text> </xsl:text>
				<xsl:value-of select="$subRtext022"/>
				<xsl:text> </xsl:text>
			</xsl:if>
			<!--discount from amount-->
			<xsl:if test="DISCOUNT_FROM_AMOUNT/AMOUNT[@VAT = 'EXCLUDED']">
				<xsl:text> </xsl:text>
				<xsl:value-of select="$subRtext008"/>
				<xsl:text>: </xsl:text>
				<xsl:apply-templates select="DISCOUNT_FROM_AMOUNT/AMOUNT[@VAT = 'EXCLUDED']"/>
			</xsl:if>
			<xsl:if test="DISCOUNT_FROM_AMOUNT/AMOUNT[@VAT = 'INCLUDED']">
				<xsl:text> </xsl:text>
				<xsl:value-of select="$subRtext006"/>
				<xsl:text>: </xsl:text>
				<xsl:apply-templates select="DISCOUNT_FROM_AMOUNT/AMOUNT[@VAT = 'INCLUDED']"/>
			</xsl:if>
			<xsl:if test="DISCOUNT_FROM_AMOUNT/AMOUNT">
				<xsl:text> = </xsl:text>
			</xsl:if>
			<!-- discount amount if exists -->
			<xsl:if test="DISCOUNT_AMOUNT/AMOUNT[@VAT = 'EXCLUDED']">
				<xsl:text> </xsl:text>
				<xsl:value-of select="$subRtext008"/>
				<xsl:text>: </xsl:text>
				<xsl:apply-templates select="DISCOUNT_AMOUNT/AMOUNT[@VAT = 'EXCLUDED']"/>
			</xsl:if>
			<xsl:if test="DISCOUNT_AMOUNT/AMOUNT[@VAT = 'INCLUDED']">
				<xsl:text> </xsl:text>
				<xsl:value-of select="$subRtext006"/>
				<xsl:text>: </xsl:text>
				<xsl:apply-templates select="DISCOUNT_AMOUNT/AMOUNT[@VAT = 'INCLUDED']"/>
			</xsl:if>
			<xsl:variable name="node">
				<xsl:value-of select="position()"/>
			</xsl:variable>
			<xsl:if test="position() != last()
                   and (../DISCOUNT[$node + 1]/DISCOUNT_AMOUNT/AMOUNT != ''
                   or ../DISCOUNT[$node + 1]/PER_CENT !='')">
				<xsl:text> </xsl:text>
				<br/>
			</xsl:if>
		</xsl:if>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- subtemplate for common rows: charge rows ======================================== -->
	<xsl:template name="ROW_CHARGE" match="ROW_CHARGE">
		<xsl:param name="subRtext022"/>
		<xsl:param name="subRtext023"/>
		<xsl:param name="subAItext020"/>
		<xsl:param name="subAItext021"/>
		<xsl:if test="CHARGE_NAME != ''">
			<xsl:value-of select="CHARGE_NAME"/>
			<xsl:text> </xsl:text>
			</xsl:if>
		<xsl:if test="@TYPE != ''">
			<xsl:text>(</xsl:text>
			<xsl:value-of select="@TYPE"/>
			<xsl:text>)</xsl:text>
		</xsl:if>
		<xsl:if test="PER_CENT != ''">
			<xsl:text> </xsl:text>
			<xsl:value-of select="PER_CENT"/>
			<xsl:text> </xsl:text>
			<xsl:text disable-output-escaping="yes"><![CDATA[% ]]></xsl:text>
		</xsl:if>
		<!-- charge from amount if exists -->
		<xsl:if test="CHARGE_FROM_AMOUNT/AMOUNT != ''">
			<xsl:text> </xsl:text>
			<xsl:value-of select="$subRtext022"/>
			<xsl:text> </xsl:text>
			<xsl:if test="CHARGE_FROM_AMOUNT/AMOUNT[@VAT = 'INCLUDED'] != ''">
				<xsl:value-of select="$subAItext020"/>
				<xsl:text>: </xsl:text>
				<xsl:apply-templates select="CHARGE_FROM_AMOUNT/AMOUNT[@VAT = 'INCLUDED']"/>
				<xsl:text> </xsl:text>
			</xsl:if>
			<xsl:if test="CHARGE_FROM_AMOUNT/AMOUNT[@VAT = 'EXCLUDED'] != ''">
			<xsl:text> </xsl:text>
				<xsl:value-of select="$subAItext021"/>
				<xsl:text>: </xsl:text>
				<xsl:apply-templates select="CHARGE_FROM_AMOUNT/AMOUNT[@VAT = 'EXCLUDED']"/>
				<xsl:text> </xsl:text>
			</xsl:if>
			<xsl:value-of select="$subRtext023"/>
			<xsl:text> </xsl:text>
		</xsl:if>
		<xsl:if test="CHARGE_AMOUNT/AMOUNT != ''">
			<xsl:if test="CHARGE_AMOUNT/AMOUNT[@VAT = 'INCLUDED'] != ''">
				<xsl:value-of select="$subAItext020"/>
				<xsl:text>: </xsl:text>
				<xsl:apply-templates select="CHARGE_AMOUNT/AMOUNT[@VAT = 'INCLUDED']"/>
				<xsl:text> </xsl:text>
			</xsl:if>
			<xsl:if test="CHARGE_AMOUNT/AMOUNT[@VAT = 'EXCLUDED'] != ''">
				<xsl:value-of select="$subAItext021"/>
				<xsl:text>: </xsl:text>
				<xsl:apply-templates select="CHARGE_AMOUNT/AMOUNT[@VAT = 'EXCLUDED']"/>
			</xsl:if>
		</xsl:if>
		<xsl:variable name="node2">
			<xsl:value-of select="position()"/>
		</xsl:variable>
		<xsl:if test="position() != last()
                   and (../ROW_CHARGE[$node2 + 1]/CHARGE_AMOUNT/AMOUNT != '' or ../ROW_CHARGE[$node2 + 1]/PER_CENT !='')">
			<xsl:text> </xsl:text>
			<br/>
		</xsl:if>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for common PartPayment ================================================= -->
	<xsl:template name="PartPayment_25common" match="PAYMENT">
		<xsl:param name="PPtextp001"/>
		<xsl:param name="PPtextp002"/>
		<xsl:param name="PPtextp003"/>
		<xsl:param name="PPtextp004"/>
		<xsl:param name="PPtextp005"/>
		<xsl:param name="PPtextp006"/>
		<xsl:param name="PPtextp007"/>
		<xsl:param name="PPtextp008"/>
		<xsl:param name="PPtextp009"/>
		<xsl:param name="PPtextp010"/>
		<xsl:param name="PPtextp011"/>
		<tr valign="top">
			<!-- A and B -->
			<td colspan="2">
				<table xsl:use-attribute-sets="TableWithBorder">
					<!-- row for something -->
					<tr>
						<td colspan="3">
							<table xsl:use-attribute-sets="TableNoBorderCellpad">
								<!-- title for part payment with part id and part count -->
								<tr>
									<td colspan="3" class="layouttext8b">
										<xsl:value-of select="$PPtextp004"/>
										<xsl:text disable-output-escaping="yes"><![CDATA[&nbsp;]]></xsl:text>
										<xsl:value-of select="PART_ID"/>
										<xsl:if test="PART_COUNT">
											<xsl:text disable-output-escaping="yes"><![CDATA[&nbsp;/&nbsp;]]></xsl:text>
											<xsl:value-of select="PART_COUNT"/>
										</xsl:if>
									</td>
								</tr>
								<!-- period for part payment -->
								<xsl:if test="START_PERIOD != '' or END_PERIOD != ''">
									<tr>
										<td class="layouttext8" width="10%">
											<xsl:call-template name="ent.nbspspace"/>
											<xsl:value-of select="$PPtextp001"/>:<xsl:call-template name="ent.nbspspace"/>
										</td>
										<td class="layouttext8" colspan="2">
											<xsl:apply-templates select="START_PERIOD"/>
											<xsl:if test="not(START_PERIOD)">
												<xsl:apply-templates select="END_PERIOD"/>
											</xsl:if>
										</td>
									</tr>
								</xsl:if>
								<!-- partial unpaid -->
								<xsl:if test="UNPAID/AMOUNT !=''">
									<tr>
										<td class="layouttext8">
											<xsl:call-template name="ent.nbspspace"/>
											<xsl:value-of select="$PPtextp005"/>:</td>
										<td class="layouttext8" colspan="2">
											<xsl:if test="UNPAID/AMOUNT[@VAT = 'EXCLUDED'] != ''">
												<xsl:value-of select="$PPtextp011"/>:
												<xsl:apply-templates select="UNPAID/AMOUNT[@VAT = 'EXCLUDED']"/>
												<xsl:text> </xsl:text>
											</xsl:if>
											<xsl:if test="UNPAID/AMOUNT[@VAT = 'INCLUDED'] != ''">
												<xsl:value-of select="$PPtextp010"/>:
												<xsl:apply-templates select="UNPAID/AMOUNT[@VAT = 'INCLUDED']"/>
											</xsl:if>
										</td>
									</tr>
								</xsl:if>
								<!-- partial payment -->
								<xsl:if test="PARTIAL_PAYMENT !=''">
									<tr>
										<td class="layouttext8">
											<xsl:call-template name="ent.nbspspace"/>
											<xsl:value-of select="$PPtextp006"/>:</td>
										<td class="layouttext8" colspan="2">
											<xsl:if test="PARTIAL_PAYMENT/AMOUNT[@VAT = 'EXCLUDED'] != ''">
												<xsl:value-of select="$PPtextp011"/>:
												<xsl:apply-templates select="PARTIAL_PAYMENT/AMOUNT[@VAT = 'EXCLUDED']"/>
												<xsl:text> </xsl:text>
											</xsl:if>
											<xsl:if test="PARTIAL_PAYMENT/AMOUNT[@VAT = 'INCLUDED'] != ''">
												<xsl:value-of select="$PPtextp010"/>:
												<xsl:apply-templates select="PARTIAL_PAYMENT/AMOUNT[@VAT = 'INCLUDED']"/>
											</xsl:if>
										</td>
									</tr>
								</xsl:if>
								<!-- partial interest rate and amount -->
								<xsl:if test="INTEREST/PER_CENT !='' or INTEREST/AMOUNT !=''">
									<tr>
										<td class="layouttext8">
											<xsl:call-template name="ent.nbspspace"/>
											<xsl:value-of select="$PPtextp007"/>
											<xsl:if test="INTEREST/PER_CENT">
												<xsl:text> </xsl:text>
												<xsl:value-of select="INTEREST/PER_CENT"/>
												<xsl:text disable-output-escaping="yes"><![CDATA[&nbsp;%]]></xsl:text>
											</xsl:if>
											<xsl:if test="INTEREST/AMOUNT">
												<xsl:text>: </xsl:text>
											</xsl:if>
										</td>
										<td class="layouttext8" colspan="2">
											<xsl:if test="INTEREST/AMOUNT">
												<xsl:apply-templates select="INTEREST/AMOUNT"/>
											</xsl:if>
										</td>
									</tr>
								</xsl:if>
								<!-- partial processing costs -->
								<xsl:if test="PROCESSING_COSTS/AMOUNT">
									<tr>
										<td class="layouttext8">
											<xsl:call-template name="ent.nbspspace"/>
											<xsl:value-of select="$PPtextp008"/>
											<xsl:text>: </xsl:text>
										</td>
										<td class="layouttext8" colspan="2">
											<xsl:if test="PROCESSING_COSTS/AMOUNT[@VAT='EXCLUDED'] != ''">
												<xsl:value-of select="$PPtextp011"/>:
												<xsl:apply-templates select="PROCESSING_COSTS/AMOUNT[@VAT='EXCLUDED']"/>
												<xsl:text> </xsl:text>
											</xsl:if>
											<xsl:if test="PROCESSING_COSTS/AMOUNT[@VAT='INCLUDED'] != ''">
												<xsl:value-of select="$PPtextp010"/>:
												<xsl:apply-templates select="PROCESSING_COSTS/AMOUNT[@VAT='INCLUDED']"/>
											</xsl:if>
										</td>
									</tr>
								</xsl:if>
								<!-- partial free text -->
								<xsl:if test="FREE_TEXT != ''">
									<tr>
										<td class="layouttext8" colspan="3">
											<xsl:call-template name="ent.nbspspace"/>
											<xsl:value-of select="FREE_TEXT"/>
										</td>
									</tr>
								</xsl:if>
							</table>
						</td>
					</tr>
					<tr>
						<!-- payment reference -->
						<td width="40%" class="layouttext8">
							<xsl:text> </xsl:text>
							<xsl:value-of select="$PPtextp002"/>
							<br/>
							<span class="layouttext10">
								<xsl:call-template name="ent.nbspspace"/>
								<xsl:value-of select="PAYMENT_REFERENCE"/>
							</span>
						</td>
						<!-- part due date -->
						<td width="20%" class="layouttext8">
							<xsl:text> </xsl:text>
							<xsl:value-of select="$PPtextp003"/>
							<br/>
							<span class="layouttext10">
								<xsl:call-template name="ent.nbspspace"/>
								<xsl:apply-templates select="PART_DUE_DATE"/>
							</span>
						</td>
						<!-- part sum -->
						<td width="40%" class="layouttext8">
							<xsl:text> </xsl:text>
							<xsl:value-of select="$PPtextp009"/>
							<br/>
							<span class="layouttext10">
								<xsl:call-template name="ent.nbspspace"/>
								<xsl:value-of select="PART_SUM"/>
								<xsl:text> </xsl:text>
								<xsl:value-of select="../../HEADER/CURRENCY/CODE"/>
							</span>
						</td>
					</tr>
				</table>
				<br/>
			</td>
		</tr>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for common AdditionalInformation ======================================= -->
	<xsl:template name="AI_25common">
		<xsl:param name="AItextp001"/>
		<xsl:param name="AItextp002"/>
		<xsl:param name="AItextp003"/>
		<xsl:param name="AItextp004"/>
		<xsl:param name="AItextp005"/>
		<xsl:param name="AItextp006"/>
		<xsl:param name="AItextp007"/>
		<xsl:param name="AItextp008"/>
		<xsl:param name="AItextp009"/>
		<xsl:param name="AItextp010"/>
		<xsl:param name="AItextp011"/>
		<xsl:param name="AItextp012"/>
		<xsl:param name="AItextp013"/>
		<xsl:param name="AItextp014"/>
		<xsl:param name="AItextp015"/>
		<xsl:param name="AItextp016"/>
		<xsl:param name="AItextp016b"/>
		<xsl:param name="AItextp016c"/>
		<xsl:param name="AItextp016d"/>
		<xsl:param name="AItextp016e"/>
		<xsl:param name="AItextp017"/>
		<xsl:param name="AItextp018"/>
		<xsl:param name="AItextp019"/>
		<xsl:param name="AItextp020"/>
		<xsl:param name="AItextp021"/>
		<xsl:param name="AItextp022"/>
		<xsl:param name="AItextp023"/>
		<xsl:param name="AItextp024"/>
		<xsl:param name="AItextp025"/>
		<xsl:param name="AItextp026"/>
		<xsl:param name="AItextp027"/>
		<xsl:param name="AItextp028"/>
		<xsl:param name="AItextp029"/>
		<xsl:param name="AItextp030"/>
		<xsl:param name="AItextp031"/>
		<xsl:param name="AItextp032"/>
		<xsl:param name="AItextp033"/>
		<xsl:param name="AItextp034"/>
		<xsl:param name="AItextp035"/>
		<xsl:param name="AItextp036"/>
		<xsl:param name="AItextp037"/>
		<xsl:param name="AItextp038"/>
			<tr>
			<td>&#160;</td>
		</tr>
		<tr valign="top">
			<!-- A -->
			<td colspan="2">
				<table xsl:use-attribute-sets="TableNoBorder">
					<!-- Added for Teappsxml 3.0 - preceding invoice - Edelliset maksuer&#228;t-->
					<xsl:if test="SUMMARY/PRECEDING_INVOICE_INFORMATION">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="4">
								<xsl:value-of select="$AItextp037"/>
								<xsl:text>: </xsl:text>
							</td>
						</tr>
						<xsl:for-each select="SUMMARY/PRECEDING_INVOICE_INFORMATION">
							<tr>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="2">
									<xsl:value-of select="PRECEDING_INVOICE_ID"/>
								</td>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="1">
									<xsl:apply-templates select="PRECEDING_INVOICE_DATE/DATE"/>
								</td>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="2">
								<xsl:if test="PRECEDING_INVOICE_TOTAL/AMOUNT[@VAT='EXCLUDED']">
									<xsl:value-of select="$AItextp030"/>
									<xsl:text>: </xsl:text>
									<xsl:apply-templates select="PRECEDING_INVOICE_TOTAL/AMOUNT[@VAT='EXCLUDED']"/>
									<br/>
									</xsl:if>
										<xsl:if test="PRECEDING_INVOICE_TOTAL/AMOUNT[@VAT='EXCLUDED']">
									<xsl:value-of select="$AItextp029"/>
									<xsl:text>: </xsl:text>
									<xsl:apply-templates select="PRECEDING_INVOICE_TOTAL/AMOUNT[@VAT='INCLUDED']"/>
									</xsl:if>
								</td>
							</tr>
						</xsl:for-each>
					</xsl:if>
					<!-- next due dates -->
					<tr>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="5">
							<xsl:if test="HEADER/NEXT_DUE_DATE">
								<xsl:value-of select="$AItextp001"/>
								<xsl:text>: </xsl:text>
								<br/>
							</xsl:if>
							<xsl:for-each select="HEADER/NEXT_DUE_DATE">
								<xsl:apply-templates select="DATE"/>
								<xsl:call-template name="ent.nbspspace"/>
							</xsl:for-each>
						</td>
						<td xsl:use-attribute-sets="LayoutHeaderLowColumns" width="25%"/>
					</tr>
					<!-- summary/total_info_costs -->
					<xsl:if test="SUMMARY/TOTAL_INFO_COSTS/AMOUNT != ''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
								<!-- list price with vat excluded -->
								<xsl:if test="SUMMARY/TOTAL_INFO_COSTS/AMOUNT[@VAT='EXCLUDED']!=''">
									<xsl:value-of select="$AItextp005"/>
									<xsl:text> </xsl:text>
									<xsl:value-of select="$AItextp008"/>
									<xsl:text>: </xsl:text>
									<xsl:apply-templates select="SUMMARY/TOTAL_INFO_COSTS/AMOUNT[@VAT='EXCLUDED']"/>
									<xsl:text> </xsl:text>
								</xsl:if>
								<!-- list price with vat included -->
								<xsl:if test="SUMMARY/TOTAL_INFO_COSTS/AMOUNT[@VAT='INCLUDED']!=''">
									<xsl:value-of select="$AItextp005"/>
									<xsl:text> </xsl:text>
									<xsl:value-of select="$AItextp006"/>
									<xsl:text>: </xsl:text>
									<xsl:apply-templates select="SUMMARY/TOTAL_INFO_COSTS/AMOUNT[@VAT='INCLUDED']"/>
								</xsl:if>
							</td>
						</tr>
					</xsl:if>
					<!--INVOICE_TOTAL_IN_OTHER_CURRENCY/CURRENCY/CODE ALV 0: INVOICE_TOTAL_IN_OTHER_CURRENCY, ex, in RATE, DATE -->
					<xsl:if test="SUMMARY/INVOICE_TOTAL_IN_OTHER_CURRENCY/AMOUNT != '' or SUMMARY/INVOICE_TOTAL_IN_OTHER_CURRENCY/CURRENCY/CODE != '' or SUMMARY/INVOICE_TOTAL_IN_OTHER_CURRENCY/CURRENCY/RATE!='' or SUMMARY/INVOICE_TOTAL_IN_OTHER_CURRENCY/CURRENCY/DATE/DAY!=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
								<!-- list price with vat excluded -->
								<xsl:if test="SUMMARY/INVOICE_TOTAL_IN_OTHER_CURRENCY/CURRENCY/CODE!=''">
									<xsl:if test="SUMMARY/INVOICE_TOTAL_IN_OTHER_CURRENCY/AMOUNT[@VAT='EXCLUDED']!=''">
										<xsl:value-of select="$AItextp009"/>
										<xsl:text> </xsl:text>
										<xsl:apply-templates select="SUMMARY/INVOICE_TOTAL_IN_OTHER_CURRENCY/CURRENCY/CODE"/>
										<xsl:text> </xsl:text>
										<xsl:if test="SUMMARY/INVOICE_TOTAL_IN_OTHER_CURRENCY/AMOUNT[@VAT='EXCLUDED'] != ''">
											<xsl:value-of select="$AItextp008"/>
											<xsl:text>: </xsl:text>
											<xsl:apply-templates select="SUMMARY/INVOICE_TOTAL_IN_OTHER_CURRENCY/AMOUNT[@VAT='EXCLUDED']"/>
											<xsl:text> </xsl:text>
										</xsl:if>
									</xsl:if>
									<xsl:if test="SUMMARY/INVOICE_TOTAL_IN_OTHER_CURRENCY/AMOUNT[@VAT='INCLUDED']!=''">
										<xsl:value-of select="$AItextp009"/>
										<xsl:text> </xsl:text>
										<xsl:apply-templates select="SUMMARY/INVOICE_TOTAL_IN_OTHER_CURRENCY/CURRENCY/CODE"/>
										<xsl:text> </xsl:text>
										<xsl:if test="SUMMARY/INVOICE_TOTAL_IN_OTHER_CURRENCY/AMOUNT[@VAT='INCLUDED'] != ''">
											<xsl:value-of select="$AItextp006"/>
											<xsl:text>: </xsl:text>
											<xsl:apply-templates select="SUMMARY/INVOICE_TOTAL_IN_OTHER_CURRENCY/AMOUNT[@VAT='INCLUDED']"/>
											<xsl:text> </xsl:text>
										</xsl:if>
									</xsl:if>
									<!-- RATE, DATE -->
									
									<xsl:if test="SUMMARY/INVOICE_TOTAL_IN_OTHER_CURRENCY/CURRENCY/RATE!=''">
										<xsl:value-of select="$AItextp011"/>
										<xsl:text>: </xsl:text>
										<xsl:apply-templates select="SUMMARY/INVOICE_TOTAL_IN_OTHER_CURRENCY/CURRENCY/RATE"/>
									</xsl:if>
									<xsl:if test="SUMMARY/INVOICE_TOTAL_IN_OTHER_CURRENCY/CURRENCY/DATE/DAY!=''">
										<xsl:text> </xsl:text>
										<xsl:apply-templates select="SUMMARY/INVOICE_TOTAL_IN_OTHER_CURRENCY/CURRENCY/DATE/DAY"/>
										<xsl:text>.</xsl:text>
										<xsl:apply-templates select="SUMMARY/INVOICE_TOTAL_IN_OTHER_CURRENCY/CURRENCY/DATE/MONTH"/>
										<xsl:text>.</xsl:text>
										<xsl:apply-templates select="SUMMARY/INVOICE_TOTAL_IN_OTHER_CURRENCY/CURRENCY/DATE/CENTURY"/>
										<xsl:apply-templates select="SUMMARY/INVOICE_TOTAL_IN_OTHER_CURRENCY/CURRENCY/DATE/DECADE_AND_YEAR"/>
									</xsl:if>
								</xsl:if>
							</td>
						</tr>
					</xsl:if>
					<!-- Alv yhteens&#228; kirjanpitovaluutassa-->
					<xsl:if test="SUMMARY/VAT_TOTAL_IN_OTHER_CURRENCY/AMOUNT != '' or SUMMARY/VAT_TOTAL_IN_OTHER_CURRENCY/CURRENCY/CODE != '' or SUMMARY/VAT_TOTAL_IN_OTHER_CURRENCY/CURRENCY/RATE!=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
								<!-- list price with vat excluded -->
								<xsl:if test="SUMMARY/VAT_TOTAL_IN_OTHER_CURRENCY/AMOUNT[@VAT='EXCLUDED'] != ''">
									<xsl:value-of select="$AItextp036"/>
									<xsl:text>: </xsl:text>
									<xsl:apply-templates select="SUMMARY/VAT_TOTAL_IN_OTHER_CURRENCY/AMOUNT[@VAT='EXCLUDED']"/>
									<xsl:text> </xsl:text>
									<xsl:apply-templates select="SUMMARY/VAT_TOTAL_IN_OTHER_CURRENCY/CURRENCY/CODE"/>
									<xsl:text> </xsl:text>
								</xsl:if>
								<xsl:if test="SUMMARY/VAT_TOTAL_IN_OTHER_CURRENCY/CURRENCY/RATE!=''">
									<xsl:value-of select="$AItextp011"/>
									<xsl:text>: </xsl:text>
									<xsl:apply-templates select="SUMMARY/VAT_TOTAL_IN_OTHER_CURRENCY/CURRENCY/RATE"/>
								</xsl:if>
							</td>
						</tr>
					</xsl:if>
					<!-- summary free text -->
					<xsl:for-each select="SUMMARY/FREE_TEXT">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
								<xsl:value-of select="."/>
							</td>
						</tr>
					</xsl:for-each>
					<!-- Viivästysmaksu-->
					<xsl:if test="HEADER/PAYMENT_OVERDUE_FINE/SURCHARGE!=''">
					<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
										<xsl:value-of select="$AItextp038"/>
										<xsl:text>: </xsl:text>
										<xsl:apply-templates select="HEADER/PAYMENT_OVERDUE_FINE/SURCHARGE/AMOUNT"/>
										<xsl:text> </xsl:text>
										<xsl:value-of select="HEADER/CURRENCY/CODE"/>
							</td>
							</tr>
					</xsl:if>
					<xsl:if test="PAYEE/DETAILS_OF_PAYMENT/FREE_TEXT!=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
								<br/>
								<xsl:text/>
							</td>
						</tr>
					</xsl:if>
					<!-- payee/details_of_payment/free text -->
					<xsl:for-each select="PAYEE/DETAILS_OF_PAYMENT/FREE_TEXT">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
								<xsl:value-of select="."/>
							</td>
						</tr>
					</xsl:for-each>
					<!-- FACTORING_INFORMATION/CUSTOMER_NAME FACTORING_INFORMATION/ORGANIZATION_NUMBER FACTORING_INFORMATION/ID  -->
					<xsl:if test="HEADER/FACTORING_INFORMATION!=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
								<br/>
								<xsl:text/>
							</td>
						</tr>
					</xsl:if>
					<xsl:if test="HEADER/FACTORING_INFORMATION/CUSTOMER_NAME != '' or HEADER/FACTORING_INFORMATION/ORGANIZATION_NUMBER !='' or HEADER/FACTORING_INFORMATION/ID !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
								<xsl:value-of select="$AItextp012"/>
								<xsl:text>: </xsl:text>
								<xsl:if test="HEADER/FACTORING_INFORMATION/CUSTOMER_NAME!=''">
									<xsl:apply-templates select="HEADER/FACTORING_INFORMATION/CUSTOMER_NAME"/>
									<xsl:text> </xsl:text>
								</xsl:if>
								<xsl:if test="HEADER/FACTORING_INFORMATION/ORGANIZATION_NUMBER!=''">
									<xsl:apply-templates select="HEADER/FACTORING_INFORMATION/ORGANIZATION_NUMBER"/>
									<xsl:text> </xsl:text>
								</xsl:if>
								<xsl:if test="HEADER/FACTORING_INFORMATION/ID!=''">
									<xsl:apply-templates select="HEADER/FACTORING_INFORMATION/ID"/>
									<xsl:text> </xsl:text>
								</xsl:if>
							</td>
						</tr>
					</xsl:if>
					<!-- FACTORING_INFORMATION/AGREEMENT_NUMBER FACTORING_INFORMATION/FACTORING_TYPE-->
					<xsl:if test="HEADER/FACTORING_INFORMATION/AGREEMENT_NUMBER != '' or HEADER/FACTORING_INFORMATION/FACTORING_TYPE !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
								<xsl:value-of select="$AItextp013"/>
								<xsl:text>: </xsl:text>
								<xsl:if test="HEADER/FACTORING_INFORMATION/AGREEMENT_NUMBER!=''">
									<xsl:apply-templates select="HEADER/FACTORING_INFORMATION/AGREEMENT_NUMBER"/>
									<xsl:text> </xsl:text>
								</xsl:if>
								<!-- list price with vat included -->
								<xsl:if test="HEADER/FACTORING_INFORMATION/FACTORING_TYPE!=''">
									<xsl:apply-templates select="HEADER/FACTORING_INFORMATION/FACTORING_TYPE"/>
									<xsl:text> </xsl:text>
								</xsl:if>
							</td>
						</tr>
					</xsl:if>
					<!-- FACTORING_INFORMATION/TRANSMISSION_LIST_NUMBER-->
					<xsl:if test="HEADER/FACTORING_INFORMATION/TRANSMISSION_LIST_NUMBER != ''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
								<xsl:if test="HEADER/FACTORING_INFORMATION/TRANSMISSION_LIST_NUMBER!=''">
									<xsl:value-of select="$AItextp014"/>
									<xsl:text>: </xsl:text>
									<xsl:apply-templates select="HEADER/FACTORING_INFORMATION/TRANSMISSION_LIST_NUMBER"/>
									<xsl:text> </xsl:text>
								</xsl:if>
							</td>
						</tr>
					</xsl:if>
					<!-- FACTORING_INFORMATION/ENDORSEMENT_CLAUSE-->
					<xsl:if test="HEADER/FACTORING_INFORMATION/ENDORSEMENT_CLAUSE != ''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
								<xsl:if test="HEADER/FACTORING_INFORMATION/ENDORSEMENT_CLAUSE!=''">
									<xsl:value-of select="$AItextp015"/>
									<xsl:text>: </xsl:text>
									<xsl:apply-templates select="HEADER/FACTORING_INFORMATION/ENDORSEMENT_CLAUSE"/>
									<xsl:text> </xsl:text>
								</xsl:if>
							</td>
						</tr>
					</xsl:if>
					<!-- FACTORING_INFORMATION/FREE_TEXT-->
					<xsl:if test="HEADER/FACTORING_INFORMATION/FREE_TEXT != ''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
								<xsl:if test="HEADER/FACTORING_INFORMATION/FREE_TEXT!=''">
									<xsl:apply-templates select="HEADER/FACTORING_INFORMATION/FREE_TEXT"/>
									<xsl:text> </xsl:text>
								</xsl:if>
								<br/>
								<br/>
							</td>
						</tr>
					</xsl:if>
					<!-- summary links -->
					<xsl:for-each select="SUMMARY/LINKS/LINK">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
								<xsl:value-of select="."/>
							</td>
						</tr>
					</xsl:for-each>
					<!--  default postings -->
					<xsl:if test="HEADER/PAYER_POSTING_GROUP_DEFAULTS !=''
                       or HEADER/PAYER_POSTING_DEFAULTS !='' or HEADER/PAYER_POSTING_GROUP_DEFAULTS/SHORT_ACCOUNT_ID !='' or HEADER/PAYER_POSTING_GROUP_DEFAULTS/NORMAL_ACCOUNT_ID !=''">
						<!-- heading for default postings-->
						<tr>
							<td>&#160;</td>
						</tr>
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
								<xsl:value-of select="$AItextp002"/>
								<xsl:text>: </xsl:text>
							</td>
						</tr>
						<!-- subheading for default postings-->
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
								<xsl:text> </xsl:text>
							</td>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
								<xsl:text> </xsl:text>
							</td>
							<xsl:if test="HEADER/PAYER_POSTING_GROUP_DEFAULTS/POSTING_DEFAULT/SHORT_ACCOUNT_ID !=''">
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
									<xsl:value-of select="$AItextp017"/>
									<xsl:text> </xsl:text>
								</td>
							</xsl:if>
							<xsl:if test="HEADER/PAYER_POSTING_GROUP_DEFAULTS/POSTING_DEFAULT/NORMAL_ACCOUNT_ID !=''">
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
									<xsl:value-of select="$AItextp018"/>
									<xsl:text> </xsl:text>
								</td>
							</xsl:if>
							<xsl:if test="HEADER/PAYER_POSTING_GROUP_DEFAULTS/POSTING_DEFAULT/ACCOUNT_AMOUNT !=''">
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
									<xsl:value-of select="$AItextp003"/>
									<xsl:text> </xsl:text>
								</td>
							</xsl:if>
							<xsl:if test="HEADER/PAYER_POSTING_GROUP_DEFAULTS/POSTING_DEFAULT/DIMENSIONS/DIMENSION/DIMENSION_NAME != '' or HEADER/PAYER_POSTING_GROUP_DEFAULTS/POSTING_DEFAULT/DIMENSIONS/DIMENSION/DIMENSION_VALUE != '' ">
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
									<xsl:value-of select="$AItextp004"/>
									<xsl:text> </xsl:text>
								</td>
							</xsl:if>
						</tr>
						<!-- GROUP_DEFAULTS: default posting rows -->
						<xsl:for-each select="HEADER/PAYER_POSTING_GROUP_DEFAULTS/POSTING_DEFAULT">
							<xsl:if test="position() &gt; 1">
								<tr>
									<td>&#160;</td>
								</tr>
							</xsl:if>
							<tr>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
									<xsl:value-of select="ACCOUNT"/>
									<xsl:text> </xsl:text>
								</td>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
									<xsl:value-of select="ACCOUNT_2"/>
									<xsl:text> </xsl:text>
								</td>
								<xsl:if test="SHORT_ACCOUNT_ID !=''">
									<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
										<xsl:value-of select="SHORT_ACCOUNT_ID"/>
										<xsl:text> </xsl:text>
									</td>
								</xsl:if>
								<xsl:if test="NORMAL_ACCOUNT_ID !=''">
									<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
										<xsl:value-of select="NORMAL_ACCOUNT_ID"/>
										<xsl:text> </xsl:text>
									</td>
								</xsl:if>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
									<xsl:if test="ACCOUNT_AMOUNT/AMOUNT[@VAT='INCLUDED'] != ''">
										<xsl:if test="not(../../INVOICE_TYPE/@EXTENSION) or ../../INVOICE_TYPE/@EXTENSION != '00'">
											<xsl:value-of select="$AItextp029"/>
											<xsl:text>: </xsl:text>
										</xsl:if>
										<xsl:apply-templates select="ACCOUNT_AMOUNT/AMOUNT[@VAT='INCLUDED']"/>
										<xsl:text> </xsl:text>
									</xsl:if>
									<xsl:if test="ACCOUNT_AMOUNT/AMOUNT[@VAT='EXCLUDED'] != ''">
										<xsl:if test="not(../../INVOICE_TYPE/@EXTENSION) or ../../INVOICE_TYPE/@EXTENSION != '00'">
											<xsl:value-of select="$AItextp030"/>
											<xsl:text>: </xsl:text>
										</xsl:if>
										<xsl:apply-templates select="ACCOUNT_AMOUNT/AMOUNT[@VAT='EXCLUDED']"/>
										<xsl:text> </xsl:text>
									</xsl:if>
								</td>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
									<xsl:if test="DIMENSIONS/DIMENSION/DIMENSION_NAME != '' or DIMENSIONS/DIMENSION/DIMENSION_VALUE != ''">
										<xsl:for-each select="DIMENSIONS/DIMENSION">
											<xsl:text disable-output-escaping="yes"><![CDATA[ *]]></xsl:text>
											<xsl:if test="DIMENSION_NAME != ''">
												<xsl:value-of select="DIMENSION_NAME"/>
												<xsl:text>: </xsl:text>
											</xsl:if>
											<xsl:value-of select="DIMENSION_VALUE"/>
										</xsl:for-each>
										<xsl:text> </xsl:text>
									</xsl:if>
								</td>
							</tr>
							<xsl:if test="ACCOUNT_REFERENCE != ''">
								<tr>
									<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
										<xsl:value-of select="$AItextp016b"/>
										<xsl:text>: </xsl:text>
										<xsl:value-of select="ACCOUNT_REFERENCE"/>
									</td>
								</tr>
							</xsl:if>
							<xsl:if test="REPORTING_CODE != ''">
								<tr>
									<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
										<xsl:value-of select="$AItextp016c"/>
										<xsl:text>: </xsl:text>
										<xsl:value-of select="REPORTING_CODE"/>
									</td>
								</tr>
							</xsl:if>
							<xsl:if test="CONTROL_STAMP/CONTROL_DATE/DATE/DAY != ''">
								<tr>
									<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
										<xsl:value-of select="$AItextp016d"/>
										<xsl:text>: </xsl:text>
										<xsl:apply-templates select="CONTROL_STAMP/CONTROL_DATE"/>
										<xsl:text> </xsl:text>
										<xsl:value-of select="CONTROL_STAMP/CONTROL_USER"/>
									</td>
								</tr>
							</xsl:if>
							<xsl:if test="ACCEPTANCE_STAMP/ACCEPTANCE_DATE/DATE/DAY != ''">
								<tr>
									<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
										<xsl:value-of select="$AItextp016e"/>
										<xsl:text>: </xsl:text>
										<xsl:apply-templates select="ACCEPTANCE_STAMP/ACCEPTANCE_DATE"/>
										<xsl:text> </xsl:text>
										<xsl:value-of select="ACCEPTANCE_STAMP/ACCEPT_USER"/>
									</td>
								</tr>
							</xsl:if>
						</xsl:for-each>
					</xsl:if>
					<!--HEADER/SELLER_ACCOUNT_TEXT-->
					<xsl:if test="HEADER/SELLER_ACCOUNT_TEXT != ''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
								<br/>
								<xsl:value-of select="$AItextp016"/>
								<xsl:text>: </xsl:text>
								<xsl:apply-templates select="HEADER/SELLER_ACCOUNT_TEXT"/>
								<xsl:text> </xsl:text>
								<br/>
								<br/>
							</td>
						</tr>
					</xsl:if>
					<!--Maksuohje-->
					<xsl:for-each select="PAYEE/BANKS">
						<xsl:if test="FOREIGN_PAYMENT_METHODS !='' or CLEARING_CODE != ''">
							<tr>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
									<xsl:value-of select="$AItextp007"/>
								</td>
							</tr>
							<tr>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="1">
									<xsl:value-of select="BANK_NAME"/>
									<xsl:if test="BANK_ADDRESS !=''">
										<xsl:value-of select="concat(', ',BANK_ADDRESS)"/>
									</xsl:if>
									<xsl:text> </xsl:text>
								</td>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="1">
									<xsl:value-of select="IBAN_ACCOUNT_NUMBER"/>
									<xsl:text> </xsl:text>
								</td>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="1">
									<xsl:value-of select="SWIFT_CODE"/>
									<xsl:text> </xsl:text>
								</td>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="1">
									<xsl:value-of select="FOREIGN_PAYMENT_METHODS"/>
									<xsl:text> </xsl:text>
								</td>
								<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="1">
									<xsl:value-of select="CLEARING_CODE"/>
									<xsl:text> </xsl:text>
								</td>
							</tr>
						</xsl:if>
					</xsl:for-each>
					<!-- Added for TEAPPSXML 3.0 - PAYMENT_CARD_INFORMATION-->
					<!-- Maksukortti-->
					<xsl:if test="HEADER/PAYMENT_CARD_INFORMATION/PRIMARY_ACCOUNT_NUMBER !='' or HEADER/PAYMENT_CARD_INFORMATION/PAYMENT_CARD_HOLDER !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
								<xsl:value-of select="$AItextp031"/>
								<xsl:text>: </xsl:text>
								<xsl:value-of select="HEADER/PAYMENT_CARD_INFORMATION/PRIMARY_ACCOUNT_NUMBER"/>
								<xsl:text> </xsl:text>
								<xsl:value-of select="HEADER/PAYMENT_CARD_INFORMATION/PAYMENT_CARD_HOLDER"/>
							</td>
						</tr>
					</xsl:if>
					<xsl:if test="HEADER/DIRECT_DEBIT_INFO !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
								<xsl:value-of select="$AItextp032"/>
							</td>
						</tr>
					</xsl:if>
					<!-- MANDATE_REFERENCE - Suoraveloitusvaltakirja -->
					<xsl:if test="HEADER/DIRECT_DEBIT_INFO/MANDATE_REFERENCE !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
								<xsl:value-of select="$AItextp033"/>
								<xsl:text>: </xsl:text>
								<xsl:value-of select="HEADER/DIRECT_DEBIT_INFO/MANDATE_REFERENCE"/>
							</td>
						</tr>
					</xsl:if>
					<!-- Suoraveloittaja -->
					<xsl:if test="HEADER/DIRECT_DEBIT_INFO/CREDITOR_ID !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
								<xsl:value-of select="$AItextp034"/>
								<xsl:text>: </xsl:text>
								<xsl:value-of select="HEADER/DIRECT_DEBIT_INFO/CREDITOR_ID"/>
							</td>
						</tr>
					</xsl:if>
					<!-- Veloitettava tili-->
					<xsl:if test="HEADER/DIRECT_DEBIT_INFO/DEBITED_ACCOUNT/IBAN_ACCOUNT_NUMBER !=''">
						<tr>
							<td xsl:use-attribute-sets="LayoutHeaderLowColumns" colspan="6">
								<xsl:value-of select="$AItextp035"/>
								<xsl:text>: </xsl:text>
								<xsl:choose>
									<xsl:when test="HEADER/DIRECT_DEBIT_INFO/DEBITED_ACCOUNT/IBAN_ACCOUNT_NUMBER !=''">
										<xsl:value-of select="HEADER/DIRECT_DEBIT_INFO/DEBITED_ACCOUNT/IBAN_ACCOUNT_NUMBER"/>
									</xsl:when>
									<xsl:otherwise>
										<xsl:value-of select="HEADER/DIRECT_DEBIT_INFO/DEBITED_ACCOUNT/BANK_ACCOUNT_NUMBER"/>
									</xsl:otherwise>
								</xsl:choose>
							</td>
						</tr>
					</xsl:if>
				</table>
			</td>
		</tr>
		<!-- CONTROL/PAYMENT_TRANSACTION - T&#228;m&#228; rakenne visualisoidaan vain verkkolaskun layoutilla-->
		<!--  PACKING_MARKS -->
		<xsl:if test="CONTROL/PAYMENT_TRANSACTIONS/PAYMENT_TRANSACTION !=''">
			<xsl:call-template name="HorizontalRule_2columns"/>
			<tr>
				<td colspan="4">
					<table xsl:use-attribute-sets="TableWithBorder">
						<xsl:for-each select="CONTROL/PAYMENT_TRANSACTIONS/PAYMENT_TRANSACTION">
							<tr>
								<td colspan="4">
									<table xsl:use-attribute-sets="TableNoBorderCellpad">
										<xsl:if test="position() &lt;= 1">
											<tr>
												<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
													<b>
														<xsl:value-of select="$AItextp028"/>
														<xsl:text> </xsl:text>
													</b>
													<xsl:text> </xsl:text>
												</td>
											</tr>
										</xsl:if>
										<tr>
											<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
												<xsl:if test="VOUCHER_SERIE !=''">
													<xsl:value-of select="$AItextp019"/>
												</xsl:if>
												<xsl:text> </xsl:text>
												<xsl:text> </xsl:text>
											</td>
											<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
												<xsl:value-of select="VOUCHER_SERIE"/>
												<xsl:text> </xsl:text>
												<xsl:text> </xsl:text>
											</td>
											<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
												<xsl:if test="VOUCHER_NUMBER !=''">
													<xsl:value-of select="$AItextp020"/>
												</xsl:if>
												<xsl:text> </xsl:text>
												<xsl:text> </xsl:text>
											</td>
											<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
												<xsl:value-of select="VOUCHER_NUMBER"/>
												<xsl:text> </xsl:text>
												<xsl:text> </xsl:text>
											</td>
										</tr>
										<!--  -->
										<tr>
											<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
												<xsl:if test="CHARGE_ACCOUNT !=''">
													<xsl:value-of select="$AItextp021"/>
												</xsl:if>
												<xsl:text> </xsl:text>
											</td>
											<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
												<xsl:value-of select="CHARGE_ACCOUNT"/>
												<xsl:text> </xsl:text>
											</td>
											<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
												<xsl:if test="IDENTIFIER_ID !=''">
													<xsl:value-of select="$AItextp022"/>
												</xsl:if>
												<xsl:text> </xsl:text>
											</td>
											<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
												<xsl:value-of select="IDENTIFIER_ID"/>
												<xsl:text> </xsl:text>
											</td>
										</tr>
										<tr>
											<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
												<xsl:if test="PAYMENT_DATE/DATE/DAY !=''">
													<xsl:value-of select="$AItextp023"/>
												</xsl:if>
												<xsl:text> </xsl:text>
											</td>
											<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
												<xsl:value-of select="PAYMENT_DATE/DATE/DAY"/>.<xsl:value-of select="PAYMENT_DATE/DATE/MONTH"/>.<xsl:value-of select="PAYMENT_DATE/DATE/CENTURY"/>
												<xsl:value-of select="PAYMENT_DATE/DATE/DECADE_AND_YEAR"/>
												<xsl:text> </xsl:text>
											</td>
											<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
												<xsl:if test="PAYMENT_TOTAL !=''">
													<xsl:value-of select="$AItextp024"/>
												</xsl:if>
												<xsl:text> </xsl:text>
											</td>
											<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
												<xsl:choose>
													<xsl:when test="PAYMENT_TOTAL/AMOUNT[@VAT='INCLUDED']">
														<xsl:apply-templates select="PAYMENT_TOTAL/AMOUNT[@VAT='INCLUDED']"/>
													</xsl:when>
													<xsl:otherwise>
														<xsl:apply-templates select="PAYMENT_TOTAL/AMOUNT[@VAT='EXCLUDED']"/>
													</xsl:otherwise>
												</xsl:choose>
											</td>
										</tr>
										<tr>
											<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
												<xsl:if test="PAYEE_BANKS !=''">
													<xsl:value-of select="$AItextp025"/>
												</xsl:if>
												<xsl:text> </xsl:text>
											</td>
											<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
												<xsl:value-of select="PAYEE_BANKS/BANK_NAME"/>
												<xsl:text> </xsl:text>
												<xsl:call-template name="formatBBAN">
													<xsl:with-param name="accountNumber" select="PAYEE_BANKS/BANK_ACCOUNT_NUMBER"/>
												</xsl:call-template>
											</td>
											<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
												<xsl:value-of select="PAYEE_BANKS/SWIFT_CODE"/>
												<xsl:text> </xsl:text>
												<xsl:call-template name="formatIBAN">
													<xsl:with-param name="accountNumber" select="PAYEE_BANKS/IBAN_ACCOUNT_NUMBER"/>
												</xsl:call-template>
											</td>
										</tr>
										<tr>
											<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
												<xsl:if test="PAYER_BANKS !=''">
													<xsl:value-of select="$AItextp026"/>
												</xsl:if>
												<xsl:text> </xsl:text>
											</td>
											<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
												<xsl:value-of select="PAYER_BANKS/BANK_NAME"/>
												<xsl:text> </xsl:text>
												<xsl:call-template name="formatBBAN">
													<xsl:with-param name="accountNumber" select="PAYER_BANKS/BANK_ACCOUNT_NUMBER"/>
												</xsl:call-template>
											</td>
											<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
												<xsl:value-of select="PAYER_BANKS/SWIFT_CODE"/>
												<xsl:text> </xsl:text>
												<xsl:call-template name="formatIBAN">
													<xsl:with-param name="accountNumber" select="PAYER_BANKS/IBAN_ACCOUNT_NUMBER"/>
												</xsl:call-template>
											</td>
										</tr>
										<tr>
											<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
												<xsl:if test="TRANSACTION_DATE/DATE !=''">
													<xsl:value-of select="$AItextp027"/>
												</xsl:if>
												<xsl:text> </xsl:text>
											</td>
											<td xsl:use-attribute-sets="LayoutHeaderLowColumns">
												<xsl:value-of select="TRANSACTION_DATE/DATE/DAY"/>.<xsl:value-of select="TRANSACTION_DATE/DATE/MONTH"/>.<xsl:value-of select="TRANSACTION_DATE/DATE/CENTURY"/>
												<xsl:value-of select="TRANSACTION_DATE/DATE/DECADE_AND_YEAR"/>
												<xsl:text> </xsl:text>
												<xsl:value-of select="USER/ID"/>
												<xsl:text> </xsl:text>
												<xsl:value-of select="USER/NAME"/>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</xsl:for-each>
					</table>
				</td>
			</tr>
		</xsl:if>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- template for common Footer ====================================================== -->
	<xsl:template name="footer">
		<xsl:param name="Ftextp001"/>
		<xsl:param name="Ftextp002"/>
		<xsl:param name="Ftextp003"/>
		<xsl:param name="Ftextp004"/>
		<xsl:param name="Ftextp005"/>
		<xsl:param name="Ftextp006"/>
		<xsl:param name="Ftextp007"/>
		<xsl:param name="Ftextp008"/>
		<xsl:param name="Ftextp009"/>
		<xsl:param name="Ftextp010"/>
		<xsl:param name="Ftextp011"/>
		<xsl:param name="Ftextp012"/>
		<xsl:param name="Ftextp013"/>
		<xsl:param name="Ftextp014"/>
		<xsl:param name="Ftextp015"/>
		<xsl:param name="Ftextp016"/>
		<tr>
			<td colspan="2">
				<table cellpadding="0" cellspacing="0" border="0" width="100%">
					<!-- title texts for footer -->
					<tr>
						<td class="layouttext8b" width="30%">
							<xsl:value-of select="$Ftextp001"/>
						</td>
						<td class="layouttext8b" colspan="2">
							<xsl:value-of select="$Ftextp002"/>
						</td>
						<td class="layouttext8b" width="12%">
							<xsl:if test="PAYEE/BANKS/SWIFT_CODE != ''">
								<xsl:value-of select="$Ftextp011"/>
								<xsl:text> / </xsl:text>
							</xsl:if>
							<xsl:if test="PAYEE/BANKS/IBAN_ACCOUNT_NUMBER != ''">
								<xsl:value-of select="$Ftextp012"/>
							</xsl:if>
						</td>
					</tr>
					<!-- 1. footer row: PAYEE/CUSTOMER_INFORMATION/CUSTOMER_NAME and BANKS[1] -->
					<tr>
						<td class="layouttext8">
							<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/CUSTOMER_NAME[1]"/>
							<xsl:text> </xsl:text>
						</td>
						<xsl:call-template name="banknameandnumber">
							<xsl:with-param name="nodenumber1" select="1"/>
						</xsl:call-template>
						<xsl:if test="PAYEE/BANKS[1]/SWIFT_CODE or PAYEE/BANKS[1]/IBAN_ACCOUNT_NUMBER">
							<xsl:call-template name="swiftandiban">
								<xsl:with-param name="nodenumber2" select="1"/>
							</xsl:call-template>
						</xsl:if>
					</tr>
					<!-- 2. footer row: PAYEE/CUSTOMER_INFORMATION/CUSTOMER_NAME and BANKS[2] -->
					<tr>
						<td class="layouttext8">
							<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/CUSTOMER_NAME[2]"/>
							<xsl:text> </xsl:text>
							<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/CUSTOMER_NAME[3]"/>
						</td>
						<xsl:call-template name="banknameandnumber">
							<xsl:with-param name="nodenumber1" select="2"/>
						</xsl:call-template>
						<xsl:if test="PAYEE/BANKS[2]/SWIFT_CODE or PAYEE/BANKS[2]/IBAN_ACCOUNT_NUMBER">
							<xsl:call-template name="swiftandiban">
								<xsl:with-param name="nodenumber2" select="2"/>
							</xsl:call-template>
						</xsl:if>
					</tr>
					<!-- 3. footer row: PAYEE/CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS1 and BANKS[3] -->
					<tr>
						<td class="layouttext8">
							<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS1"/>
							<xsl:text> </xsl:text>
						</td>
						<xsl:call-template name="banknameandnumber">
							<xsl:with-param name="nodenumber1" select="3"/>
						</xsl:call-template>
						<xsl:if test="PAYEE/BANKS[3]/SWIFT_CODE or PAYEE/BANKS[3]/IBAN_ACCOUNT_NUMBER">
							<xsl:call-template name="swiftandiban">
								<xsl:with-param name="nodenumber2" select="3"/>
							</xsl:call-template>
						</xsl:if>
					</tr>
					<!-- 4. footer row: PAYEE/CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS2 and BANKS[4] -->
					<tr>
						<td class="layouttext8">
							<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/ADDRESS/STREET_ADDRESS2"/>
							<xsl:text> </xsl:text>
						</td>
						<xsl:call-template name="banknameandnumber">
							<xsl:with-param name="nodenumber1" select="4"/>
						</xsl:call-template>
						<xsl:if test="PAYEE/BANKS[4]/SWIFT_CODE or PAYEE/BANKS[4]/IBAN_ACCOUNT_NUMBER">
							<xsl:call-template name="swiftandiban">
								<xsl:with-param name="nodenumber2" select="4"/>
							</xsl:call-template>
						</xsl:if>
					</tr>
					<!-- 5. footer row: PAYEE/CUSTOMER_INFORMATION/ADDRESS/POSTAL_CODE and POST_OFFICE and BANKS[5] -->
					<tr>
						<td class="layouttext8">
							<xsl:if test="PAYEE/CUSTOMER_INFORMATION/ADDRESS/POSTAL_CODE !=''">
								<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/ADDRESS/POSTAL_CODE"/>
								<xsl:text> </xsl:text>
							</xsl:if>
							<xsl:if test="PAYEE/CUSTOMER_INFORMATION/ADDRESS/POST_OFFICE !=''">
								<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/ADDRESS/POST_OFFICE"/>
								<xsl:text> </xsl:text>
							</xsl:if>
							<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/ADDRESS/COUNTRY"/>
							<xsl:text> </xsl:text>
						</td>
						<xsl:call-template name="banknameandnumber">
							<xsl:with-param name="nodenumber1" select="5"/>
						</xsl:call-template>
						<xsl:if test="PAYEE/BANKS[5]/SWIFT_CODE or PAYEE/BANKS[5]/IBAN_ACCOUNT_NUMBER">
							<xsl:call-template name="swiftandiban">
								<xsl:with-param name="nodenumber2" select="5"/>
							</xsl:call-template>
						</xsl:if>
					</tr>
					<!-- 6. footer row: PAYEE/CUSTOMER_INFORMATION/ADDRESS/COUNTRY and BANKS[6] -->
					<tr>
						<td class="layouttext8">
							<!-- TELEPHONE_NUMBER -->
							<xsl:if test="PAYEE/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEPHONE_NUMBER !=''">
								<xsl:value-of select="$Ftextp004"/>
								<xsl:text>: </xsl:text>
								<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/CONTACT_INFORMATION/TELEPHONE_NUMBER"/>
								<xsl:text> </xsl:text>
							</xsl:if>
							<xsl:text> </xsl:text>
						</td>
						<td class="layouttext8" width="40%" colspan="2">
							<xsl:if test="PAYEE/CUSTOMER_INFORMATION/E-MAIL_ADDRESS !=''">
								<xsl:value-of select="$Ftextp006"/>
								<xsl:text>: </xsl:text>
								<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/E-MAIL_ADDRESS"/>
							</xsl:if>
						</td>
						<!-- TRADE_REG_NUM -->
						<td class="layouttext8" colspan="2">
							<xsl:text> </xsl:text>
							<xsl:if test="PAYEE/CUSTOMER_INFORMATION/ORGANIZATION_NUMBER !=''">
								<xsl:value-of select="$Ftextp008"/>
								<xsl:text>: </xsl:text>
								<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/ORGANIZATION_NUMBER"/>
							</xsl:if>
						</td>
					</tr>
					<!-- 7. footer row: NET_SERVICE_ID, LINK and company E-MAIL ADDRESS -->
					<tr>
						<td class="layouttext8">
							<!-- NET_SERVICE_ID -->
							<xsl:if test="PAYEE/NET_SERVICE_ID !=''">
								<xsl:value-of select="$Ftextp013"/>
								<xsl:text>: </xsl:text>
								<xsl:value-of select="PAYEE/NET_SERVICE_ID"/>
							</xsl:if>
						</td>
						<!-- LINK -->
						<td class="layouttext8" colspan="2">
							<xsl:if test="PAYEE/CUSTOMER_INFORMATION/LINKS/LINK != ''">
								<!-- basic text output for textual link -->
								<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/LINKS/LINK"/>
							</xsl:if>
						</td>
						<!-- company E-MAIL ADDRESS -->
						<td class="layouttext8" colspan="2">
							<xsl:if test="PAYEE/CUSTOMER_INFORMATION/VAT_NUMBER != '' or PAYEE/CUSTOMER_INFORMATION/VAT_REG != ''">
								<xsl:value-of select="$Ftextp014"/>
								<xsl:text>: </xsl:text>
								<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/VAT_NUMBER"/>
								<xsl:text> </xsl:text>
								<xsl:value-of select="PAYEE/CUSTOMER_INFORMATION/VAT_REG"/>
								<xsl:text> </xsl:text>
							</xsl:if>
						</td>
					</tr>
					<!-- 8. footer row: PAYEE/DOMICILE and PAYEE/CUSTOMER_INFORMATION/ORGANIZATION_NUMBER and VAT-register information -->
					<tr>
						<!-- domicile -->
						<td class="layouttext8">
							<xsl:if test="PAYEE/INTERMEDIATOR!=''">
								<xsl:value-of select="$Ftextp016"/>
								<xsl:text>: </xsl:text>
								<xsl:value-of select="PAYEE/INTERMEDIATOR"/>
							</xsl:if>
						</td>
						<!-- organisation number, need to output only for finnish invoices -->
						<td class="layouttext8" colspan="2">
							<xsl:value-of select="PAYEE/PRELIMINARY_TAX_REGISTERED"/>
						</td>
						<!-- VAT registered, VAT number and preliminary tax registered -->
						<td class="layouttext8" colspan="2">
							<xsl:if test="PAYEE/DOMICILE !=''">
								<xsl:value-of select="$Ftextp007"/>
								<xsl:text>: </xsl:text>
								<xsl:value-of select="PAYEE/DOMICILE"/>
							</xsl:if>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- subtemplate for common footer: generating bank name ============================= -->
	<xsl:template name="banknameandnumber">
		<xsl:param name="nodenumber1"/>
		<td class="layouttext8">
			<xsl:value-of select="normalize-space(PAYEE/BANKS[$nodenumber1]/BANK_NAME)"/>
		</td>
		<td class="layouttext8">
			<xsl:call-template name="formatBBAN">
				<xsl:with-param name="accountNumber" select="normalize-space(PAYEE/BANKS[$nodenumber1]/BANK_ACCOUNT_NUMBER)"/>
			</xsl:call-template>
		</td>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- format BBAN bank account number ============================= -->
	<xsl:template name="formatBBAN">
		<xsl:param name="accountNumber"/>
		<xsl:choose>
			<!-- if bank account number is in machine readable format then convert it to human readable format -->
			<xsl:when test="number($accountNumber) and string-length($accountNumber) = 14">
				<xsl:value-of select="substring($accountNumber, 1, 6)"/>
				<xsl:text>-</xsl:text>
				<xsl:value-of select="number(substring($accountNumber, 7, 8))"/>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="$accountNumber"/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- subtemplate for common footer: generating bank account number =================== -->
	<xsl:template name="swiftandiban">
		<xsl:param name="nodenumber2"/>
		<td class="layouttext8" colspan="2">
			<xsl:value-of select="PAYEE/BANKS[$nodenumber2]/SWIFT_CODE"/>
			<xsl:text> / </xsl:text>
			<!--	</td>
		<td class="layouttext8">-->
			<xsl:call-template name="formatIBAN">
				<xsl:with-param name="accountNumber" select="PAYEE/BANKS[$nodenumber2]/IBAN_ACCOUNT_NUMBER"/>
			</xsl:call-template>
			<xsl:text> </xsl:text>
		</td>
	</xsl:template>
	<!-- ================================================================================= -->
	<!-- format IBAN bank account number ============================= -->
	<xsl:template name="formatIBAN">
		<xsl:param name="accountNumber"/>
		<!-- delete possible spaces -->
		<xsl:variable name="cleanediban" select="translate($accountNumber, ' ', '')"/>
		<xsl:variable name="iban1" select="substring($cleanediban,1,4)"/>
		<xsl:variable name="iban2" select="substring($cleanediban,5,4)"/>
		<xsl:variable name="iban3" select="substring($cleanediban,9,4)"/>
		<xsl:variable name="iban4" select="substring($cleanediban,13,4)"/>
		<xsl:variable name="iban5" select="substring($cleanediban,17,4)"/>
		<xsl:variable name="iban6" select="substring($cleanediban,21,4)"/>
		<xsl:variable name="iban7" select="substring($cleanediban,25,4)"/>
		<xsl:variable name="iban8" select="substring($cleanediban,29,4)"/>
		<xsl:value-of select="concat($iban1,' ',$iban2,' ',$iban3,' ',$iban4,' ',$iban5,' ',$iban6,' ',$iban7,' ',$iban8)"/>
	</xsl:template>
	<!-- format IPI reference ============================= -->
	<xsl:template name="formatIPI">
		<xsl:param name="ipiReference"/>
		<!-- delete possible spaces -->
		<xsl:variable name="cleanedIPI" select="translate($ipiReference, ' ', '')"/>
		<xsl:variable name="ipi1" select="substring($cleanedIPI,1,4)"/>
		<xsl:variable name="ipi2" select="substring($cleanedIPI,5,4)"/>
		<xsl:variable name="ipi3" select="substring($cleanedIPI,9,4)"/>
		<xsl:variable name="ipi4" select="substring($cleanedIPI,13,4)"/>
		<xsl:variable name="ipi5" select="substring($cleanedIPI,17,4)"/>
		<xsl:variable name="ipi6" select="substring($cleanedIPI,21,4)"/>
		<xsl:variable name="ipi7" select="substring($cleanedIPI,25,4)"/>
		<xsl:variable name="ipi8" select="substring($cleanedIPI,29,4)"/>
		<xsl:variable name="ipi9" select="substring($cleanedIPI,33,4)"/>
		<xsl:variable name="ipi10" select="substring($cleanedIPI,37,4)"/>
		<xsl:variable name="ipi11" select="substring($cleanedIPI,41,4)"/>
		<xsl:variable name="ipi12" select="substring($cleanedIPI,45,4)"/>
		<xsl:value-of select="concat($ipi1,' ',$ipi2,' ',$ipi3,' ',$ipi4,' ',$ipi5,' ',$ipi6,' ',$ipi7,' ',$ipi8,' ',$ipi9,' ',$ipi10,' ',$ipi11,' ',$ipi12)"/>
	</xsl:template>
	<!-- subtemplate for FI REFERENCE modification =================== -->
	<xsl:template name="formatFI">
          <xsl:param name="fiReference"/>
			
                 <xsl:variable name="refA">
                  <xsl:value-of select="translate(PAYEE/DETAILS_OF_PAYMENT/FI_PAYMENT_REFERENCE, ' ', '')"/>
                 </xsl:variable>

                 <!-- separate strings -->
                 <xsl:variable name="l">
	           		<xsl:value-of select="string-length($refA)"/>
                 </xsl:variable>

                 <xsl:variable name="l1">
	           		<xsl:value-of select="$l - 4"/>
                 </xsl:variable>

                 <xsl:variable name="d">
				      <xsl:choose>
				        <xsl:when test="$l &lt; 1">
				          <xsl:value-of select="''"/>
				        </xsl:when>
				        <xsl:when test="$l = 1">
				          <xsl:value-of select="substring($refA,1,1)"/>
				        </xsl:when>
				        <xsl:when test="$l = 2">
				          <xsl:value-of select="substring($refA,1,2)"/>
				        </xsl:when>        
				        <xsl:when test="$l = 3">
				          <xsl:value-of select="substring($refA,1,3)"/>
				        </xsl:when>        
				        <xsl:when test="$l = 4">
				          <xsl:value-of select="substring($refA,1,4)"/>
				        </xsl:when>        
				        <xsl:when test="$l &gt; 4">
				          <xsl:value-of select="substring($refA,$l1,5)"/>
				        </xsl:when>        
				      </xsl:choose> 
                 </xsl:variable>

                 <xsl:variable name="l2">
	          		 <xsl:value-of select="$l1 - 5"/>
                 </xsl:variable>

                 <xsl:variable name="c">
				      <xsl:choose>
				        <xsl:when test="$l1 &lt; 2">
				          <xsl:value-of select="''"/>
				        </xsl:when>
				        <xsl:when test="$l1 = 2">
				          <xsl:value-of select="substring($refA,1,1)"/>
				        </xsl:when>
				        <xsl:when test="$l1 = 3">
				          <xsl:value-of select="substring($refA,1,2)"/>
				        </xsl:when>        
				        <xsl:when test="$l1 = 4">
				          <xsl:value-of select="substring($refA,1,3)"/>
				        </xsl:when>        
				        <xsl:when test="$l1 = 5">
				          <xsl:value-of select="substring($refA,1,4)"/>
				        </xsl:when>        
				        <xsl:when test="$l1 &gt; 5">
				          <xsl:value-of select="substring($refA,$l2,5)"/>
				        </xsl:when>        
				      </xsl:choose>
                 </xsl:variable>

                 <xsl:variable name="l3">
					<xsl:value-of select="$l2 - 5"/>
                 </xsl:variable>

                 <xsl:variable name="b">
				      <xsl:choose>
				        <xsl:when test="$l2 &lt; 2">
				          <xsl:value-of select="''"/>
				        </xsl:when>
				        <xsl:when test="$l2 = 2">
				          <xsl:value-of select="substring($refA,1,1)"/>
				        </xsl:when>
				        <xsl:when test="$l2 = 3">
				          <xsl:value-of select="substring($refA,1,2)"/>
				        </xsl:when>        
				        <xsl:when test="$l2 = 4">
				          <xsl:value-of select="substring($refA,1,3)"/>
				        </xsl:when>        
				        <xsl:when test="$l2 = 5">
				          <xsl:value-of select="substring($refA,1,4)"/>
				        </xsl:when>        
				        <xsl:when test="$l2 &gt; 5">
				          <xsl:value-of select="substring($refA,$l3,5)"/>
				        </xsl:when>        
				      </xsl:choose> 
                 </xsl:variable>

                 <xsl:variable name="l4">
					<xsl:value-of select="$l3 - 5"/>
                 </xsl:variable>

                 <xsl:variable name="a">
				      <xsl:choose>
				        <xsl:when test="$l3 &lt; 2">
				          <xsl:value-of select="''"/>
				        </xsl:when>
				        <xsl:when test="$l3 = 2">
				          <xsl:value-of select="substring($refA,1,1)"/>
				        </xsl:when>
				        <xsl:when test="$l3 = 3">
				          <xsl:value-of select="substring($refA,1,2)"/>
				        </xsl:when>        
				        <xsl:when test="$l3 = 4">
				          <xsl:value-of select="substring($refA,1,3)"/>
				        </xsl:when>        
				        <xsl:when test="$l3 = 5">
				          <xsl:value-of select="substring($refA,1,4)"/>
				        </xsl:when>        
				        <xsl:when test="$l3 &gt; 5">
				          <xsl:value-of select="substring($refA,$l4,5)"/>
				        </xsl:when> 
				      </xsl:choose> 
                 </xsl:variable>

                 <xsl:variable name="l5">
					<xsl:value-of select="$l4 - 5"/>
                 </xsl:variable>

                 <xsl:variable name="aa">
				      <xsl:choose>
				        <xsl:when test="$l4 &lt; 2">
				          <xsl:value-of select="''"/>
				        </xsl:when>
				        <xsl:when test="$l4 = 2">
				          <xsl:value-of select="substring($refA,1,1)"/>
				        </xsl:when>
				        <xsl:when test="$l4 = 3">
				          <xsl:value-of select="substring($refA,1,2)"/>
				        </xsl:when>        
				        <xsl:when test="$l4 = 4">
				          <xsl:value-of select="substring($refA,1,3)"/>
				        </xsl:when>        
				        <xsl:when test="$l4 = 5">
				          <xsl:value-of select="substring($refA,1,4)"/>
				        </xsl:when>        
				        <xsl:when test="$l4 &gt; 5">
				          <xsl:value-of select="substring($refA,$l5,5)"/>
				        </xsl:when> 
				      </xsl:choose> 
                 </xsl:variable>
                 
                 <xsl:variable name="l6">
					<xsl:value-of select="$l5 - 5"/>
                 </xsl:variable>

                 <xsl:variable name="aaa">
				      <xsl:choose>
				        <xsl:when test="$l5 &lt; 2">
				          <xsl:value-of select="''"/>
				        </xsl:when>
				        <xsl:when test="$l5 = 2">
				          <xsl:value-of select="substring($refA,1,1)"/>
				        </xsl:when>
				        <xsl:when test="$l5 = 3">
				          <xsl:value-of select="substring($refA,1,2)"/>
				        </xsl:when>        
				        <xsl:when test="$l5 = 4">
				          <xsl:value-of select="substring($refA,1,3)"/>
				        </xsl:when>        
				        <xsl:when test="$l5 = 5">
				          <xsl:value-of select="substring($refA,1,4)"/>
				        </xsl:when>        
				        <xsl:when test="$l5 &gt; 5">
				          <xsl:value-of select="substring($refA,$l6,5)"/>
				        </xsl:when> 
				      </xsl:choose> 
                 </xsl:variable>
 
                 <xsl:variable name="l7">
					<xsl:value-of select="$l6 - 5"/>
                 </xsl:variable>

                 <xsl:variable name="aaaa">
				      <xsl:choose>
				        <xsl:when test="$l6 &lt; 2">
				          <xsl:value-of select="''"/>
				        </xsl:when>
				        <xsl:when test="$l6 = 2">
				          <xsl:value-of select="substring($refA,1,1)"/>
				        </xsl:when>
				        <xsl:when test="$l6 = 3">
				          <xsl:value-of select="substring($refA,1,2)"/>
				        </xsl:when>        
				        <xsl:when test="$l6 = 4">
				          <xsl:value-of select="substring($refA,1,3)"/>
				        </xsl:when>        
				        <xsl:when test="$l6 = 5">
				          <xsl:value-of select="substring($refA,1,4)"/>
				        </xsl:when>        
				        <xsl:when test="$l6 &gt; 5">
				          <xsl:value-of select="substring($refA,$l7,5)"/>
				        </xsl:when> 
				      </xsl:choose> 
                 </xsl:variable> 
                 
                 <!-- join separated strings -->
				<xsl:value-of select="concat($aaaa,' ',$aaa,' ',$aa,' ',$a,' ',$b,' ',$c,' ',$d)"/>
	</xsl:template> 
</xsl:transform>
