<?xml version="1.0" encoding="UTF-8"?>
<!--
This file was generated by Altova MapForce 2009sp1

YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.

Refer to the Altova MapForce Documentation for further details.
http://www.altova.com/mapforce
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:n3="http://fina.hr/eracun/erp/OutgoingInvoicesData/v3.2" xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" xmlns:n="http://uri.etsi.org/01903/v1.4.1#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:a="urn:oasis:names:specification:ubl:schema:xsd:AttachedDocument-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" xmlns:n0="urn:oasis:names:specification:ubl:schema:xsd:CommonSignatureComponents-2" xmlns:n2="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDataTypes-2" xmlns:qdt2="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDatatypes-2" xmlns:sac="urn:oasis:names:specification:ubl:schema:xsd:SignatureAggregateComponents-2" xmlns:sbc="urn:oasis:names:specification:ubl:schema:xsd:SignatureBasicComponents-2" xmlns:udt="urn:oasis:names:specification:ubl:schema:xsd:UnqualifiedDataTypes-2" xmlns:clm54217="urn:un:unece:uncefact:codelist:specification:54217:2001" xmlns:clm5639="urn:un:unece:uncefact:codelist:specification:5639:1988" xmlns:clm66411="urn:un:unece:uncefact:codelist:specification:66411:2001" xmlns:clmIANAMIMEMediaType="urn:un:unece:uncefact:codelist:specification:IANAMIMEMediaType:2003" xmlns:ccts-cct="urn:un:unece:uncefact:data:specification:CoreComponentTypeSchemaModule:2" xmlns:udt2="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" exclude-result-prefixes="a clm54217 clm5639 clm66411 clmIANAMIMEMediaType n3 qdt2 udt2 xs xsi xsl" xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
	<xsl:namespace-alias stylesheet-prefix="n2" result-prefix="#default"/>
	<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
	<xsl:template match="/">
		<n2:Invoice>
			<xsl:attribute name="xsi:schemaLocation">
				<xsl:value-of select="'urn:oasis:names:specification:ubl:schema:xsd:Invoice-2 C:/Users/alenj/Desktop/UBL/maindoc/UBL-Invoice-2.1.xsd'"/>
			</xsl:attribute>
			<xsl:variable name="var1_instance" select="."/>
			<xsl:for-each select="$var1_instance/n3:OutgoingInvoicesData">
				<cbc:CustomizationID>
					<xsl:value-of select="'urn:cen.eu:en16931:2017'"/>
				</cbc:CustomizationID>
				<cbc:ProfileID>
					<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cbc:ProfileID">
						<xsl:variable name="var4_ProfileID" select="."/>
						<xsl:if test="$var4_ProfileID/@schemeID">
							<xsl:attribute name="schemeID">
								<xsl:value-of select="string(@schemeID)"/>
							</xsl:attribute>
						</xsl:if>
					</xsl:for-each>
					<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cbc:ProfileID">
						<xsl:variable name="var6_ProfileID" select="."/>
						<xsl:if test="$var6_ProfileID/@schemeName">
							<xsl:attribute name="schemeName">
								<xsl:value-of select="string(@schemeName)"/>
							</xsl:attribute>
						</xsl:if>
					</xsl:for-each>
					<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cbc:ProfileID">
						<xsl:variable name="var8_ProfileID" select="."/>
						<xsl:if test="$var8_ProfileID/@schemeAgencyID">
							<xsl:attribute name="schemeAgencyID">
								<xsl:value-of select="string(@schemeAgencyID)"/>
							</xsl:attribute>
						</xsl:if>
					</xsl:for-each>
					<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cbc:ProfileID">
						<xsl:variable name="var10_ProfileID" select="."/>
						<xsl:if test="$var10_ProfileID/@schemeAgencyName">
							<xsl:attribute name="schemeAgencyName">
								<xsl:value-of select="string(@schemeAgencyName)"/>
							</xsl:attribute>
						</xsl:if>
					</xsl:for-each>
					<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cbc:ProfileID">
						<xsl:variable name="var12_ProfileID" select="."/>
						<xsl:if test="$var12_ProfileID/@schemeVersionID">
							<xsl:attribute name="schemeVersionID">
								<xsl:value-of select="string(@schemeVersionID)"/>
							</xsl:attribute>
						</xsl:if>
					</xsl:for-each>
					<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cbc:ProfileID">
						<xsl:variable name="var14_ProfileID" select="."/>
						<xsl:if test="$var14_ProfileID/@schemeDataURI">
							<xsl:attribute name="schemeDataURI">
								<xsl:value-of select="string(@schemeDataURI)"/>
							</xsl:attribute>
						</xsl:if>
					</xsl:for-each>
					<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cbc:ProfileID">
						<xsl:variable name="var16_ProfileID" select="."/>
						<xsl:if test="$var16_ProfileID/@schemeURI">
							<xsl:attribute name="schemeURI">
								<xsl:value-of select="string(@schemeURI)"/>
							</xsl:attribute>
						</xsl:if>
					</xsl:for-each>
				</cbc:ProfileID>
				<cbc:ID>
					<xsl:value-of select="string(n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cbc:ID)"/>
				</cbc:ID>
				<cbc:IssueDate>
					<xsl:value-of select="string(n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cbc:IssueDate)"/>
				</cbc:IssueDate>
				<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:PaymentMeans/cbc:PaymentDueDate">
					<cbc:DueDate>
						<xsl:value-of select="string(.)"/>
					</cbc:DueDate>
				</xsl:for-each>
				<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cbc:InvoiceTypeCode">
					<cbc:InvoiceTypeCode>
						<xsl:value-of select="string(.)"/>
					</cbc:InvoiceTypeCode>
				</xsl:for-each>
				<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cbc:IssueTime">
					<cbc:Note>
						<xsl:value-of select="concat(concat('Vrijeme izdavanja: ', string(.)), '#AAI#')"/>
					</cbc:Note>
				</xsl:for-each>
				<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cbc:TaxPointDate">
					<cbc:TaxPointDate>
						<xsl:value-of select="string(.)"/>
					</cbc:TaxPointDate>
				</xsl:for-each>
				<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cbc:DocumentCurrencyCode">
					<cbc:DocumentCurrencyCode>
						<xsl:value-of select="string(.)"/>
					</cbc:DocumentCurrencyCode>
				</xsl:for-each>
				<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cbc:TaxCurrencyCode">
					<xsl:variable name="var28_TaxCurrencyCode" select="."/>
					<cbc:TaxCurrencyCode>
						<xsl:if test="$var28_TaxCurrencyCode/@listID">
							<xsl:attribute name="listID">
								<xsl:value-of select="string(@listID)"/>
							</xsl:attribute>
						</xsl:if>
						<xsl:if test="$var28_TaxCurrencyCode/@listAgencyID">
							<xsl:attribute name="listAgencyID">
								<xsl:value-of select="string(@listAgencyID)"/>
							</xsl:attribute>
						</xsl:if>
						<xsl:if test="$var28_TaxCurrencyCode/@listAgencyName">
							<xsl:attribute name="listAgencyName">
								<xsl:value-of select="string(@listAgencyName)"/>
							</xsl:attribute>
						</xsl:if>
						<xsl:if test="$var28_TaxCurrencyCode/@listName">
							<xsl:attribute name="listName">
								<xsl:value-of select="string(@listName)"/>
							</xsl:attribute>
						</xsl:if>
						<xsl:if test="$var28_TaxCurrencyCode/@listVersionID">
							<xsl:attribute name="listVersionID">
								<xsl:value-of select="string(@listVersionID)"/>
							</xsl:attribute>
						</xsl:if>
						<xsl:if test="$var28_TaxCurrencyCode/@name">
							<xsl:attribute name="name">
								<xsl:value-of select="string(@name)"/>
							</xsl:attribute>
						</xsl:if>
						<xsl:if test="$var28_TaxCurrencyCode/@languageID">
							<xsl:attribute name="languageID">
								<xsl:value-of select="string(@languageID)"/>
							</xsl:attribute>
						</xsl:if>
						<xsl:if test="$var28_TaxCurrencyCode/@listURI">
							<xsl:attribute name="listURI">
								<xsl:value-of select="string(@listURI)"/>
							</xsl:attribute>
						</xsl:if>
						<xsl:if test="$var28_TaxCurrencyCode/@listSchemeURI">
							<xsl:attribute name="listSchemeURI">
								<xsl:value-of select="string(@listSchemeURI)"/>
							</xsl:attribute>
						</xsl:if>
						<xsl:value-of select="string(.)"/>
					</cbc:TaxCurrencyCode>
				</xsl:for-each>
				<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cbc:AccountingCost">
					<xsl:variable name="var30_AccountingCost" select="."/>
					<cbc:AccountingCost>
						<xsl:if test="$var30_AccountingCost/@languageID">
							<xsl:attribute name="languageID">
								<xsl:value-of select="string(@languageID)"/>
							</xsl:attribute>
						</xsl:if>
						<xsl:value-of select="string(.)"/>
					</cbc:AccountingCost>
				</xsl:for-each>
				<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:InvoicePeriod">
					<cac:InvoicePeriod>
						<xsl:for-each select="cbc:StartDate">
							<cbc:StartDate>
								<xsl:value-of select="string(.)"/>
							</cbc:StartDate>
						</xsl:for-each>
						<xsl:for-each select="cbc:EndDate">
							<cbc:EndDate>
								<xsl:value-of select="string(.)"/>
							</cbc:EndDate>
						</xsl:for-each>
						<xsl:for-each select="cbc:DescriptionCode">
							<xsl:variable name="var38_DescriptionCode" select="."/>
							<cbc:DescriptionCode>
								<xsl:if test="$var38_DescriptionCode/@listID">
									<xsl:attribute name="listID">
										<xsl:value-of select="string(@listID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var38_DescriptionCode/@listAgencyID">
									<xsl:attribute name="listAgencyID">
										<xsl:value-of select="string(@listAgencyID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var38_DescriptionCode/@listAgencyName">
									<xsl:attribute name="listAgencyName">
										<xsl:value-of select="string(@listAgencyName)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var38_DescriptionCode/@listName">
									<xsl:attribute name="listName">
										<xsl:value-of select="string(@listName)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var38_DescriptionCode/@listVersionID">
									<xsl:attribute name="listVersionID">
										<xsl:value-of select="string(@listVersionID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var38_DescriptionCode/@name">
									<xsl:attribute name="name">
										<xsl:value-of select="string(@name)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var38_DescriptionCode/@languageID">
									<xsl:attribute name="languageID">
										<xsl:value-of select="string(@languageID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var38_DescriptionCode/@listURI">
									<xsl:attribute name="listURI">
										<xsl:value-of select="string(@listURI)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var38_DescriptionCode/@listSchemeURI">
									<xsl:attribute name="listSchemeURI">
										<xsl:value-of select="string(@listSchemeURI)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:value-of select="string(.)"/>
							</cbc:DescriptionCode>
						</xsl:for-each>
					</cac:InvoicePeriod>
				</xsl:for-each>
				<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:OrderReference">
					<xsl:variable name="var40_OrderReference" select="."/>
					<cac:OrderReference>
						<cbc:ID>
							<xsl:if test="$var40_OrderReference/cbc:ID/@schemeID">
								<xsl:attribute name="schemeID">
									<xsl:value-of select="string(cbc:ID/@schemeID)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var40_OrderReference/cbc:ID/@schemeName">
								<xsl:attribute name="schemeName">
									<xsl:value-of select="string(cbc:ID/@schemeName)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var40_OrderReference/cbc:ID/@schemeAgencyID">
								<xsl:attribute name="schemeAgencyID">
									<xsl:value-of select="string(cbc:ID/@schemeAgencyID)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var40_OrderReference/cbc:ID/@schemeAgencyName">
								<xsl:attribute name="schemeAgencyName">
									<xsl:value-of select="string(cbc:ID/@schemeAgencyName)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var40_OrderReference/cbc:ID/@schemeVersionID">
								<xsl:attribute name="schemeVersionID">
									<xsl:value-of select="string(cbc:ID/@schemeVersionID)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var40_OrderReference/cbc:ID/@schemeDataURI">
								<xsl:attribute name="schemeDataURI">
									<xsl:value-of select="string(cbc:ID/@schemeDataURI)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var40_OrderReference/cbc:ID/@schemeURI">
								<xsl:attribute name="schemeURI">
									<xsl:value-of select="string(cbc:ID/@schemeURI)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:value-of select="string(cbc:ID)"/>
						</cbc:ID>
						<xsl:for-each select="cbc:SalesOrderID">
							<xsl:variable name="var42_SalesOrderID" select="."/>
							<cbc:SalesOrderID>
								<xsl:if test="$var42_SalesOrderID/@schemeID">
									<xsl:attribute name="schemeID">
										<xsl:value-of select="string(@schemeID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var42_SalesOrderID/@schemeName">
									<xsl:attribute name="schemeName">
										<xsl:value-of select="string(@schemeName)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var42_SalesOrderID/@schemeAgencyID">
									<xsl:attribute name="schemeAgencyID">
										<xsl:value-of select="string(@schemeAgencyID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var42_SalesOrderID/@schemeAgencyName">
									<xsl:attribute name="schemeAgencyName">
										<xsl:value-of select="string(@schemeAgencyName)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var42_SalesOrderID/@schemeVersionID">
									<xsl:attribute name="schemeVersionID">
										<xsl:value-of select="string(@schemeVersionID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var42_SalesOrderID/@schemeDataURI">
									<xsl:attribute name="schemeDataURI">
										<xsl:value-of select="string(@schemeDataURI)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var42_SalesOrderID/@schemeURI">
									<xsl:attribute name="schemeURI">
										<xsl:value-of select="string(@schemeURI)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:value-of select="string(.)"/>
							</cbc:SalesOrderID>
						</xsl:for-each>
					</cac:OrderReference>
				</xsl:for-each>
				<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:BillingReference">
					<cac:BillingReference>
						<xsl:for-each select="cac:InvoiceDocumentReference">
							<xsl:variable name="var46_InvoiceDocumentReference" select="."/>
							<cac:InvoiceDocumentReference>
								<cbc:ID>
									<xsl:if test="$var46_InvoiceDocumentReference/cbc:ID/@schemeID">
										<xsl:attribute name="schemeID">
											<xsl:value-of select="string(cbc:ID/@schemeID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var46_InvoiceDocumentReference/cbc:ID/@schemeName">
										<xsl:attribute name="schemeName">
											<xsl:value-of select="string(cbc:ID/@schemeName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var46_InvoiceDocumentReference/cbc:ID/@schemeAgencyID">
										<xsl:attribute name="schemeAgencyID">
											<xsl:value-of select="string(cbc:ID/@schemeAgencyID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var46_InvoiceDocumentReference/cbc:ID/@schemeAgencyName">
										<xsl:attribute name="schemeAgencyName">
											<xsl:value-of select="string(cbc:ID/@schemeAgencyName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var46_InvoiceDocumentReference/cbc:ID/@schemeVersionID">
										<xsl:attribute name="schemeVersionID">
											<xsl:value-of select="string(cbc:ID/@schemeVersionID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var46_InvoiceDocumentReference/cbc:ID/@schemeDataURI">
										<xsl:attribute name="schemeDataURI">
											<xsl:value-of select="string(cbc:ID/@schemeDataURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var46_InvoiceDocumentReference/cbc:ID/@schemeURI">
										<xsl:attribute name="schemeURI">
											<xsl:value-of select="string(cbc:ID/@schemeURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:value-of select="string(cbc:ID)"/>
								</cbc:ID>
								<xsl:for-each select="cbc:IssueDate">
									<cbc:IssueDate>
										<xsl:value-of select="string(.)"/>
									</cbc:IssueDate>
								</xsl:for-each>
								<xsl:for-each select="cac:Attachment">
									<cac:Attachment>
										<xsl:for-each select="cbc:EmbeddedDocumentBinaryObject">
											<xsl:variable name="var52_EmbeddedDocumentBinaryObject" select="."/>
											<cbc:EmbeddedDocumentBinaryObject>
												<xsl:if test="$var52_EmbeddedDocumentBinaryObject/@format">
													<xsl:attribute name="format">
														<xsl:value-of select="string(@format)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:attribute name="mimeCode">
													<xsl:value-of select="string(@mimeCode)"/>
												</xsl:attribute>
												<xsl:if test="$var52_EmbeddedDocumentBinaryObject/@encodingCode">
													<xsl:attribute name="encodingCode">
														<xsl:value-of select="string(@encodingCode)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var52_EmbeddedDocumentBinaryObject/@characterSetCode">
													<xsl:attribute name="characterSetCode">
														<xsl:value-of select="string(@characterSetCode)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var52_EmbeddedDocumentBinaryObject/@uri">
													<xsl:attribute name="uri">
														<xsl:value-of select="string(@uri)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var52_EmbeddedDocumentBinaryObject/@filename">
													<xsl:attribute name="filename">
														<xsl:value-of select="string(@filename)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:EmbeddedDocumentBinaryObject>
										</xsl:for-each>
										<xsl:for-each select="cac:ExternalReference">
											<cac:ExternalReference>
												<xsl:for-each select="cbc:URI">
													<xsl:variable name="var56_URI" select="."/>
													<cbc:URI>
														<xsl:if test="$var56_URI/@schemeID">
															<xsl:attribute name="schemeID">
																<xsl:value-of select="string(@schemeID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var56_URI/@schemeName">
															<xsl:attribute name="schemeName">
																<xsl:value-of select="string(@schemeName)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var56_URI/@schemeAgencyID">
															<xsl:attribute name="schemeAgencyID">
																<xsl:value-of select="string(@schemeAgencyID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var56_URI/@schemeAgencyName">
															<xsl:attribute name="schemeAgencyName">
																<xsl:value-of select="string(@schemeAgencyName)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var56_URI/@schemeVersionID">
															<xsl:attribute name="schemeVersionID">
																<xsl:value-of select="string(@schemeVersionID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var56_URI/@schemeDataURI">
															<xsl:attribute name="schemeDataURI">
																<xsl:value-of select="string(@schemeDataURI)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var56_URI/@schemeURI">
															<xsl:attribute name="schemeURI">
																<xsl:value-of select="string(@schemeURI)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:value-of select="string(.)"/>
													</cbc:URI>
												</xsl:for-each>
											</cac:ExternalReference>
										</xsl:for-each>
									</cac:Attachment>
								</xsl:for-each>
							</cac:InvoiceDocumentReference>
						</xsl:for-each>
					</cac:BillingReference>
				</xsl:for-each>
				<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:DespatchDocumentReference">
					<xsl:variable name="var58_DespatchDocumentReference" select="."/>
					<cac:DespatchDocumentReference>
						<cbc:ID>
							<xsl:if test="$var58_DespatchDocumentReference/cbc:ID/@schemeID">
								<xsl:attribute name="schemeID">
									<xsl:value-of select="string(cbc:ID/@schemeID)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var58_DespatchDocumentReference/cbc:ID/@schemeName">
								<xsl:attribute name="schemeName">
									<xsl:value-of select="string(cbc:ID/@schemeName)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var58_DespatchDocumentReference/cbc:ID/@schemeAgencyID">
								<xsl:attribute name="schemeAgencyID">
									<xsl:value-of select="string(cbc:ID/@schemeAgencyID)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var58_DespatchDocumentReference/cbc:ID/@schemeAgencyName">
								<xsl:attribute name="schemeAgencyName">
									<xsl:value-of select="string(cbc:ID/@schemeAgencyName)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var58_DespatchDocumentReference/cbc:ID/@schemeVersionID">
								<xsl:attribute name="schemeVersionID">
									<xsl:value-of select="string(cbc:ID/@schemeVersionID)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var58_DespatchDocumentReference/cbc:ID/@schemeDataURI">
								<xsl:attribute name="schemeDataURI">
									<xsl:value-of select="string(cbc:ID/@schemeDataURI)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var58_DespatchDocumentReference/cbc:ID/@schemeURI">
								<xsl:attribute name="schemeURI">
									<xsl:value-of select="string(cbc:ID/@schemeURI)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:value-of select="string(cbc:ID)"/>
						</cbc:ID>
						<xsl:for-each select="cbc:IssueDate">
							<cbc:IssueDate>
								<xsl:value-of select="string(.)"/>
							</cbc:IssueDate>
						</xsl:for-each>
						<xsl:for-each select="cac:Attachment">
							<cac:Attachment>
								<xsl:for-each select="cbc:EmbeddedDocumentBinaryObject">
									<xsl:variable name="var64_EmbeddedDocumentBinaryObject" select="."/>
									<cbc:EmbeddedDocumentBinaryObject>
										<xsl:if test="$var64_EmbeddedDocumentBinaryObject/@format">
											<xsl:attribute name="format">
												<xsl:value-of select="string(@format)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:attribute name="mimeCode">
											<xsl:value-of select="string(@mimeCode)"/>
										</xsl:attribute>
										<xsl:if test="$var64_EmbeddedDocumentBinaryObject/@encodingCode">
											<xsl:attribute name="encodingCode">
												<xsl:value-of select="string(@encodingCode)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var64_EmbeddedDocumentBinaryObject/@characterSetCode">
											<xsl:attribute name="characterSetCode">
												<xsl:value-of select="string(@characterSetCode)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var64_EmbeddedDocumentBinaryObject/@uri">
											<xsl:attribute name="uri">
												<xsl:value-of select="string(@uri)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var64_EmbeddedDocumentBinaryObject/@filename">
											<xsl:attribute name="filename">
												<xsl:value-of select="string(@filename)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:EmbeddedDocumentBinaryObject>
								</xsl:for-each>
								<xsl:for-each select="cac:ExternalReference">
									<cac:ExternalReference>
										<xsl:for-each select="cbc:URI">
											<xsl:variable name="var68_URI" select="."/>
											<cbc:URI>
												<xsl:if test="$var68_URI/@schemeID">
													<xsl:attribute name="schemeID">
														<xsl:value-of select="string(@schemeID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var68_URI/@schemeName">
													<xsl:attribute name="schemeName">
														<xsl:value-of select="string(@schemeName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var68_URI/@schemeAgencyID">
													<xsl:attribute name="schemeAgencyID">
														<xsl:value-of select="string(@schemeAgencyID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var68_URI/@schemeAgencyName">
													<xsl:attribute name="schemeAgencyName">
														<xsl:value-of select="string(@schemeAgencyName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var68_URI/@schemeVersionID">
													<xsl:attribute name="schemeVersionID">
														<xsl:value-of select="string(@schemeVersionID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var68_URI/@schemeDataURI">
													<xsl:attribute name="schemeDataURI">
														<xsl:value-of select="string(@schemeDataURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var68_URI/@schemeURI">
													<xsl:attribute name="schemeURI">
														<xsl:value-of select="string(@schemeURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:URI>
										</xsl:for-each>
									</cac:ExternalReference>
								</xsl:for-each>
							</cac:Attachment>
						</xsl:for-each>
					</cac:DespatchDocumentReference>
				</xsl:for-each>
				<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:ReceiptDocumentReference">
					<xsl:variable name="var70_ReceiptDocumentReference" select="."/>
					<cac:ReceiptDocumentReference>
						<cbc:ID>
							<xsl:if test="$var70_ReceiptDocumentReference/cbc:ID/@schemeID">
								<xsl:attribute name="schemeID">
									<xsl:value-of select="string(cbc:ID/@schemeID)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var70_ReceiptDocumentReference/cbc:ID/@schemeName">
								<xsl:attribute name="schemeName">
									<xsl:value-of select="string(cbc:ID/@schemeName)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var70_ReceiptDocumentReference/cbc:ID/@schemeAgencyID">
								<xsl:attribute name="schemeAgencyID">
									<xsl:value-of select="string(cbc:ID/@schemeAgencyID)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var70_ReceiptDocumentReference/cbc:ID/@schemeAgencyName">
								<xsl:attribute name="schemeAgencyName">
									<xsl:value-of select="string(cbc:ID/@schemeAgencyName)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var70_ReceiptDocumentReference/cbc:ID/@schemeVersionID">
								<xsl:attribute name="schemeVersionID">
									<xsl:value-of select="string(cbc:ID/@schemeVersionID)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var70_ReceiptDocumentReference/cbc:ID/@schemeDataURI">
								<xsl:attribute name="schemeDataURI">
									<xsl:value-of select="string(cbc:ID/@schemeDataURI)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var70_ReceiptDocumentReference/cbc:ID/@schemeURI">
								<xsl:attribute name="schemeURI">
									<xsl:value-of select="string(cbc:ID/@schemeURI)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:value-of select="string(cbc:ID)"/>
						</cbc:ID>
						<xsl:for-each select="cbc:IssueDate">
							<cbc:IssueDate>
								<xsl:value-of select="string(.)"/>
							</cbc:IssueDate>
						</xsl:for-each>
						<xsl:for-each select="cac:Attachment">
							<cac:Attachment>
								<xsl:for-each select="cbc:EmbeddedDocumentBinaryObject">
									<xsl:variable name="var76_EmbeddedDocumentBinaryObject" select="."/>
									<cbc:EmbeddedDocumentBinaryObject>
										<xsl:if test="$var76_EmbeddedDocumentBinaryObject/@format">
											<xsl:attribute name="format">
												<xsl:value-of select="string(@format)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:attribute name="mimeCode">
											<xsl:value-of select="string(@mimeCode)"/>
										</xsl:attribute>
										<xsl:if test="$var76_EmbeddedDocumentBinaryObject/@encodingCode">
											<xsl:attribute name="encodingCode">
												<xsl:value-of select="string(@encodingCode)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var76_EmbeddedDocumentBinaryObject/@characterSetCode">
											<xsl:attribute name="characterSetCode">
												<xsl:value-of select="string(@characterSetCode)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var76_EmbeddedDocumentBinaryObject/@uri">
											<xsl:attribute name="uri">
												<xsl:value-of select="string(@uri)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var76_EmbeddedDocumentBinaryObject/@filename">
											<xsl:attribute name="filename">
												<xsl:value-of select="string(@filename)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:EmbeddedDocumentBinaryObject>
								</xsl:for-each>
								<xsl:for-each select="cac:ExternalReference">
									<cac:ExternalReference>
										<xsl:for-each select="cbc:URI">
											<xsl:variable name="var80_URI" select="."/>
											<cbc:URI>
												<xsl:if test="$var80_URI/@schemeID">
													<xsl:attribute name="schemeID">
														<xsl:value-of select="string(@schemeID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var80_URI/@schemeName">
													<xsl:attribute name="schemeName">
														<xsl:value-of select="string(@schemeName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var80_URI/@schemeAgencyID">
													<xsl:attribute name="schemeAgencyID">
														<xsl:value-of select="string(@schemeAgencyID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var80_URI/@schemeAgencyName">
													<xsl:attribute name="schemeAgencyName">
														<xsl:value-of select="string(@schemeAgencyName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var80_URI/@schemeVersionID">
													<xsl:attribute name="schemeVersionID">
														<xsl:value-of select="string(@schemeVersionID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var80_URI/@schemeDataURI">
													<xsl:attribute name="schemeDataURI">
														<xsl:value-of select="string(@schemeDataURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var80_URI/@schemeURI">
													<xsl:attribute name="schemeURI">
														<xsl:value-of select="string(@schemeURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:URI>
										</xsl:for-each>
									</cac:ExternalReference>
								</xsl:for-each>
							</cac:Attachment>
						</xsl:for-each>
					</cac:ReceiptDocumentReference>
				</xsl:for-each>
				<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:OriginatorDocumentReference">
					<xsl:variable name="var82_OriginatorDocumentReference" select="."/>
					<cac:OriginatorDocumentReference>
						<cbc:ID>
							<xsl:if test="$var82_OriginatorDocumentReference/cbc:ID/@schemeID">
								<xsl:attribute name="schemeID">
									<xsl:value-of select="string(cbc:ID/@schemeID)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var82_OriginatorDocumentReference/cbc:ID/@schemeName">
								<xsl:attribute name="schemeName">
									<xsl:value-of select="string(cbc:ID/@schemeName)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var82_OriginatorDocumentReference/cbc:ID/@schemeAgencyID">
								<xsl:attribute name="schemeAgencyID">
									<xsl:value-of select="string(cbc:ID/@schemeAgencyID)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var82_OriginatorDocumentReference/cbc:ID/@schemeAgencyName">
								<xsl:attribute name="schemeAgencyName">
									<xsl:value-of select="string(cbc:ID/@schemeAgencyName)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var82_OriginatorDocumentReference/cbc:ID/@schemeVersionID">
								<xsl:attribute name="schemeVersionID">
									<xsl:value-of select="string(cbc:ID/@schemeVersionID)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var82_OriginatorDocumentReference/cbc:ID/@schemeDataURI">
								<xsl:attribute name="schemeDataURI">
									<xsl:value-of select="string(cbc:ID/@schemeDataURI)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var82_OriginatorDocumentReference/cbc:ID/@schemeURI">
								<xsl:attribute name="schemeURI">
									<xsl:value-of select="string(cbc:ID/@schemeURI)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:value-of select="string(cbc:ID)"/>
						</cbc:ID>
						<xsl:for-each select="cbc:IssueDate">
							<cbc:IssueDate>
								<xsl:value-of select="string(.)"/>
							</cbc:IssueDate>
						</xsl:for-each>
						<xsl:for-each select="cac:Attachment">
							<cac:Attachment>
								<xsl:for-each select="cbc:EmbeddedDocumentBinaryObject">
									<xsl:variable name="var88_EmbeddedDocumentBinaryObject" select="."/>
									<cbc:EmbeddedDocumentBinaryObject>
										<xsl:if test="$var88_EmbeddedDocumentBinaryObject/@format">
											<xsl:attribute name="format">
												<xsl:value-of select="string(@format)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:attribute name="mimeCode">
											<xsl:value-of select="string(@mimeCode)"/>
										</xsl:attribute>
										<xsl:if test="$var88_EmbeddedDocumentBinaryObject/@encodingCode">
											<xsl:attribute name="encodingCode">
												<xsl:value-of select="string(@encodingCode)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var88_EmbeddedDocumentBinaryObject/@characterSetCode">
											<xsl:attribute name="characterSetCode">
												<xsl:value-of select="string(@characterSetCode)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var88_EmbeddedDocumentBinaryObject/@uri">
											<xsl:attribute name="uri">
												<xsl:value-of select="string(@uri)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var88_EmbeddedDocumentBinaryObject/@filename">
											<xsl:attribute name="filename">
												<xsl:value-of select="string(@filename)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:EmbeddedDocumentBinaryObject>
								</xsl:for-each>
								<xsl:for-each select="cac:ExternalReference">
									<cac:ExternalReference>
										<xsl:for-each select="cbc:URI">
											<xsl:variable name="var92_URI" select="."/>
											<cbc:URI>
												<xsl:if test="$var92_URI/@schemeID">
													<xsl:attribute name="schemeID">
														<xsl:value-of select="string(@schemeID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var92_URI/@schemeName">
													<xsl:attribute name="schemeName">
														<xsl:value-of select="string(@schemeName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var92_URI/@schemeAgencyID">
													<xsl:attribute name="schemeAgencyID">
														<xsl:value-of select="string(@schemeAgencyID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var92_URI/@schemeAgencyName">
													<xsl:attribute name="schemeAgencyName">
														<xsl:value-of select="string(@schemeAgencyName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var92_URI/@schemeVersionID">
													<xsl:attribute name="schemeVersionID">
														<xsl:value-of select="string(@schemeVersionID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var92_URI/@schemeDataURI">
													<xsl:attribute name="schemeDataURI">
														<xsl:value-of select="string(@schemeDataURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var92_URI/@schemeURI">
													<xsl:attribute name="schemeURI">
														<xsl:value-of select="string(@schemeURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:URI>
										</xsl:for-each>
									</cac:ExternalReference>
								</xsl:for-each>
							</cac:Attachment>
						</xsl:for-each>
					</cac:OriginatorDocumentReference>
				</xsl:for-each>
				<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:ContractDocumentReference">
					<xsl:variable name="var94_ContractDocumentReference" select="."/>
					<cac:ContractDocumentReference>
						<cbc:ID>
							<xsl:if test="$var94_ContractDocumentReference/cbc:ID/@schemeID">
								<xsl:attribute name="schemeID">
									<xsl:value-of select="string(cbc:ID/@schemeID)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var94_ContractDocumentReference/cbc:ID/@schemeName">
								<xsl:attribute name="schemeName">
									<xsl:value-of select="string(cbc:ID/@schemeName)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var94_ContractDocumentReference/cbc:ID/@schemeAgencyID">
								<xsl:attribute name="schemeAgencyID">
									<xsl:value-of select="string(cbc:ID/@schemeAgencyID)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var94_ContractDocumentReference/cbc:ID/@schemeAgencyName">
								<xsl:attribute name="schemeAgencyName">
									<xsl:value-of select="string(cbc:ID/@schemeAgencyName)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var94_ContractDocumentReference/cbc:ID/@schemeVersionID">
								<xsl:attribute name="schemeVersionID">
									<xsl:value-of select="string(cbc:ID/@schemeVersionID)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var94_ContractDocumentReference/cbc:ID/@schemeDataURI">
								<xsl:attribute name="schemeDataURI">
									<xsl:value-of select="string(cbc:ID/@schemeDataURI)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var94_ContractDocumentReference/cbc:ID/@schemeURI">
								<xsl:attribute name="schemeURI">
									<xsl:value-of select="string(cbc:ID/@schemeURI)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:value-of select="string(cbc:ID)"/>
						</cbc:ID>
						<xsl:for-each select="cbc:IssueDate">
							<cbc:IssueDate>
								<xsl:value-of select="string(.)"/>
							</cbc:IssueDate>
						</xsl:for-each>
						<xsl:for-each select="cac:Attachment">
							<cac:Attachment>
								<xsl:for-each select="cbc:EmbeddedDocumentBinaryObject">
									<xsl:variable name="var100_EmbeddedDocumentBinaryObject" select="."/>
									<cbc:EmbeddedDocumentBinaryObject>
										<xsl:if test="$var100_EmbeddedDocumentBinaryObject/@format">
											<xsl:attribute name="format">
												<xsl:value-of select="string(@format)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:attribute name="mimeCode">
											<xsl:value-of select="string(@mimeCode)"/>
										</xsl:attribute>
										<xsl:if test="$var100_EmbeddedDocumentBinaryObject/@encodingCode">
											<xsl:attribute name="encodingCode">
												<xsl:value-of select="string(@encodingCode)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var100_EmbeddedDocumentBinaryObject/@characterSetCode">
											<xsl:attribute name="characterSetCode">
												<xsl:value-of select="string(@characterSetCode)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var100_EmbeddedDocumentBinaryObject/@uri">
											<xsl:attribute name="uri">
												<xsl:value-of select="string(@uri)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var100_EmbeddedDocumentBinaryObject/@filename">
											<xsl:attribute name="filename">
												<xsl:value-of select="string(@filename)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:EmbeddedDocumentBinaryObject>
								</xsl:for-each>
								<xsl:for-each select="cac:ExternalReference">
									<cac:ExternalReference>
										<xsl:for-each select="cbc:URI">
											<xsl:variable name="var104_URI" select="."/>
											<cbc:URI>
												<xsl:if test="$var104_URI/@schemeID">
													<xsl:attribute name="schemeID">
														<xsl:value-of select="string(@schemeID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var104_URI/@schemeName">
													<xsl:attribute name="schemeName">
														<xsl:value-of select="string(@schemeName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var104_URI/@schemeAgencyID">
													<xsl:attribute name="schemeAgencyID">
														<xsl:value-of select="string(@schemeAgencyID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var104_URI/@schemeAgencyName">
													<xsl:attribute name="schemeAgencyName">
														<xsl:value-of select="string(@schemeAgencyName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var104_URI/@schemeVersionID">
													<xsl:attribute name="schemeVersionID">
														<xsl:value-of select="string(@schemeVersionID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var104_URI/@schemeDataURI">
													<xsl:attribute name="schemeDataURI">
														<xsl:value-of select="string(@schemeDataURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var104_URI/@schemeURI">
													<xsl:attribute name="schemeURI">
														<xsl:value-of select="string(@schemeURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:URI>
										</xsl:for-each>
									</cac:ExternalReference>
								</xsl:for-each>
							</cac:Attachment>
						</xsl:for-each>
					</cac:ContractDocumentReference>
				</xsl:for-each>
				<cac:AdditionalDocumentReference>
					<xsl:for-each select="n3:OutgoingInvoice/n3:AttachedDocumentEnvelope/a:AttachedDocument">
						<cbc:ID>
							<xsl:value-of select="string(cbc:ID)"/>
						</cbc:ID>
					</xsl:for-each>
					<xsl:for-each select="n3:OutgoingInvoice/n3:AttachedDocumentEnvelope/a:AttachedDocument">
						<cac:Attachment>
							<xsl:for-each select="cac:Attachment/cbc:EmbeddedDocumentBinaryObject">
								<xsl:variable name="var110_EmbeddedDocumentBinaryObject" select="."/>
								<cbc:EmbeddedDocumentBinaryObject>
									<xsl:if test="$var110_EmbeddedDocumentBinaryObject/@format">
										<xsl:attribute name="format">
											<xsl:value-of select="string(@format)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:attribute name="mimeCode">
										<xsl:value-of select="string(@mimeCode)"/>
									</xsl:attribute>
									<xsl:if test="$var110_EmbeddedDocumentBinaryObject/@encodingCode">
										<xsl:attribute name="encodingCode">
											<xsl:value-of select="string(@encodingCode)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var110_EmbeddedDocumentBinaryObject/@characterSetCode">
										<xsl:attribute name="characterSetCode">
											<xsl:value-of select="string(@characterSetCode)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var110_EmbeddedDocumentBinaryObject/@uri">
										<xsl:attribute name="uri">
											<xsl:value-of select="string(@uri)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var110_EmbeddedDocumentBinaryObject/@filename">
										<xsl:attribute name="filename">
											<xsl:value-of select="string(@filename)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:value-of select="string(.)"/>
								</cbc:EmbeddedDocumentBinaryObject>
							</xsl:for-each>
							<xsl:for-each select="cac:Attachment/cac:ExternalReference">
								<cac:ExternalReference>
									<xsl:for-each select="cbc:URI">
										<xsl:variable name="var114_URI" select="."/>
										<cbc:URI>
											<xsl:if test="$var114_URI/@schemeID">
												<xsl:attribute name="schemeID">
													<xsl:value-of select="string(@schemeID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var114_URI/@schemeName">
												<xsl:attribute name="schemeName">
													<xsl:value-of select="string(@schemeName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var114_URI/@schemeAgencyID">
												<xsl:attribute name="schemeAgencyID">
													<xsl:value-of select="string(@schemeAgencyID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var114_URI/@schemeAgencyName">
												<xsl:attribute name="schemeAgencyName">
													<xsl:value-of select="string(@schemeAgencyName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var114_URI/@schemeVersionID">
												<xsl:attribute name="schemeVersionID">
													<xsl:value-of select="string(@schemeVersionID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var114_URI/@schemeDataURI">
												<xsl:attribute name="schemeDataURI">
													<xsl:value-of select="string(@schemeDataURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var114_URI/@schemeURI">
												<xsl:attribute name="schemeURI">
													<xsl:value-of select="string(@schemeURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:URI>
									</xsl:for-each>
								</cac:ExternalReference>
							</xsl:for-each>
						</cac:Attachment>
					</xsl:for-each>
				</cac:AdditionalDocumentReference>
				<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:Signature">
					<xsl:variable name="var116_Signature" select="."/>
					<cac:Signature>
						<cbc:ID>
							<xsl:if test="$var116_Signature/cbc:ID/@schemeID">
								<xsl:attribute name="schemeID">
									<xsl:value-of select="string(cbc:ID/@schemeID)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var116_Signature/cbc:ID/@schemeName">
								<xsl:attribute name="schemeName">
									<xsl:value-of select="string(cbc:ID/@schemeName)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var116_Signature/cbc:ID/@schemeAgencyID">
								<xsl:attribute name="schemeAgencyID">
									<xsl:value-of select="string(cbc:ID/@schemeAgencyID)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var116_Signature/cbc:ID/@schemeAgencyName">
								<xsl:attribute name="schemeAgencyName">
									<xsl:value-of select="string(cbc:ID/@schemeAgencyName)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var116_Signature/cbc:ID/@schemeVersionID">
								<xsl:attribute name="schemeVersionID">
									<xsl:value-of select="string(cbc:ID/@schemeVersionID)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var116_Signature/cbc:ID/@schemeDataURI">
								<xsl:attribute name="schemeDataURI">
									<xsl:value-of select="string(cbc:ID/@schemeDataURI)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var116_Signature/cbc:ID/@schemeURI">
								<xsl:attribute name="schemeURI">
									<xsl:value-of select="string(cbc:ID/@schemeURI)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:value-of select="string(cbc:ID)"/>
						</cbc:ID>
						<xsl:for-each select="cbc:Note">
							<xsl:variable name="var118_Note" select="."/>
							<cbc:Note>
								<xsl:if test="$var118_Note/@languageID">
									<xsl:attribute name="languageID">
										<xsl:value-of select="string(@languageID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:value-of select="string(.)"/>
							</cbc:Note>
						</xsl:for-each>
						<xsl:for-each select="cbc:ValidationDate">
							<cbc:ValidationDate>
								<xsl:value-of select="string(.)"/>
							</cbc:ValidationDate>
						</xsl:for-each>
						<xsl:for-each select="cbc:ValidationTime">
							<cbc:ValidationTime>
								<xsl:value-of select="string(.)"/>
							</cbc:ValidationTime>
						</xsl:for-each>
						<xsl:for-each select="cbc:ValidatorID">
							<xsl:variable name="var124_ValidatorID" select="."/>
							<cbc:ValidatorID>
								<xsl:if test="$var124_ValidatorID/@schemeID">
									<xsl:attribute name="schemeID">
										<xsl:value-of select="string(@schemeID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var124_ValidatorID/@schemeName">
									<xsl:attribute name="schemeName">
										<xsl:value-of select="string(@schemeName)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var124_ValidatorID/@schemeAgencyID">
									<xsl:attribute name="schemeAgencyID">
										<xsl:value-of select="string(@schemeAgencyID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var124_ValidatorID/@schemeAgencyName">
									<xsl:attribute name="schemeAgencyName">
										<xsl:value-of select="string(@schemeAgencyName)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var124_ValidatorID/@schemeVersionID">
									<xsl:attribute name="schemeVersionID">
										<xsl:value-of select="string(@schemeVersionID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var124_ValidatorID/@schemeDataURI">
									<xsl:attribute name="schemeDataURI">
										<xsl:value-of select="string(@schemeDataURI)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var124_ValidatorID/@schemeURI">
									<xsl:attribute name="schemeURI">
										<xsl:value-of select="string(@schemeURI)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:value-of select="string(.)"/>
							</cbc:ValidatorID>
						</xsl:for-each>
						<xsl:for-each select="cbc:CanonicalizationMethod">
							<xsl:variable name="var126_CanonicalizationMethod" select="."/>
							<cbc:CanonicalizationMethod>
								<xsl:if test="$var126_CanonicalizationMethod/@languageID">
									<xsl:attribute name="languageID">
										<xsl:value-of select="string(@languageID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:value-of select="string(.)"/>
							</cbc:CanonicalizationMethod>
						</xsl:for-each>
						<xsl:for-each select="cbc:SignatureMethod">
							<xsl:variable name="var128_SignatureMethod" select="."/>
							<cbc:SignatureMethod>
								<xsl:if test="$var128_SignatureMethod/@languageID">
									<xsl:attribute name="languageID">
										<xsl:value-of select="string(@languageID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:value-of select="string(.)"/>
							</cbc:SignatureMethod>
						</xsl:for-each>
						<cac:SignatoryParty>
							<xsl:for-each select="cac:SignatoryParty/cbc:WebsiteURI">
								<xsl:variable name="var130_WebsiteURI" select="."/>
								<cbc:WebsiteURI>
									<xsl:if test="$var130_WebsiteURI/@schemeID">
										<xsl:attribute name="schemeID">
											<xsl:value-of select="string(@schemeID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var130_WebsiteURI/@schemeName">
										<xsl:attribute name="schemeName">
											<xsl:value-of select="string(@schemeName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var130_WebsiteURI/@schemeAgencyID">
										<xsl:attribute name="schemeAgencyID">
											<xsl:value-of select="string(@schemeAgencyID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var130_WebsiteURI/@schemeAgencyName">
										<xsl:attribute name="schemeAgencyName">
											<xsl:value-of select="string(@schemeAgencyName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var130_WebsiteURI/@schemeVersionID">
										<xsl:attribute name="schemeVersionID">
											<xsl:value-of select="string(@schemeVersionID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var130_WebsiteURI/@schemeDataURI">
										<xsl:attribute name="schemeDataURI">
											<xsl:value-of select="string(@schemeDataURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var130_WebsiteURI/@schemeURI">
										<xsl:attribute name="schemeURI">
											<xsl:value-of select="string(@schemeURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:value-of select="string(.)"/>
								</cbc:WebsiteURI>
							</xsl:for-each>
							<xsl:for-each select="cac:SignatoryParty/cbc:LogoReferenceID">
								<xsl:variable name="var132_LogoReferenceID" select="."/>
								<cbc:LogoReferenceID>
									<xsl:if test="$var132_LogoReferenceID/@schemeID">
										<xsl:attribute name="schemeID">
											<xsl:value-of select="string(@schemeID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var132_LogoReferenceID/@schemeName">
										<xsl:attribute name="schemeName">
											<xsl:value-of select="string(@schemeName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var132_LogoReferenceID/@schemeAgencyID">
										<xsl:attribute name="schemeAgencyID">
											<xsl:value-of select="string(@schemeAgencyID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var132_LogoReferenceID/@schemeAgencyName">
										<xsl:attribute name="schemeAgencyName">
											<xsl:value-of select="string(@schemeAgencyName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var132_LogoReferenceID/@schemeVersionID">
										<xsl:attribute name="schemeVersionID">
											<xsl:value-of select="string(@schemeVersionID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var132_LogoReferenceID/@schemeDataURI">
										<xsl:attribute name="schemeDataURI">
											<xsl:value-of select="string(@schemeDataURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var132_LogoReferenceID/@schemeURI">
										<xsl:attribute name="schemeURI">
											<xsl:value-of select="string(@schemeURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:value-of select="string(.)"/>
								</cbc:LogoReferenceID>
							</xsl:for-each>
							<xsl:for-each select="cac:SignatoryParty/cbc:EndpointID">
								<xsl:variable name="var134_EndpointID" select="."/>
								<cbc:EndpointID>
									<xsl:if test="$var134_EndpointID/@schemeID">
										<xsl:attribute name="schemeID">
											<xsl:value-of select="string(@schemeID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var134_EndpointID/@schemeName">
										<xsl:attribute name="schemeName">
											<xsl:value-of select="string(@schemeName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var134_EndpointID/@schemeAgencyID">
										<xsl:attribute name="schemeAgencyID">
											<xsl:value-of select="string(@schemeAgencyID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var134_EndpointID/@schemeAgencyName">
										<xsl:attribute name="schemeAgencyName">
											<xsl:value-of select="string(@schemeAgencyName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var134_EndpointID/@schemeVersionID">
										<xsl:attribute name="schemeVersionID">
											<xsl:value-of select="string(@schemeVersionID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var134_EndpointID/@schemeDataURI">
										<xsl:attribute name="schemeDataURI">
											<xsl:value-of select="string(@schemeDataURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var134_EndpointID/@schemeURI">
										<xsl:attribute name="schemeURI">
											<xsl:value-of select="string(@schemeURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:value-of select="string(.)"/>
								</cbc:EndpointID>
							</xsl:for-each>
							<xsl:for-each select="cac:SignatoryParty/cac:PartyIdentification">
								<xsl:variable name="var136_PartyIdentification" select="."/>
								<cac:PartyIdentification>
									<cbc:ID>
										<xsl:if test="$var136_PartyIdentification/cbc:ID/@schemeID">
											<xsl:attribute name="schemeID">
												<xsl:value-of select="string(cbc:ID/@schemeID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var136_PartyIdentification/cbc:ID/@schemeName">
											<xsl:attribute name="schemeName">
												<xsl:value-of select="string(cbc:ID/@schemeName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var136_PartyIdentification/cbc:ID/@schemeAgencyID">
											<xsl:attribute name="schemeAgencyID">
												<xsl:value-of select="string(cbc:ID/@schemeAgencyID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var136_PartyIdentification/cbc:ID/@schemeAgencyName">
											<xsl:attribute name="schemeAgencyName">
												<xsl:value-of select="string(cbc:ID/@schemeAgencyName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var136_PartyIdentification/cbc:ID/@schemeVersionID">
											<xsl:attribute name="schemeVersionID">
												<xsl:value-of select="string(cbc:ID/@schemeVersionID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var136_PartyIdentification/cbc:ID/@schemeDataURI">
											<xsl:attribute name="schemeDataURI">
												<xsl:value-of select="string(cbc:ID/@schemeDataURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var136_PartyIdentification/cbc:ID/@schemeURI">
											<xsl:attribute name="schemeURI">
												<xsl:value-of select="string(cbc:ID/@schemeURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(cbc:ID)"/>
									</cbc:ID>
								</cac:PartyIdentification>
							</xsl:for-each>
							<xsl:for-each select="cac:SignatoryParty/cac:PartyName">
								<xsl:variable name="var138_PartyName" select="."/>
								<cac:PartyName>
									<cbc:Name>
										<xsl:if test="$var138_PartyName/cbc:Name/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(cbc:Name/@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(cbc:Name)"/>
									</cbc:Name>
								</cac:PartyName>
							</xsl:for-each>
							<xsl:for-each select="cac:SignatoryParty/cac:PostalAddress">
								<cac:PostalAddress>
									<xsl:for-each select="cbc:StreetName">
										<xsl:variable name="var142_StreetName" select="."/>
										<cbc:StreetName>
											<xsl:if test="$var142_StreetName/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:StreetName>
									</xsl:for-each>
									<xsl:for-each select="cbc:AdditionalStreetName">
										<xsl:variable name="var144_AdditionalStreetName" select="."/>
										<cbc:AdditionalStreetName>
											<xsl:if test="$var144_AdditionalStreetName/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:AdditionalStreetName>
									</xsl:for-each>
									<xsl:for-each select="cbc:CityName">
										<xsl:variable name="var146_CityName" select="."/>
										<cbc:CityName>
											<xsl:if test="$var146_CityName/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:CityName>
									</xsl:for-each>
									<xsl:for-each select="cbc:PostalZone">
										<xsl:variable name="var148_PostalZone" select="."/>
										<cbc:PostalZone>
											<xsl:if test="$var148_PostalZone/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:PostalZone>
									</xsl:for-each>
									<xsl:for-each select="cbc:CountrySubentity">
										<xsl:variable name="var150_CountrySubentity" select="."/>
										<cbc:CountrySubentity>
											<xsl:if test="$var150_CountrySubentity/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:CountrySubentity>
									</xsl:for-each>
									<xsl:for-each select="cac:AddressLine">
										<xsl:variable name="var152_AddressLine" select="."/>
										<cac:AddressLine>
											<cbc:Line>
												<xsl:if test="$var152_AddressLine/cbc:Line/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(cbc:Line/@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(cbc:Line)"/>
											</cbc:Line>
										</cac:AddressLine>
									</xsl:for-each>
									<xsl:for-each select="cac:Country">
										<cac:Country>
											<xsl:for-each select="cbc:IdentificationCode">
												<xsl:variable name="var156_IdentificationCode" select="."/>
												<cbc:IdentificationCode>
													<xsl:if test="$var156_IdentificationCode/@listID">
														<xsl:attribute name="listID">
															<xsl:value-of select="string(@listID)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:if test="$var156_IdentificationCode/@listAgencyID">
														<xsl:attribute name="listAgencyID">
															<xsl:value-of select="string(@listAgencyID)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:if test="$var156_IdentificationCode/@listAgencyName">
														<xsl:attribute name="listAgencyName">
															<xsl:value-of select="string(@listAgencyName)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:if test="$var156_IdentificationCode/@listName">
														<xsl:attribute name="listName">
															<xsl:value-of select="string(@listName)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:if test="$var156_IdentificationCode/@listVersionID">
														<xsl:attribute name="listVersionID">
															<xsl:value-of select="string(@listVersionID)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:if test="$var156_IdentificationCode/@name">
														<xsl:attribute name="name">
															<xsl:value-of select="string(@name)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:if test="$var156_IdentificationCode/@languageID">
														<xsl:attribute name="languageID">
															<xsl:value-of select="string(@languageID)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:if test="$var156_IdentificationCode/@listURI">
														<xsl:attribute name="listURI">
															<xsl:value-of select="string(@listURI)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:if test="$var156_IdentificationCode/@listSchemeURI">
														<xsl:attribute name="listSchemeURI">
															<xsl:value-of select="string(@listSchemeURI)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:value-of select="string(.)"/>
												</cbc:IdentificationCode>
											</xsl:for-each>
										</cac:Country>
									</xsl:for-each>
								</cac:PostalAddress>
							</xsl:for-each>
							<xsl:for-each select="cac:SignatoryParty/cac:PartyTaxScheme">
								<cac:PartyTaxScheme>
									<xsl:for-each select="cbc:CompanyID">
										<xsl:variable name="var160_CompanyID" select="."/>
										<cbc:CompanyID>
											<xsl:if test="$var160_CompanyID/@schemeID">
												<xsl:attribute name="schemeID">
													<xsl:value-of select="string(@schemeID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var160_CompanyID/@schemeName">
												<xsl:attribute name="schemeName">
													<xsl:value-of select="string(@schemeName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var160_CompanyID/@schemeAgencyID">
												<xsl:attribute name="schemeAgencyID">
													<xsl:value-of select="string(@schemeAgencyID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var160_CompanyID/@schemeAgencyName">
												<xsl:attribute name="schemeAgencyName">
													<xsl:value-of select="string(@schemeAgencyName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var160_CompanyID/@schemeVersionID">
												<xsl:attribute name="schemeVersionID">
													<xsl:value-of select="string(@schemeVersionID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var160_CompanyID/@schemeDataURI">
												<xsl:attribute name="schemeDataURI">
													<xsl:value-of select="string(@schemeDataURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var160_CompanyID/@schemeURI">
												<xsl:attribute name="schemeURI">
													<xsl:value-of select="string(@schemeURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:CompanyID>
									</xsl:for-each>
									<cac:TaxScheme>
										<xsl:for-each select="cac:TaxScheme/cbc:ID">
											<xsl:variable name="var162_ID" select="."/>
											<cbc:ID>
												<xsl:if test="$var162_ID/@schemeID">
													<xsl:attribute name="schemeID">
														<xsl:value-of select="string(@schemeID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var162_ID/@schemeName">
													<xsl:attribute name="schemeName">
														<xsl:value-of select="string(@schemeName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var162_ID/@schemeAgencyID">
													<xsl:attribute name="schemeAgencyID">
														<xsl:value-of select="string(@schemeAgencyID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var162_ID/@schemeAgencyName">
													<xsl:attribute name="schemeAgencyName">
														<xsl:value-of select="string(@schemeAgencyName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var162_ID/@schemeVersionID">
													<xsl:attribute name="schemeVersionID">
														<xsl:value-of select="string(@schemeVersionID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var162_ID/@schemeDataURI">
													<xsl:attribute name="schemeDataURI">
														<xsl:value-of select="string(@schemeDataURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var162_ID/@schemeURI">
													<xsl:attribute name="schemeURI">
														<xsl:value-of select="string(@schemeURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:ID>
										</xsl:for-each>
									</cac:TaxScheme>
								</cac:PartyTaxScheme>
							</xsl:for-each>
							<xsl:for-each select="cac:SignatoryParty/cac:PartyLegalEntity">
								<cac:PartyLegalEntity>
									<xsl:for-each select="cbc:RegistrationName">
										<xsl:variable name="var166_RegistrationName" select="."/>
										<cbc:RegistrationName>
											<xsl:if test="$var166_RegistrationName/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:RegistrationName>
									</xsl:for-each>
									<xsl:for-each select="cbc:CompanyID">
										<xsl:variable name="var168_CompanyID" select="."/>
										<cbc:CompanyID>
											<xsl:if test="$var168_CompanyID/@schemeID">
												<xsl:attribute name="schemeID">
													<xsl:value-of select="string(@schemeID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var168_CompanyID/@schemeName">
												<xsl:attribute name="schemeName">
													<xsl:value-of select="string(@schemeName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var168_CompanyID/@schemeAgencyID">
												<xsl:attribute name="schemeAgencyID">
													<xsl:value-of select="string(@schemeAgencyID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var168_CompanyID/@schemeAgencyName">
												<xsl:attribute name="schemeAgencyName">
													<xsl:value-of select="string(@schemeAgencyName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var168_CompanyID/@schemeVersionID">
												<xsl:attribute name="schemeVersionID">
													<xsl:value-of select="string(@schemeVersionID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var168_CompanyID/@schemeDataURI">
												<xsl:attribute name="schemeDataURI">
													<xsl:value-of select="string(@schemeDataURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var168_CompanyID/@schemeURI">
												<xsl:attribute name="schemeURI">
													<xsl:value-of select="string(@schemeURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:CompanyID>
									</xsl:for-each>
								</cac:PartyLegalEntity>
							</xsl:for-each>
							<xsl:for-each select="cac:SignatoryParty/cac:Contact">
								<cac:Contact>
									<xsl:for-each select="cbc:Name">
										<xsl:variable name="var172_Name" select="."/>
										<cbc:Name>
											<xsl:if test="$var172_Name/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:Name>
									</xsl:for-each>
									<xsl:for-each select="cbc:Telephone">
										<xsl:variable name="var174_Telephone" select="."/>
										<cbc:Telephone>
											<xsl:if test="$var174_Telephone/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:Telephone>
									</xsl:for-each>
									<xsl:for-each select="cbc:ElectronicMail">
										<xsl:variable name="var176_ElectronicMail" select="."/>
										<cbc:ElectronicMail>
											<xsl:if test="$var176_ElectronicMail/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:ElectronicMail>
									</xsl:for-each>
								</cac:Contact>
							</xsl:for-each>
						</cac:SignatoryParty>
						<xsl:for-each select="cac:DigitalSignatureAttachment">
							<cac:DigitalSignatureAttachment>
								<xsl:for-each select="cbc:EmbeddedDocumentBinaryObject">
									<xsl:variable name="var180_EmbeddedDocumentBinaryObject" select="."/>
									<cbc:EmbeddedDocumentBinaryObject>
										<xsl:if test="$var180_EmbeddedDocumentBinaryObject/@format">
											<xsl:attribute name="format">
												<xsl:value-of select="string(@format)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:attribute name="mimeCode">
											<xsl:value-of select="string(@mimeCode)"/>
										</xsl:attribute>
										<xsl:if test="$var180_EmbeddedDocumentBinaryObject/@encodingCode">
											<xsl:attribute name="encodingCode">
												<xsl:value-of select="string(@encodingCode)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var180_EmbeddedDocumentBinaryObject/@characterSetCode">
											<xsl:attribute name="characterSetCode">
												<xsl:value-of select="string(@characterSetCode)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var180_EmbeddedDocumentBinaryObject/@uri">
											<xsl:attribute name="uri">
												<xsl:value-of select="string(@uri)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var180_EmbeddedDocumentBinaryObject/@filename">
											<xsl:attribute name="filename">
												<xsl:value-of select="string(@filename)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:EmbeddedDocumentBinaryObject>
								</xsl:for-each>
								<xsl:for-each select="cac:ExternalReference">
									<cac:ExternalReference>
										<xsl:for-each select="cbc:URI">
											<xsl:variable name="var184_URI" select="."/>
											<cbc:URI>
												<xsl:if test="$var184_URI/@schemeID">
													<xsl:attribute name="schemeID">
														<xsl:value-of select="string(@schemeID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var184_URI/@schemeName">
													<xsl:attribute name="schemeName">
														<xsl:value-of select="string(@schemeName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var184_URI/@schemeAgencyID">
													<xsl:attribute name="schemeAgencyID">
														<xsl:value-of select="string(@schemeAgencyID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var184_URI/@schemeAgencyName">
													<xsl:attribute name="schemeAgencyName">
														<xsl:value-of select="string(@schemeAgencyName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var184_URI/@schemeVersionID">
													<xsl:attribute name="schemeVersionID">
														<xsl:value-of select="string(@schemeVersionID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var184_URI/@schemeDataURI">
													<xsl:attribute name="schemeDataURI">
														<xsl:value-of select="string(@schemeDataURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var184_URI/@schemeURI">
													<xsl:attribute name="schemeURI">
														<xsl:value-of select="string(@schemeURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:URI>
										</xsl:for-each>
									</cac:ExternalReference>
								</xsl:for-each>
							</cac:DigitalSignatureAttachment>
						</xsl:for-each>
						<xsl:for-each select="cac:OriginalDocumentReference">
							<xsl:variable name="var186_OriginalDocumentReference" select="."/>
							<cac:OriginalDocumentReference>
								<cbc:ID>
									<xsl:if test="$var186_OriginalDocumentReference/cbc:ID/@schemeID">
										<xsl:attribute name="schemeID">
											<xsl:value-of select="string(cbc:ID/@schemeID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var186_OriginalDocumentReference/cbc:ID/@schemeName">
										<xsl:attribute name="schemeName">
											<xsl:value-of select="string(cbc:ID/@schemeName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var186_OriginalDocumentReference/cbc:ID/@schemeAgencyID">
										<xsl:attribute name="schemeAgencyID">
											<xsl:value-of select="string(cbc:ID/@schemeAgencyID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var186_OriginalDocumentReference/cbc:ID/@schemeAgencyName">
										<xsl:attribute name="schemeAgencyName">
											<xsl:value-of select="string(cbc:ID/@schemeAgencyName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var186_OriginalDocumentReference/cbc:ID/@schemeVersionID">
										<xsl:attribute name="schemeVersionID">
											<xsl:value-of select="string(cbc:ID/@schemeVersionID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var186_OriginalDocumentReference/cbc:ID/@schemeDataURI">
										<xsl:attribute name="schemeDataURI">
											<xsl:value-of select="string(cbc:ID/@schemeDataURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var186_OriginalDocumentReference/cbc:ID/@schemeURI">
										<xsl:attribute name="schemeURI">
											<xsl:value-of select="string(cbc:ID/@schemeURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:value-of select="string(cbc:ID)"/>
								</cbc:ID>
								<xsl:for-each select="cbc:IssueDate">
									<cbc:IssueDate>
										<xsl:value-of select="string(.)"/>
									</cbc:IssueDate>
								</xsl:for-each>
								<xsl:for-each select="cac:Attachment">
									<cac:Attachment>
										<xsl:for-each select="cbc:EmbeddedDocumentBinaryObject">
											<xsl:variable name="var192_EmbeddedDocumentBinaryObject" select="."/>
											<cbc:EmbeddedDocumentBinaryObject>
												<xsl:if test="$var192_EmbeddedDocumentBinaryObject/@format">
													<xsl:attribute name="format">
														<xsl:value-of select="string(@format)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:attribute name="mimeCode">
													<xsl:value-of select="string(@mimeCode)"/>
												</xsl:attribute>
												<xsl:if test="$var192_EmbeddedDocumentBinaryObject/@encodingCode">
													<xsl:attribute name="encodingCode">
														<xsl:value-of select="string(@encodingCode)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var192_EmbeddedDocumentBinaryObject/@characterSetCode">
													<xsl:attribute name="characterSetCode">
														<xsl:value-of select="string(@characterSetCode)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var192_EmbeddedDocumentBinaryObject/@uri">
													<xsl:attribute name="uri">
														<xsl:value-of select="string(@uri)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var192_EmbeddedDocumentBinaryObject/@filename">
													<xsl:attribute name="filename">
														<xsl:value-of select="string(@filename)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:EmbeddedDocumentBinaryObject>
										</xsl:for-each>
										<xsl:for-each select="cac:ExternalReference">
											<cac:ExternalReference>
												<xsl:for-each select="cbc:URI">
													<xsl:variable name="var196_URI" select="."/>
													<cbc:URI>
														<xsl:if test="$var196_URI/@schemeID">
															<xsl:attribute name="schemeID">
																<xsl:value-of select="string(@schemeID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var196_URI/@schemeName">
															<xsl:attribute name="schemeName">
																<xsl:value-of select="string(@schemeName)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var196_URI/@schemeAgencyID">
															<xsl:attribute name="schemeAgencyID">
																<xsl:value-of select="string(@schemeAgencyID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var196_URI/@schemeAgencyName">
															<xsl:attribute name="schemeAgencyName">
																<xsl:value-of select="string(@schemeAgencyName)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var196_URI/@schemeVersionID">
															<xsl:attribute name="schemeVersionID">
																<xsl:value-of select="string(@schemeVersionID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var196_URI/@schemeDataURI">
															<xsl:attribute name="schemeDataURI">
																<xsl:value-of select="string(@schemeDataURI)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var196_URI/@schemeURI">
															<xsl:attribute name="schemeURI">
																<xsl:value-of select="string(@schemeURI)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:value-of select="string(.)"/>
													</cbc:URI>
												</xsl:for-each>
											</cac:ExternalReference>
										</xsl:for-each>
									</cac:Attachment>
								</xsl:for-each>
							</cac:OriginalDocumentReference>
						</xsl:for-each>
					</cac:Signature>
				</xsl:for-each>
				<cac:AccountingSupplierParty>
					<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:AccountingSupplierParty/cac:Party">
						<xsl:variable name="var198_Party" select="."/>
						<cac:Party>
							<xsl:for-each select="cbc:WebsiteURI">
								<xsl:variable name="var200_WebsiteURI" select="."/>
								<cbc:WebsiteURI>
									<xsl:if test="$var200_WebsiteURI/@schemeID">
										<xsl:attribute name="schemeID">
											<xsl:value-of select="string(@schemeID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var200_WebsiteURI/@schemeName">
										<xsl:attribute name="schemeName">
											<xsl:value-of select="string(@schemeName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var200_WebsiteURI/@schemeAgencyID">
										<xsl:attribute name="schemeAgencyID">
											<xsl:value-of select="string(@schemeAgencyID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var200_WebsiteURI/@schemeAgencyName">
										<xsl:attribute name="schemeAgencyName">
											<xsl:value-of select="string(@schemeAgencyName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var200_WebsiteURI/@schemeVersionID">
										<xsl:attribute name="schemeVersionID">
											<xsl:value-of select="string(@schemeVersionID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var200_WebsiteURI/@schemeDataURI">
										<xsl:attribute name="schemeDataURI">
											<xsl:value-of select="string(@schemeDataURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var200_WebsiteURI/@schemeURI">
										<xsl:attribute name="schemeURI">
											<xsl:value-of select="string(@schemeURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:value-of select="string(.)"/>
								</cbc:WebsiteURI>
							</xsl:for-each>
							<xsl:for-each select="cbc:LogoReferenceID">
								<xsl:variable name="var202_LogoReferenceID" select="."/>
								<cbc:LogoReferenceID>
									<xsl:if test="$var202_LogoReferenceID/@schemeID">
										<xsl:attribute name="schemeID">
											<xsl:value-of select="string(@schemeID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var202_LogoReferenceID/@schemeName">
										<xsl:attribute name="schemeName">
											<xsl:value-of select="string(@schemeName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var202_LogoReferenceID/@schemeAgencyID">
										<xsl:attribute name="schemeAgencyID">
											<xsl:value-of select="string(@schemeAgencyID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var202_LogoReferenceID/@schemeAgencyName">
										<xsl:attribute name="schemeAgencyName">
											<xsl:value-of select="string(@schemeAgencyName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var202_LogoReferenceID/@schemeVersionID">
										<xsl:attribute name="schemeVersionID">
											<xsl:value-of select="string(@schemeVersionID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var202_LogoReferenceID/@schemeDataURI">
										<xsl:attribute name="schemeDataURI">
											<xsl:value-of select="string(@schemeDataURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var202_LogoReferenceID/@schemeURI">
										<xsl:attribute name="schemeURI">
											<xsl:value-of select="string(@schemeURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:value-of select="string(.)"/>
								</cbc:LogoReferenceID>
							</xsl:for-each>
							<xsl:for-each select="cac:PartyLegalEntity/cbc:CompanyID">
								<cbc:EndpointID>
									<xsl:attribute name="schemeID">
										<xsl:value-of select="'9934'"/>
									</xsl:attribute>
									<xsl:value-of select="string(.)"/>
								</cbc:EndpointID>
							</xsl:for-each>
							<xsl:for-each select="cac:PartyIdentification">
								<cac:PartyIdentification>
									<xsl:for-each select="$var198_Party/cac:PartyLegalEntity/cbc:CompanyID">
										<cbc:ID>
											<xsl:value-of select="concat('9934:', string(.))"/>
										</cbc:ID>
									</xsl:for-each>
								</cac:PartyIdentification>
							</xsl:for-each>
							<xsl:for-each select="cac:PartyName">
								<xsl:variable name="var210_PartyName" select="."/>
								<cac:PartyName>
									<cbc:Name>
										<xsl:if test="$var210_PartyName/cbc:Name/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(cbc:Name/@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(cbc:Name)"/>
									</cbc:Name>
								</cac:PartyName>
							</xsl:for-each>
							<xsl:for-each select="cac:PostalAddress">
								<cac:PostalAddress>
									<xsl:for-each select="cbc:StreetName">
										<xsl:variable name="var214_StreetName" select="."/>
										<cbc:StreetName>
											<xsl:if test="$var214_StreetName/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:StreetName>
									</xsl:for-each>
									<xsl:for-each select="cbc:AdditionalStreetName">
										<xsl:variable name="var216_AdditionalStreetName" select="."/>
										<cbc:AdditionalStreetName>
											<xsl:if test="$var216_AdditionalStreetName/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:AdditionalStreetName>
									</xsl:for-each>
									<xsl:for-each select="cbc:CityName">
										<xsl:variable name="var218_CityName" select="."/>
										<cbc:CityName>
											<xsl:if test="$var218_CityName/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:CityName>
									</xsl:for-each>
									<xsl:for-each select="cbc:PostalZone">
										<xsl:variable name="var220_PostalZone" select="."/>
										<cbc:PostalZone>
											<xsl:if test="$var220_PostalZone/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:PostalZone>
									</xsl:for-each>
									<xsl:for-each select="cbc:CountrySubentity">
										<xsl:variable name="var222_CountrySubentity" select="."/>
										<cbc:CountrySubentity>
											<xsl:if test="$var222_CountrySubentity/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:CountrySubentity>
									</xsl:for-each>
									<xsl:for-each select="cac:AddressLine">
										<xsl:variable name="var224_AddressLine" select="."/>
										<cac:AddressLine>
											<cbc:Line>
												<xsl:if test="$var224_AddressLine/cbc:Line/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(cbc:Line/@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(cbc:Line)"/>
											</cbc:Line>
										</cac:AddressLine>
									</xsl:for-each>
									<xsl:for-each select="cac:Country">
										<cac:Country>
											<xsl:for-each select="cbc:IdentificationCode">
												<cbc:IdentificationCode>
													<xsl:value-of select="string(.)"/>
												</cbc:IdentificationCode>
											</xsl:for-each>
										</cac:Country>
									</xsl:for-each>
								</cac:PostalAddress>
							</xsl:for-each>
							<xsl:for-each select="cac:PartyTaxScheme">
								<cac:PartyTaxScheme>
									<xsl:for-each select="$var198_Party/cac:PartyLegalEntity/cbc:CompanyID">
										<cbc:CompanyID>
											<xsl:value-of select="concat('HR', string(.))"/>
										</cbc:CompanyID>
									</xsl:for-each>
									<cac:TaxScheme>
										<cbc:ID>
											<xsl:for-each select="cac:TaxScheme/cbc:ID">
												<xsl:variable name="var234_ID" select="."/>
												<xsl:if test="$var234_ID/@schemeID">
													<xsl:attribute name="schemeID">
														<xsl:value-of select="string(@schemeID)"/>
													</xsl:attribute>
												</xsl:if>
											</xsl:for-each>
											<xsl:for-each select="cac:TaxScheme/cbc:ID">
												<xsl:variable name="var236_ID" select="."/>
												<xsl:if test="$var236_ID/@schemeName">
													<xsl:attribute name="schemeName">
														<xsl:value-of select="string(@schemeName)"/>
													</xsl:attribute>
												</xsl:if>
											</xsl:for-each>
											<xsl:for-each select="cac:TaxScheme/cbc:ID">
												<xsl:variable name="var238_ID" select="."/>
												<xsl:if test="$var238_ID/@schemeAgencyID">
													<xsl:attribute name="schemeAgencyID">
														<xsl:value-of select="string(@schemeAgencyID)"/>
													</xsl:attribute>
												</xsl:if>
											</xsl:for-each>
											<xsl:for-each select="cac:TaxScheme/cbc:ID">
												<xsl:variable name="var240_ID" select="."/>
												<xsl:if test="$var240_ID/@schemeAgencyName">
													<xsl:attribute name="schemeAgencyName">
														<xsl:value-of select="string(@schemeAgencyName)"/>
													</xsl:attribute>
												</xsl:if>
											</xsl:for-each>
											<xsl:for-each select="cac:TaxScheme/cbc:ID">
												<xsl:variable name="var242_ID" select="."/>
												<xsl:if test="$var242_ID/@schemeVersionID">
													<xsl:attribute name="schemeVersionID">
														<xsl:value-of select="string(@schemeVersionID)"/>
													</xsl:attribute>
												</xsl:if>
											</xsl:for-each>
											<xsl:for-each select="cac:TaxScheme/cbc:ID">
												<xsl:variable name="var244_ID" select="."/>
												<xsl:if test="$var244_ID/@schemeDataURI">
													<xsl:attribute name="schemeDataURI">
														<xsl:value-of select="string(@schemeDataURI)"/>
													</xsl:attribute>
												</xsl:if>
											</xsl:for-each>
											<xsl:for-each select="cac:TaxScheme/cbc:ID">
												<xsl:variable name="var246_ID" select="."/>
												<xsl:if test="$var246_ID/@schemeURI">
													<xsl:attribute name="schemeURI">
														<xsl:value-of select="string(@schemeURI)"/>
													</xsl:attribute>
												</xsl:if>
											</xsl:for-each>
											<xsl:value-of select="'VAT'"/>
										</cbc:ID>
									</cac:TaxScheme>
								</cac:PartyTaxScheme>
							</xsl:for-each>
							<xsl:for-each select="cac:PartyLegalEntity">
								<cac:PartyLegalEntity>
									<xsl:for-each select="cbc:RegistrationName">
										<xsl:variable name="var250_RegistrationName" select="."/>
										<cbc:RegistrationName>
											<xsl:if test="$var250_RegistrationName/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:RegistrationName>
									</xsl:for-each>
									<xsl:for-each select="cbc:CompanyID">
										<xsl:variable name="var252_CompanyID" select="."/>
										<cbc:CompanyID>
											<xsl:if test="$var252_CompanyID/@schemeID">
												<xsl:attribute name="schemeID">
													<xsl:value-of select="string(@schemeID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var252_CompanyID/@schemeName">
												<xsl:attribute name="schemeName">
													<xsl:value-of select="string(@schemeName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var252_CompanyID/@schemeAgencyID">
												<xsl:attribute name="schemeAgencyID">
													<xsl:value-of select="string(@schemeAgencyID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var252_CompanyID/@schemeAgencyName">
												<xsl:attribute name="schemeAgencyName">
													<xsl:value-of select="string(@schemeAgencyName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var252_CompanyID/@schemeVersionID">
												<xsl:attribute name="schemeVersionID">
													<xsl:value-of select="string(@schemeVersionID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var252_CompanyID/@schemeDataURI">
												<xsl:attribute name="schemeDataURI">
													<xsl:value-of select="string(@schemeDataURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var252_CompanyID/@schemeURI">
												<xsl:attribute name="schemeURI">
													<xsl:value-of select="string(@schemeURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:CompanyID>
									</xsl:for-each>
								</cac:PartyLegalEntity>
							</xsl:for-each>
							<xsl:for-each select="cac:Contact">
								<cac:Contact>
									<xsl:for-each select="cbc:Name">
										<xsl:variable name="var256_Name" select="."/>
										<cbc:Name>
											<xsl:if test="$var256_Name/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:Name>
									</xsl:for-each>
									<xsl:for-each select="cbc:Telephone">
										<xsl:variable name="var258_Telephone" select="."/>
										<cbc:Telephone>
											<xsl:if test="$var258_Telephone/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:Telephone>
									</xsl:for-each>
									<xsl:for-each select="cbc:ElectronicMail">
										<xsl:variable name="var260_ElectronicMail" select="."/>
										<cbc:ElectronicMail>
											<xsl:if test="$var260_ElectronicMail/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:ElectronicMail>
									</xsl:for-each>
								</cac:Contact>
							</xsl:for-each>
						</cac:Party>
					</xsl:for-each>
				</cac:AccountingSupplierParty>
				<cac:AccountingCustomerParty>
					<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:AccountingCustomerParty/cac:Party">
						<xsl:variable name="var262_Party" select="."/>
						<cac:Party>
							<xsl:for-each select="cbc:WebsiteURI">
								<xsl:variable name="var264_WebsiteURI" select="."/>
								<cbc:WebsiteURI>
									<xsl:if test="$var264_WebsiteURI/@schemeID">
										<xsl:attribute name="schemeID">
											<xsl:value-of select="string(@schemeID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var264_WebsiteURI/@schemeName">
										<xsl:attribute name="schemeName">
											<xsl:value-of select="string(@schemeName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var264_WebsiteURI/@schemeAgencyID">
										<xsl:attribute name="schemeAgencyID">
											<xsl:value-of select="string(@schemeAgencyID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var264_WebsiteURI/@schemeAgencyName">
										<xsl:attribute name="schemeAgencyName">
											<xsl:value-of select="string(@schemeAgencyName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var264_WebsiteURI/@schemeVersionID">
										<xsl:attribute name="schemeVersionID">
											<xsl:value-of select="string(@schemeVersionID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var264_WebsiteURI/@schemeDataURI">
										<xsl:attribute name="schemeDataURI">
											<xsl:value-of select="string(@schemeDataURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var264_WebsiteURI/@schemeURI">
										<xsl:attribute name="schemeURI">
											<xsl:value-of select="string(@schemeURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:value-of select="string(.)"/>
								</cbc:WebsiteURI>
							</xsl:for-each>
							<xsl:for-each select="cbc:LogoReferenceID">
								<xsl:variable name="var266_LogoReferenceID" select="."/>
								<cbc:LogoReferenceID>
									<xsl:if test="$var266_LogoReferenceID/@schemeID">
										<xsl:attribute name="schemeID">
											<xsl:value-of select="string(@schemeID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var266_LogoReferenceID/@schemeName">
										<xsl:attribute name="schemeName">
											<xsl:value-of select="string(@schemeName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var266_LogoReferenceID/@schemeAgencyID">
										<xsl:attribute name="schemeAgencyID">
											<xsl:value-of select="string(@schemeAgencyID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var266_LogoReferenceID/@schemeAgencyName">
										<xsl:attribute name="schemeAgencyName">
											<xsl:value-of select="string(@schemeAgencyName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var266_LogoReferenceID/@schemeVersionID">
										<xsl:attribute name="schemeVersionID">
											<xsl:value-of select="string(@schemeVersionID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var266_LogoReferenceID/@schemeDataURI">
										<xsl:attribute name="schemeDataURI">
											<xsl:value-of select="string(@schemeDataURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var266_LogoReferenceID/@schemeURI">
										<xsl:attribute name="schemeURI">
											<xsl:value-of select="string(@schemeURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:value-of select="string(.)"/>
								</cbc:LogoReferenceID>
							</xsl:for-each>
							<xsl:for-each select="cac:PartyLegalEntity/cbc:CompanyID">
								<cbc:EndpointID>
									<xsl:attribute name="schemeID">
										<xsl:value-of select="'9934'"/>
									</xsl:attribute>
									<xsl:value-of select="string(.)"/>
								</cbc:EndpointID>
							</xsl:for-each>
							<cac:PartyIdentification>
								<xsl:for-each select="cac:PartyLegalEntity/cbc:CompanyID">
									<cbc:ID>
										<xsl:for-each select="$var262_Party/cac:PartyIdentification">
											<xsl:variable name="var272_PartyIdentification" select="."/>
											<xsl:if test="$var272_PartyIdentification/cbc:ID/@schemeID">
												<xsl:attribute name="schemeID">
													<xsl:value-of select="string(cbc:ID/@schemeID)"/>
												</xsl:attribute>
											</xsl:if>
										</xsl:for-each>
										<xsl:for-each select="$var262_Party/cac:PartyIdentification">
											<xsl:variable name="var274_PartyIdentification" select="."/>
											<xsl:if test="$var274_PartyIdentification/cbc:ID/@schemeName">
												<xsl:attribute name="schemeName">
													<xsl:value-of select="string(cbc:ID/@schemeName)"/>
												</xsl:attribute>
											</xsl:if>
										</xsl:for-each>
										<xsl:for-each select="$var262_Party/cac:PartyIdentification">
											<xsl:variable name="var276_PartyIdentification" select="."/>
											<xsl:if test="$var276_PartyIdentification/cbc:ID/@schemeAgencyID">
												<xsl:attribute name="schemeAgencyID">
													<xsl:value-of select="string(cbc:ID/@schemeAgencyID)"/>
												</xsl:attribute>
											</xsl:if>
										</xsl:for-each>
										<xsl:for-each select="$var262_Party/cac:PartyIdentification">
											<xsl:variable name="var278_PartyIdentification" select="."/>
											<xsl:if test="$var278_PartyIdentification/cbc:ID/@schemeAgencyName">
												<xsl:attribute name="schemeAgencyName">
													<xsl:value-of select="string(cbc:ID/@schemeAgencyName)"/>
												</xsl:attribute>
											</xsl:if>
										</xsl:for-each>
										<xsl:for-each select="$var262_Party/cac:PartyIdentification">
											<xsl:variable name="var280_PartyIdentification" select="."/>
											<xsl:if test="$var280_PartyIdentification/cbc:ID/@schemeVersionID">
												<xsl:attribute name="schemeVersionID">
													<xsl:value-of select="string(cbc:ID/@schemeVersionID)"/>
												</xsl:attribute>
											</xsl:if>
										</xsl:for-each>
										<xsl:for-each select="$var262_Party/cac:PartyIdentification">
											<xsl:variable name="var282_PartyIdentification" select="."/>
											<xsl:if test="$var282_PartyIdentification/cbc:ID/@schemeDataURI">
												<xsl:attribute name="schemeDataURI">
													<xsl:value-of select="string(cbc:ID/@schemeDataURI)"/>
												</xsl:attribute>
											</xsl:if>
										</xsl:for-each>
										<xsl:for-each select="$var262_Party/cac:PartyIdentification">
											<xsl:variable name="var284_PartyIdentification" select="."/>
											<xsl:if test="$var284_PartyIdentification/cbc:ID/@schemeURI">
												<xsl:attribute name="schemeURI">
													<xsl:value-of select="string(cbc:ID/@schemeURI)"/>
												</xsl:attribute>
											</xsl:if>
										</xsl:for-each>
										<xsl:value-of select="concat('9934:', string(.))"/>
									</cbc:ID>
								</xsl:for-each>
							</cac:PartyIdentification>
							<xsl:for-each select="cac:PartyName">
								<xsl:variable name="var286_PartyName" select="."/>
								<cac:PartyName>
									<cbc:Name>
										<xsl:if test="$var286_PartyName/cbc:Name/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(cbc:Name/@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(cbc:Name)"/>
									</cbc:Name>
								</cac:PartyName>
							</xsl:for-each>
							<xsl:for-each select="cac:PostalAddress">
								<cac:PostalAddress>
									<xsl:for-each select="cbc:StreetName">
										<xsl:variable name="var290_StreetName" select="."/>
										<cbc:StreetName>
											<xsl:if test="$var290_StreetName/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:StreetName>
									</xsl:for-each>
									<xsl:for-each select="cbc:AdditionalStreetName">
										<xsl:variable name="var292_AdditionalStreetName" select="."/>
										<cbc:AdditionalStreetName>
											<xsl:if test="$var292_AdditionalStreetName/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:AdditionalStreetName>
									</xsl:for-each>
									<xsl:for-each select="cbc:CityName">
										<xsl:variable name="var294_CityName" select="."/>
										<cbc:CityName>
											<xsl:if test="$var294_CityName/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:CityName>
									</xsl:for-each>
									<xsl:for-each select="cbc:PostalZone">
										<xsl:variable name="var296_PostalZone" select="."/>
										<cbc:PostalZone>
											<xsl:if test="$var296_PostalZone/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:PostalZone>
									</xsl:for-each>
									<xsl:for-each select="cbc:CountrySubentity">
										<xsl:variable name="var298_CountrySubentity" select="."/>
										<cbc:CountrySubentity>
											<xsl:if test="$var298_CountrySubentity/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:CountrySubentity>
									</xsl:for-each>
									<xsl:for-each select="cac:AddressLine">
										<xsl:variable name="var300_AddressLine" select="."/>
										<cac:AddressLine>
											<cbc:Line>
												<xsl:if test="$var300_AddressLine/cbc:Line/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(cbc:Line/@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(cbc:Line)"/>
											</cbc:Line>
										</cac:AddressLine>
									</xsl:for-each>
									<xsl:for-each select="cac:Country">
										<cac:Country>
											<xsl:for-each select="cbc:IdentificationCode">
												<cbc:IdentificationCode>
													<xsl:value-of select="string(.)"/>
												</cbc:IdentificationCode>
											</xsl:for-each>
										</cac:Country>
									</xsl:for-each>
								</cac:PostalAddress>
							</xsl:for-each>
							<xsl:for-each select="cac:PartyTaxScheme">
								<cac:PartyTaxScheme>
									<xsl:for-each select="cbc:CompanyID">
										<xsl:variable name="var308_CompanyID" select="."/>
										<cbc:CompanyID>
											<xsl:if test="$var308_CompanyID/@schemeID">
												<xsl:attribute name="schemeID">
													<xsl:value-of select="string(@schemeID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var308_CompanyID/@schemeName">
												<xsl:attribute name="schemeName">
													<xsl:value-of select="string(@schemeName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var308_CompanyID/@schemeAgencyID">
												<xsl:attribute name="schemeAgencyID">
													<xsl:value-of select="string(@schemeAgencyID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var308_CompanyID/@schemeAgencyName">
												<xsl:attribute name="schemeAgencyName">
													<xsl:value-of select="string(@schemeAgencyName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var308_CompanyID/@schemeVersionID">
												<xsl:attribute name="schemeVersionID">
													<xsl:value-of select="string(@schemeVersionID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var308_CompanyID/@schemeDataURI">
												<xsl:attribute name="schemeDataURI">
													<xsl:value-of select="string(@schemeDataURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var308_CompanyID/@schemeURI">
												<xsl:attribute name="schemeURI">
													<xsl:value-of select="string(@schemeURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:CompanyID>
									</xsl:for-each>
									<cac:TaxScheme>
										<xsl:for-each select="cac:TaxScheme/cbc:ID">
											<xsl:variable name="var310_ID" select="."/>
											<cbc:ID>
												<xsl:if test="$var310_ID/@schemeID">
													<xsl:attribute name="schemeID">
														<xsl:value-of select="string(@schemeID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var310_ID/@schemeName">
													<xsl:attribute name="schemeName">
														<xsl:value-of select="string(@schemeName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var310_ID/@schemeAgencyID">
													<xsl:attribute name="schemeAgencyID">
														<xsl:value-of select="string(@schemeAgencyID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var310_ID/@schemeAgencyName">
													<xsl:attribute name="schemeAgencyName">
														<xsl:value-of select="string(@schemeAgencyName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var310_ID/@schemeVersionID">
													<xsl:attribute name="schemeVersionID">
														<xsl:value-of select="string(@schemeVersionID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var310_ID/@schemeDataURI">
													<xsl:attribute name="schemeDataURI">
														<xsl:value-of select="string(@schemeDataURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var310_ID/@schemeURI">
													<xsl:attribute name="schemeURI">
														<xsl:value-of select="string(@schemeURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:ID>
										</xsl:for-each>
									</cac:TaxScheme>
								</cac:PartyTaxScheme>
							</xsl:for-each>
							<xsl:for-each select="cac:PartyLegalEntity">
								<cac:PartyLegalEntity>
									<xsl:for-each select="cbc:RegistrationName">
										<xsl:variable name="var314_RegistrationName" select="."/>
										<cbc:RegistrationName>
											<xsl:if test="$var314_RegistrationName/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:RegistrationName>
									</xsl:for-each>
									<xsl:for-each select="cbc:CompanyID">
										<xsl:variable name="var316_CompanyID" select="."/>
										<cbc:CompanyID>
											<xsl:if test="$var316_CompanyID/@schemeID">
												<xsl:attribute name="schemeID">
													<xsl:value-of select="string(@schemeID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var316_CompanyID/@schemeName">
												<xsl:attribute name="schemeName">
													<xsl:value-of select="string(@schemeName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var316_CompanyID/@schemeAgencyID">
												<xsl:attribute name="schemeAgencyID">
													<xsl:value-of select="string(@schemeAgencyID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var316_CompanyID/@schemeAgencyName">
												<xsl:attribute name="schemeAgencyName">
													<xsl:value-of select="string(@schemeAgencyName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var316_CompanyID/@schemeVersionID">
												<xsl:attribute name="schemeVersionID">
													<xsl:value-of select="string(@schemeVersionID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var316_CompanyID/@schemeDataURI">
												<xsl:attribute name="schemeDataURI">
													<xsl:value-of select="string(@schemeDataURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var316_CompanyID/@schemeURI">
												<xsl:attribute name="schemeURI">
													<xsl:value-of select="string(@schemeURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:CompanyID>
									</xsl:for-each>
								</cac:PartyLegalEntity>
							</xsl:for-each>
							<xsl:for-each select="cac:Contact">
								<cac:Contact>
									<xsl:for-each select="cbc:Name">
										<xsl:variable name="var320_Name" select="."/>
										<cbc:Name>
											<xsl:if test="$var320_Name/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:Name>
									</xsl:for-each>
									<xsl:for-each select="cbc:Telephone">
										<xsl:variable name="var322_Telephone" select="."/>
										<cbc:Telephone>
											<xsl:if test="$var322_Telephone/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:Telephone>
									</xsl:for-each>
									<xsl:for-each select="cbc:ElectronicMail">
										<xsl:variable name="var324_ElectronicMail" select="."/>
										<cbc:ElectronicMail>
											<xsl:if test="$var324_ElectronicMail/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:ElectronicMail>
									</xsl:for-each>
								</cac:Contact>
							</xsl:for-each>
						</cac:Party>
					</xsl:for-each>
				</cac:AccountingCustomerParty>
				<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:PayeeParty">
					<cac:PayeeParty>
						<xsl:for-each select="cbc:WebsiteURI">
							<xsl:variable name="var328_WebsiteURI" select="."/>
							<cbc:WebsiteURI>
								<xsl:if test="$var328_WebsiteURI/@schemeID">
									<xsl:attribute name="schemeID">
										<xsl:value-of select="string(@schemeID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var328_WebsiteURI/@schemeName">
									<xsl:attribute name="schemeName">
										<xsl:value-of select="string(@schemeName)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var328_WebsiteURI/@schemeAgencyID">
									<xsl:attribute name="schemeAgencyID">
										<xsl:value-of select="string(@schemeAgencyID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var328_WebsiteURI/@schemeAgencyName">
									<xsl:attribute name="schemeAgencyName">
										<xsl:value-of select="string(@schemeAgencyName)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var328_WebsiteURI/@schemeVersionID">
									<xsl:attribute name="schemeVersionID">
										<xsl:value-of select="string(@schemeVersionID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var328_WebsiteURI/@schemeDataURI">
									<xsl:attribute name="schemeDataURI">
										<xsl:value-of select="string(@schemeDataURI)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var328_WebsiteURI/@schemeURI">
									<xsl:attribute name="schemeURI">
										<xsl:value-of select="string(@schemeURI)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:value-of select="string(.)"/>
							</cbc:WebsiteURI>
						</xsl:for-each>
						<xsl:for-each select="cbc:LogoReferenceID">
							<xsl:variable name="var330_LogoReferenceID" select="."/>
							<cbc:LogoReferenceID>
								<xsl:if test="$var330_LogoReferenceID/@schemeID">
									<xsl:attribute name="schemeID">
										<xsl:value-of select="string(@schemeID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var330_LogoReferenceID/@schemeName">
									<xsl:attribute name="schemeName">
										<xsl:value-of select="string(@schemeName)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var330_LogoReferenceID/@schemeAgencyID">
									<xsl:attribute name="schemeAgencyID">
										<xsl:value-of select="string(@schemeAgencyID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var330_LogoReferenceID/@schemeAgencyName">
									<xsl:attribute name="schemeAgencyName">
										<xsl:value-of select="string(@schemeAgencyName)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var330_LogoReferenceID/@schemeVersionID">
									<xsl:attribute name="schemeVersionID">
										<xsl:value-of select="string(@schemeVersionID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var330_LogoReferenceID/@schemeDataURI">
									<xsl:attribute name="schemeDataURI">
										<xsl:value-of select="string(@schemeDataURI)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var330_LogoReferenceID/@schemeURI">
									<xsl:attribute name="schemeURI">
										<xsl:value-of select="string(@schemeURI)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:value-of select="string(.)"/>
							</cbc:LogoReferenceID>
						</xsl:for-each>
						<xsl:for-each select="cbc:EndpointID">
							<xsl:variable name="var332_EndpointID" select="."/>
							<cbc:EndpointID>
								<xsl:if test="$var332_EndpointID/@schemeID">
									<xsl:attribute name="schemeID">
										<xsl:value-of select="string(@schemeID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var332_EndpointID/@schemeName">
									<xsl:attribute name="schemeName">
										<xsl:value-of select="string(@schemeName)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var332_EndpointID/@schemeAgencyID">
									<xsl:attribute name="schemeAgencyID">
										<xsl:value-of select="string(@schemeAgencyID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var332_EndpointID/@schemeAgencyName">
									<xsl:attribute name="schemeAgencyName">
										<xsl:value-of select="string(@schemeAgencyName)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var332_EndpointID/@schemeVersionID">
									<xsl:attribute name="schemeVersionID">
										<xsl:value-of select="string(@schemeVersionID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var332_EndpointID/@schemeDataURI">
									<xsl:attribute name="schemeDataURI">
										<xsl:value-of select="string(@schemeDataURI)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var332_EndpointID/@schemeURI">
									<xsl:attribute name="schemeURI">
										<xsl:value-of select="string(@schemeURI)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:value-of select="string(.)"/>
							</cbc:EndpointID>
						</xsl:for-each>
						<xsl:for-each select="cac:PartyIdentification">
							<xsl:variable name="var334_PartyIdentification" select="."/>
							<cac:PartyIdentification>
								<cbc:ID>
									<xsl:if test="$var334_PartyIdentification/cbc:ID/@schemeID">
										<xsl:attribute name="schemeID">
											<xsl:value-of select="string(cbc:ID/@schemeID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var334_PartyIdentification/cbc:ID/@schemeName">
										<xsl:attribute name="schemeName">
											<xsl:value-of select="string(cbc:ID/@schemeName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var334_PartyIdentification/cbc:ID/@schemeAgencyID">
										<xsl:attribute name="schemeAgencyID">
											<xsl:value-of select="string(cbc:ID/@schemeAgencyID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var334_PartyIdentification/cbc:ID/@schemeAgencyName">
										<xsl:attribute name="schemeAgencyName">
											<xsl:value-of select="string(cbc:ID/@schemeAgencyName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var334_PartyIdentification/cbc:ID/@schemeVersionID">
										<xsl:attribute name="schemeVersionID">
											<xsl:value-of select="string(cbc:ID/@schemeVersionID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var334_PartyIdentification/cbc:ID/@schemeDataURI">
										<xsl:attribute name="schemeDataURI">
											<xsl:value-of select="string(cbc:ID/@schemeDataURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var334_PartyIdentification/cbc:ID/@schemeURI">
										<xsl:attribute name="schemeURI">
											<xsl:value-of select="string(cbc:ID/@schemeURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:value-of select="string(cbc:ID)"/>
								</cbc:ID>
							</cac:PartyIdentification>
						</xsl:for-each>
						<xsl:for-each select="cac:PartyName">
							<xsl:variable name="var336_PartyName" select="."/>
							<cac:PartyName>
								<cbc:Name>
									<xsl:if test="$var336_PartyName/cbc:Name/@languageID">
										<xsl:attribute name="languageID">
											<xsl:value-of select="string(cbc:Name/@languageID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:value-of select="string(cbc:Name)"/>
								</cbc:Name>
							</cac:PartyName>
						</xsl:for-each>
						<xsl:for-each select="cac:PostalAddress">
							<cac:PostalAddress>
								<xsl:for-each select="cbc:StreetName">
									<xsl:variable name="var340_StreetName" select="."/>
									<cbc:StreetName>
										<xsl:if test="$var340_StreetName/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:StreetName>
								</xsl:for-each>
								<xsl:for-each select="cbc:AdditionalStreetName">
									<xsl:variable name="var342_AdditionalStreetName" select="."/>
									<cbc:AdditionalStreetName>
										<xsl:if test="$var342_AdditionalStreetName/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:AdditionalStreetName>
								</xsl:for-each>
								<xsl:for-each select="cbc:CityName">
									<xsl:variable name="var344_CityName" select="."/>
									<cbc:CityName>
										<xsl:if test="$var344_CityName/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:CityName>
								</xsl:for-each>
								<xsl:for-each select="cbc:PostalZone">
									<xsl:variable name="var346_PostalZone" select="."/>
									<cbc:PostalZone>
										<xsl:if test="$var346_PostalZone/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:PostalZone>
								</xsl:for-each>
								<xsl:for-each select="cbc:CountrySubentity">
									<xsl:variable name="var348_CountrySubentity" select="."/>
									<cbc:CountrySubentity>
										<xsl:if test="$var348_CountrySubentity/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:CountrySubentity>
								</xsl:for-each>
								<xsl:for-each select="cac:AddressLine">
									<xsl:variable name="var350_AddressLine" select="."/>
									<cac:AddressLine>
										<cbc:Line>
											<xsl:if test="$var350_AddressLine/cbc:Line/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(cbc:Line/@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(cbc:Line)"/>
										</cbc:Line>
									</cac:AddressLine>
								</xsl:for-each>
								<xsl:for-each select="cac:Country">
									<cac:Country>
										<xsl:for-each select="cbc:IdentificationCode">
											<xsl:variable name="var354_IdentificationCode" select="."/>
											<cbc:IdentificationCode>
												<xsl:if test="$var354_IdentificationCode/@listID">
													<xsl:attribute name="listID">
														<xsl:value-of select="string(@listID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var354_IdentificationCode/@listAgencyID">
													<xsl:attribute name="listAgencyID">
														<xsl:value-of select="string(@listAgencyID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var354_IdentificationCode/@listAgencyName">
													<xsl:attribute name="listAgencyName">
														<xsl:value-of select="string(@listAgencyName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var354_IdentificationCode/@listName">
													<xsl:attribute name="listName">
														<xsl:value-of select="string(@listName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var354_IdentificationCode/@listVersionID">
													<xsl:attribute name="listVersionID">
														<xsl:value-of select="string(@listVersionID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var354_IdentificationCode/@name">
													<xsl:attribute name="name">
														<xsl:value-of select="string(@name)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var354_IdentificationCode/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var354_IdentificationCode/@listURI">
													<xsl:attribute name="listURI">
														<xsl:value-of select="string(@listURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var354_IdentificationCode/@listSchemeURI">
													<xsl:attribute name="listSchemeURI">
														<xsl:value-of select="string(@listSchemeURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:IdentificationCode>
										</xsl:for-each>
									</cac:Country>
								</xsl:for-each>
							</cac:PostalAddress>
						</xsl:for-each>
						<xsl:for-each select="cac:PartyTaxScheme">
							<cac:PartyTaxScheme>
								<xsl:for-each select="cbc:CompanyID">
									<xsl:variable name="var358_CompanyID" select="."/>
									<cbc:CompanyID>
										<xsl:if test="$var358_CompanyID/@schemeID">
											<xsl:attribute name="schemeID">
												<xsl:value-of select="string(@schemeID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var358_CompanyID/@schemeName">
											<xsl:attribute name="schemeName">
												<xsl:value-of select="string(@schemeName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var358_CompanyID/@schemeAgencyID">
											<xsl:attribute name="schemeAgencyID">
												<xsl:value-of select="string(@schemeAgencyID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var358_CompanyID/@schemeAgencyName">
											<xsl:attribute name="schemeAgencyName">
												<xsl:value-of select="string(@schemeAgencyName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var358_CompanyID/@schemeVersionID">
											<xsl:attribute name="schemeVersionID">
												<xsl:value-of select="string(@schemeVersionID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var358_CompanyID/@schemeDataURI">
											<xsl:attribute name="schemeDataURI">
												<xsl:value-of select="string(@schemeDataURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var358_CompanyID/@schemeURI">
											<xsl:attribute name="schemeURI">
												<xsl:value-of select="string(@schemeURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:CompanyID>
								</xsl:for-each>
								<cac:TaxScheme>
									<xsl:for-each select="cac:TaxScheme/cbc:ID">
										<xsl:variable name="var360_ID" select="."/>
										<cbc:ID>
											<xsl:if test="$var360_ID/@schemeID">
												<xsl:attribute name="schemeID">
													<xsl:value-of select="string(@schemeID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var360_ID/@schemeName">
												<xsl:attribute name="schemeName">
													<xsl:value-of select="string(@schemeName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var360_ID/@schemeAgencyID">
												<xsl:attribute name="schemeAgencyID">
													<xsl:value-of select="string(@schemeAgencyID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var360_ID/@schemeAgencyName">
												<xsl:attribute name="schemeAgencyName">
													<xsl:value-of select="string(@schemeAgencyName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var360_ID/@schemeVersionID">
												<xsl:attribute name="schemeVersionID">
													<xsl:value-of select="string(@schemeVersionID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var360_ID/@schemeDataURI">
												<xsl:attribute name="schemeDataURI">
													<xsl:value-of select="string(@schemeDataURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var360_ID/@schemeURI">
												<xsl:attribute name="schemeURI">
													<xsl:value-of select="string(@schemeURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:ID>
									</xsl:for-each>
								</cac:TaxScheme>
							</cac:PartyTaxScheme>
						</xsl:for-each>
						<xsl:for-each select="cac:PartyLegalEntity">
							<cac:PartyLegalEntity>
								<xsl:for-each select="cbc:RegistrationName">
									<xsl:variable name="var364_RegistrationName" select="."/>
									<cbc:RegistrationName>
										<xsl:if test="$var364_RegistrationName/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:RegistrationName>
								</xsl:for-each>
								<xsl:for-each select="cbc:CompanyID">
									<xsl:variable name="var366_CompanyID" select="."/>
									<cbc:CompanyID>
										<xsl:if test="$var366_CompanyID/@schemeID">
											<xsl:attribute name="schemeID">
												<xsl:value-of select="string(@schemeID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var366_CompanyID/@schemeName">
											<xsl:attribute name="schemeName">
												<xsl:value-of select="string(@schemeName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var366_CompanyID/@schemeAgencyID">
											<xsl:attribute name="schemeAgencyID">
												<xsl:value-of select="string(@schemeAgencyID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var366_CompanyID/@schemeAgencyName">
											<xsl:attribute name="schemeAgencyName">
												<xsl:value-of select="string(@schemeAgencyName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var366_CompanyID/@schemeVersionID">
											<xsl:attribute name="schemeVersionID">
												<xsl:value-of select="string(@schemeVersionID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var366_CompanyID/@schemeDataURI">
											<xsl:attribute name="schemeDataURI">
												<xsl:value-of select="string(@schemeDataURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var366_CompanyID/@schemeURI">
											<xsl:attribute name="schemeURI">
												<xsl:value-of select="string(@schemeURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:CompanyID>
								</xsl:for-each>
							</cac:PartyLegalEntity>
						</xsl:for-each>
						<xsl:for-each select="cac:Contact">
							<cac:Contact>
								<xsl:for-each select="cbc:Name">
									<xsl:variable name="var370_Name" select="."/>
									<cbc:Name>
										<xsl:if test="$var370_Name/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:Name>
								</xsl:for-each>
								<xsl:for-each select="cbc:Telephone">
									<xsl:variable name="var372_Telephone" select="."/>
									<cbc:Telephone>
										<xsl:if test="$var372_Telephone/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:Telephone>
								</xsl:for-each>
								<xsl:for-each select="cbc:ElectronicMail">
									<xsl:variable name="var374_ElectronicMail" select="."/>
									<cbc:ElectronicMail>
										<xsl:if test="$var374_ElectronicMail/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:ElectronicMail>
								</xsl:for-each>
							</cac:Contact>
						</xsl:for-each>
					</cac:PayeeParty>
				</xsl:for-each>
				<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:TaxRepresentativeParty">
					<cac:TaxRepresentativeParty>
						<xsl:for-each select="cbc:WebsiteURI">
							<xsl:variable name="var378_WebsiteURI" select="."/>
							<cbc:WebsiteURI>
								<xsl:if test="$var378_WebsiteURI/@schemeID">
									<xsl:attribute name="schemeID">
										<xsl:value-of select="string(@schemeID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var378_WebsiteURI/@schemeName">
									<xsl:attribute name="schemeName">
										<xsl:value-of select="string(@schemeName)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var378_WebsiteURI/@schemeAgencyID">
									<xsl:attribute name="schemeAgencyID">
										<xsl:value-of select="string(@schemeAgencyID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var378_WebsiteURI/@schemeAgencyName">
									<xsl:attribute name="schemeAgencyName">
										<xsl:value-of select="string(@schemeAgencyName)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var378_WebsiteURI/@schemeVersionID">
									<xsl:attribute name="schemeVersionID">
										<xsl:value-of select="string(@schemeVersionID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var378_WebsiteURI/@schemeDataURI">
									<xsl:attribute name="schemeDataURI">
										<xsl:value-of select="string(@schemeDataURI)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var378_WebsiteURI/@schemeURI">
									<xsl:attribute name="schemeURI">
										<xsl:value-of select="string(@schemeURI)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:value-of select="string(.)"/>
							</cbc:WebsiteURI>
						</xsl:for-each>
						<xsl:for-each select="cbc:LogoReferenceID">
							<xsl:variable name="var380_LogoReferenceID" select="."/>
							<cbc:LogoReferenceID>
								<xsl:if test="$var380_LogoReferenceID/@schemeID">
									<xsl:attribute name="schemeID">
										<xsl:value-of select="string(@schemeID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var380_LogoReferenceID/@schemeName">
									<xsl:attribute name="schemeName">
										<xsl:value-of select="string(@schemeName)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var380_LogoReferenceID/@schemeAgencyID">
									<xsl:attribute name="schemeAgencyID">
										<xsl:value-of select="string(@schemeAgencyID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var380_LogoReferenceID/@schemeAgencyName">
									<xsl:attribute name="schemeAgencyName">
										<xsl:value-of select="string(@schemeAgencyName)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var380_LogoReferenceID/@schemeVersionID">
									<xsl:attribute name="schemeVersionID">
										<xsl:value-of select="string(@schemeVersionID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var380_LogoReferenceID/@schemeDataURI">
									<xsl:attribute name="schemeDataURI">
										<xsl:value-of select="string(@schemeDataURI)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var380_LogoReferenceID/@schemeURI">
									<xsl:attribute name="schemeURI">
										<xsl:value-of select="string(@schemeURI)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:value-of select="string(.)"/>
							</cbc:LogoReferenceID>
						</xsl:for-each>
						<xsl:for-each select="cbc:EndpointID">
							<xsl:variable name="var382_EndpointID" select="."/>
							<cbc:EndpointID>
								<xsl:if test="$var382_EndpointID/@schemeID">
									<xsl:attribute name="schemeID">
										<xsl:value-of select="string(@schemeID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var382_EndpointID/@schemeName">
									<xsl:attribute name="schemeName">
										<xsl:value-of select="string(@schemeName)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var382_EndpointID/@schemeAgencyID">
									<xsl:attribute name="schemeAgencyID">
										<xsl:value-of select="string(@schemeAgencyID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var382_EndpointID/@schemeAgencyName">
									<xsl:attribute name="schemeAgencyName">
										<xsl:value-of select="string(@schemeAgencyName)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var382_EndpointID/@schemeVersionID">
									<xsl:attribute name="schemeVersionID">
										<xsl:value-of select="string(@schemeVersionID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var382_EndpointID/@schemeDataURI">
									<xsl:attribute name="schemeDataURI">
										<xsl:value-of select="string(@schemeDataURI)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var382_EndpointID/@schemeURI">
									<xsl:attribute name="schemeURI">
										<xsl:value-of select="string(@schemeURI)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:value-of select="string(.)"/>
							</cbc:EndpointID>
						</xsl:for-each>
						<xsl:for-each select="cac:PartyIdentification">
							<xsl:variable name="var384_PartyIdentification" select="."/>
							<cac:PartyIdentification>
								<cbc:ID>
									<xsl:if test="$var384_PartyIdentification/cbc:ID/@schemeID">
										<xsl:attribute name="schemeID">
											<xsl:value-of select="string(cbc:ID/@schemeID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var384_PartyIdentification/cbc:ID/@schemeName">
										<xsl:attribute name="schemeName">
											<xsl:value-of select="string(cbc:ID/@schemeName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var384_PartyIdentification/cbc:ID/@schemeAgencyID">
										<xsl:attribute name="schemeAgencyID">
											<xsl:value-of select="string(cbc:ID/@schemeAgencyID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var384_PartyIdentification/cbc:ID/@schemeAgencyName">
										<xsl:attribute name="schemeAgencyName">
											<xsl:value-of select="string(cbc:ID/@schemeAgencyName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var384_PartyIdentification/cbc:ID/@schemeVersionID">
										<xsl:attribute name="schemeVersionID">
											<xsl:value-of select="string(cbc:ID/@schemeVersionID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var384_PartyIdentification/cbc:ID/@schemeDataURI">
										<xsl:attribute name="schemeDataURI">
											<xsl:value-of select="string(cbc:ID/@schemeDataURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var384_PartyIdentification/cbc:ID/@schemeURI">
										<xsl:attribute name="schemeURI">
											<xsl:value-of select="string(cbc:ID/@schemeURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:value-of select="string(cbc:ID)"/>
								</cbc:ID>
							</cac:PartyIdentification>
						</xsl:for-each>
						<xsl:for-each select="cac:PartyName">
							<xsl:variable name="var386_PartyName" select="."/>
							<cac:PartyName>
								<cbc:Name>
									<xsl:if test="$var386_PartyName/cbc:Name/@languageID">
										<xsl:attribute name="languageID">
											<xsl:value-of select="string(cbc:Name/@languageID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:value-of select="string(cbc:Name)"/>
								</cbc:Name>
							</cac:PartyName>
						</xsl:for-each>
						<xsl:for-each select="cac:PostalAddress">
							<cac:PostalAddress>
								<xsl:for-each select="cbc:StreetName">
									<xsl:variable name="var390_StreetName" select="."/>
									<cbc:StreetName>
										<xsl:if test="$var390_StreetName/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:StreetName>
								</xsl:for-each>
								<xsl:for-each select="cbc:AdditionalStreetName">
									<xsl:variable name="var392_AdditionalStreetName" select="."/>
									<cbc:AdditionalStreetName>
										<xsl:if test="$var392_AdditionalStreetName/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:AdditionalStreetName>
								</xsl:for-each>
								<xsl:for-each select="cbc:CityName">
									<xsl:variable name="var394_CityName" select="."/>
									<cbc:CityName>
										<xsl:if test="$var394_CityName/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:CityName>
								</xsl:for-each>
								<xsl:for-each select="cbc:PostalZone">
									<xsl:variable name="var396_PostalZone" select="."/>
									<cbc:PostalZone>
										<xsl:if test="$var396_PostalZone/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:PostalZone>
								</xsl:for-each>
								<xsl:for-each select="cbc:CountrySubentity">
									<xsl:variable name="var398_CountrySubentity" select="."/>
									<cbc:CountrySubentity>
										<xsl:if test="$var398_CountrySubentity/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:CountrySubentity>
								</xsl:for-each>
								<xsl:for-each select="cac:AddressLine">
									<xsl:variable name="var400_AddressLine" select="."/>
									<cac:AddressLine>
										<cbc:Line>
											<xsl:if test="$var400_AddressLine/cbc:Line/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(cbc:Line/@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(cbc:Line)"/>
										</cbc:Line>
									</cac:AddressLine>
								</xsl:for-each>
								<xsl:for-each select="cac:Country">
									<cac:Country>
										<xsl:for-each select="cbc:IdentificationCode">
											<xsl:variable name="var404_IdentificationCode" select="."/>
											<cbc:IdentificationCode>
												<xsl:if test="$var404_IdentificationCode/@listID">
													<xsl:attribute name="listID">
														<xsl:value-of select="string(@listID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var404_IdentificationCode/@listAgencyID">
													<xsl:attribute name="listAgencyID">
														<xsl:value-of select="string(@listAgencyID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var404_IdentificationCode/@listAgencyName">
													<xsl:attribute name="listAgencyName">
														<xsl:value-of select="string(@listAgencyName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var404_IdentificationCode/@listName">
													<xsl:attribute name="listName">
														<xsl:value-of select="string(@listName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var404_IdentificationCode/@listVersionID">
													<xsl:attribute name="listVersionID">
														<xsl:value-of select="string(@listVersionID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var404_IdentificationCode/@name">
													<xsl:attribute name="name">
														<xsl:value-of select="string(@name)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var404_IdentificationCode/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var404_IdentificationCode/@listURI">
													<xsl:attribute name="listURI">
														<xsl:value-of select="string(@listURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var404_IdentificationCode/@listSchemeURI">
													<xsl:attribute name="listSchemeURI">
														<xsl:value-of select="string(@listSchemeURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:IdentificationCode>
										</xsl:for-each>
									</cac:Country>
								</xsl:for-each>
							</cac:PostalAddress>
						</xsl:for-each>
						<xsl:for-each select="cac:PartyTaxScheme">
							<cac:PartyTaxScheme>
								<xsl:for-each select="cbc:CompanyID">
									<xsl:variable name="var408_CompanyID" select="."/>
									<cbc:CompanyID>
										<xsl:if test="$var408_CompanyID/@schemeID">
											<xsl:attribute name="schemeID">
												<xsl:value-of select="string(@schemeID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var408_CompanyID/@schemeName">
											<xsl:attribute name="schemeName">
												<xsl:value-of select="string(@schemeName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var408_CompanyID/@schemeAgencyID">
											<xsl:attribute name="schemeAgencyID">
												<xsl:value-of select="string(@schemeAgencyID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var408_CompanyID/@schemeAgencyName">
											<xsl:attribute name="schemeAgencyName">
												<xsl:value-of select="string(@schemeAgencyName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var408_CompanyID/@schemeVersionID">
											<xsl:attribute name="schemeVersionID">
												<xsl:value-of select="string(@schemeVersionID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var408_CompanyID/@schemeDataURI">
											<xsl:attribute name="schemeDataURI">
												<xsl:value-of select="string(@schemeDataURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var408_CompanyID/@schemeURI">
											<xsl:attribute name="schemeURI">
												<xsl:value-of select="string(@schemeURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:CompanyID>
								</xsl:for-each>
								<cac:TaxScheme>
									<xsl:for-each select="cac:TaxScheme/cbc:ID">
										<xsl:variable name="var410_ID" select="."/>
										<cbc:ID>
											<xsl:if test="$var410_ID/@schemeID">
												<xsl:attribute name="schemeID">
													<xsl:value-of select="string(@schemeID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var410_ID/@schemeName">
												<xsl:attribute name="schemeName">
													<xsl:value-of select="string(@schemeName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var410_ID/@schemeAgencyID">
												<xsl:attribute name="schemeAgencyID">
													<xsl:value-of select="string(@schemeAgencyID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var410_ID/@schemeAgencyName">
												<xsl:attribute name="schemeAgencyName">
													<xsl:value-of select="string(@schemeAgencyName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var410_ID/@schemeVersionID">
												<xsl:attribute name="schemeVersionID">
													<xsl:value-of select="string(@schemeVersionID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var410_ID/@schemeDataURI">
												<xsl:attribute name="schemeDataURI">
													<xsl:value-of select="string(@schemeDataURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var410_ID/@schemeURI">
												<xsl:attribute name="schemeURI">
													<xsl:value-of select="string(@schemeURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:ID>
									</xsl:for-each>
								</cac:TaxScheme>
							</cac:PartyTaxScheme>
						</xsl:for-each>
						<xsl:for-each select="cac:PartyLegalEntity">
							<cac:PartyLegalEntity>
								<xsl:for-each select="cbc:RegistrationName">
									<xsl:variable name="var414_RegistrationName" select="."/>
									<cbc:RegistrationName>
										<xsl:if test="$var414_RegistrationName/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:RegistrationName>
								</xsl:for-each>
								<xsl:for-each select="cbc:CompanyID">
									<xsl:variable name="var416_CompanyID" select="."/>
									<cbc:CompanyID>
										<xsl:if test="$var416_CompanyID/@schemeID">
											<xsl:attribute name="schemeID">
												<xsl:value-of select="string(@schemeID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var416_CompanyID/@schemeName">
											<xsl:attribute name="schemeName">
												<xsl:value-of select="string(@schemeName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var416_CompanyID/@schemeAgencyID">
											<xsl:attribute name="schemeAgencyID">
												<xsl:value-of select="string(@schemeAgencyID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var416_CompanyID/@schemeAgencyName">
											<xsl:attribute name="schemeAgencyName">
												<xsl:value-of select="string(@schemeAgencyName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var416_CompanyID/@schemeVersionID">
											<xsl:attribute name="schemeVersionID">
												<xsl:value-of select="string(@schemeVersionID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var416_CompanyID/@schemeDataURI">
											<xsl:attribute name="schemeDataURI">
												<xsl:value-of select="string(@schemeDataURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var416_CompanyID/@schemeURI">
											<xsl:attribute name="schemeURI">
												<xsl:value-of select="string(@schemeURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:CompanyID>
								</xsl:for-each>
							</cac:PartyLegalEntity>
						</xsl:for-each>
						<xsl:for-each select="cac:Contact">
							<cac:Contact>
								<xsl:for-each select="cbc:Name">
									<xsl:variable name="var420_Name" select="."/>
									<cbc:Name>
										<xsl:if test="$var420_Name/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:Name>
								</xsl:for-each>
								<xsl:for-each select="cbc:Telephone">
									<xsl:variable name="var422_Telephone" select="."/>
									<cbc:Telephone>
										<xsl:if test="$var422_Telephone/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:Telephone>
								</xsl:for-each>
								<xsl:for-each select="cbc:ElectronicMail">
									<xsl:variable name="var424_ElectronicMail" select="."/>
									<cbc:ElectronicMail>
										<xsl:if test="$var424_ElectronicMail/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:ElectronicMail>
								</xsl:for-each>
							</cac:Contact>
						</xsl:for-each>
					</cac:TaxRepresentativeParty>
				</xsl:for-each>
				<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:Delivery">
					<cac:Delivery>
						<xsl:for-each select="cbc:ActualDeliveryDate">
							<cbc:ActualDeliveryDate>
								<xsl:value-of select="string(.)"/>
							</cbc:ActualDeliveryDate>
						</xsl:for-each>
						<xsl:for-each select="cac:DeliveryLocation">
							<cac:DeliveryLocation>
								<xsl:for-each select="cbc:ID">
									<xsl:variable name="var432_ID" select="."/>
									<cbc:ID>
										<xsl:if test="$var432_ID/@schemeID">
											<xsl:attribute name="schemeID">
												<xsl:value-of select="string(@schemeID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var432_ID/@schemeName">
											<xsl:attribute name="schemeName">
												<xsl:value-of select="string(@schemeName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var432_ID/@schemeAgencyID">
											<xsl:attribute name="schemeAgencyID">
												<xsl:value-of select="string(@schemeAgencyID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var432_ID/@schemeAgencyName">
											<xsl:attribute name="schemeAgencyName">
												<xsl:value-of select="string(@schemeAgencyName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var432_ID/@schemeVersionID">
											<xsl:attribute name="schemeVersionID">
												<xsl:value-of select="string(@schemeVersionID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var432_ID/@schemeDataURI">
											<xsl:attribute name="schemeDataURI">
												<xsl:value-of select="string(@schemeDataURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var432_ID/@schemeURI">
											<xsl:attribute name="schemeURI">
												<xsl:value-of select="string(@schemeURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:ID>
								</xsl:for-each>
								<xsl:for-each select="cac:Address">
									<cac:Address>
										<xsl:for-each select="cbc:StreetName">
											<xsl:variable name="var436_StreetName" select="."/>
											<cbc:StreetName>
												<xsl:if test="$var436_StreetName/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:StreetName>
										</xsl:for-each>
										<xsl:for-each select="cbc:AdditionalStreetName">
											<xsl:variable name="var438_AdditionalStreetName" select="."/>
											<cbc:AdditionalStreetName>
												<xsl:if test="$var438_AdditionalStreetName/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:AdditionalStreetName>
										</xsl:for-each>
										<xsl:for-each select="cbc:CityName">
											<xsl:variable name="var440_CityName" select="."/>
											<cbc:CityName>
												<xsl:if test="$var440_CityName/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:CityName>
										</xsl:for-each>
										<xsl:for-each select="cbc:PostalZone">
											<xsl:variable name="var442_PostalZone" select="."/>
											<cbc:PostalZone>
												<xsl:if test="$var442_PostalZone/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:PostalZone>
										</xsl:for-each>
										<xsl:for-each select="cbc:CountrySubentity">
											<xsl:variable name="var444_CountrySubentity" select="."/>
											<cbc:CountrySubentity>
												<xsl:if test="$var444_CountrySubentity/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:CountrySubentity>
										</xsl:for-each>
										<xsl:for-each select="cac:AddressLine">
											<xsl:variable name="var446_AddressLine" select="."/>
											<cac:AddressLine>
												<cbc:Line>
													<xsl:if test="$var446_AddressLine/cbc:Line/@languageID">
														<xsl:attribute name="languageID">
															<xsl:value-of select="string(cbc:Line/@languageID)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:value-of select="string(cbc:Line)"/>
												</cbc:Line>
											</cac:AddressLine>
										</xsl:for-each>
										<xsl:for-each select="cac:Country">
											<cac:Country>
												<xsl:for-each select="cbc:IdentificationCode">
													<xsl:variable name="var450_IdentificationCode" select="."/>
													<cbc:IdentificationCode>
														<xsl:if test="$var450_IdentificationCode/@listID">
															<xsl:attribute name="listID">
																<xsl:value-of select="string(@listID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var450_IdentificationCode/@listAgencyID">
															<xsl:attribute name="listAgencyID">
																<xsl:value-of select="string(@listAgencyID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var450_IdentificationCode/@listAgencyName">
															<xsl:attribute name="listAgencyName">
																<xsl:value-of select="string(@listAgencyName)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var450_IdentificationCode/@listName">
															<xsl:attribute name="listName">
																<xsl:value-of select="string(@listName)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var450_IdentificationCode/@listVersionID">
															<xsl:attribute name="listVersionID">
																<xsl:value-of select="string(@listVersionID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var450_IdentificationCode/@name">
															<xsl:attribute name="name">
																<xsl:value-of select="string(@name)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var450_IdentificationCode/@languageID">
															<xsl:attribute name="languageID">
																<xsl:value-of select="string(@languageID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var450_IdentificationCode/@listURI">
															<xsl:attribute name="listURI">
																<xsl:value-of select="string(@listURI)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var450_IdentificationCode/@listSchemeURI">
															<xsl:attribute name="listSchemeURI">
																<xsl:value-of select="string(@listSchemeURI)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:value-of select="string(.)"/>
													</cbc:IdentificationCode>
												</xsl:for-each>
											</cac:Country>
										</xsl:for-each>
									</cac:Address>
								</xsl:for-each>
							</cac:DeliveryLocation>
						</xsl:for-each>
						<xsl:for-each select="cac:DeliveryParty">
							<cac:DeliveryParty>
								<xsl:for-each select="cbc:WebsiteURI">
									<xsl:variable name="var454_WebsiteURI" select="."/>
									<cbc:WebsiteURI>
										<xsl:if test="$var454_WebsiteURI/@schemeID">
											<xsl:attribute name="schemeID">
												<xsl:value-of select="string(@schemeID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var454_WebsiteURI/@schemeName">
											<xsl:attribute name="schemeName">
												<xsl:value-of select="string(@schemeName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var454_WebsiteURI/@schemeAgencyID">
											<xsl:attribute name="schemeAgencyID">
												<xsl:value-of select="string(@schemeAgencyID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var454_WebsiteURI/@schemeAgencyName">
											<xsl:attribute name="schemeAgencyName">
												<xsl:value-of select="string(@schemeAgencyName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var454_WebsiteURI/@schemeVersionID">
											<xsl:attribute name="schemeVersionID">
												<xsl:value-of select="string(@schemeVersionID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var454_WebsiteURI/@schemeDataURI">
											<xsl:attribute name="schemeDataURI">
												<xsl:value-of select="string(@schemeDataURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var454_WebsiteURI/@schemeURI">
											<xsl:attribute name="schemeURI">
												<xsl:value-of select="string(@schemeURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:WebsiteURI>
								</xsl:for-each>
								<xsl:for-each select="cbc:LogoReferenceID">
									<xsl:variable name="var456_LogoReferenceID" select="."/>
									<cbc:LogoReferenceID>
										<xsl:if test="$var456_LogoReferenceID/@schemeID">
											<xsl:attribute name="schemeID">
												<xsl:value-of select="string(@schemeID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var456_LogoReferenceID/@schemeName">
											<xsl:attribute name="schemeName">
												<xsl:value-of select="string(@schemeName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var456_LogoReferenceID/@schemeAgencyID">
											<xsl:attribute name="schemeAgencyID">
												<xsl:value-of select="string(@schemeAgencyID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var456_LogoReferenceID/@schemeAgencyName">
											<xsl:attribute name="schemeAgencyName">
												<xsl:value-of select="string(@schemeAgencyName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var456_LogoReferenceID/@schemeVersionID">
											<xsl:attribute name="schemeVersionID">
												<xsl:value-of select="string(@schemeVersionID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var456_LogoReferenceID/@schemeDataURI">
											<xsl:attribute name="schemeDataURI">
												<xsl:value-of select="string(@schemeDataURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var456_LogoReferenceID/@schemeURI">
											<xsl:attribute name="schemeURI">
												<xsl:value-of select="string(@schemeURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:LogoReferenceID>
								</xsl:for-each>
								<xsl:for-each select="cbc:EndpointID">
									<xsl:variable name="var458_EndpointID" select="."/>
									<cbc:EndpointID>
										<xsl:if test="$var458_EndpointID/@schemeID">
											<xsl:attribute name="schemeID">
												<xsl:value-of select="string(@schemeID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var458_EndpointID/@schemeName">
											<xsl:attribute name="schemeName">
												<xsl:value-of select="string(@schemeName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var458_EndpointID/@schemeAgencyID">
											<xsl:attribute name="schemeAgencyID">
												<xsl:value-of select="string(@schemeAgencyID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var458_EndpointID/@schemeAgencyName">
											<xsl:attribute name="schemeAgencyName">
												<xsl:value-of select="string(@schemeAgencyName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var458_EndpointID/@schemeVersionID">
											<xsl:attribute name="schemeVersionID">
												<xsl:value-of select="string(@schemeVersionID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var458_EndpointID/@schemeDataURI">
											<xsl:attribute name="schemeDataURI">
												<xsl:value-of select="string(@schemeDataURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var458_EndpointID/@schemeURI">
											<xsl:attribute name="schemeURI">
												<xsl:value-of select="string(@schemeURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:EndpointID>
								</xsl:for-each>
								<xsl:for-each select="cac:PartyIdentification">
									<xsl:variable name="var460_PartyIdentification" select="."/>
									<cac:PartyIdentification>
										<cbc:ID>
											<xsl:if test="$var460_PartyIdentification/cbc:ID/@schemeID">
												<xsl:attribute name="schemeID">
													<xsl:value-of select="string(cbc:ID/@schemeID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var460_PartyIdentification/cbc:ID/@schemeName">
												<xsl:attribute name="schemeName">
													<xsl:value-of select="string(cbc:ID/@schemeName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var460_PartyIdentification/cbc:ID/@schemeAgencyID">
												<xsl:attribute name="schemeAgencyID">
													<xsl:value-of select="string(cbc:ID/@schemeAgencyID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var460_PartyIdentification/cbc:ID/@schemeAgencyName">
												<xsl:attribute name="schemeAgencyName">
													<xsl:value-of select="string(cbc:ID/@schemeAgencyName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var460_PartyIdentification/cbc:ID/@schemeVersionID">
												<xsl:attribute name="schemeVersionID">
													<xsl:value-of select="string(cbc:ID/@schemeVersionID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var460_PartyIdentification/cbc:ID/@schemeDataURI">
												<xsl:attribute name="schemeDataURI">
													<xsl:value-of select="string(cbc:ID/@schemeDataURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var460_PartyIdentification/cbc:ID/@schemeURI">
												<xsl:attribute name="schemeURI">
													<xsl:value-of select="string(cbc:ID/@schemeURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(cbc:ID)"/>
										</cbc:ID>
									</cac:PartyIdentification>
								</xsl:for-each>
								<xsl:for-each select="cac:PartyName">
									<xsl:variable name="var462_PartyName" select="."/>
									<cac:PartyName>
										<cbc:Name>
											<xsl:if test="$var462_PartyName/cbc:Name/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(cbc:Name/@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(cbc:Name)"/>
										</cbc:Name>
									</cac:PartyName>
								</xsl:for-each>
								<xsl:for-each select="cac:PostalAddress">
									<cac:PostalAddress>
										<xsl:for-each select="cbc:StreetName">
											<xsl:variable name="var466_StreetName" select="."/>
											<cbc:StreetName>
												<xsl:if test="$var466_StreetName/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:StreetName>
										</xsl:for-each>
										<xsl:for-each select="cbc:AdditionalStreetName">
											<xsl:variable name="var468_AdditionalStreetName" select="."/>
											<cbc:AdditionalStreetName>
												<xsl:if test="$var468_AdditionalStreetName/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:AdditionalStreetName>
										</xsl:for-each>
										<xsl:for-each select="cbc:CityName">
											<xsl:variable name="var470_CityName" select="."/>
											<cbc:CityName>
												<xsl:if test="$var470_CityName/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:CityName>
										</xsl:for-each>
										<xsl:for-each select="cbc:PostalZone">
											<xsl:variable name="var472_PostalZone" select="."/>
											<cbc:PostalZone>
												<xsl:if test="$var472_PostalZone/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:PostalZone>
										</xsl:for-each>
										<xsl:for-each select="cbc:CountrySubentity">
											<xsl:variable name="var474_CountrySubentity" select="."/>
											<cbc:CountrySubentity>
												<xsl:if test="$var474_CountrySubentity/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:CountrySubentity>
										</xsl:for-each>
										<xsl:for-each select="cac:AddressLine">
											<xsl:variable name="var476_AddressLine" select="."/>
											<cac:AddressLine>
												<cbc:Line>
													<xsl:if test="$var476_AddressLine/cbc:Line/@languageID">
														<xsl:attribute name="languageID">
															<xsl:value-of select="string(cbc:Line/@languageID)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:value-of select="string(cbc:Line)"/>
												</cbc:Line>
											</cac:AddressLine>
										</xsl:for-each>
										<xsl:for-each select="cac:Country">
											<cac:Country>
												<xsl:for-each select="cbc:IdentificationCode">
													<xsl:variable name="var480_IdentificationCode" select="."/>
													<cbc:IdentificationCode>
														<xsl:if test="$var480_IdentificationCode/@listID">
															<xsl:attribute name="listID">
																<xsl:value-of select="string(@listID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var480_IdentificationCode/@listAgencyID">
															<xsl:attribute name="listAgencyID">
																<xsl:value-of select="string(@listAgencyID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var480_IdentificationCode/@listAgencyName">
															<xsl:attribute name="listAgencyName">
																<xsl:value-of select="string(@listAgencyName)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var480_IdentificationCode/@listName">
															<xsl:attribute name="listName">
																<xsl:value-of select="string(@listName)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var480_IdentificationCode/@listVersionID">
															<xsl:attribute name="listVersionID">
																<xsl:value-of select="string(@listVersionID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var480_IdentificationCode/@name">
															<xsl:attribute name="name">
																<xsl:value-of select="string(@name)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var480_IdentificationCode/@languageID">
															<xsl:attribute name="languageID">
																<xsl:value-of select="string(@languageID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var480_IdentificationCode/@listURI">
															<xsl:attribute name="listURI">
																<xsl:value-of select="string(@listURI)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var480_IdentificationCode/@listSchemeURI">
															<xsl:attribute name="listSchemeURI">
																<xsl:value-of select="string(@listSchemeURI)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:value-of select="string(.)"/>
													</cbc:IdentificationCode>
												</xsl:for-each>
											</cac:Country>
										</xsl:for-each>
									</cac:PostalAddress>
								</xsl:for-each>
								<xsl:for-each select="cac:PartyTaxScheme">
									<cac:PartyTaxScheme>
										<xsl:for-each select="cbc:CompanyID">
											<xsl:variable name="var484_CompanyID" select="."/>
											<cbc:CompanyID>
												<xsl:if test="$var484_CompanyID/@schemeID">
													<xsl:attribute name="schemeID">
														<xsl:value-of select="string(@schemeID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var484_CompanyID/@schemeName">
													<xsl:attribute name="schemeName">
														<xsl:value-of select="string(@schemeName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var484_CompanyID/@schemeAgencyID">
													<xsl:attribute name="schemeAgencyID">
														<xsl:value-of select="string(@schemeAgencyID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var484_CompanyID/@schemeAgencyName">
													<xsl:attribute name="schemeAgencyName">
														<xsl:value-of select="string(@schemeAgencyName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var484_CompanyID/@schemeVersionID">
													<xsl:attribute name="schemeVersionID">
														<xsl:value-of select="string(@schemeVersionID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var484_CompanyID/@schemeDataURI">
													<xsl:attribute name="schemeDataURI">
														<xsl:value-of select="string(@schemeDataURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var484_CompanyID/@schemeURI">
													<xsl:attribute name="schemeURI">
														<xsl:value-of select="string(@schemeURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:CompanyID>
										</xsl:for-each>
										<cac:TaxScheme>
											<xsl:for-each select="cac:TaxScheme/cbc:ID">
												<xsl:variable name="var486_ID" select="."/>
												<cbc:ID>
													<xsl:if test="$var486_ID/@schemeID">
														<xsl:attribute name="schemeID">
															<xsl:value-of select="string(@schemeID)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:if test="$var486_ID/@schemeName">
														<xsl:attribute name="schemeName">
															<xsl:value-of select="string(@schemeName)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:if test="$var486_ID/@schemeAgencyID">
														<xsl:attribute name="schemeAgencyID">
															<xsl:value-of select="string(@schemeAgencyID)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:if test="$var486_ID/@schemeAgencyName">
														<xsl:attribute name="schemeAgencyName">
															<xsl:value-of select="string(@schemeAgencyName)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:if test="$var486_ID/@schemeVersionID">
														<xsl:attribute name="schemeVersionID">
															<xsl:value-of select="string(@schemeVersionID)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:if test="$var486_ID/@schemeDataURI">
														<xsl:attribute name="schemeDataURI">
															<xsl:value-of select="string(@schemeDataURI)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:if test="$var486_ID/@schemeURI">
														<xsl:attribute name="schemeURI">
															<xsl:value-of select="string(@schemeURI)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:value-of select="string(.)"/>
												</cbc:ID>
											</xsl:for-each>
										</cac:TaxScheme>
									</cac:PartyTaxScheme>
								</xsl:for-each>
								<xsl:for-each select="cac:PartyLegalEntity">
									<cac:PartyLegalEntity>
										<xsl:for-each select="cbc:RegistrationName">
											<xsl:variable name="var490_RegistrationName" select="."/>
											<cbc:RegistrationName>
												<xsl:if test="$var490_RegistrationName/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:RegistrationName>
										</xsl:for-each>
										<xsl:for-each select="cbc:CompanyID">
											<xsl:variable name="var492_CompanyID" select="."/>
											<cbc:CompanyID>
												<xsl:if test="$var492_CompanyID/@schemeID">
													<xsl:attribute name="schemeID">
														<xsl:value-of select="string(@schemeID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var492_CompanyID/@schemeName">
													<xsl:attribute name="schemeName">
														<xsl:value-of select="string(@schemeName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var492_CompanyID/@schemeAgencyID">
													<xsl:attribute name="schemeAgencyID">
														<xsl:value-of select="string(@schemeAgencyID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var492_CompanyID/@schemeAgencyName">
													<xsl:attribute name="schemeAgencyName">
														<xsl:value-of select="string(@schemeAgencyName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var492_CompanyID/@schemeVersionID">
													<xsl:attribute name="schemeVersionID">
														<xsl:value-of select="string(@schemeVersionID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var492_CompanyID/@schemeDataURI">
													<xsl:attribute name="schemeDataURI">
														<xsl:value-of select="string(@schemeDataURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var492_CompanyID/@schemeURI">
													<xsl:attribute name="schemeURI">
														<xsl:value-of select="string(@schemeURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:CompanyID>
										</xsl:for-each>
									</cac:PartyLegalEntity>
								</xsl:for-each>
								<xsl:for-each select="cac:Contact">
									<cac:Contact>
										<xsl:for-each select="cbc:Name">
											<xsl:variable name="var496_Name" select="."/>
											<cbc:Name>
												<xsl:if test="$var496_Name/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:Name>
										</xsl:for-each>
										<xsl:for-each select="cbc:Telephone">
											<xsl:variable name="var498_Telephone" select="."/>
											<cbc:Telephone>
												<xsl:if test="$var498_Telephone/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:Telephone>
										</xsl:for-each>
										<xsl:for-each select="cbc:ElectronicMail">
											<xsl:variable name="var500_ElectronicMail" select="."/>
											<cbc:ElectronicMail>
												<xsl:if test="$var500_ElectronicMail/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:ElectronicMail>
										</xsl:for-each>
									</cac:Contact>
								</xsl:for-each>
							</cac:DeliveryParty>
						</xsl:for-each>
					</cac:Delivery>
				</xsl:for-each>
				<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:PaymentMeans">
					<cac:PaymentMeans>
						<cbc:PaymentMeansCode>
							<xsl:value-of select="string(cbc:PaymentMeansCode)"/>
						</cbc:PaymentMeansCode>
						<xsl:for-each select="cbc:InstructionNote">
							<xsl:variable name="var504_InstructionNote" select="."/>
							<cbc:InstructionNote>
								<xsl:if test="$var504_InstructionNote/@languageID">
									<xsl:attribute name="languageID">
										<xsl:value-of select="string(@languageID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:value-of select="string(.)"/>
							</cbc:InstructionNote>
						</xsl:for-each>
						<xsl:for-each select="cbc:PaymentID">
							<xsl:variable name="var506_PaymentID" select="."/>
							<cbc:PaymentID>
								<xsl:if test="$var506_PaymentID/@schemeID">
									<xsl:attribute name="schemeID">
										<xsl:value-of select="string(@schemeID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var506_PaymentID/@schemeName">
									<xsl:attribute name="schemeName">
										<xsl:value-of select="string(@schemeName)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var506_PaymentID/@schemeAgencyID">
									<xsl:attribute name="schemeAgencyID">
										<xsl:value-of select="string(@schemeAgencyID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var506_PaymentID/@schemeAgencyName">
									<xsl:attribute name="schemeAgencyName">
										<xsl:value-of select="string(@schemeAgencyName)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var506_PaymentID/@schemeVersionID">
									<xsl:attribute name="schemeVersionID">
										<xsl:value-of select="string(@schemeVersionID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var506_PaymentID/@schemeDataURI">
									<xsl:attribute name="schemeDataURI">
										<xsl:value-of select="string(@schemeDataURI)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var506_PaymentID/@schemeURI">
									<xsl:attribute name="schemeURI">
										<xsl:value-of select="string(@schemeURI)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:value-of select="string(.)"/>
							</cbc:PaymentID>
						</xsl:for-each>
						<xsl:for-each select="cac:CardAccount">
							<xsl:variable name="var508_CardAccount" select="."/>
							<cac:CardAccount>
								<cbc:PrimaryAccountNumberID>
									<xsl:if test="$var508_CardAccount/cbc:PrimaryAccountNumberID/@schemeID">
										<xsl:attribute name="schemeID">
											<xsl:value-of select="string(cbc:PrimaryAccountNumberID/@schemeID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var508_CardAccount/cbc:PrimaryAccountNumberID/@schemeName">
										<xsl:attribute name="schemeName">
											<xsl:value-of select="string(cbc:PrimaryAccountNumberID/@schemeName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var508_CardAccount/cbc:PrimaryAccountNumberID/@schemeAgencyID">
										<xsl:attribute name="schemeAgencyID">
											<xsl:value-of select="string(cbc:PrimaryAccountNumberID/@schemeAgencyID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var508_CardAccount/cbc:PrimaryAccountNumberID/@schemeAgencyName">
										<xsl:attribute name="schemeAgencyName">
											<xsl:value-of select="string(cbc:PrimaryAccountNumberID/@schemeAgencyName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var508_CardAccount/cbc:PrimaryAccountNumberID/@schemeVersionID">
										<xsl:attribute name="schemeVersionID">
											<xsl:value-of select="string(cbc:PrimaryAccountNumberID/@schemeVersionID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var508_CardAccount/cbc:PrimaryAccountNumberID/@schemeDataURI">
										<xsl:attribute name="schemeDataURI">
											<xsl:value-of select="string(cbc:PrimaryAccountNumberID/@schemeDataURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var508_CardAccount/cbc:PrimaryAccountNumberID/@schemeURI">
										<xsl:attribute name="schemeURI">
											<xsl:value-of select="string(cbc:PrimaryAccountNumberID/@schemeURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:value-of select="string(cbc:PrimaryAccountNumberID)"/>
								</cbc:PrimaryAccountNumberID>
								<xsl:for-each select="cbc:HolderName">
									<xsl:variable name="var510_HolderName" select="."/>
									<cbc:HolderName>
										<xsl:if test="$var510_HolderName/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:HolderName>
								</xsl:for-each>
							</cac:CardAccount>
						</xsl:for-each>
						<xsl:for-each select="cac:PayeeFinancialAccount">
							<cac:PayeeFinancialAccount>
								<xsl:for-each select="cbc:ID">
									<xsl:variable name="var514_ID" select="."/>
									<cbc:ID>
										<xsl:if test="$var514_ID/@schemeID">
											<xsl:attribute name="schemeID">
												<xsl:value-of select="string(@schemeID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var514_ID/@schemeName">
											<xsl:attribute name="schemeName">
												<xsl:value-of select="string(@schemeName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var514_ID/@schemeAgencyID">
											<xsl:attribute name="schemeAgencyID">
												<xsl:value-of select="string(@schemeAgencyID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var514_ID/@schemeAgencyName">
											<xsl:attribute name="schemeAgencyName">
												<xsl:value-of select="string(@schemeAgencyName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var514_ID/@schemeVersionID">
											<xsl:attribute name="schemeVersionID">
												<xsl:value-of select="string(@schemeVersionID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var514_ID/@schemeDataURI">
											<xsl:attribute name="schemeDataURI">
												<xsl:value-of select="string(@schemeDataURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var514_ID/@schemeURI">
											<xsl:attribute name="schemeURI">
												<xsl:value-of select="string(@schemeURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:ID>
								</xsl:for-each>
								<xsl:for-each select="cbc:Name">
									<xsl:variable name="var516_Name" select="."/>
									<cbc:Name>
										<xsl:if test="$var516_Name/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:Name>
								</xsl:for-each>
								<xsl:for-each select="cac:FinancialInstitutionBranch">
									<cac:FinancialInstitutionBranch>
										<xsl:for-each select="cbc:ID">
											<xsl:variable name="var520_ID" select="."/>
											<cbc:ID>
												<xsl:if test="$var520_ID/@schemeID">
													<xsl:attribute name="schemeID">
														<xsl:value-of select="string(@schemeID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var520_ID/@schemeName">
													<xsl:attribute name="schemeName">
														<xsl:value-of select="string(@schemeName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var520_ID/@schemeAgencyID">
													<xsl:attribute name="schemeAgencyID">
														<xsl:value-of select="string(@schemeAgencyID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var520_ID/@schemeAgencyName">
													<xsl:attribute name="schemeAgencyName">
														<xsl:value-of select="string(@schemeAgencyName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var520_ID/@schemeVersionID">
													<xsl:attribute name="schemeVersionID">
														<xsl:value-of select="string(@schemeVersionID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var520_ID/@schemeDataURI">
													<xsl:attribute name="schemeDataURI">
														<xsl:value-of select="string(@schemeDataURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var520_ID/@schemeURI">
													<xsl:attribute name="schemeURI">
														<xsl:value-of select="string(@schemeURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:ID>
										</xsl:for-each>
									</cac:FinancialInstitutionBranch>
								</xsl:for-each>
							</cac:PayeeFinancialAccount>
						</xsl:for-each>
					</cac:PaymentMeans>
				</xsl:for-each>
				<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:AllowanceCharge">
					<cac:AllowanceCharge>
						<cbc:ChargeIndicator>
							<xsl:value-of select="(('0' != cbc:ChargeIndicator) and ('false' != cbc:ChargeIndicator))"/>
						</cbc:ChargeIndicator>
						<xsl:for-each select="cbc:AllowanceChargeReasonCode">
							<xsl:variable name="var524_AllowanceChargeReasonCode" select="."/>
							<cbc:AllowanceChargeReasonCode>
								<xsl:if test="$var524_AllowanceChargeReasonCode/@listID">
									<xsl:attribute name="listID">
										<xsl:value-of select="string(@listID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var524_AllowanceChargeReasonCode/@listAgencyID">
									<xsl:attribute name="listAgencyID">
										<xsl:value-of select="string(@listAgencyID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var524_AllowanceChargeReasonCode/@listAgencyName">
									<xsl:attribute name="listAgencyName">
										<xsl:value-of select="string(@listAgencyName)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var524_AllowanceChargeReasonCode/@listName">
									<xsl:attribute name="listName">
										<xsl:value-of select="string(@listName)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var524_AllowanceChargeReasonCode/@listVersionID">
									<xsl:attribute name="listVersionID">
										<xsl:value-of select="string(@listVersionID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var524_AllowanceChargeReasonCode/@name">
									<xsl:attribute name="name">
										<xsl:value-of select="string(@name)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var524_AllowanceChargeReasonCode/@languageID">
									<xsl:attribute name="languageID">
										<xsl:value-of select="string(@languageID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var524_AllowanceChargeReasonCode/@listURI">
									<xsl:attribute name="listURI">
										<xsl:value-of select="string(@listURI)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:if test="$var524_AllowanceChargeReasonCode/@listSchemeURI">
									<xsl:attribute name="listSchemeURI">
										<xsl:value-of select="string(@listSchemeURI)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:value-of select="string(.)"/>
							</cbc:AllowanceChargeReasonCode>
						</xsl:for-each>
						<xsl:for-each select="cbc:AllowanceChargeReason">
							<xsl:variable name="var526_AllowanceChargeReason" select="."/>
							<cbc:AllowanceChargeReason>
								<xsl:if test="$var526_AllowanceChargeReason/@languageID">
									<xsl:attribute name="languageID">
										<xsl:value-of select="string(@languageID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:value-of select="string(.)"/>
							</cbc:AllowanceChargeReason>
						</xsl:for-each>
						<xsl:for-each select="cbc:MultiplierFactorNumeric">
							<cbc:MultiplierFactorNumeric>
								<xsl:value-of select="number(string(.))"/>
							</cbc:MultiplierFactorNumeric>
						</xsl:for-each>
						<cbc:Amount>
							<xsl:attribute name="currencyID">
								<xsl:value-of select="string(cbc:Amount/@currencyID)"/>
							</xsl:attribute>
							<xsl:value-of select="number(string(cbc:Amount))"/>
						</cbc:Amount>
						<xsl:for-each select="cbc:BaseAmount">
							<cbc:BaseAmount>
								<xsl:attribute name="currencyID">
									<xsl:value-of select="string(@currencyID)"/>
								</xsl:attribute>
								<xsl:value-of select="number(string(.))"/>
							</cbc:BaseAmount>
						</xsl:for-each>
						<xsl:for-each select="cac:TaxCategory">
							<cac:TaxCategory>
								<xsl:for-each select="cbc:ID">
									<xsl:variable name="var534_ID" select="."/>
									<cbc:ID>
										<xsl:if test="$var534_ID/@schemeID">
											<xsl:attribute name="schemeID">
												<xsl:value-of select="string(@schemeID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var534_ID/@schemeName">
											<xsl:attribute name="schemeName">
												<xsl:value-of select="string(@schemeName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var534_ID/@schemeAgencyID">
											<xsl:attribute name="schemeAgencyID">
												<xsl:value-of select="string(@schemeAgencyID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var534_ID/@schemeAgencyName">
											<xsl:attribute name="schemeAgencyName">
												<xsl:value-of select="string(@schemeAgencyName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var534_ID/@schemeVersionID">
											<xsl:attribute name="schemeVersionID">
												<xsl:value-of select="string(@schemeVersionID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var534_ID/@schemeDataURI">
											<xsl:attribute name="schemeDataURI">
												<xsl:value-of select="string(@schemeDataURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var534_ID/@schemeURI">
											<xsl:attribute name="schemeURI">
												<xsl:value-of select="string(@schemeURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:ID>
								</xsl:for-each>
								<xsl:for-each select="cbc:Percent">
									<cbc:Percent>
										<xsl:value-of select="number(string(.))"/>
									</cbc:Percent>
								</xsl:for-each>
								<xsl:for-each select="cbc:TaxExemptionReasonCode">
									<xsl:variable name="var538_TaxExemptionReasonCode" select="."/>
									<cbc:TaxExemptionReasonCode>
										<xsl:if test="$var538_TaxExemptionReasonCode/@listID">
											<xsl:attribute name="listID">
												<xsl:value-of select="string(@listID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var538_TaxExemptionReasonCode/@listAgencyID">
											<xsl:attribute name="listAgencyID">
												<xsl:value-of select="string(@listAgencyID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var538_TaxExemptionReasonCode/@listAgencyName">
											<xsl:attribute name="listAgencyName">
												<xsl:value-of select="string(@listAgencyName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var538_TaxExemptionReasonCode/@listName">
											<xsl:attribute name="listName">
												<xsl:value-of select="string(@listName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var538_TaxExemptionReasonCode/@listVersionID">
											<xsl:attribute name="listVersionID">
												<xsl:value-of select="string(@listVersionID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var538_TaxExemptionReasonCode/@name">
											<xsl:attribute name="name">
												<xsl:value-of select="string(@name)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var538_TaxExemptionReasonCode/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var538_TaxExemptionReasonCode/@listURI">
											<xsl:attribute name="listURI">
												<xsl:value-of select="string(@listURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var538_TaxExemptionReasonCode/@listSchemeURI">
											<xsl:attribute name="listSchemeURI">
												<xsl:value-of select="string(@listSchemeURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:TaxExemptionReasonCode>
								</xsl:for-each>
								<xsl:for-each select="cbc:TaxExemptionReason">
									<xsl:variable name="var540_TaxExemptionReason" select="."/>
									<cbc:TaxExemptionReason>
										<xsl:if test="$var540_TaxExemptionReason/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:TaxExemptionReason>
								</xsl:for-each>
								<cac:TaxScheme>
									<xsl:for-each select="cac:TaxScheme/cbc:ID">
										<xsl:variable name="var542_ID" select="."/>
										<cbc:ID>
											<xsl:if test="$var542_ID/@schemeID">
												<xsl:attribute name="schemeID">
													<xsl:value-of select="string(@schemeID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var542_ID/@schemeName">
												<xsl:attribute name="schemeName">
													<xsl:value-of select="string(@schemeName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var542_ID/@schemeAgencyID">
												<xsl:attribute name="schemeAgencyID">
													<xsl:value-of select="string(@schemeAgencyID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var542_ID/@schemeAgencyName">
												<xsl:attribute name="schemeAgencyName">
													<xsl:value-of select="string(@schemeAgencyName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var542_ID/@schemeVersionID">
												<xsl:attribute name="schemeVersionID">
													<xsl:value-of select="string(@schemeVersionID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var542_ID/@schemeDataURI">
												<xsl:attribute name="schemeDataURI">
													<xsl:value-of select="string(@schemeDataURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var542_ID/@schemeURI">
												<xsl:attribute name="schemeURI">
													<xsl:value-of select="string(@schemeURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:ID>
									</xsl:for-each>
								</cac:TaxScheme>
							</cac:TaxCategory>
						</xsl:for-each>
					</cac:AllowanceCharge>
				</xsl:for-each>
				<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:TaxTotal">
					<cac:TaxTotal>
						<cbc:TaxAmount>
							<xsl:attribute name="currencyID">
								<xsl:value-of select="string(cbc:TaxAmount/@currencyID)"/>
							</xsl:attribute>
							<xsl:value-of select="number(string(cbc:TaxAmount))"/>
						</cbc:TaxAmount>
						<xsl:for-each select="cac:TaxSubtotal">
							<cac:TaxSubtotal>
								<xsl:for-each select="cbc:TaxableAmount">
									<cbc:TaxableAmount>
										<xsl:attribute name="currencyID">
											<xsl:value-of select="string(@currencyID)"/>
										</xsl:attribute>
										<xsl:value-of select="number(string(.))"/>
									</cbc:TaxableAmount>
								</xsl:for-each>
								<cbc:TaxAmount>
									<xsl:attribute name="currencyID">
										<xsl:value-of select="string(cbc:TaxAmount/@currencyID)"/>
									</xsl:attribute>
									<xsl:value-of select="number(string(cbc:TaxAmount))"/>
								</cbc:TaxAmount>
								<xsl:for-each select="cbc:CalculationSequenceNumeric">
									<cbc:CalculationSequenceNumeric>
										<xsl:value-of select="number(string(.))"/>
									</cbc:CalculationSequenceNumeric>
								</xsl:for-each>
								<cac:TaxCategory>
									<xsl:for-each select="cac:TaxCategory/cbc:ID">
										<cbc:ID>
											<xsl:value-of select="string(.)"/>
										</cbc:ID>
									</xsl:for-each>
									<xsl:for-each select="cac:TaxCategory/cbc:Percent">
										<cbc:Percent>
											<xsl:value-of select="number(string(.))"/>
										</cbc:Percent>
									</xsl:for-each>
									<xsl:for-each select="cac:TaxCategory/cbc:TaxExemptionReasonCode">
										<xsl:variable name="var556_TaxExemptionReasonCode" select="."/>
										<cbc:TaxExemptionReasonCode>
											<xsl:if test="$var556_TaxExemptionReasonCode/@listID">
												<xsl:attribute name="listID">
													<xsl:value-of select="string(@listID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var556_TaxExemptionReasonCode/@listAgencyID">
												<xsl:attribute name="listAgencyID">
													<xsl:value-of select="string(@listAgencyID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var556_TaxExemptionReasonCode/@listAgencyName">
												<xsl:attribute name="listAgencyName">
													<xsl:value-of select="string(@listAgencyName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var556_TaxExemptionReasonCode/@listName">
												<xsl:attribute name="listName">
													<xsl:value-of select="string(@listName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var556_TaxExemptionReasonCode/@listVersionID">
												<xsl:attribute name="listVersionID">
													<xsl:value-of select="string(@listVersionID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var556_TaxExemptionReasonCode/@name">
												<xsl:attribute name="name">
													<xsl:value-of select="string(@name)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var556_TaxExemptionReasonCode/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var556_TaxExemptionReasonCode/@listURI">
												<xsl:attribute name="listURI">
													<xsl:value-of select="string(@listURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var556_TaxExemptionReasonCode/@listSchemeURI">
												<xsl:attribute name="listSchemeURI">
													<xsl:value-of select="string(@listSchemeURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:TaxExemptionReasonCode>
									</xsl:for-each>
									<xsl:for-each select="cac:TaxCategory/cbc:TaxExemptionReason">
										<xsl:variable name="var558_TaxExemptionReason" select="."/>
										<cbc:TaxExemptionReason>
											<xsl:if test="$var558_TaxExemptionReason/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:TaxExemptionReason>
									</xsl:for-each>
									<cac:TaxScheme>
										<xsl:for-each select="cac:TaxCategory/cac:TaxScheme/cbc:ID">
											<xsl:variable name="var560_ID" select="."/>
											<cbc:ID>
												<xsl:if test="$var560_ID/@schemeID">
													<xsl:attribute name="schemeID">
														<xsl:value-of select="string(@schemeID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var560_ID/@schemeName">
													<xsl:attribute name="schemeName">
														<xsl:value-of select="string(@schemeName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var560_ID/@schemeAgencyID">
													<xsl:attribute name="schemeAgencyID">
														<xsl:value-of select="string(@schemeAgencyID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var560_ID/@schemeAgencyName">
													<xsl:attribute name="schemeAgencyName">
														<xsl:value-of select="string(@schemeAgencyName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var560_ID/@schemeVersionID">
													<xsl:attribute name="schemeVersionID">
														<xsl:value-of select="string(@schemeVersionID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var560_ID/@schemeDataURI">
													<xsl:attribute name="schemeDataURI">
														<xsl:value-of select="string(@schemeDataURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var560_ID/@schemeURI">
													<xsl:attribute name="schemeURI">
														<xsl:value-of select="string(@schemeURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:ID>
										</xsl:for-each>
									</cac:TaxScheme>
								</cac:TaxCategory>
							</cac:TaxSubtotal>
						</xsl:for-each>
					</cac:TaxTotal>
				</xsl:for-each>
				<cac:LegalMonetaryTotal>
					<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:LegalMonetaryTotal/cbc:LineExtensionAmount">
						<cbc:LineExtensionAmount>
							<xsl:attribute name="currencyID">
								<xsl:value-of select="string(@currencyID)"/>
							</xsl:attribute>
							<xsl:value-of select="number(string(.))"/>
						</cbc:LineExtensionAmount>
					</xsl:for-each>
					<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:LegalMonetaryTotal/cbc:TaxExclusiveAmount">
						<cbc:TaxExclusiveAmount>
							<xsl:attribute name="currencyID">
								<xsl:value-of select="string(@currencyID)"/>
							</xsl:attribute>
							<xsl:value-of select="number(string(.))"/>
						</cbc:TaxExclusiveAmount>
					</xsl:for-each>
					<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:LegalMonetaryTotal/cbc:TaxInclusiveAmount">
						<cbc:TaxInclusiveAmount>
							<xsl:attribute name="currencyID">
								<xsl:value-of select="string(@currencyID)"/>
							</xsl:attribute>
							<xsl:value-of select="number(string(.))"/>
						</cbc:TaxInclusiveAmount>
					</xsl:for-each>
					<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:LegalMonetaryTotal/cbc:AllowanceTotalAmount">
						<cbc:AllowanceTotalAmount>
							<xsl:attribute name="currencyID">
								<xsl:value-of select="string(@currencyID)"/>
							</xsl:attribute>
							<xsl:value-of select="number(string(.))"/>
						</cbc:AllowanceTotalAmount>
					</xsl:for-each>
					<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:LegalMonetaryTotal/cbc:ChargeTotalAmount">
						<cbc:ChargeTotalAmount>
							<xsl:attribute name="currencyID">
								<xsl:value-of select="string(@currencyID)"/>
							</xsl:attribute>
							<xsl:value-of select="number(string(.))"/>
						</cbc:ChargeTotalAmount>
					</xsl:for-each>
					<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:LegalMonetaryTotal/cbc:PrepaidAmount">
						<cbc:PrepaidAmount>
							<xsl:attribute name="currencyID">
								<xsl:value-of select="string(@currencyID)"/>
							</xsl:attribute>
							<xsl:value-of select="number(string(.))"/>
						</cbc:PrepaidAmount>
					</xsl:for-each>
					<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:LegalMonetaryTotal/cbc:PayableRoundingAmount">
						<cbc:PayableRoundingAmount>
							<xsl:attribute name="currencyID">
								<xsl:value-of select="string(@currencyID)"/>
							</xsl:attribute>
							<xsl:value-of select="number(string(.))"/>
						</cbc:PayableRoundingAmount>
					</xsl:for-each>
					<cbc:PayableAmount>
						<xsl:attribute name="currencyID">
							<xsl:value-of select="string(n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:LegalMonetaryTotal/cbc:PayableAmount/@currencyID)"/>
						</xsl:attribute>
						<xsl:value-of select="number(string(n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:LegalMonetaryTotal/cbc:PayableAmount))"/>
					</cbc:PayableAmount>
				</cac:LegalMonetaryTotal>
				<xsl:for-each select="n3:OutgoingInvoice/n3:InvoiceEnvelope/n2:Invoice/cac:InvoiceLine">
					<xsl:variable name="var576_InvoiceLine" select="."/>
					<cac:InvoiceLine>
						<cbc:ID>
							<xsl:if test="$var576_InvoiceLine/cbc:ID/@schemeID">
								<xsl:attribute name="schemeID">
									<xsl:value-of select="string(cbc:ID/@schemeID)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var576_InvoiceLine/cbc:ID/@schemeName">
								<xsl:attribute name="schemeName">
									<xsl:value-of select="string(cbc:ID/@schemeName)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var576_InvoiceLine/cbc:ID/@schemeAgencyID">
								<xsl:attribute name="schemeAgencyID">
									<xsl:value-of select="string(cbc:ID/@schemeAgencyID)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var576_InvoiceLine/cbc:ID/@schemeAgencyName">
								<xsl:attribute name="schemeAgencyName">
									<xsl:value-of select="string(cbc:ID/@schemeAgencyName)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var576_InvoiceLine/cbc:ID/@schemeVersionID">
								<xsl:attribute name="schemeVersionID">
									<xsl:value-of select="string(cbc:ID/@schemeVersionID)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var576_InvoiceLine/cbc:ID/@schemeDataURI">
								<xsl:attribute name="schemeDataURI">
									<xsl:value-of select="string(cbc:ID/@schemeDataURI)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:if test="$var576_InvoiceLine/cbc:ID/@schemeURI">
								<xsl:attribute name="schemeURI">
									<xsl:value-of select="string(cbc:ID/@schemeURI)"/>
								</xsl:attribute>
							</xsl:if>
							<xsl:value-of select="string(cbc:ID)"/>
						</cbc:ID>
						<xsl:for-each select="cbc:Note">
							<xsl:variable name="var578_Note" select="."/>
							<cbc:Note>
								<xsl:if test="$var578_Note/@languageID">
									<xsl:attribute name="languageID">
										<xsl:value-of select="string(@languageID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:value-of select="string(.)"/>
							</cbc:Note>
						</xsl:for-each>
						<xsl:for-each select="cbc:InvoicedQuantity">
							<xsl:variable name="var580_InvoicedQuantity" select="."/>
							<cbc:InvoicedQuantity>
								<xsl:if test="$var580_InvoicedQuantity/@unitCode">
									<xsl:attribute name="unitCode">
										<xsl:value-of select="string(@unitCode)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:value-of select="number(string(.))"/>
							</cbc:InvoicedQuantity>
						</xsl:for-each>
						<cbc:LineExtensionAmount>
							<xsl:attribute name="currencyID">
								<xsl:value-of select="string(cbc:LineExtensionAmount/@currencyID)"/>
							</xsl:attribute>
							<xsl:value-of select="number(string(cbc:LineExtensionAmount))"/>
						</cbc:LineExtensionAmount>
						<xsl:for-each select="cbc:AccountingCost">
							<xsl:variable name="var582_AccountingCost" select="."/>
							<cbc:AccountingCost>
								<xsl:if test="$var582_AccountingCost/@languageID">
									<xsl:attribute name="languageID">
										<xsl:value-of select="string(@languageID)"/>
									</xsl:attribute>
								</xsl:if>
								<xsl:value-of select="string(.)"/>
							</cbc:AccountingCost>
						</xsl:for-each>
						<xsl:for-each select="cac:OrderLineReference">
							<xsl:variable name="var584_OrderLineReference" select="."/>
							<cac:OrderLineReference>
								<cbc:LineID>
									<xsl:if test="$var584_OrderLineReference/cbc:LineID/@schemeID">
										<xsl:attribute name="schemeID">
											<xsl:value-of select="string(cbc:LineID/@schemeID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var584_OrderLineReference/cbc:LineID/@schemeName">
										<xsl:attribute name="schemeName">
											<xsl:value-of select="string(cbc:LineID/@schemeName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var584_OrderLineReference/cbc:LineID/@schemeAgencyID">
										<xsl:attribute name="schemeAgencyID">
											<xsl:value-of select="string(cbc:LineID/@schemeAgencyID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var584_OrderLineReference/cbc:LineID/@schemeAgencyName">
										<xsl:attribute name="schemeAgencyName">
											<xsl:value-of select="string(cbc:LineID/@schemeAgencyName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var584_OrderLineReference/cbc:LineID/@schemeVersionID">
										<xsl:attribute name="schemeVersionID">
											<xsl:value-of select="string(cbc:LineID/@schemeVersionID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var584_OrderLineReference/cbc:LineID/@schemeDataURI">
										<xsl:attribute name="schemeDataURI">
											<xsl:value-of select="string(cbc:LineID/@schemeDataURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var584_OrderLineReference/cbc:LineID/@schemeURI">
										<xsl:attribute name="schemeURI">
											<xsl:value-of select="string(cbc:LineID/@schemeURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:value-of select="string(cbc:LineID)"/>
								</cbc:LineID>
							</cac:OrderLineReference>
						</xsl:for-each>
						<xsl:for-each select="cac:DocumentReference">
							<xsl:variable name="var586_DocumentReference" select="."/>
							<cac:DocumentReference>
								<cbc:ID>
									<xsl:if test="$var586_DocumentReference/cbc:ID/@schemeID">
										<xsl:attribute name="schemeID">
											<xsl:value-of select="string(cbc:ID/@schemeID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var586_DocumentReference/cbc:ID/@schemeName">
										<xsl:attribute name="schemeName">
											<xsl:value-of select="string(cbc:ID/@schemeName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var586_DocumentReference/cbc:ID/@schemeAgencyID">
										<xsl:attribute name="schemeAgencyID">
											<xsl:value-of select="string(cbc:ID/@schemeAgencyID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var586_DocumentReference/cbc:ID/@schemeAgencyName">
										<xsl:attribute name="schemeAgencyName">
											<xsl:value-of select="string(cbc:ID/@schemeAgencyName)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var586_DocumentReference/cbc:ID/@schemeVersionID">
										<xsl:attribute name="schemeVersionID">
											<xsl:value-of select="string(cbc:ID/@schemeVersionID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var586_DocumentReference/cbc:ID/@schemeDataURI">
										<xsl:attribute name="schemeDataURI">
											<xsl:value-of select="string(cbc:ID/@schemeDataURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:if test="$var586_DocumentReference/cbc:ID/@schemeURI">
										<xsl:attribute name="schemeURI">
											<xsl:value-of select="string(cbc:ID/@schemeURI)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:value-of select="string(cbc:ID)"/>
								</cbc:ID>
								<xsl:for-each select="cbc:IssueDate">
									<cbc:IssueDate>
										<xsl:value-of select="string(.)"/>
									</cbc:IssueDate>
								</xsl:for-each>
								<xsl:for-each select="cac:Attachment">
									<cac:Attachment>
										<xsl:for-each select="cbc:EmbeddedDocumentBinaryObject">
											<xsl:variable name="var592_EmbeddedDocumentBinaryObject" select="."/>
											<cbc:EmbeddedDocumentBinaryObject>
												<xsl:if test="$var592_EmbeddedDocumentBinaryObject/@format">
													<xsl:attribute name="format">
														<xsl:value-of select="string(@format)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:attribute name="mimeCode">
													<xsl:value-of select="string(@mimeCode)"/>
												</xsl:attribute>
												<xsl:if test="$var592_EmbeddedDocumentBinaryObject/@encodingCode">
													<xsl:attribute name="encodingCode">
														<xsl:value-of select="string(@encodingCode)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var592_EmbeddedDocumentBinaryObject/@characterSetCode">
													<xsl:attribute name="characterSetCode">
														<xsl:value-of select="string(@characterSetCode)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var592_EmbeddedDocumentBinaryObject/@uri">
													<xsl:attribute name="uri">
														<xsl:value-of select="string(@uri)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var592_EmbeddedDocumentBinaryObject/@filename">
													<xsl:attribute name="filename">
														<xsl:value-of select="string(@filename)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:EmbeddedDocumentBinaryObject>
										</xsl:for-each>
										<xsl:for-each select="cac:ExternalReference">
											<cac:ExternalReference>
												<xsl:for-each select="cbc:URI">
													<xsl:variable name="var596_URI" select="."/>
													<cbc:URI>
														<xsl:if test="$var596_URI/@schemeID">
															<xsl:attribute name="schemeID">
																<xsl:value-of select="string(@schemeID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var596_URI/@schemeName">
															<xsl:attribute name="schemeName">
																<xsl:value-of select="string(@schemeName)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var596_URI/@schemeAgencyID">
															<xsl:attribute name="schemeAgencyID">
																<xsl:value-of select="string(@schemeAgencyID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var596_URI/@schemeAgencyName">
															<xsl:attribute name="schemeAgencyName">
																<xsl:value-of select="string(@schemeAgencyName)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var596_URI/@schemeVersionID">
															<xsl:attribute name="schemeVersionID">
																<xsl:value-of select="string(@schemeVersionID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var596_URI/@schemeDataURI">
															<xsl:attribute name="schemeDataURI">
																<xsl:value-of select="string(@schemeDataURI)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var596_URI/@schemeURI">
															<xsl:attribute name="schemeURI">
																<xsl:value-of select="string(@schemeURI)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:value-of select="string(.)"/>
													</cbc:URI>
												</xsl:for-each>
											</cac:ExternalReference>
										</xsl:for-each>
									</cac:Attachment>
								</xsl:for-each>
							</cac:DocumentReference>
						</xsl:for-each>
						<xsl:for-each select="cac:AllowanceCharge">
							<cac:AllowanceCharge>
								<cbc:ChargeIndicator>
									<xsl:value-of select="(('0' != cbc:ChargeIndicator) and ('false' != cbc:ChargeIndicator))"/>
								</cbc:ChargeIndicator>
								<xsl:for-each select="cbc:AllowanceChargeReasonCode">
									<xsl:variable name="var600_AllowanceChargeReasonCode" select="."/>
									<cbc:AllowanceChargeReasonCode>
										<xsl:if test="$var600_AllowanceChargeReasonCode/@listID">
											<xsl:attribute name="listID">
												<xsl:value-of select="string(@listID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var600_AllowanceChargeReasonCode/@listAgencyID">
											<xsl:attribute name="listAgencyID">
												<xsl:value-of select="string(@listAgencyID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var600_AllowanceChargeReasonCode/@listAgencyName">
											<xsl:attribute name="listAgencyName">
												<xsl:value-of select="string(@listAgencyName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var600_AllowanceChargeReasonCode/@listName">
											<xsl:attribute name="listName">
												<xsl:value-of select="string(@listName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var600_AllowanceChargeReasonCode/@listVersionID">
											<xsl:attribute name="listVersionID">
												<xsl:value-of select="string(@listVersionID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var600_AllowanceChargeReasonCode/@name">
											<xsl:attribute name="name">
												<xsl:value-of select="string(@name)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var600_AllowanceChargeReasonCode/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var600_AllowanceChargeReasonCode/@listURI">
											<xsl:attribute name="listURI">
												<xsl:value-of select="string(@listURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var600_AllowanceChargeReasonCode/@listSchemeURI">
											<xsl:attribute name="listSchemeURI">
												<xsl:value-of select="string(@listSchemeURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:AllowanceChargeReasonCode>
								</xsl:for-each>
								<xsl:for-each select="cbc:AllowanceChargeReason">
									<xsl:variable name="var602_AllowanceChargeReason" select="."/>
									<cbc:AllowanceChargeReason>
										<xsl:if test="$var602_AllowanceChargeReason/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(.)"/>
									</cbc:AllowanceChargeReason>
								</xsl:for-each>
								<xsl:for-each select="cbc:MultiplierFactorNumeric">
									<cbc:MultiplierFactorNumeric>
										<xsl:value-of select="number(string(.))"/>
									</cbc:MultiplierFactorNumeric>
								</xsl:for-each>
								<cbc:Amount>
									<xsl:attribute name="currencyID">
										<xsl:value-of select="string(cbc:Amount/@currencyID)"/>
									</xsl:attribute>
									<xsl:value-of select="number(string(cbc:Amount))"/>
								</cbc:Amount>
								<xsl:for-each select="cbc:BaseAmount">
									<cbc:BaseAmount>
										<xsl:attribute name="currencyID">
											<xsl:value-of select="string(@currencyID)"/>
										</xsl:attribute>
										<xsl:value-of select="number(string(.))"/>
									</cbc:BaseAmount>
								</xsl:for-each>
								<xsl:for-each select="cac:TaxCategory">
									<cac:TaxCategory>
										<xsl:for-each select="cbc:ID">
											<xsl:variable name="var610_ID" select="."/>
											<cbc:ID>
												<xsl:if test="$var610_ID/@schemeID">
													<xsl:attribute name="schemeID">
														<xsl:value-of select="string(@schemeID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var610_ID/@schemeName">
													<xsl:attribute name="schemeName">
														<xsl:value-of select="string(@schemeName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var610_ID/@schemeAgencyID">
													<xsl:attribute name="schemeAgencyID">
														<xsl:value-of select="string(@schemeAgencyID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var610_ID/@schemeAgencyName">
													<xsl:attribute name="schemeAgencyName">
														<xsl:value-of select="string(@schemeAgencyName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var610_ID/@schemeVersionID">
													<xsl:attribute name="schemeVersionID">
														<xsl:value-of select="string(@schemeVersionID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var610_ID/@schemeDataURI">
													<xsl:attribute name="schemeDataURI">
														<xsl:value-of select="string(@schemeDataURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var610_ID/@schemeURI">
													<xsl:attribute name="schemeURI">
														<xsl:value-of select="string(@schemeURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:ID>
										</xsl:for-each>
										<xsl:for-each select="cbc:Percent">
											<cbc:Percent>
												<xsl:value-of select="number(string(.))"/>
											</cbc:Percent>
										</xsl:for-each>
										<xsl:for-each select="cbc:TaxExemptionReasonCode">
											<xsl:variable name="var614_TaxExemptionReasonCode" select="."/>
											<cbc:TaxExemptionReasonCode>
												<xsl:if test="$var614_TaxExemptionReasonCode/@listID">
													<xsl:attribute name="listID">
														<xsl:value-of select="string(@listID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var614_TaxExemptionReasonCode/@listAgencyID">
													<xsl:attribute name="listAgencyID">
														<xsl:value-of select="string(@listAgencyID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var614_TaxExemptionReasonCode/@listAgencyName">
													<xsl:attribute name="listAgencyName">
														<xsl:value-of select="string(@listAgencyName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var614_TaxExemptionReasonCode/@listName">
													<xsl:attribute name="listName">
														<xsl:value-of select="string(@listName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var614_TaxExemptionReasonCode/@listVersionID">
													<xsl:attribute name="listVersionID">
														<xsl:value-of select="string(@listVersionID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var614_TaxExemptionReasonCode/@name">
													<xsl:attribute name="name">
														<xsl:value-of select="string(@name)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var614_TaxExemptionReasonCode/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var614_TaxExemptionReasonCode/@listURI">
													<xsl:attribute name="listURI">
														<xsl:value-of select="string(@listURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var614_TaxExemptionReasonCode/@listSchemeURI">
													<xsl:attribute name="listSchemeURI">
														<xsl:value-of select="string(@listSchemeURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:TaxExemptionReasonCode>
										</xsl:for-each>
										<xsl:for-each select="cbc:TaxExemptionReason">
											<xsl:variable name="var616_TaxExemptionReason" select="."/>
											<cbc:TaxExemptionReason>
												<xsl:if test="$var616_TaxExemptionReason/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:TaxExemptionReason>
										</xsl:for-each>
										<cac:TaxScheme>
											<xsl:for-each select="cac:TaxScheme/cbc:ID">
												<xsl:variable name="var618_ID" select="."/>
												<cbc:ID>
													<xsl:if test="$var618_ID/@schemeID">
														<xsl:attribute name="schemeID">
															<xsl:value-of select="string(@schemeID)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:if test="$var618_ID/@schemeName">
														<xsl:attribute name="schemeName">
															<xsl:value-of select="string(@schemeName)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:if test="$var618_ID/@schemeAgencyID">
														<xsl:attribute name="schemeAgencyID">
															<xsl:value-of select="string(@schemeAgencyID)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:if test="$var618_ID/@schemeAgencyName">
														<xsl:attribute name="schemeAgencyName">
															<xsl:value-of select="string(@schemeAgencyName)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:if test="$var618_ID/@schemeVersionID">
														<xsl:attribute name="schemeVersionID">
															<xsl:value-of select="string(@schemeVersionID)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:if test="$var618_ID/@schemeDataURI">
														<xsl:attribute name="schemeDataURI">
															<xsl:value-of select="string(@schemeDataURI)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:if test="$var618_ID/@schemeURI">
														<xsl:attribute name="schemeURI">
															<xsl:value-of select="string(@schemeURI)"/>
														</xsl:attribute>
													</xsl:if>
													<xsl:value-of select="string(.)"/>
												</cbc:ID>
											</xsl:for-each>
										</cac:TaxScheme>
									</cac:TaxCategory>
								</xsl:for-each>
							</cac:AllowanceCharge>
						</xsl:for-each>
						<cac:Item>
							<xsl:for-each select="cac:Item/cbc:Description">
								<xsl:variable name="var620_Description" select="."/>
								<cbc:Description>
									<xsl:if test="$var620_Description/@languageID">
										<xsl:attribute name="languageID">
											<xsl:value-of select="string(@languageID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:value-of select="string(.)"/>
								</cbc:Description>
							</xsl:for-each>
							<xsl:for-each select="cac:Item/cbc:Name">
								<xsl:variable name="var622_Name" select="."/>
								<cbc:Name>
									<xsl:if test="$var622_Name/@languageID">
										<xsl:attribute name="languageID">
											<xsl:value-of select="string(@languageID)"/>
										</xsl:attribute>
									</xsl:if>
									<xsl:value-of select="string(.)"/>
								</cbc:Name>
							</xsl:for-each>
							<xsl:for-each select="cac:Item/cac:BuyersItemIdentification">
								<xsl:variable name="var624_BuyersItemIdentification" select="."/>
								<cac:BuyersItemIdentification>
									<cbc:ID>
										<xsl:if test="$var624_BuyersItemIdentification/cbc:ID/@schemeID">
											<xsl:attribute name="schemeID">
												<xsl:value-of select="string(cbc:ID/@schemeID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var624_BuyersItemIdentification/cbc:ID/@schemeName">
											<xsl:attribute name="schemeName">
												<xsl:value-of select="string(cbc:ID/@schemeName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var624_BuyersItemIdentification/cbc:ID/@schemeAgencyID">
											<xsl:attribute name="schemeAgencyID">
												<xsl:value-of select="string(cbc:ID/@schemeAgencyID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var624_BuyersItemIdentification/cbc:ID/@schemeAgencyName">
											<xsl:attribute name="schemeAgencyName">
												<xsl:value-of select="string(cbc:ID/@schemeAgencyName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var624_BuyersItemIdentification/cbc:ID/@schemeVersionID">
											<xsl:attribute name="schemeVersionID">
												<xsl:value-of select="string(cbc:ID/@schemeVersionID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var624_BuyersItemIdentification/cbc:ID/@schemeDataURI">
											<xsl:attribute name="schemeDataURI">
												<xsl:value-of select="string(cbc:ID/@schemeDataURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var624_BuyersItemIdentification/cbc:ID/@schemeURI">
											<xsl:attribute name="schemeURI">
												<xsl:value-of select="string(cbc:ID/@schemeURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(cbc:ID)"/>
									</cbc:ID>
								</cac:BuyersItemIdentification>
							</xsl:for-each>
							<xsl:for-each select="cac:Item/cac:SellersItemIdentification">
								<xsl:variable name="var626_SellersItemIdentification" select="."/>
								<cac:SellersItemIdentification>
									<cbc:ID>
										<xsl:if test="$var626_SellersItemIdentification/cbc:ID/@schemeID">
											<xsl:attribute name="schemeID">
												<xsl:value-of select="string(cbc:ID/@schemeID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var626_SellersItemIdentification/cbc:ID/@schemeName">
											<xsl:attribute name="schemeName">
												<xsl:value-of select="string(cbc:ID/@schemeName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var626_SellersItemIdentification/cbc:ID/@schemeAgencyID">
											<xsl:attribute name="schemeAgencyID">
												<xsl:value-of select="string(cbc:ID/@schemeAgencyID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var626_SellersItemIdentification/cbc:ID/@schemeAgencyName">
											<xsl:attribute name="schemeAgencyName">
												<xsl:value-of select="string(cbc:ID/@schemeAgencyName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var626_SellersItemIdentification/cbc:ID/@schemeVersionID">
											<xsl:attribute name="schemeVersionID">
												<xsl:value-of select="string(cbc:ID/@schemeVersionID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var626_SellersItemIdentification/cbc:ID/@schemeDataURI">
											<xsl:attribute name="schemeDataURI">
												<xsl:value-of select="string(cbc:ID/@schemeDataURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var626_SellersItemIdentification/cbc:ID/@schemeURI">
											<xsl:attribute name="schemeURI">
												<xsl:value-of select="string(cbc:ID/@schemeURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(cbc:ID)"/>
									</cbc:ID>
								</cac:SellersItemIdentification>
							</xsl:for-each>
							<xsl:for-each select="cac:Item/cac:StandardItemIdentification">
								<xsl:variable name="var628_StandardItemIdentification" select="."/>
								<cac:StandardItemIdentification>
									<cbc:ID>
										<xsl:if test="$var628_StandardItemIdentification/cbc:ID/@schemeID">
											<xsl:attribute name="schemeID">
												<xsl:value-of select="string(cbc:ID/@schemeID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var628_StandardItemIdentification/cbc:ID/@schemeName">
											<xsl:attribute name="schemeName">
												<xsl:value-of select="string(cbc:ID/@schemeName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var628_StandardItemIdentification/cbc:ID/@schemeAgencyID">
											<xsl:attribute name="schemeAgencyID">
												<xsl:value-of select="string(cbc:ID/@schemeAgencyID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var628_StandardItemIdentification/cbc:ID/@schemeAgencyName">
											<xsl:attribute name="schemeAgencyName">
												<xsl:value-of select="string(cbc:ID/@schemeAgencyName)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var628_StandardItemIdentification/cbc:ID/@schemeVersionID">
											<xsl:attribute name="schemeVersionID">
												<xsl:value-of select="string(cbc:ID/@schemeVersionID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var628_StandardItemIdentification/cbc:ID/@schemeDataURI">
											<xsl:attribute name="schemeDataURI">
												<xsl:value-of select="string(cbc:ID/@schemeDataURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:if test="$var628_StandardItemIdentification/cbc:ID/@schemeURI">
											<xsl:attribute name="schemeURI">
												<xsl:value-of select="string(cbc:ID/@schemeURI)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(cbc:ID)"/>
									</cbc:ID>
								</cac:StandardItemIdentification>
							</xsl:for-each>
							<xsl:for-each select="cac:Item/cac:OriginCountry">
								<cac:OriginCountry>
									<xsl:for-each select="cbc:IdentificationCode">
										<xsl:variable name="var632_IdentificationCode" select="."/>
										<cbc:IdentificationCode>
											<xsl:if test="$var632_IdentificationCode/@listID">
												<xsl:attribute name="listID">
													<xsl:value-of select="string(@listID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var632_IdentificationCode/@listAgencyID">
												<xsl:attribute name="listAgencyID">
													<xsl:value-of select="string(@listAgencyID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var632_IdentificationCode/@listAgencyName">
												<xsl:attribute name="listAgencyName">
													<xsl:value-of select="string(@listAgencyName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var632_IdentificationCode/@listName">
												<xsl:attribute name="listName">
													<xsl:value-of select="string(@listName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var632_IdentificationCode/@listVersionID">
												<xsl:attribute name="listVersionID">
													<xsl:value-of select="string(@listVersionID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var632_IdentificationCode/@name">
												<xsl:attribute name="name">
													<xsl:value-of select="string(@name)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var632_IdentificationCode/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var632_IdentificationCode/@listURI">
												<xsl:attribute name="listURI">
													<xsl:value-of select="string(@listURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var632_IdentificationCode/@listSchemeURI">
												<xsl:attribute name="listSchemeURI">
													<xsl:value-of select="string(@listSchemeURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:IdentificationCode>
									</xsl:for-each>
								</cac:OriginCountry>
							</xsl:for-each>
							<xsl:for-each select="cac:Item/cac:CommodityClassification">
								<cac:CommodityClassification>
									<xsl:for-each select="cbc:ItemClassificationCode">
										<xsl:variable name="var636_ItemClassificationCode" select="."/>
										<cbc:ItemClassificationCode>
											<xsl:if test="$var636_ItemClassificationCode/@listID">
												<xsl:attribute name="listID">
													<xsl:value-of select="string(@listID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var636_ItemClassificationCode/@listAgencyID">
												<xsl:attribute name="listAgencyID">
													<xsl:value-of select="string(@listAgencyID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var636_ItemClassificationCode/@listAgencyName">
												<xsl:attribute name="listAgencyName">
													<xsl:value-of select="string(@listAgencyName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var636_ItemClassificationCode/@listName">
												<xsl:attribute name="listName">
													<xsl:value-of select="string(@listName)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var636_ItemClassificationCode/@listVersionID">
												<xsl:attribute name="listVersionID">
													<xsl:value-of select="string(@listVersionID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var636_ItemClassificationCode/@name">
												<xsl:attribute name="name">
													<xsl:value-of select="string(@name)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var636_ItemClassificationCode/@languageID">
												<xsl:attribute name="languageID">
													<xsl:value-of select="string(@languageID)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var636_ItemClassificationCode/@listURI">
												<xsl:attribute name="listURI">
													<xsl:value-of select="string(@listURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:if test="$var636_ItemClassificationCode/@listSchemeURI">
												<xsl:attribute name="listSchemeURI">
													<xsl:value-of select="string(@listSchemeURI)"/>
												</xsl:attribute>
											</xsl:if>
											<xsl:value-of select="string(.)"/>
										</cbc:ItemClassificationCode>
									</xsl:for-each>
								</cac:CommodityClassification>
							</xsl:for-each>
							<cac:ClassifiedTaxCategory>
								<xsl:for-each select="cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:ID">
									<cbc:ID>
										<xsl:value-of select="string(.)"/>
									</cbc:ID>
								</xsl:for-each>
								<xsl:for-each select="cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:Percent">
									<cbc:Percent>
										<xsl:value-of select="number(string(.))"/>
									</cbc:Percent>
								</xsl:for-each>
								<xsl:for-each select="cac:TaxTotal/cac:TaxSubtotal">
									<cac:TaxScheme>
										<xsl:for-each select="cac:TaxCategory/cac:TaxScheme/cbc:ID">
											<cbc:ID>
												<xsl:value-of select="string(.)"/>
											</cbc:ID>
										</xsl:for-each>
									</cac:TaxScheme>
								</xsl:for-each>
							</cac:ClassifiedTaxCategory>
							<xsl:for-each select="cac:Item/cac:AdditionalItemProperty">
								<xsl:variable name="var646_AdditionalItemProperty" select="."/>
								<cac:AdditionalItemProperty>
									<cbc:Name>
										<xsl:if test="$var646_AdditionalItemProperty/cbc:Name/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(cbc:Name/@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(cbc:Name)"/>
									</cbc:Name>
									<cbc:Value>
										<xsl:if test="$var646_AdditionalItemProperty/cbc:Value/@languageID">
											<xsl:attribute name="languageID">
												<xsl:value-of select="string(cbc:Value/@languageID)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="string(cbc:Value)"/>
									</cbc:Value>
								</cac:AdditionalItemProperty>
							</xsl:for-each>
						</cac:Item>
						<xsl:for-each select="cac:Price">
							<cac:Price>
								<cbc:PriceAmount>
									<xsl:attribute name="currencyID">
										<xsl:value-of select="string(cbc:PriceAmount/@currencyID)"/>
									</xsl:attribute>
									<xsl:value-of select="number(string(cbc:PriceAmount))"/>
								</cbc:PriceAmount>
								<xsl:for-each select="cbc:BaseQuantity">
									<xsl:variable name="var650_BaseQuantity" select="."/>
									<cbc:BaseQuantity>
										<xsl:if test="$var650_BaseQuantity/@unitCode">
											<xsl:attribute name="unitCode">
												<xsl:value-of select="string(@unitCode)"/>
											</xsl:attribute>
										</xsl:if>
										<xsl:value-of select="number(string(.))"/>
									</cbc:BaseQuantity>
								</xsl:for-each>
								<xsl:for-each select="cac:AllowanceCharge">
									<cac:AllowanceCharge>
										<cbc:ChargeIndicator>
											<xsl:value-of select="(('0' != cbc:ChargeIndicator) and ('false' != cbc:ChargeIndicator))"/>
										</cbc:ChargeIndicator>
										<xsl:for-each select="cbc:AllowanceChargeReasonCode">
											<xsl:variable name="var654_AllowanceChargeReasonCode" select="."/>
											<cbc:AllowanceChargeReasonCode>
												<xsl:if test="$var654_AllowanceChargeReasonCode/@listID">
													<xsl:attribute name="listID">
														<xsl:value-of select="string(@listID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var654_AllowanceChargeReasonCode/@listAgencyID">
													<xsl:attribute name="listAgencyID">
														<xsl:value-of select="string(@listAgencyID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var654_AllowanceChargeReasonCode/@listAgencyName">
													<xsl:attribute name="listAgencyName">
														<xsl:value-of select="string(@listAgencyName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var654_AllowanceChargeReasonCode/@listName">
													<xsl:attribute name="listName">
														<xsl:value-of select="string(@listName)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var654_AllowanceChargeReasonCode/@listVersionID">
													<xsl:attribute name="listVersionID">
														<xsl:value-of select="string(@listVersionID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var654_AllowanceChargeReasonCode/@name">
													<xsl:attribute name="name">
														<xsl:value-of select="string(@name)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var654_AllowanceChargeReasonCode/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var654_AllowanceChargeReasonCode/@listURI">
													<xsl:attribute name="listURI">
														<xsl:value-of select="string(@listURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:if test="$var654_AllowanceChargeReasonCode/@listSchemeURI">
													<xsl:attribute name="listSchemeURI">
														<xsl:value-of select="string(@listSchemeURI)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:AllowanceChargeReasonCode>
										</xsl:for-each>
										<xsl:for-each select="cbc:AllowanceChargeReason">
											<xsl:variable name="var656_AllowanceChargeReason" select="."/>
											<cbc:AllowanceChargeReason>
												<xsl:if test="$var656_AllowanceChargeReason/@languageID">
													<xsl:attribute name="languageID">
														<xsl:value-of select="string(@languageID)"/>
													</xsl:attribute>
												</xsl:if>
												<xsl:value-of select="string(.)"/>
											</cbc:AllowanceChargeReason>
										</xsl:for-each>
										<xsl:for-each select="cbc:MultiplierFactorNumeric">
											<cbc:MultiplierFactorNumeric>
												<xsl:value-of select="number(string(.))"/>
											</cbc:MultiplierFactorNumeric>
										</xsl:for-each>
										<cbc:Amount>
											<xsl:attribute name="currencyID">
												<xsl:value-of select="string(cbc:Amount/@currencyID)"/>
											</xsl:attribute>
											<xsl:value-of select="number(string(cbc:Amount))"/>
										</cbc:Amount>
										<xsl:for-each select="cbc:BaseAmount">
											<cbc:BaseAmount>
												<xsl:attribute name="currencyID">
													<xsl:value-of select="string(@currencyID)"/>
												</xsl:attribute>
												<xsl:value-of select="number(string(.))"/>
											</cbc:BaseAmount>
										</xsl:for-each>
										<xsl:for-each select="cac:TaxCategory">
											<cac:TaxCategory>
												<xsl:for-each select="cbc:ID">
													<xsl:variable name="var664_ID" select="."/>
													<cbc:ID>
														<xsl:if test="$var664_ID/@schemeID">
															<xsl:attribute name="schemeID">
																<xsl:value-of select="string(@schemeID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var664_ID/@schemeName">
															<xsl:attribute name="schemeName">
																<xsl:value-of select="string(@schemeName)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var664_ID/@schemeAgencyID">
															<xsl:attribute name="schemeAgencyID">
																<xsl:value-of select="string(@schemeAgencyID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var664_ID/@schemeAgencyName">
															<xsl:attribute name="schemeAgencyName">
																<xsl:value-of select="string(@schemeAgencyName)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var664_ID/@schemeVersionID">
															<xsl:attribute name="schemeVersionID">
																<xsl:value-of select="string(@schemeVersionID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var664_ID/@schemeDataURI">
															<xsl:attribute name="schemeDataURI">
																<xsl:value-of select="string(@schemeDataURI)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var664_ID/@schemeURI">
															<xsl:attribute name="schemeURI">
																<xsl:value-of select="string(@schemeURI)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:value-of select="string(.)"/>
													</cbc:ID>
												</xsl:for-each>
												<xsl:for-each select="cbc:Percent">
													<cbc:Percent>
														<xsl:value-of select="number(string(.))"/>
													</cbc:Percent>
												</xsl:for-each>
												<xsl:for-each select="cbc:TaxExemptionReasonCode">
													<xsl:variable name="var668_TaxExemptionReasonCode" select="."/>
													<cbc:TaxExemptionReasonCode>
														<xsl:if test="$var668_TaxExemptionReasonCode/@listID">
															<xsl:attribute name="listID">
																<xsl:value-of select="string(@listID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var668_TaxExemptionReasonCode/@listAgencyID">
															<xsl:attribute name="listAgencyID">
																<xsl:value-of select="string(@listAgencyID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var668_TaxExemptionReasonCode/@listAgencyName">
															<xsl:attribute name="listAgencyName">
																<xsl:value-of select="string(@listAgencyName)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var668_TaxExemptionReasonCode/@listName">
															<xsl:attribute name="listName">
																<xsl:value-of select="string(@listName)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var668_TaxExemptionReasonCode/@listVersionID">
															<xsl:attribute name="listVersionID">
																<xsl:value-of select="string(@listVersionID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var668_TaxExemptionReasonCode/@name">
															<xsl:attribute name="name">
																<xsl:value-of select="string(@name)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var668_TaxExemptionReasonCode/@languageID">
															<xsl:attribute name="languageID">
																<xsl:value-of select="string(@languageID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var668_TaxExemptionReasonCode/@listURI">
															<xsl:attribute name="listURI">
																<xsl:value-of select="string(@listURI)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:if test="$var668_TaxExemptionReasonCode/@listSchemeURI">
															<xsl:attribute name="listSchemeURI">
																<xsl:value-of select="string(@listSchemeURI)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:value-of select="string(.)"/>
													</cbc:TaxExemptionReasonCode>
												</xsl:for-each>
												<xsl:for-each select="cbc:TaxExemptionReason">
													<xsl:variable name="var670_TaxExemptionReason" select="."/>
													<cbc:TaxExemptionReason>
														<xsl:if test="$var670_TaxExemptionReason/@languageID">
															<xsl:attribute name="languageID">
																<xsl:value-of select="string(@languageID)"/>
															</xsl:attribute>
														</xsl:if>
														<xsl:value-of select="string(.)"/>
													</cbc:TaxExemptionReason>
												</xsl:for-each>
												<cac:TaxScheme>
													<xsl:for-each select="cac:TaxScheme/cbc:ID">
														<xsl:variable name="var672_ID" select="."/>
														<cbc:ID>
															<xsl:if test="$var672_ID/@schemeID">
																<xsl:attribute name="schemeID">
																	<xsl:value-of select="string(@schemeID)"/>
																</xsl:attribute>
															</xsl:if>
															<xsl:if test="$var672_ID/@schemeName">
																<xsl:attribute name="schemeName">
																	<xsl:value-of select="string(@schemeName)"/>
																</xsl:attribute>
															</xsl:if>
															<xsl:if test="$var672_ID/@schemeAgencyID">
																<xsl:attribute name="schemeAgencyID">
																	<xsl:value-of select="string(@schemeAgencyID)"/>
																</xsl:attribute>
															</xsl:if>
															<xsl:if test="$var672_ID/@schemeAgencyName">
																<xsl:attribute name="schemeAgencyName">
																	<xsl:value-of select="string(@schemeAgencyName)"/>
																</xsl:attribute>
															</xsl:if>
															<xsl:if test="$var672_ID/@schemeVersionID">
																<xsl:attribute name="schemeVersionID">
																	<xsl:value-of select="string(@schemeVersionID)"/>
																</xsl:attribute>
															</xsl:if>
															<xsl:if test="$var672_ID/@schemeDataURI">
																<xsl:attribute name="schemeDataURI">
																	<xsl:value-of select="string(@schemeDataURI)"/>
																</xsl:attribute>
															</xsl:if>
															<xsl:if test="$var672_ID/@schemeURI">
																<xsl:attribute name="schemeURI">
																	<xsl:value-of select="string(@schemeURI)"/>
																</xsl:attribute>
															</xsl:if>
															<xsl:value-of select="string(.)"/>
														</cbc:ID>
													</xsl:for-each>
												</cac:TaxScheme>
											</cac:TaxCategory>
										</xsl:for-each>
									</cac:AllowanceCharge>
								</xsl:for-each>
							</cac:Price>
						</xsl:for-each>
					</cac:InvoiceLine>
				</xsl:for-each>
			</xsl:for-each>
		</n2:Invoice>
	</xsl:template>
</xsl:stylesheet>
