diff --git a/LICENSE b/LICENSE
index d2d09af0a000d49a5f4e8b8b9dd9fa07d734332b..eae129d79e3f953c562e5446a81b5fd51e6833bb 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
 The MIT License (MIT)
 
-Copyright (c) 2016-2021 Zorginstituut Nederland
+Copyright (c) 2016-2022 Zorginstituut Nederland
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
diff --git a/xslt-validatie/common/2_0/basis.xsl b/xslt-validatie/common/2_0/basis.xsl
index 905a52b84557cfcb9ed07789fad152be602d05e4..50d7dbfe883b759cfb017fc0358aac7b97e4064b 100644
--- a/xslt-validatie/common/2_0/basis.xsl
+++ b/xslt-validatie/common/2_0/basis.xsl
@@ -1762,7 +1762,7 @@
     </xsl:template>
 
     <xsl:variable name="xsltVersion">
-        2.4.4
+        2.5.3
     </xsl:variable>
 
     <xsl:template match="*|@*|text()" mode="check"/>
diff --git a/xslt-validatie/jw/3_1/JW301.xsl b/xslt-validatie/jw/3_1/JW301.xsl
index 758cc65b5f22abee78c1f07abce8decb8d7eb57a..6a8c33dcb90d8c9b5d3addec0666e77e4758b0e0 100644
--- a/xslt-validatie/jw/3_1/JW301.xsl
+++ b/xslt-validatie/jw/3_1/JW301.xsl
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:vr="http://www.istandaarden.nl/validatie/1_1/rapport/schema">
-	<!-- iJw 3.1 JW301 (2021-10-08) -->
+	<!-- iJw 3.1 JW301 (2022-02-07) -->
 
 	<xsl:import href="common/basis.xsl" />
 	<xsl:include href="condities/CD005.xsl" />
@@ -69,7 +69,7 @@
 		<vr:XSLTHeader>
 			<vr:Standaard>ijw</vr:Standaard>
 			<vr:StandaardRelease>3.1</vr:StandaardRelease>
-			<vr:XSLTVersie>2.4.4</vr:XSLTVersie>
+			<vr:XSLTVersie>2.5.3</vr:XSLTVersie>
 		</vr:XSLTHeader>
 	</xsl:variable>
 </xsl:stylesheet>
diff --git a/xslt-validatie/jw/3_1/JW305.xsl b/xslt-validatie/jw/3_1/JW305.xsl
index f6b76a9c7449e445011041e0dd625a1986bf0615..61814986094dd3d84f6bebccd9bb0808cf10a830 100644
--- a/xslt-validatie/jw/3_1/JW305.xsl
+++ b/xslt-validatie/jw/3_1/JW305.xsl
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:vr="http://www.istandaarden.nl/validatie/1_1/rapport/schema">
-	<!-- iJw 3.1 JW305 (2021-10-08) -->
+	<!-- iJw 3.1 JW305 (2022-02-07) -->
 
 	<xsl:import href="common/basis.xsl" />
 	<xsl:include href="condities/CD005.xsl" />
@@ -37,7 +37,7 @@
 		<vr:XSLTHeader>
 			<vr:Standaard>ijw</vr:Standaard>
 			<vr:StandaardRelease>3.1</vr:StandaardRelease>
-			<vr:XSLTVersie>2.4.4</vr:XSLTVersie>
+			<vr:XSLTVersie>2.5.3</vr:XSLTVersie>
 		</vr:XSLTHeader>
 	</xsl:variable>
 </xsl:stylesheet>
diff --git a/xslt-validatie/jw/3_1/JW307.xsl b/xslt-validatie/jw/3_1/JW307.xsl
index dfd7419c0f1fa780277283679bf4894f4ece558c..fdac2006267ed562322391734a4ff48e7d42b452 100644
--- a/xslt-validatie/jw/3_1/JW307.xsl
+++ b/xslt-validatie/jw/3_1/JW307.xsl
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:vr="http://www.istandaarden.nl/validatie/1_1/rapport/schema">
-	<!-- iJw 3.1 JW307 (2021-10-08) -->
+	<!-- iJw 3.1 JW307 (2022-02-07) -->
 
 	<xsl:import href="common/basis.xsl" />
 	<xsl:include href="condities/CD005.xsl" />
@@ -39,7 +39,7 @@
 		<vr:XSLTHeader>
 			<vr:Standaard>ijw</vr:Standaard>
 			<vr:StandaardRelease>3.1</vr:StandaardRelease>
-			<vr:XSLTVersie>2.4.4</vr:XSLTVersie>
+			<vr:XSLTVersie>2.5.3</vr:XSLTVersie>
 		</vr:XSLTHeader>
 	</xsl:variable>
 </xsl:stylesheet>
diff --git a/xslt-validatie/jw/3_1/JW315.xsl b/xslt-validatie/jw/3_1/JW315.xsl
index 88daeee10d15e542e22d80523a33e3b009210d79..d1a88290c2ab8cbd9eeed97451eb82980b73e872 100644
--- a/xslt-validatie/jw/3_1/JW315.xsl
+++ b/xslt-validatie/jw/3_1/JW315.xsl
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:vr="http://www.istandaarden.nl/validatie/1_1/rapport/schema">
-	<!-- iJw 3.1 JW315 (2021-10-08) -->
+	<!-- iJw 3.1 JW315 (2022-02-07) -->
 
 	<xsl:import href="common/basis.xsl" />
 	<xsl:include href="condities/CD005.xsl" />
@@ -65,7 +65,7 @@
 		<vr:XSLTHeader>
 			<vr:Standaard>ijw</vr:Standaard>
 			<vr:StandaardRelease>3.1</vr:StandaardRelease>
-			<vr:XSLTVersie>2.4.4</vr:XSLTVersie>
+			<vr:XSLTVersie>2.5.3</vr:XSLTVersie>
 		</vr:XSLTHeader>
 	</xsl:variable>
 </xsl:stylesheet>
diff --git a/xslt-validatie/jw/3_1/JW317.xsl b/xslt-validatie/jw/3_1/JW317.xsl
index a97b9f7f9f40140fe0b2a02caa99ed9bb675967b..93658d70c343e5f51a15be5ea553848fdda6497e 100644
--- a/xslt-validatie/jw/3_1/JW317.xsl
+++ b/xslt-validatie/jw/3_1/JW317.xsl
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:vr="http://www.istandaarden.nl/validatie/1_1/rapport/schema">
-	<!-- iJw 3.1 JW317 (2021-10-08) -->
+	<!-- iJw 3.1 JW317 (2022-02-07) -->
 
 	<xsl:import href="common/basis.xsl" />
 	<xsl:include href="condities/CD005.xsl" />
@@ -59,7 +59,7 @@
 		<vr:XSLTHeader>
 			<vr:Standaard>ijw</vr:Standaard>
 			<vr:StandaardRelease>3.1</vr:StandaardRelease>
-			<vr:XSLTVersie>2.4.4</vr:XSLTVersie>
+			<vr:XSLTVersie>2.5.3</vr:XSLTVersie>
 		</vr:XSLTHeader>
 	</xsl:variable>
 </xsl:stylesheet>
diff --git a/xslt-validatie/jw/3_1/JW319.xsl b/xslt-validatie/jw/3_1/JW319.xsl
index 679a062bcfd9b40dde9f6d26d50dd1b5ef3632dd..8bc3d58d9be7ca2db70b8c51070c923e92cc34bc 100644
--- a/xslt-validatie/jw/3_1/JW319.xsl
+++ b/xslt-validatie/jw/3_1/JW319.xsl
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:vr="http://www.istandaarden.nl/validatie/1_1/rapport/schema">
-	<!-- iJw 3.1 JW319 (2021-10-08) -->
+	<!-- iJw 3.1 JW319 (2022-02-07) -->
 
 	<xsl:import href="common/basis.xsl" />
 	<xsl:include href="condities/CD005.xsl" />
@@ -41,7 +41,7 @@
 		<vr:XSLTHeader>
 			<vr:Standaard>ijw</vr:Standaard>
 			<vr:StandaardRelease>3.1</vr:StandaardRelease>
-			<vr:XSLTVersie>2.4.4</vr:XSLTVersie>
+			<vr:XSLTVersie>2.5.3</vr:XSLTVersie>
 		</vr:XSLTHeader>
 	</xsl:variable>
 </xsl:stylesheet>
diff --git a/xslt-validatie/jw/3_1/JW323.xsl b/xslt-validatie/jw/3_1/JW323.xsl
index f8053691c273eb79fd0c2065a77c43a17e45440a..1a193cc92e48dbf4b8129ea9d516c25c1822364d 100644
--- a/xslt-validatie/jw/3_1/JW323.xsl
+++ b/xslt-validatie/jw/3_1/JW323.xsl
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:vr="http://www.istandaarden.nl/validatie/1_1/rapport/schema">
-	<!-- iJw 3.1 JW323 (2021-10-08) -->
+	<!-- iJw 3.1 JW323 (2022-02-07) -->
 
 	<xsl:import href="common/basis.xsl" />
 	<xsl:include href="condities/CD005.xsl" />
@@ -59,7 +59,7 @@
 		<vr:XSLTHeader>
 			<vr:Standaard>ijw</vr:Standaard>
 			<vr:StandaardRelease>3.1</vr:StandaardRelease>
-			<vr:XSLTVersie>2.4.4</vr:XSLTVersie>
+			<vr:XSLTVersie>2.5.3</vr:XSLTVersie>
 		</vr:XSLTHeader>
 	</xsl:variable>
 </xsl:stylesheet>
diff --git a/xslt-validatie/jw/3_1/JW325.xsl b/xslt-validatie/jw/3_1/JW325.xsl
index 31bb047bbf657188cf3711d6d7cedc6c5dc2cdd7..e26b86cacc8cba595117a6392392d212108d8104 100644
--- a/xslt-validatie/jw/3_1/JW325.xsl
+++ b/xslt-validatie/jw/3_1/JW325.xsl
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:vr="http://www.istandaarden.nl/validatie/1_1/rapport/schema">
-	<!-- iJw 3.1 JW325 (2021-10-08) -->
+	<!-- iJw 3.1 JW325 (2022-02-07) -->
 
 	<xsl:import href="common/basis.xsl" />
 	<xsl:include href="condities/CD005.xsl" />
@@ -41,7 +41,7 @@
 		<vr:XSLTHeader>
 			<vr:Standaard>ijw</vr:Standaard>
 			<vr:StandaardRelease>3.1</vr:StandaardRelease>
-			<vr:XSLTVersie>2.4.4</vr:XSLTVersie>
+			<vr:XSLTVersie>2.5.3</vr:XSLTVersie>
 		</vr:XSLTHeader>
 	</xsl:variable>
 </xsl:stylesheet>
diff --git a/xslt-validatie/jw/3_1/all.xsl b/xslt-validatie/jw/3_1/all.xsl
index f8b86d3bc096d10a25ea84d8f4af69c526be35a8..dac156be3e41ed03f8bbb0a14ec03df23bd55544 100644
--- a/xslt-validatie/jw/3_1/all.xsl
+++ b/xslt-validatie/jw/3_1/all.xsl
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:vr="http://www.istandaarden.nl/validatie/1_1/rapport/schema">
-	<!-- iJw 3.1 (2021-10-08) -->
+	<!-- iJw 3.1 (2022-02-07) -->
 
 	<xsl:import href="common/basis.xsl" />
 	<xsl:include href="condities/CD005.xsl" />
@@ -133,7 +133,7 @@
 		<vr:XSLTHeader>
 			<vr:Standaard>ijw</vr:Standaard>
 			<vr:StandaardRelease>3.1</vr:StandaardRelease>
-			<vr:XSLTVersie>2.4.4</vr:XSLTVersie>
+			<vr:XSLTVersie>2.5.3</vr:XSLTVersie>
 		</vr:XSLTHeader>
 	</xsl:variable>
 </xsl:stylesheet>
diff --git a/xslt-validatie/jw/3_1/all_merged.xsl b/xslt-validatie/jw/3_1/all_merged.xsl
index a49d93c663a83708e66ce8b8ad6181cf1bb5afe4..ae96040b102847b6db305849b369840829e99c43 100644
--- a/xslt-validatie/jw/3_1/all_merged.xsl
+++ b/xslt-validatie/jw/3_1/all_merged.xsl
@@ -1 +1 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?><stylesheet xmlns="http://www.w3.org/1999/XSL/Transform" xmlns:n0="http://www.istandaarden.nl/ijw/3_1/jw319/schema" xmlns:n1="http://www.istandaarden.nl/ijw/3_1/jw307/schema" xmlns:n2="http://www.istandaarden.nl/ijw/3_1/jw317/schema" xmlns:n3="http://www.istandaarden.nl/ijw/3_1/jw305/schema" xmlns:n4="http://www.istandaarden.nl/ijw/3_1/jw315/schema" xmlns:n5="http://www.istandaarden.nl/ijw/3_1/jw325/schema" xmlns:n6="http://www.istandaarden.nl/ijw/3_1/jw301/schema" xmlns:n7="http://www.istandaarden.nl/ijw/3_1/jw323/schema" xmlns:n8="http://www.istandaarden.nl/validatie/1_1/rapport/schema" xmlns:n9="http://www.istandaarden.nl/ijw/3_1/basisschema/schema" xmlns:na="http://www.istandaarden.nl/validatie/1_1/rapport/schema" exclude-result-prefixes="n8 n9 n6 n2 n4 n5 n7 n0 n1 n3" version="1.0"><output encoding="UTF-8" indent="yes" method="xml" version="1.0"/><template name="printXPath"><param name="pElement" select="."/><if test="$pElement/ancestor::*"><call-template name="printXPath"><with-param name="pElement" select="$pElement/.."/></call-template><text>/</text></if><value-of select="local-name($pElement)"/><if test="($pElement/preceding-sibling::*|$pElement/following-sibling::*)[local-name()=local-name($pElement)]"><value-of select="concat('[',count($pElement/preceding-sibling::*[local-name()=local-name($pElement)])+1,']')"/></if></template><template name="addError"><param name="pRule">FOUT</param><param name="pElements" select="."/><param name="pCode" select="nonExistingNode"/><param name="pDetails" select="''"/><n8:Fout><n8:Code><value-of select="normalize-space($pRule)"/></n8:Code><if test="$pCode"><n8:Retourcode><value-of select="$pCode"/></n8:Retourcode></if><for-each select="$pElements"><n8:Locatie><text>/</text><call-template name="printXPath"><with-param name="pElement" select="."/></call-template></n8:Locatie></for-each><choose><when test="$pDetails!=''"><n8:Details><value-of select="$pDetails"/></n8:Details></when><otherwise><variable name="v0"><apply-templates mode="getDetails" select="."><with-param name="pRule" select="normalize-space($pRule)"/></apply-templates></variable><if test="$v0!=''"><n8:Details><value-of select="$v0"/></n8:Details></if></otherwise></choose></n8:Fout></template><template match="*" mode="getDetails" priority="0"><param name="pRule">FOUT</param></template><template name="checkGemeenteCode"><param name="pThis" select="."/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><variable name="v0"><apply-templates mode="validGemeente" select="."><with-param name="pGemeenteCode" select="1*normalize-space($pThis/text())"/></apply-templates></variable><if test="$v0!='true'"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pExtra"/></call-template></if></template><template match="*" mode="validGemeente" priority="0"><param name="pGemeenteCode" select="."/><value-of select="true()"/></template><template match="*" mode="validAGBCode" priority="0"><param name="pAGBCode" select="."/><param name="pFrom"/><param name="pTo" select="0"/><value-of select="true()"/></template><template match="*" mode="validZorginstelling" priority="0"><param name="pInstelling"/><param name="pOntvanger"/><value-of select="true()"/></template><template name="check11proef"><param name="pElement" select="."/><param name="pRule">FOUT</param><variable name="v0" select="floor(number($pElement/text()) div 1) mod 10"/><variable name="v1" select="floor(number($pElement/text()) div 10) mod 10"/><variable name="v2" select="floor(number($pElement/text()) div 100) mod 10"/><variable name="v3" select="floor(number($pElement/text()) div 1000) mod 10"/><variable name="v4" select="floor(number($pElement/text()) div 10000) mod 10"/><variable name="v5" select="floor(number($pElement/text()) div 100000) mod 10"/><variable name="v6" select="floor(number($pElement/text()) div 1000000) mod 10"/><variable name="v7" select="floor(number($pElement/text()) div 10000000) mod 10"/><variable name="v8" select="floor(number($pElement/text()) div 100000000) mod 10"/><if test="((9*$v8+8*$v7+7*$v6+6*$v5+5*$v4+4*$v3+3*$v2+2*$v1 - 1*$v0) mod 11)!=0"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pElement"/></call-template></if></template><template name="split"><param name="pElement" select="."/><param name="pValue"/><choose><when test="string-length(normalize-space($pValue)) &gt; 0"><variable name="v0" select="normalize-space(substring-before(concat($pValue,','),','))"/><choose><when test="normalize-space($pElement/text())=$v0"><value-of select="true()"/></when><otherwise><call-template name="split"><with-param name="pElement" select="$pElement"/><with-param name="pValue" select="substring-after($pValue,',')"/></call-template></otherwise></choose></when><otherwise><value-of select="false()"/></otherwise></choose></template><template name="callrecursive"><param name="pT"/><param name="pValues"/><param name="pText"/><param name="pPattern"/><choose><when test="string-length($pT)=1 and string-length(translate($pT,$pValues,''))=0"><call-template name="patternmatch"><with-param name="pText" select="$pText"/><with-param name="pPattern" select="$pPattern"/></call-template></when><otherwise><value-of select="false()"/></otherwise></choose></template><template name="patternmatch"><param name="pText"/><param name="pPattern"/><choose><when test="(string-length($pText)=0 and string-length($pPattern)!=0) or (string-length($pText)!=0 and string-length($pPattern)=0)"><value-of select="false()"/></when><when test="string-length($pText)=0"><value-of select="true()"/></when><otherwise><variable name="v0" select="substring($pText,1,1)"/><variable name="v1" select="substring($pPattern,1,1)"/><variable name="v2" select="substring($pText,2)"/><variable name="v3" select="substring($pPattern,2)"/><choose><when test="$v1='.'"><call-template name="patternmatch"><with-param name="pText" select="$v2"/><with-param name="pPattern" select="$v3"/></call-template></when><when test="$v1='\' and string-length($v3)!=0"><call-template name="callrecursive"><with-param name="pT" select="$v0"/><with-param name="pValues" select="substring($v3,1,1)"/><with-param name="pText" select="$v2"/><with-param name="pPattern" select="substring($v3,2)"/></call-template></when><when test="$v1='1'"><call-template name="callrecursive"><with-param name="pT" select="$v0"/><with-param name="pValues">123456789</with-param><with-param name="pText" select="$v2"/><with-param name="pPattern" select="$v3"/></call-template></when><when test="$v1='0'"><call-template name="callrecursive"><with-param name="pT" select="$v0"/><with-param name="pValues">0123456789</with-param><with-param name="pText" select="$v2"/><with-param name="pPattern" select="$v3"/></call-template></when><when test="$v1='a'"><call-template name="callrecursive"><with-param name="pT" select="$v0"/><with-param name="pValues">abcdefghijklmnopqrstuvwxyz</with-param><with-param name="pText" select="$v2"/><with-param name="pPattern" select="$v3"/></call-template></when><when test="$v1='A'"><call-template name="callrecursive"><with-param name="pT" select="$v0"/><with-param name="pValues">ABCDEFGHIJKLMNOPQRSTUVWXYZ</with-param><with-param name="pText" select="$v2"/><with-param name="pPattern" select="$v3"/></call-template></when><when test="$v1='z' or $v1='Z'"><call-template name="callrecursive"><with-param name="pT" select="$v0"/><with-param name="pValues">abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</with-param><with-param name="pText" select="$v2"/><with-param name="pPattern" select="$v3"/></call-template></when><when test="$v0=$v1"><call-template name="patternmatch"><with-param name="pText" select="$v2"/><with-param name="pPattern" select="$v3"/></call-template></when><otherwise><value-of select="false()"/></otherwise></choose></otherwise></choose></template><template name="testpattern"><param name="pElement" select="."/><param name="pPattern" select="''"/><variable name="v0" select="$pElement/text()"/><call-template name="patternmatch"><with-param name="pText" select="$v0"/><with-param name="pPattern" select="$pPattern"/></call-template></template><template name="testvalue"><param name="pElement" select="."/><param name="pValues" select="''"/><choose><when test="normalize-space($pValues)=''"><choose><when test="not($pElement/.)"><value-of select="true()"/></when><when test="normalize-space($pElement/text())=''"><value-of select="true()"/></when><otherwise><value-of select="false()"/></otherwise></choose></when><when test="normalize-space($pValues)='*'"><choose><when test="normalize-space($pElement/text())!=''"><value-of select="true()"/></when><otherwise><value-of select="false()"/></otherwise></choose></when><when test="normalize-space($pValues)='#'"><choose><when test="$pElement/."><value-of select="true()"/></when><otherwise><value-of select="false()"/></otherwise></choose></when><when test="string-length(normalize-space($pValues)) &gt; 1 and substring(normalize-space($pValues),1,1)='#'"><call-template name="testpattern"><with-param name="pElement" select="$pElement"/><with-param name="pPattern" select="substring(normalize-space($pValues),2)"/></call-template></when><when test="string-length(normalize-space($pValues)) &gt; 1 and substring(normalize-space($pValues),1,1)='!'"><variable name="v0"><call-template name="testvalue"><with-param name="pElement" select="$pElement"/><with-param name="pValues" select="substring(normalize-space($pValues),2)"/></call-template></variable><choose><when test="$v0='true'"><value-of select="false()"/></when><otherwise><value-of select="true()"/></otherwise></choose></when><otherwise><call-template name="split"><with-param name="pElement" select="$pElement"/><with-param name="pValue" select="$pValues"/></call-template></otherwise></choose></template><template name="checkRelation"><param name="pThis" select="."/><param name="pOther"/><param name="pRelation"/><param name="pExtra" select="node()"/><param name="pRule">FAIL</param><choose><when test="normalize-space($pRelation)='equals'"><call-template name="checkRelation"><with-param name="pThis" select="$pOther"/><with-param name="pOther" select="$pThis"/><with-param name="pRelation">equalsGt</with-param><with-param name="pExtra" select="$pExtra"/><with-param name="pRule" select="$pRule"/></call-template><call-template name="checkRelation"><with-param name="pThis" select="$pOther"/><with-param name="pOther" select="$pThis"/><with-param name="pRelation">equalsLt</with-param><with-param name="pExtra" select="$pExtra"/><with-param name="pRule" select="$pRule"/></call-template></when><when test="normalize-space($pRelation)='equalsGt' and $pThis &lt; $pOther"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pOther|$pExtra"/></call-template></when><when test="normalize-space($pRelation)='equalsLt'"><call-template name="checkRelation"><with-param name="pThis" select="$pOther"/><with-param name="pOther" select="$pThis"/><with-param name="pRelation">equalsGt</with-param><with-param name="pExtra" select="$pExtra"/><with-param name="pRule" select="$pRule"/></call-template></when></choose></template><template name="adjustDate"><param name="pDate"/><param name="pOverflow">carry</param><variable name="v0" select="$pDate mod 100"/><variable name="v1" select="floor($pDate div 100) mod 100"/><variable name="v2" select="floor($pDate div 10000) mod 10000"/><variable name="v3"><choose><when test="$v0 &gt; 30 and ($v1=4 or $v1=6 or $v1=9 or $v1=11)"><choose><when test="$pOverflow='carry'"><value-of select="$pDate - 30+100"/></when><when test="$pOverflow='truncate'"><value-of select="$pDate - $v0+30"/></when></choose></when><when test="$v0 &gt; 31 and ($v1=1 or $v1=3 or $v1=5 or $v1=7 or $v1=8 or $v1=10 or $v1=12)"><choose><when test="$pOverflow='carry'"><value-of select="$pDate - 31+100"/></when><when test="$pOverflow='truncate'"><value-of select="$pDate - $v0+31"/></when></choose></when><when test="$v0 &gt; 29 and $v1=2 and ($v2 mod 4)=0"><choose><when test="$pOverflow='carry'"><value-of select="$pDate - 29+100"/></when><when test="$pOverflow='truncate'"><value-of select="$pDate - $v0+29"/></when></choose></when><when test="$v0 &gt; 28 and $v1=2 and ($v2 mod 4)!=0"><choose><when test="$pOverflow='carry'"><value-of select="$pDate - 28+100"/></when><when test="$pOverflow='truncate'"><value-of select="$pDate - $v0+28"/></when></choose></when><otherwise><value-of select="0+$pDate"/></otherwise></choose></variable><variable name="v4"><choose><when test="floor($v3 div 100) mod 100 &gt; 12"><value-of select="$v3 - 1200+10000"/></when><otherwise><value-of select="0+$v3"/></otherwise></choose></variable><choose><when test="$v4=$pDate"><value-of select="0+$pDate"/></when><otherwise><call-template name="adjustDate"><with-param name="pDate" select="$v4"/><with-param name="pOverflow" select="$pOverflow"/></call-template></otherwise></choose></template><template name="addDate"><param name="pDate"/><param name="pExtra"/><param name="pOverflow">carry</param><if test="normalize-space($pDate)!=''"><call-template name="adjustDate"><with-param name="pDate" select="translate($pDate,'-','')+$pExtra"/><with-param name="pOverflow" select="$pOverflow"/></call-template></if></template><template name="addMonths"><param name="pDate"/><param name="pExtra"/><param name="pOverflow">carry</param><choose><when test="$pExtra &lt; 0"><call-template name="addMonths"><with-param name="pDate" select="translate($pDate,'-','') - 10000"/><with-param name="pExtra" select="$pExtra+12"/><with-param name="pOverflow" select="$pOverflow"/></call-template></when><when test="$pExtra &gt; 12"><call-template name="addMonths"><with-param name="pDate" select="translate($pDate,'-','')+10000"/><with-param name="pExtra" select="$pExtra - 12"/><with-param name="pOverflow" select="$pOverflow"/></call-template></when><otherwise><call-template name="adjustDate"><with-param name="pDate" select="translate($pDate,'-','')+100*$pExtra"/><with-param name="pOverflow" select="$pOverflow"/></call-template></otherwise></choose></template><template name="checkDateRelation"><param name="pSource" select="."/><param name="pThis" select="$pSource/text()"/><param name="pDate">2018-01-01</param><param name="pRelation"/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><choose><when test="not($pSource)"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pSource"/></call-template></when><when test="$pRelation='equals'"><call-template name="checkDateRelation"><with-param name="pThis" select="$pDate"/><with-param name="pDate" select="$pThis"/><with-param name="pRelation">equalsGt</with-param><with-param name="pExtra" select="$pExtra"/><with-param name="pRule" select="$pRule"/></call-template><call-template name="checkDateRelation"><with-param name="pThis" select="$pDate"/><with-param name="pDate" select="$pThis"/><with-param name="pRelation">equalsLt</with-param><with-param name="pExtra" select="$pExtra"/><with-param name="pRule" select="$pRule"/></call-template></when><when test="$pRelation='equalsGt' and translate($pThis,'-','') &lt; translate($pDate,'-','')"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pSource|$pExtra"/></call-template></when><when test="$pRelation='equalsLt'"><call-template name="checkDateRelation"><with-param name="pThis" select="$pDate"/><with-param name="pDate" select="$pThis"/><with-param name="pRelation">equalsGt</with-param><with-param name="pExtra" select="$pExtra"/><with-param name="pRule" select="$pRule"/></call-template></when><when test="$pRelation='daysAfter'"><variable name="v0"><call-template name="addDate"><with-param name="pDate" select="$pDate"/><with-param name="pExtra" select="$pExtra"/></call-template></variable><if test="1*translate($pThis,'-','') &lt;= 1*$v0"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pSource|$pDate"/></call-template></if></when><when test="$pRelation='monthsBefore'"><variable name="v0"><call-template name="addMonths"><with-param name="pDate" select="$pDate"/><with-param name="pExtra" select="$pExtra"/><with-param name="pOverflow">truncate</with-param></call-template></variable><if test="1*translate($pThis,'-','') &gt; 1*$v0"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pSource|$pDate"/></call-template></if></when><when test="$pRelation='monthsAfter'"><variable name="v0"><call-template name="addMonths"><with-param name="pDate" select="$pDate"/><with-param name="pExtra" select="$pExtra"/><with-param name="pOverflow">truncate</with-param></call-template></variable><if test="1*translate($pThis,'-','') &lt; 1*$v0"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pSource|$pDate"/></call-template></if></when></choose></template><template name="checkempty"><param name="pThis" select="."/><param name="pOther" select="."/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><variable name="v0"><call-template name="testvalue"><with-param name="pElement" select="$pThis"/></call-template></variable><variable name="v1"><call-template name="testvalue"><with-param name="pElement" select="$pOther"/></call-template></variable><if test="$v0='false' and $v1='true'"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pOther|$pExtra"/></call-template></if></template><template name="checkDateEquals"><param name="pThis"/><param name="pOther"/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><if test="$pThis and $pOther and $pThis!=$pOther/text()"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pOther|$pExtra"/></call-template></if></template><template name="checkafter"><param name="pThis" select="."/><param name="pOther" select="."/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><if test="not($pThis) or not($pOther) or translate($pOther/text(),'-','') &gt; translate(substring($pThis/text(),1,10),'-','')"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pOther|$pExtra"/></call-template></if></template><template name="checkafterstrict"><param name="pThis" select="."/><param name="pOther" select="."/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><if test="not($pThis) or not($pOther) or translate($pOther/text(),'-','') &gt;= translate($pThis/text(),'-','')"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pOther|$pExtra"/></call-template></if></template><template name="checksameyear"><param name="pThis" select="."/><param name="pOther" select="."/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><if test="not($pThis) or not($pOther) or substring(translate($pOther/text(),'-',''),1,4)!=substring(translate($pThis/text(),'-',''),1,4)"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pOther|$pExtra"/></call-template></if></template><template name="checksamemonth"><param name="pThis" select="."/><param name="pOther" select="."/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><if test="not($pThis) or not($pOther) or substring(translate($pOther/text(),'-',''),5,2)!=substring(translate($pThis/text(),'-',''),5,2)"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pOther|$pExtra"/></call-template></if></template><template name="checkYearsBetween"><param name="pDate1"/><param name="pDate2"/><param name="pYears"/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">ERROR</param><variable name="v0" select="number(translate(substring($pDate1,1,10),'-',''))"/><variable name="v1" select="number(translate($pDate2,'-',''))"/><variable name="v2" select="number($pYears)*10000"/><if test="($v1+$v2) &lt; $v0"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pDate1|$pDate2|$pExtra"/></call-template></if></template><template name="isPeriodOverlay"><param name="pThis"/><param name="pOther"/><choose><when test="$pThis/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'] and $pOther/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum']"><choose><when test="translate($pThis/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','') &gt;= translate($pOther/*[substring(local-name(),string-length(local-name()) - 11)='Ingangsdatum'],'-','') and translate($pThis/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','') &lt;= translate($pOther/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','') or translate($pOther/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','') &gt;= translate($pThis/*[substring(local-name(),string-length(local-name()) - 11)='Ingangsdatum'],'-','') and translate($pOther/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','') &lt;= translate($pThis/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','')"><value-of select="true()"/></when><otherwise><value-of select="false()"/></otherwise></choose></when><when test="$pThis/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'] and not($pOther/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'])"><choose><when test="translate($pThis/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','') &gt;= translate($pOther/*[substring(local-name(),string-length(local-name()) - 11)='Ingangsdatum'],'-','') and translate($pThis/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','') &lt;= '99999999' or '99999999' &gt;= translate($pThis/*[substring(local-name(),string-length(local-name()) - 11)='Ingangsdatum'],'-','') and '99999999' &lt;= translate($pThis/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','')"><value-of select="true()"/></when><otherwise><value-of select="false()"/></otherwise></choose></when><when test="$pOther/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'] and not($pThis/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'])"><choose><when test="'99999999' &gt;= translate($pOther/*[substring(local-name(),string-length(local-name()) - 11)='Ingangsdatum'],'-','') and '99999999' &lt;= translate($pOther/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','') or translate($pOther/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','') &gt;= translate($pThis/*[substring(local-name(),string-length(local-name()) - 11)='Ingangsdatum'],'-','') and translate($pOther/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','') &lt;= '99999999'"><value-of select="true()"/></when><otherwise><value-of select="false()"/></otherwise></choose></when><otherwise><value-of select="true()"/></otherwise></choose></template><template name="checkvalue"><param name="pThis" select="."/><param name="pValues" select="''"/><param name="pExtra" select="emptyNodeSet"/><param name="pCode" select="nonExistingNode"/><param name="pRule">FAIL</param><variable name="v0"><call-template name="testvalue"><with-param name="pElement" select="$pThis"/><with-param name="pValues" select="$pValues"/></call-template></variable><if test="$v0='false'"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pExtra"/><with-param name="pCode" select="$pCode"/></call-template></if></template><template name="checknvalue"><param name="pThis" select="."/><param name="pValues" select="''"/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><variable name="v0"><call-template name="testvalue"><with-param name="pElement" select="$pThis"/><with-param name="pValues" select="$pValues"/></call-template></variable><if test="$v0='true'"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pExtra"/></call-template></if></template><template name="checkimplication"><param name="pThis" select="."/><param name="pValue1" select="''"/><param name="pOther" select="."/><param name="pValue2" select="''"/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><variable name="v0"><call-template name="testvalue"><with-param name="pElement" select="$pThis"/><with-param name="pValues" select="$pValue1"/></call-template></variable><variable name="v1"><call-template name="testvalue"><with-param name="pElement" select="$pOther"/><with-param name="pValues" select="$pValue2"/></call-template></variable><if test="$v0='true' and $v1='false'"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pOther|$pExtra"/></call-template></if></template><template name="checksame"><param name="pThis" select="."/><param name="pValue1" select="''"/><param name="pOther" select="."/><param name="pValue2" select="''"/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><variable name="v0"><call-template name="testvalue"><with-param name="pElement" select="$pThis"/><with-param name="pValues" select="$pValue1"/></call-template></variable><variable name="v1"><call-template name="testvalue"><with-param name="pElement" select="$pOther"/><with-param name="pValues" select="$pValue2"/></call-template></variable><if test="$v0!=$v1"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pOther|$pExtra"/></call-template></if></template><template name="checkSingleCorrect"><param name="pThis" select="."/><param name="pValue1" select="''"/><param name="pOther" select="."/><param name="pValue2" select="''"/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><variable name="v0"><call-template name="testvalue"><with-param name="pElement" select="$pThis"/><with-param name="pValues" select="$pValue1"/></call-template></variable><variable name="v1"><call-template name="testvalue"><with-param name="pElement" select="$pOther"/><with-param name="pValues" select="$pValue2"/></call-template></variable><if test="$v0='false' and $v1='false'"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pOther|$pExtra"/></call-template></if></template><template name="formatNumberInternal"><param name="pValue"/><if test="$pValue &gt; 0"><call-template name="formatNumberInternal"><with-param name="pValue" select="floor(number($pValue) div 10)"/></call-template><value-of select="number($pValue) mod 10"/></if></template><template name="formatNumber"><param name="pValue"/><choose><when test="number($pValue) &lt; 0">-<call-template name="formatNumberInternal"><with-param name="pValue" select="0 - number($pValue)"/></call-template></when><when test="number($pValue)=0">0</when><otherwise><call-template name="formatNumberInternal"><with-param name="pValue" select="number($pValue)"/></call-template></otherwise></choose></template><template match="*[local-name()='Afzender']" mode="header" priority="10"/><template match="*[local-name()='Ontvanger']" mode="header" priority="10"/><template match="*[local-name()='BerichtCode']" mode="header" priority="10"><n8:BerichtCode><value-of select="text()"/></n8:BerichtCode></template><template match="*[local-name()='BerichtType']" mode="header" priority="10"><n8:BerichtCode><value-of select="text()"/></n8:BerichtCode></template><template match="*[local-name()='BerichtVersie']" mode="header" priority="10"><n8:BerichtVersie><value-of select="text()"/></n8:BerichtVersie></template><template match="*[local-name()='BerichtSubversie']" mode="header" priority="10"><n8:BerichtSubversie><value-of select="text()"/></n8:BerichtSubversie></template><template match="*[local-name()='Identificatie'] | *[local-name()='DeclarantFactuurNummer']" mode="header" priority="10"><n8:Identificatie><value-of select="normalize-space(text())"/></n8:Identificatie></template><template match="*[local-name()='Dagtekening'] | *[local-name()='FactuurDagtekening']" mode="header" priority="10"><n8:Dagtekening><value-of select="substring(text(),1,10)"/></n8:Dagtekening></template><template match="*[local-name()='BerichtIdentificatie'] | *[local-name()='DeclaratieFactuurIdentificatie']" mode="header" priority="10"><n8:BerichtIdentificatie><apply-templates mode="header" select="*"/></n8:BerichtIdentificatie></template><template match="*[local-name()='DeclaratieIdentificatie']" mode="header" priority="10"/><variable name="v0">2.4.4</variable><template match="*|@*|text()" mode="check"/><template match="*|@*|text()" mode="header"><apply-templates mode="header" select="*"/></template><template match="*|@*|text()" mode="traverse"><apply-templates mode="traverse" select="*"/><apply-templates mode="check" select="."/></template><template match="*[local-name() = 'Bericht']"><n8:Rapport><n8:Header><apply-templates mode="header" select="//*[local-name()='Header']/*"/><choose><when test="contains($v0,'-SNAPSHOT')"><n8:XSLTVersie>0.0.0</n8:XSLTVersie></when><otherwise><n8:XSLTVersie><value-of select="normalize-space($v0)"/></n8:XSLTVersie></otherwise></choose></n8:Header><n8:Fouten><apply-templates mode="traverse" select="*"/></n8:Fouten></n8:Rapport></template><template match="*" mode="getDetails" priority="100"><param name="pRule">FOUT</param><choose><when test="$pRule='CD005'">Als Postcode gevuld is, dan verplicht vullen, anders leeg laten.</when><when test="$pRule='CD007'">Als Communicatie / Vorm de waarde 1 (tolk taal) heeft, dan verplicht vullen, anders leeglaten.</when><when test="$pRule='CD009'">Alleen als Soort adres de waarde 04 (tijdelijk adres) heeft, is vullen toegestaan.</when><when test="$pRule='CD025'">Als Adres / LandCode de waarde NL (Nederland) heeft, dan verplicht vullen.</when><when test="$pRule='CD034'">Als Soort adres de waarde 1 (BRP-adres) of 3 (verblijfadres) heeft, dan verplicht vullen.</when><when test="$pRule='CD041'">Indien Code in Product gevuld is, verplicht vullen.</when><when test="$pRule='CD043'">Indien Beschikkingnummer gevuld is, verplicht vullen, anders leeg laten.</when><when test="$pRule='CD060'">Verplicht vullen indien DebetCredit bij het ingediende bedrag de waarde C (credit) heeft, anders leeg laten.</when><when test="$pRule='CD066'">Als type verwijzer gelijk is aan 02, 03, 04 of 05 en ZorgverlenerCode is gevuld, dan is Naamverwijzer leeg.</when><when test="$pRule='CD067'">Als type verwijzer gelijk is aan 02, 03, 04 of 05 en ZorgverlenerCode is leeg, dan is Naamverwijzer gevuld.</when><when test="$pRule='CD068'">Als type verwijzer ongelijk is aan 02, 03, 04 of 05, dan is ZorgverlenerCode leeg.</when><when test="$pRule='CD075'">Verplicht vullen indien Budget gevuld is</when><when test="$pRule='CD076'">Verplicht vullen indien Frequentie waarde 2 (per week)</when><when test="$pRule='CD077'">Indien Budget gevuld is, dan leeg laten</when><when test="$pRule='CD078'">Indien Omvang gevuld is, dan leeg laten</when><when test="$pRule='CD079'">Indien Budget leeg is, dan verplicht vullen</when><when test="$pRule='CD080'">Indien Code in Product leeg is en Einddatum van het ToegewezenProduct groter dan 31-12-2020 of leeg is, dan leeg laten</when><when test="$pRule='CD085'">Als VerzoekAntwoord de waarde 1 (Verzoek afgewezen) heeft, dan vullen</when><when test="$pRule='CD086'">Als VerzoekAntwoord de waarde 2 (Aanvraag in onderzoek) heeft, dan leeg laten</when><when test="$pRule='CD087'">Als eenheid ongelijk is aan 83 (euro's) dan verplicht vullen, anders leeg laten.</when><when test="$pRule='CD095'">Indien Code in AangevraagdProduct leeg is en ToewijzingEinddatum van het AangevraagdProduct groter dan 31-12-2020 of leeg is, dan leeg laten</when><when test="$pRule='CD096'">Indien Code in NieuwProduct leeg is en Einddatum groter dan 31-12-2020 of leeg is, dan leeg laten</when><when test="$pRule='CS002'">De waarde moet voldoen aan de 11-proef.</when><when test="$pRule='CS003'">Indien van toepassing vullen met een waarde die groter is dan, of gelijk is aan de Begindatum (of Ingangsdatum) van de aangeduide periode.</when><when test="$pRule='CS015'">BerichtSubversie vullen met 1.</when><when test="$pRule='CS025'">BerichtVersie vullen met 3.</when><when test="$pRule='CS050'">Als Partnernaam gevuld is, dan NaamGebruik vullen met waarde 1, 2, 3 of 4. Anders waarde 1 of 6 vullen.</when><when test="$pRule='CS058'">1 (eerste aanlevering) of 3 (verwijderen aanlevering) vullen.</when><when test="$pRule='CS089'">Als LandCode de waarde NL (Nederland) heeft, dan moet het formaat overeenkomen met dat van een Nederlandse postcode.</when><when test="$pRule='CS100'">Vullen met een datum die groter dan of gelijk is aan 01-01-2021</when><when test="$pRule='CS139'">Voor Geboortedatum geldt dat DatumGebruik en Datum met elkaar in overeenstemming moeten zijn.</when><when test="$pRule='CS318'">NaamGebruik 6 (Niet-natuurlijk persoon) niet vullen.</when><when test="$pRule='CS319'">Aaneengesloten vullen met cijfers en/of letters</when><when test="$pRule='CS325'">Indien (Totaal)Bedrag de waarde 0 heeft, dan DebetCredit vullen met D (Debet).</when><when test="$pRule='CS335'">RedenWijziging 13 (verwijderd) mag alleen gebruikt worden indien de ingangsdatum gelijk is aan de einddatum</when><when test="$pRule='CS336'">01 (Administratieve correctie (vervallen)) niet gebruiken</when><when test="$pRule='CS337'">Einddatum in de ProductPeriode vullen met een datum die valt in dezelfde kalendermaand en jaar als de Begindatum van de ProductPeriode</when><when test="$pRule='CS338'">Indien eenheid de waarde 14, 16, 83 of 84 heeft en Einddatum groter dan 31-12-2020 of leeg is, dan Frequentie vullen met de waarde 2 , 4 of 6</when><when test="$pRule='CS339'">Indien Eenheid de waarde 83 (euro's) heeft, moet IngediendBedrag gelijk zijn aan GeleverdVolume.</when><when test="$pRule='CS340'">De periode is exact gelijk aan 1 hele kalendermaand</when><when test="$pRule='CS343'">Indien eenheid de waarde 14, 16, 83 of 84 heeft en ToewijzingEinddatum is groter dan 31-12-2020 of leeg, dan Frequentie vullen met waarde 2, 4 of 6</when><when test="$pRule='TR002'">Geboortedatum mag niet meer dan 120 jaar voor de Dagtekening liggen, tenzij Geboortedatum onbekend is.</when><when test="$pRule='TR006'">De berichtklasse Contact moet een berichtelement Telefoon, en/of de combinatie Huis en Postcode bevatten.</when><when test="$pRule='TR018'">Einddatum moet groter dan of gelijk zijn aan Begindatum.</when><when test="$pRule='TR019'">Bij een output- of inspanningsgerichte werkwijze moet de melding van de start of de stop van de ondersteuning gerelateerd zijn aan een toewijzing op basis van het ToewijzingNummer</when><when test="$pRule='TR056'">Identificatie moet per berichtsoort uniek zijn voor de verzendende partij.</when><when test="$pRule='TR061'">Bij een Client moet minimaal één Adres voorkomen waarvan Soort de waarde '01' (BRP-adres), '02' (Correspondentie-adres) of '03' (Verblijfadres) heeft.</when><when test="$pRule='TR063'">Indien StatusAanlevering de waarde 3 (aanlevering verwijderen) bevat, dan moet voor de betreffende Client een eerdere aanlevering met dezelfde logische sleutel verstuurd zijn.</when><when test="$pRule='TR071'">StatusAanlevering mag niet de waarde '3' bevatten als er voor de betreffende melding start zorg al een stop zorg is verstuurd.</when><when test="$pRule='TR074'">Indien StatusAanlevering de waarde '1' bevat, dan moet de sleutel van de betreffende aanlevering niet alleen uniek zijn binnen het bericht zelf, maar ook in combinatie met alle reeds ontvangen berichten.</when><when test="$pRule='TR101'">Binnen een bericht zijn dubbele regels niet toegestaan.</when><when test="$pRule='TR134'">Vullen met een bestaande datum die niet groter is dan de Dagtekening van het bericht.</when><when test="$pRule='TR135'">Vullen met een bestaande datum die niet in de toekomst ligt.</when><when test="$pRule='TR137'">Vullen met een waarde die groter is dan, of gelijk is aan de Begindatum van de aangeduide periode én die niet groter is dan de Dagtekening van het bericht.</when><when test="$pRule='TR302'">Een Product mag alleen vaker in een toewijzingsbericht voorkomen indien de zorgperiodes elkaar niet overlappen</when><when test="$pRule='TR304'">Bsn moet overeenkomen met Bsn van een Client.</when><when test="$pRule='TR307'">Begindatum in de Prestatie moet groter dan of gelijk zijn aan Ingangsdatum in het ToegewezenProduct.</when><when test="$pRule='TR308'">Einddatum in de Prestatie moet kleiner dan of gelijk zijn aan Einddatum in het ToegewezenProduct, indien die gevuld is.</when><when test="$pRule='TR314'">ReferentieNummer van de Prestatie moet uniek zijn voor de aanbieder binnen het wettelijk domein waarop de Prestatie betrekking heeft, zowel binnen één bericht als berichtoverstijgend.</when><when test="$pRule='TR315'">VorigReferentieNummer van de Prestatie moet uniek zijn in het bericht.</when><when test="$pRule='TR316'">Debetregels mogen niet in hetzelfde bericht gecrediteerd worden.</when><when test="$pRule='TR318'">Indien iedere DeclaratiePeriode zorg is geleverd, moet de DeclaratiePeriode de kalendermaand volgend op de voorgaande DeclaratiePeriode zijn</when><when test="$pRule='TR319'">Een declaratiebericht bevat alleen prestaties waarvan de ProductPeriode valt binnen de huidige, of een voorgaande declaratieperiode.</when><when test="$pRule='TR321'">Indien in het ToegewezenProduct een Omvang is meegegeven, moet GeleverdVolume in de Prestatie passen binnen Volume in het ToegewezenProduct.</when><when test="$pRule='TR322'">Indien in het ToegewezenProduct een Omvang is meegegeven, moet de som van GeleverdVolume in alle ingediende Prestaties die betrekking hebben op dat ToegewezenProduct passen binnen de toegewezen Omvang.</when><when test="$pRule='TR323'">Een credit Prestatie moet gerelateerd zijn aan een eerder verzonden (goedgekeurde) debet Prestatie op basis van sleutelvelden.</when><when test="$pRule='TR326'">Een Startbericht mag pas verstuurd worden als er géén actueel Startbericht bij ToegewezenProduct is.</when><when test="$pRule='TR332'">Ieder ToegewezenProduct binnen één gemeente heeft een uniek nummer per wettelijk domein.</when><when test="$pRule='TR333'">DeclaratieNummer van de Declaratie moet uniek zijn voor de aanbieder binnen het wettelijk domein waarop de Declaratie betrekking heeft.</when><when test="$pRule='TR335'">Einddatum mag niet meer dan 5 jaar voor DeclaratieDagtekening liggen.</when><when test="$pRule='TR337'">De DeclaratieIdentificatie dient overeen te komen met de BerichtIdentificatie van een eerder ontvangen Declaratiebericht.</when><when test="$pRule='TR338'">Iedere Prestatie in een declaratiebericht is gerelateerd aan een ToegewezenProduct op basis van het toewijzingnummer.</when><when test="$pRule='TR339'">ProductCategorie in Prestatie moet gelijk zijn aan ProductCategorie in het ToegewezenProduct indien deze opgenomen is.</when><when test="$pRule='TR340'">ProductCode in Prestatie moet gelijk zijn aan ProductCode in het ToegewezenProduct, indien deze opgenomen is.</when><when test="$pRule='TR341'">Eenheid in Prestatie moet passen bij Eenheid in het ToegewezenProduct.</when><when test="$pRule='TR342'">Alleen afgewezen Prestaties dienen meegestuurd te worden in het declaratie-antwoordbericht op een declaratie.</when><when test="$pRule='TR346'">Indien Eenheid ongelijk is aan waarde 83 (Euro’s), moet IngediendBedrag gelijk zijn aan GeleverdVolume vermenigvuldigd met ProductTarief</when><when test="$pRule='TR347'">ReferentieAanbieder is uniek voor de aanbieder binnen het wettelijk domein</when><when test="$pRule='TR349'">Het verzoek om wijziging bericht bevat alle actuele ToegewezenProducten van de client</when><when test="$pRule='TR350'">Ieder OngewijzigdProduct in een verzoek om wijziging bericht is gerelateerd aan een actueel toegewezen product op basis van het ToewijzingNummer.</when><when test="$pRule='TR351'">Ieder TeWijzigenProduct in een verzoek om wijziging is gerelateerd aan een actueel ToegewezenProduct op basis van ToewijzingNummer.</when><when test="$pRule='TR352'">Bij een verzoek om wijziging komt minstens 1 OngewijzigdProduct of TeWijzigenProduct voor.</when><when test="$pRule='TR353'">Bij een verzoek om wijziging komt minstens 1 TeWijzigenProduct of NieuwProduct voor.</when><when test="$pRule='TR355'">ReferentieAanbieder in het antwoordbericht komt voor in een eerder verzoek om toewijzing of verzoek om wijziging</when><when test="$pRule='TR357'">Als GewensteIngangsdatum kleiner dan of gelijk is aan de dagtekening, dan is GewensteIngangsdatum gelijk aan ingangsdatum van het originele ToegewezenProduct.</when><when test="$pRule='TR358'">De waarde van TotaalBedrag in TotaalIngediendBedrag  moet gelijk zijn aan de SOM van de waarden van Bedrag in Ingediendbedrag in alle onderliggende Prestaties, rekening houdend met indicatie debet/credit.</when><when test="$pRule='TR359'">Als een antwoordbericht wordt verstuurd, mag er niet al eerder een toewijzingsbericht gestuurd zijn met dezelfde ReferentieAanbieder</when><when test="$pRule='TR360'">Een antwoordbericht met in VerzoekAntwoord de waarde 2 (Aanvraag in onderzoek), mag alleen gestuurd worden indien er nog geen antwoordbericht is met deze ReferentieAanbieder</when><when test="$pRule='TR361'">Een Product mag alleen vaker in verzoek om wijziging voorkomen als de zorgperiodes elkaar niet overlappen</when><when test="$pRule='TR365'">Als er al een antwoordbericht is met dezelfde ReferentieAanbieder dan moet VerzoekAntwoord daar de waarde 2 (Aanvraag in onderzoek) hebben.</when><when test="$pRule='TR366'">Iedere Prestatie in een declaratieantwoord is gerelateerd aan een declaratiebericht op basis van ProductReferentie.</when><when test="$pRule='TR367'">Waarde moet overeenkomen met waarde uit het declaratiebericht dat gerelateerd is op basis van ProductReferentie</when><when test="$pRule='TR369'">Indien in het ToegewezenProduct een Budget is meegegeven, moet de som van GeleverdVolume in alle ingediende Prestaties die betrekking hebben op dat ToegewezenProduct passen binnen het toegewezen Budget.</when><when test="$pRule='TR371'">Waarde moet overeenkomen met waarde van XsdVersie uit het declaratiebericht dat gerelateerd is op basis van DeclaratieIdentificatie.</when><when test="$pRule='TR373'">Indien in een TeWijzigenProduct het Budget of het totaal over toewijzingsperiode wordt gewijzigd, dient GewensteIngangsdatum gelijk te zijn aan de actuele toewijzing</when><when test="$pRule='TR374'">Een verzoek mag alleen worden verstuurd als er geen onderhanden verzoek is voor de betreffende client van dezelfde aanbieder.</when><when test="$pRule='TR375'">Indien Product in de toewijzing met ToewijzingNummer leeg is en Einddatum groter dan 31-12-2020 of leeg is, dan leeg laten.</when><when test="$pRule='TR376'">Het DeclaratieNummer dient overeen te komen met het DeclaratieNummer van een eerder ontvangen Declaratie.</when><when test="$pRule='TR377'">Indien RedenAfwijzingVerzoek de waarde 8 (Woonplaatsbeginsel) heeft, dan berichtklasse Woonplaatsbeginsel opnemen</when><when test="$pRule='TR378'">Vullen met een bestaande gemeentecode uit het overzicht van CBS.</when><when test="$pRule='TR379'">Indien ToegewezenProduct wordt verstuurd ter honorering van een VOT of VOW, dient ReferentieAanbieder te worden gevuld met ReferentieAanbieder uit die VOT of VOW, anders leeglaten</when><when test="$pRule='TR380'">Vullen met een datum die groter is dan de dagtekening van het bericht.</when><when test="$pRule='TR381'">ProductCode vullen met met een code die, volgens de gehanteerde productcodelijst, past bij de ProductCategorie.</when><when test="$pRule='TR382'">De sleutelelementen uit het startbericht moeten in het stopbericht, waarin wordt aangegeven dat de betreffende levering (tijdelijk) beeindigd wordt, ongewijzigd worden overgenomen.</when><when test="$pRule='TR383'">ReferentieAanbieder is uniek voor elk AangevraagdProduct binnen het bericht</when><when test="$pRule='TR384'">Het is niet toegestaan te declareren op een toewijzing met RedenWijziging waarde "13" (Verwijderd)</when><when test="$pRule='TR385'">Indien de toewijzing goedgekeurde (niet gecrediteerde) prestatiesregels met gelijk ToewijzingNummer heeft, is het niet toegestaan deze toewijzing te verwijderen met RedenWijziging waarde 13 (verwijderd)</when><when test="$pRule='TR386'">Een Product mag alleen vaker in een verzoek om toewijzing voorkomen indien de zorgperiodes elkaar niet overlappen</when><when test="$pRule='TR387'">De Begindatum van een ProductPeriode is altijd de eerste dag van de kalendermaand waarop de ProductPeriode betrekking heeft tenzij de Ingangsdatum van de toewijzing later in de betreffende maand ligt</when><when test="$pRule='TR388'">De Einddatum van een ProductPeriode is altijd de laatste dag van de kalendermaand waarop de ProductPeriode betrekking heeft tenzij de Einddatum van de toewijzing eerder in de betreffende maand ligt</when><when test="$pRule='TR389'">Een Prestatie met waarde Debet mag alleen ingezonden worden voor dezelfde ProductPeriode met gelijk ToewijzingNummer als er niet al een Prestatie met waarde Debet is zonder bijbehorende creditprestatie</when><when test="$pRule='TR390'">DebetCredit mag alleen waarde Credit hebben indien voor Prestatie met gelijk ProductReferentie niet een Prestatie met Credit bestaat</when><when test="$pRule='TR409'">Als RedenAfwijzingVerzoek ongelijk is aan 8 (Woonplaatsbeginsel), dan berichtklasse Woonplaatsbeginsel weglaten</when><when test="$pRule='TR410'">Een Product mag alleen vaker in de berichtklassen NieuwProduct voorkomen als de zorgperiodes elkaar niet overlappen.</when><when test="$pRule='TR411'">Indien Code in Product bij de toewijzing met ToewijzingNummer gevuld is, dan Omvang verplicht vullen</when><when test="$pRule='TR412'">Indien Code in Product bij de toewijzing met ToewijzingNummer leeg is en einddatum groter dan 31-12-2020 of leeg is, dan leeg laten</when></choose></template><template match="*" mode="CD005"/><template match="n9:Postcode" mode="CD005"><call-template name="checkempty"><with-param name="pOther" select="../n9:LandCode"/><with-param name="pRule">CD005</with-param></call-template></template><template match="n9:LandCode" mode="CD005"><call-template name="checkempty"><with-param name="pOther" select="../n9:Postcode"/><with-param name="pRule">CD005</with-param></call-template></template><template match="*" mode="CD007"/><template match="*[n9:Taal | n9:Vorm]" mode="check"><call-template name="checksame"><with-param name="pThis" select="n9:Taal"/><with-param name="pValue1">*</with-param><with-param name="pOther" select="n9:Vorm"/><with-param name="pValue2">1</with-param><with-param name="pRule">CD007</with-param></call-template></template><template match="*" mode="CD009"/><template match="n6:Contact/n6:Periode" mode="CD009"><call-template name="checkimplication"><with-param name="pValue1">#</with-param><with-param name="pOther" select="../n6:Soort"/><with-param name="pValue2">04</with-param><with-param name="pRule">CD009</with-param></call-template></template><template match="*" mode="CD025"/><template match="n9:LandCode" mode="CD025"><call-template name="checkimplication"><with-param name="pValue1">NL</with-param><with-param name="pOther" select="../n9:Huis/n9:Huisnummer"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD025</with-param></call-template></template><template match="*" mode="CD034"/><template match="n6:Contact" mode="CD034"><call-template name="checkimplication"><with-param name="pThis" select="n6:Soort"/><with-param name="pValue1">01,03</with-param><with-param name="pOther" select="n6:Adres/n9:Postcode"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD034</with-param></call-template></template><template match="*" mode="CD041"/><template match="n6:ToegewezenProduct" mode="CD041"><call-template name="checkimplication"><with-param name="pThis" select="n6:Product/n9:Code"/><with-param name="pValue1">*</with-param><with-param name="pOther" select="n6:Omvang"/><with-param name="pValue2">#</with-param><with-param name="pRule">CD041</with-param></call-template></template><template match="n4:AangevraagdProduct" mode="CD041"><call-template name="checkimplication"><with-param name="pThis" select="n4:Product/n9:Code"/><with-param name="pValue1">*</with-param><with-param name="pOther" select="n4:Omvang"/><with-param name="pValue2">#</with-param><with-param name="pRule">CD041</with-param></call-template></template><template match="n2:NieuwProduct" mode="CD041"><call-template name="checkimplication"><with-param name="pThis" select="n2:Product/n9:Code"/><with-param name="pValue1">*</with-param><with-param name="pOther" select="n2:Omvang"/><with-param name="pValue2">#</with-param><with-param name="pRule">CD041</with-param></call-template></template><template match="*" mode="CD043"/><template match="n4:AangevraagdProduct" mode="CD043"><call-template name="checksame"><with-param name="pThis" select="n4:BeschikkingNummer"/><with-param name="pValue1">*</with-param><with-param name="pOther" select="n4:BeschikkingIngangsdatum"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD043</with-param></call-template></template><template match="*" mode="CD060"/><template match="n7:Prestatie" mode="CD060"><call-template name="checksame"><with-param name="pThis" select="n7:IngediendBedrag/n9:DebetCredit"/><with-param name="pValue1">C</with-param><with-param name="pOther" select="n7:ProductReferentie/n9:VorigReferentieNummer"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD060</with-param></call-template></template><template match="n5:Prestatie" mode="CD060"><call-template name="checksame"><with-param name="pThis" select="n5:IngediendBedrag/n9:DebetCredit"/><with-param name="pValue1">C</with-param><with-param name="pOther" select="n5:ProductReferentie/n9:VorigReferentieNummer"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD060</with-param></call-template></template><template match="*" mode="CD066"/><template match="n4:Verwijzer" mode="CD066"><variable name="v1"><call-template name="testvalue"><with-param name="pElement" select="n9:Type"/><with-param name="pValues">02,03,04,05</with-param></call-template></variable><choose><when test="$v1='true'"><call-template name="checkimplication"><with-param name="pThis" select="n9:ZorgverlenerCode"/><with-param name="pValue1">*</with-param><with-param name="pOther" select="n9:Naam"/><with-param name="pValue2"/><with-param name="pExtra" select="n9:Type"/><with-param name="pRule">CD066</with-param></call-template></when></choose></template><template match="*" mode="CD067"/><template match="n4:Verwijzer" mode="CD067"><variable name="v1"><call-template name="testvalue"><with-param name="pElement" select="n9:Type"/><with-param name="pValues">02,03,04,05</with-param></call-template></variable><choose><when test="$v1='true'"><call-template name="checkimplication"><with-param name="pThis" select="n9:ZorgverlenerCode"/><with-param name="pValue1"/><with-param name="pOther" select="n9:Naam"/><with-param name="pValue2">*</with-param><with-param name="pExtra" select="n9:Type"/><with-param name="pRule">CD067</with-param></call-template></when></choose></template><template match="*" mode="CD068"/><template match="n4:Verwijzer" mode="CD068"><call-template name="checkimplication"><with-param name="pThis" select="n9:Type"/><with-param name="pValue1">!02,03,04,05</with-param><with-param name="pOther" select="n9:ZorgverlenerCode"/><with-param name="pValue2"/><with-param name="pRule">CD068</with-param></call-template></template><template match="*" mode="CD075"/><template match="n6:ToegewezenProduct//n6:Budget" mode="CD075"><call-template name="checkimplication"><with-param name="pValue1">*</with-param><with-param name="pOther" select="ancestor-or-self::n6:ToegewezenProduct/n6:Einddatum"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD075</with-param></call-template></template><template match="n4:AangevraagdProduct//n4:Budget" mode="CD075"><call-template name="checkimplication"><with-param name="pValue1">*</with-param><with-param name="pOther" select="ancestor-or-self::n4:AangevraagdProduct/n4:ToewijzingEinddatum"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD075</with-param></call-template></template><template match="n2:TeWijzigenProduct//n2:Budget" mode="CD075"><call-template name="checkimplication"><with-param name="pValue1">*</with-param><with-param name="pOther" select="ancestor-or-self::n2:TeWijzigenProduct/n2:Einddatum"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD075</with-param></call-template></template><template match="n2:NieuwProduct//n2:Budget" mode="CD075"><call-template name="checkimplication"><with-param name="pValue1">*</with-param><with-param name="pOther" select="ancestor-or-self::n2:NieuwProduct/n2:Einddatum"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD075</with-param></call-template></template><template match="*" mode="CD076"/><template match="n6:ToegewezenProduct/n6:Omvang/n9:Frequentie" mode="CD076"><call-template name="checkimplication"><with-param name="pValue1">2</with-param><with-param name="pOther" select="ancestor-or-self::n6:ToegewezenProduct/n6:Einddatum"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD076</with-param></call-template></template><template match="n4:AangevraagdProduct/n4:Omvang/n9:Frequentie" mode="CD076"><call-template name="checkimplication"><with-param name="pValue1">2</with-param><with-param name="pOther" select="ancestor-or-self::n4:AangevraagdProduct/n4:ToewijzingEinddatum"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD076</with-param></call-template></template><template match="n2:TeWijzigenProduct/n2:Omvang/n9:Frequentie" mode="CD076"><call-template name="checkimplication"><with-param name="pValue1">2</with-param><with-param name="pOther" select="ancestor-or-self::n2:TeWijzigenProduct/n2:Einddatum"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD076</with-param></call-template></template><template match="n2:NieuwProduct/n2:Omvang/n9:Frequentie" mode="CD076"><call-template name="checkimplication"><with-param name="pValue1">2</with-param><with-param name="pOther" select="ancestor-or-self::n2:NieuwProduct/n2:Einddatum"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD076</with-param></call-template></template><template match="*" mode="CD077"/><template match="n6:ToegewezenProduct/n6:Budget" mode="CD077"><call-template name="checkimplication"><with-param name="pValue1">*</with-param><with-param name="pOther" select="ancestor-or-self::n6:ToegewezenProduct/n6:Omvang"/><with-param name="pValue2">!#</with-param><with-param name="pRule">CD077</with-param></call-template></template><template match="n4:AangevraagdProduct/n4:Budget" mode="CD077"><call-template name="checkimplication"><with-param name="pValue1">*</with-param><with-param name="pOther" select="ancestor-or-self::n4:AangevraagdProduct/n4:Omvang"/><with-param name="pValue2">!#</with-param><with-param name="pRule">CD077</with-param></call-template></template><template match="n2:TeWijzigenProduct/n2:Budget" mode="CD077"><call-template name="checkimplication"><with-param name="pValue1">*</with-param><with-param name="pOther" select="ancestor-or-self::n2:TeWijzigenProduct/n2:Omvang"/><with-param name="pValue2">!#</with-param><with-param name="pRule">CD077</with-param></call-template></template><template match="n2:NieuwProduct/n2:Budget" mode="CD077"><call-template name="checkimplication"><with-param name="pValue1">*</with-param><with-param name="pOther" select="ancestor-or-self::n2:NieuwProduct/n2:Omvang"/><with-param name="pValue2">!#</with-param><with-param name="pRule">CD077</with-param></call-template></template><template match="*" mode="CD078"/><template match="n6:ToegewezenProduct/n6:Omvang" mode="CD078"><call-template name="checkimplication"><with-param name="pValue1">#</with-param><with-param name="pOther" select="ancestor-or-self::n6:ToegewezenProduct/n6:Budget"/><with-param name="pValue2">!#</with-param><with-param name="pRule">CD078</with-param></call-template></template><template match="n4:AangevraagdProduct/n4:Omvang" mode="CD078"><call-template name="checkimplication"><with-param name="pValue1">#</with-param><with-param name="pOther" select="ancestor-or-self::n4:AangevraagdProduct/n4:Budget"/><with-param name="pValue2">!#</with-param><with-param name="pRule">CD078</with-param></call-template></template><template match="n2:TeWijzigenProduct/n2:Omvang" mode="CD078"><call-template name="checkimplication"><with-param name="pValue1">#</with-param><with-param name="pOther" select="ancestor-or-self::n2:TeWijzigenProduct/n2:Budget"/><with-param name="pValue2">!#</with-param><with-param name="pRule">CD078</with-param></call-template></template><template match="n2:NieuwProduct/n2:Omvang" mode="CD078"><call-template name="checkimplication"><with-param name="pValue1">#</with-param><with-param name="pOther" select="ancestor-or-self::n2:NieuwProduct/n2:Budget"/><with-param name="pValue2">!#</with-param><with-param name="pRule">CD078</with-param></call-template></template><template match="*" mode="CD079"/><template match="n6:ToegewezenProduct" mode="CD079"><call-template name="checkimplication"><with-param name="pThis" select="n6:Budget"/><with-param name="pValue1"/><with-param name="pOther" select="n6:Product"/><with-param name="pValue2">#</with-param><with-param name="pExtra" select="."/><with-param name="pRule">CD079</with-param></call-template></template><template match="n4:AangevraagdProduct" mode="CD079"><call-template name="checkimplication"><with-param name="pThis" select="n4:Budget"/><with-param name="pValue1"/><with-param name="pOther" select="n4:Product"/><with-param name="pValue2">#</with-param><with-param name="pExtra" select="."/><with-param name="pRule">CD079</with-param></call-template></template><template match="n2:NieuwProduct" mode="CD079"><call-template name="checkimplication"><with-param name="pThis" select="n2:Budget"/><with-param name="pValue1"/><with-param name="pOther" select="n2:Product"/><with-param name="pValue2">#</with-param><with-param name="pExtra" select="."/><with-param name="pRule">CD079</with-param></call-template></template><template match="*" mode="CD080"/><template match="n6:ToegewezenProduct/n6:Omvang" mode="CD080"><if test="not(ancestor-or-self::n6:ToegewezenProduct/n6:Einddatum) or number(translate(ancestor-or-self::n6:ToegewezenProduct/n6:Einddatum/text(),'-','')) &gt; 20201231"><call-template name="checkimplication"><with-param name="pValue1">#</with-param><with-param name="pOther" select="ancestor-or-self::n6:ToegewezenProduct/n6:Product/n9:Code"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD080</with-param><with-param name="pExtra" select="ancestor-or-self::n6:ToegewezenProduct/n6:Einddatum"/></call-template></if></template><template match="*" mode="CD085"/><template match="n0:VerzoekAntwoord" mode="CD085"><call-template name="checkimplication"><with-param name="pValue1">1</with-param><with-param name="pOther" select="../n0:RedenAfwijzingVerzoek"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD085</with-param></call-template></template><template match="*" mode="CD086"/><template match="n0:VerzoekAntwoord" mode="CD086"><call-template name="checkimplication"><with-param name="pValue1">2</with-param><with-param name="pOther" select="../n0:RedenAfwijzingVerzoek"/><with-param name="pValue2"/><with-param name="pRule">CD086</with-param></call-template></template><template match="*" mode="CD087"/><template match="n7:Eenheid" mode="CD087"><call-template name="checksame"><with-param name="pValue1">!83</with-param><with-param name="pOther" select="../n7:ProductTarief"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD087</with-param></call-template></template><template match="*" mode="CD095"/><template match="n4:AangevraagdProduct/n4:Omvang" mode="CD095"><if test="not(ancestor-or-self::n4:AangevraagdProduct/n4:ToewijzingEinddatum) or number(translate(ancestor-or-self::n4:AangevraagdProduct/n4:ToewijzingEinddatum/text(),'-','')) &gt; 20201231"><call-template name="checkimplication"><with-param name="pValue1">#</with-param><with-param name="pOther" select="ancestor-or-self::n4:AangevraagdProduct/n4:Product/n9:Code"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD095</with-param><with-param name="pExtra" select="ancestor-or-self::n4:AangevraagdProduct/n4:ToewijzingEinddatum"/></call-template></if></template><template match="*" mode="CD096"/><template match="n2:NieuwProduct/n2:Omvang" mode="CD096"><if test="not(ancestor-or-self::n2:NieuwProduct/n2:Einddatum) or number(translate(ancestor-or-self::n2:NieuwProduct/n2:Einddatum/text(),'-','')) &gt; 20201231"><call-template name="checkimplication"><with-param name="pValue1">#</with-param><with-param name="pOther" select="ancestor-or-self::n2:NieuwProduct/n2:Product/n9:Code"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD096</with-param><with-param name="pExtra" select="ancestor-or-self::n2:NieuwProduct/n2:Einddatum"/></call-template></if></template><template match="*" mode="CS002"/><template match="*[local-name() = 'Bsn']" mode="CS002"><call-template name="check11proef"><with-param name="pRule">CS002</with-param></call-template></template><template match="*" mode="CS003"/><template match="n6:Beschikking/n6:Einddatum" mode="CS003"><call-template name="checkafter"><with-param name="pOther" select="../n6:Ingangsdatum"/><with-param name="pRule">CS003</with-param></call-template></template><template match="n6:ToegewezenProduct/n6:Einddatum" mode="CS003"><call-template name="checkafter"><with-param name="pOther" select="../n6:Ingangsdatum"/><with-param name="pRule">CS003</with-param></call-template></template><template match="n6:Contact/n6:Periode/n9:Einddatum" mode="CS003"><call-template name="checkafter"><with-param name="pOther" select="../n9:Begindatum"/><with-param name="pRule">CS003</with-param></call-template></template><template match="n4:AangevraagdProduct/n4:ToewijzingEinddatum" mode="CS003"><call-template name="checkafter"><with-param name="pOther" select="../n4:ToewijzingIngangsdatum"/><with-param name="pRule">CS003</with-param></call-template></template><template match="n2:TeWijzigenProduct/n2:Einddatum" mode="CS003"><call-template name="checkafter"><with-param name="pOther" select="../n2:GewensteIngangsdatum"/><with-param name="pRule">CS003</with-param></call-template></template><template match="n2:NieuwProduct/n2:Einddatum" mode="CS003"><call-template name="checkafter"><with-param name="pOther" select="../n2:GewensteIngangsdatum"/><with-param name="pRule">CS003</with-param></call-template></template><template match="*" mode="CS050"/><template match="n9:NaamGebruik" mode="CS050"><call-template name="checkimplication"><with-param name="pThis" select="../n9:Partnernaam"/><with-param name="pValue1">#</with-param><with-param name="pOther" select="."/><with-param name="pValue2">1,2,3,4</with-param><with-param name="pRule">CS050</with-param></call-template><call-template name="checkimplication"><with-param name="pThis" select="../n9:Partnernaam"/><with-param name="pValue1">!#</with-param><with-param name="pOther" select="."/><with-param name="pValue2">1,6</with-param><with-param name="pRule">CS050</with-param></call-template></template><template match="*" mode="CS058"/><template match="n3:StartProduct/n3:StatusAanlevering" mode="CS058"><call-template name="checkvalue"><with-param name="pValues">1,3</with-param><with-param name="pRule">CS058</with-param></call-template></template><template match="n1:StopProduct/n1:StatusAanlevering" mode="CS058"><call-template name="checkvalue"><with-param name="pValues">1,3</with-param><with-param name="pRule">CS058</with-param></call-template></template><template match="*" mode="CS089"/><template match="n9:LandCode" mode="CS089"><call-template name="checkimplication"><with-param name="pValue1">NL</with-param><with-param name="pOther" select="../n9:Postcode"/><with-param name="pValue2">#1000ZZ</with-param><with-param name="pRule">CS089</with-param></call-template></template><template match="*" mode="CS100"/><template match="n7:ProductPeriode/n9:Begindatum" mode="CS100"><if test="translate(text(),'-','') &lt; 20210101"><call-template name="addError"><with-param name="pRule">CS100</with-param></call-template></if></template><template match="n7:DeclaratiePeriode/n9:Begindatum" mode="CS100"><if test="translate(text(),'-','') &lt; 20210101"><call-template name="addError"><with-param name="pRule">CS100</with-param></call-template></if></template><template match="*" mode="CS139"/><template match="*[n9:Datum and n9:DatumGebruik]" mode="CS139"><choose><when test="n9:DatumGebruik='3' and n9:Datum!='1900-01-01'"><call-template name="addError"><with-param name="pElements" select="n9:Datum|n9:DatumGebruik"/><with-param name="pRule">CS139</with-param></call-template></when><when test="n9:DatumGebruik='2' and substring-after(n9:Datum,'-')!='01-01'"><call-template name="addError"><with-param name="pElements" select="n9:Datum|n9:DatumGebruik"/><with-param name="pRule">CS139</with-param></call-template></when><when test="n9:DatumGebruik='1' and substring-after(substring-after(n9:Datum,'-'),'-')!='01'"><call-template name="addError"><with-param name="pElements" select="n9:Datum|n9:DatumGebruik"/><with-param name="pRule">CS139</with-param></call-template></when></choose></template><template match="*" mode="CS318"/><template match="n6:Client/n6:Naam/n9:NaamGebruik" mode="CS318"><call-template name="checknvalue"><with-param name="pValues">6</with-param><with-param name="pRule">CS318</with-param></call-template></template><template match="*" mode="CS325"/><template match="*[local-name() = 'DeclaratieFactuurTotaalBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:TotaalBedrag"/></call-template></template><template match="*[local-name() = 'BtwTotaalBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:TotaalBedrag"/></call-template></template><template match="*[local-name() = 'BerekendBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:Bedrag"/></call-template></template><template match="*[local-name() = 'BtwBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:Bedrag"/></call-template></template><template match="*[local-name() = 'DeclaratieFactuurBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:Bedrag"/></call-template></template><template match="*[local-name() = 'IngediendTotaalBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:TotaalBedrag"/></call-template></template><template match="*[local-name() = 'ToegekendTotaalBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:TotaalBedrag"/></call-template></template><template match="*[local-name() = 'GemeenteBerekendBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:Bedrag"/></call-template></template><template match="*[local-name() = 'ToegekendBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:Bedrag"/></call-template></template><template match="*[local-name() = 'TotaalIngediendBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:TotaalBedrag"/></call-template></template><template match="*[local-name() = 'IngediendBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:Bedrag"/></call-template></template><template match="*[local-name() = 'TotaalToegekendBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:TotaalBedrag"/></call-template></template><template name="cs325"><param name="bedrag"/><param name="debetCredit" select="./n9:DebetCredit"/><if test="$bedrag=0 and (normalize-space($debetCredit)='c' or normalize-space($debetCredit)='C')"><call-template name="addError"><with-param name="pElements" select="$bedrag|$debetCredit"/><with-param name="pRule">CS325</with-param></call-template></if></template><template match="*" mode="CS335"/><template match="n6:ToegewezenProduct[n6:RedenWijziging/text() = '13']" mode="CS335"><call-template name="checkDateEquals"><with-param name="pThis" select="n6:Ingangsdatum"/><with-param name="pOther" select="n6:Einddatum"/><with-param name="pExtra" select="nonExistantNode"/><with-param name="pRule">CS335</with-param></call-template></template><template match="*" mode="CS336"/><template match="n6:ToegewezenProduct/n6:RedenWijziging" mode="CS336"><call-template name="checknvalue"><with-param name="pValues">01</with-param><with-param name="pRule">CS336</with-param></call-template></template><template match="*" mode="CS337"/><template match="n7:Prestatie" mode="CS337"><call-template name="checksameyear"><with-param name="pThis" select="n7:ProductPeriode/n9:Begindatum"/><with-param name="pOther" select="n7:ProductPeriode/n9:Einddatum"/><with-param name="pRule">CS337</with-param></call-template><call-template name="checksamemonth"><with-param name="pThis" select="n7:ProductPeriode/n9:Begindatum"/><with-param name="pOther" select="n7:ProductPeriode/n9:Einddatum"/><with-param name="pRule">CS337</with-param></call-template></template><template match="*" mode="CS338"/><template match="n6:ToegewezenProduct//n6:Omvang/n9:Eenheid" mode="CS338"><if test="not(ancestor-or-self::n6:ToegewezenProduct/n6:Einddatum) or number(translate(ancestor-or-self::n6:ToegewezenProduct/n6:Einddatum/text(),'-','')) &gt; 20201231"><call-template name="checkimplication"><with-param name="pValue1">14,16,83,84</with-param><with-param name="pOther" select="../n9:Frequentie"/><with-param name="pValue2">2,4,6</with-param><with-param name="pRule">CS338</with-param><with-param name="pExtra" select="ancestor-or-self::n6:ToegewezenProduct/n6:Einddatum"/></call-template></if></template><template match="n2:TeWijzigenProduct//n2:Omvang/n9:Eenheid" mode="CS338"><if test="not(ancestor-or-self::n2:TeWijzigenProduct/n2:Einddatum) or number(translate(ancestor-or-self::n2:TeWijzigenProduct/n2:Einddatum/text(),'-','')) &gt; 20201231"><call-template name="checkimplication"><with-param name="pValue1">14,16,83,84</with-param><with-param name="pOther" select="../n9:Frequentie"/><with-param name="pValue2">2,4,6</with-param><with-param name="pRule">CS338</with-param><with-param name="pExtra" select="ancestor-or-self::n2:TeWijzigenProduct/n2:Einddatum"/></call-template></if></template><template match="n2:NieuwProduct//n2:Omvang/n9:Eenheid" mode="CS338"><if test="not(ancestor-or-self::n2:NieuwProduct/n2:Einddatum) or number(translate(ancestor-or-self::n2:NieuwProduct/n2:Einddatum/text(),'-','')) &gt; 20201231"><call-template name="checkimplication"><with-param name="pValue1">14,16,83,84</with-param><with-param name="pOther" select="../n9:Frequentie"/><with-param name="pValue2">2,4,6</with-param><with-param name="pRule">CS338</with-param><with-param name="pExtra" select="ancestor-or-self::n2:NieuwProduct/n2:Einddatum"/></call-template></if></template><template match="*" mode="CS339"/><template match="n7:Prestatie[n7:Eenheid/text() = '83']" mode="CS339"><call-template name="checkRelation"><with-param name="pThis" select="n7:GeleverdVolume"/><with-param name="pOther" select="n7:IngediendBedrag/n9:Bedrag"/><with-param name="pExtra" select="nonExistantNode"/><with-param name="pRelation">equals</with-param><with-param name="pRule">CS339</with-param></call-template></template><template match="*" mode="CS340"/><template match="n7:DeclaratiePeriode" mode="CS340"><if test="substring-after(substring-after(n9:Begindatum,'-'),'-')!='01'"><call-template name="addError"><with-param name="pElements" select="n9:Begindatum"/><with-param name="pRule">CS340</with-param></call-template></if><variable name="v1"><call-template name="addDate"><with-param name="pDate" select="n9:Einddatum/text()"/><with-param name="pExtra">1</with-param></call-template></variable><variable name="v2"><call-template name="addMonths"><with-param name="pDate" select="n9:Begindatum/text()"/><with-param name="pExtra">1</with-param></call-template></variable><if test="$v1!=$v2"><call-template name="addError"><with-param name="pElements" select="n9:Begindatum|n9:Einddatum"/><with-param name="pRule">CS340</with-param></call-template></if></template><template match="*" mode="CS343"/><template match="n4:AangevraagdProduct//n4:Omvang/n9:Eenheid" mode="CS343"><if test="not(ancestor-or-self::n4:AangevraagdProduct/n4:ToewijzingEinddatum) or number(translate(ancestor-or-self::n4:AangevraagdProduct/n4:ToewijzingEinddatum/text(),'-','')) &gt; 20201231"><call-template name="checkimplication"><with-param name="pValue1">14,16,83,84</with-param><with-param name="pOther" select="../n9:Frequentie"/><with-param name="pValue2">2,4,6</with-param><with-param name="pRule">CS343</with-param><with-param name="pExtra" select="ancestor-or-self::n4:AangevraagdProduct/n4:ToewijzingEinddatum"/></call-template></if></template><template match="*" mode="TR002"/><template match="*[local-name() = 'Geboortedatum']/n9:Datum" mode="TR002"><if test="not(../n9:DatumGebruik/text()='3' and text()='1900-01-01')"><variable name="v1" select="ancestor-or-self::*[local-name()='Bericht']/*[local-name()='Header']"/><call-template name="checkYearsBetween"><with-param name="pDate1" select="$v1/*[local-name()='BerichtIdentificatie']/*[local-name()='Dagtekening']|$v1/*[local-name()='DeclaratieFactuurIdentificatie']/*[local-name()='FactuurDagtekening']"/><with-param name="pDate2" select="."/><with-param name="pYears">120</with-param><with-param name="pRule">TR002</with-param></call-template></if></template><template match="*" mode="TR006"/><template match="n6:Contact" mode="TR006"><call-template name="checkSingleCorrect"><with-param name="pThis" select="n6:Telefoon"/><with-param name="pValue1">#</with-param><with-param name="pOther" select="n6:Adres/n9:Huis"/><with-param name="pValue2">#</with-param><with-param name="pExtra" select="."/><with-param name="pRule">TR006</with-param></call-template><call-template name="checkSingleCorrect"><with-param name="pThis" select="n6:Telefoon"/><with-param name="pValue1">#</with-param><with-param name="pOther" select="n6:Adres/n9:Postcode"/><with-param name="pValue2">#</with-param><with-param name="pExtra" select="."/><with-param name="pRule">TR006</with-param></call-template></template><template match="*" mode="TR018"/><template match="n1:StopProduct/n1:Einddatum" mode="TR018"><call-template name="checkafter"><with-param name="pOther" select="../n1:Begindatum"/><with-param name="pRule">TR018</with-param></call-template></template><template match="*" mode="TR061"/><template match="n6:Client/n6:Contactgegevens" mode="TR061"><if test="not(./n6:Contact/n6:Soort[text()='01' or text()='02' or text()='03'])"><call-template name="addError"><with-param name="pElements" select="n6:Contact"/><with-param name="pRule">TR061</with-param></call-template></if></template><template match="*" mode="TR101simple"/><template match="*" mode="TR101generic"/><template match="*" mode="TR101"><apply-templates mode="TR101simple" select="*"/><apply-templates mode="TR101generic" select="*"/></template><template match="n6:Client" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Bsn']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n6:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n6:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n6:Client[(not(*[local-name()='Bsn']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n6:Client[(not(*[local-name()='Bsn']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n6:Contact" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Soort']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n6:Contact[*[local-name()='Soort']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n6:Contact[*[local-name()='Soort']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n6:Contact[(not(*[local-name()='Soort']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n6:Contact[(not(*[local-name()='Soort']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n6:Relatie" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Nummer']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n6:Relatie[*[local-name()='Nummer']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n6:Relatie[*[local-name()='Nummer']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n6:Relatie[(not(*[local-name()='Nummer']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n6:Relatie[(not(*[local-name()='Nummer']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n6:ToegewezenProduct" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='ToewijzingNummer']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n6:ToegewezenProduct[*[local-name()='ToewijzingNummer']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n6:ToegewezenProduct[*[local-name()='ToewijzingNummer']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n6:ToegewezenProduct[(not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n6:ToegewezenProduct[(not(*[local-name()='ToewijzingNummer']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n3:Client" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Bsn']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n3:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n3:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n3:Client[(not(*[local-name()='Bsn']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n3:Client[(not(*[local-name()='Bsn']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n3:StartProduct" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Begindatum']/text()"/><variable name="v3" select="*[local-name()='Product']/*[local-name()='Categorie']/text()"/><variable name="v4" select="*[local-name()='Product']/*[local-name()='Code']/text()"/><variable name="v5" select="*[local-name()='ToewijzingNummer']/text()"/><if test="$v2 and $v3 and $v4 and $v5"><variable name="v6" select="following-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and $v3 and $v4 and not($v5)"><variable name="v6" select="following-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and $v3 and not($v4) and $v5"><variable name="v6" select="following-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and $v3 and not($v4) and not($v5)"><variable name="v6" select="following-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and $v4 and $v5"><variable name="v6" select="following-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and $v4 and not($v5)"><variable name="v6" select="following-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and not($v4) and $v5"><variable name="v6" select="following-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and not($v4) and not($v5)"><variable name="v6" select="following-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and $v4 and $v5"><variable name="v6" select="following-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and $v4 and not($v5)"><variable name="v6" select="following-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and not($v4) and $v5"><variable name="v6" select="following-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and not($v4) and not($v5)"><variable name="v6" select="following-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and $v4 and $v5"><variable name="v6" select="following-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and $v4 and not($v5)"><variable name="v6" select="following-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and not($v4) and $v5"><variable name="v6" select="following-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and not($v4) and not($v5)"><variable name="v6" select="following-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n1:Client" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Bsn']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n1:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n1:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n1:Client[(not(*[local-name()='Bsn']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n1:Client[(not(*[local-name()='Bsn']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n1:StopProduct" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Begindatum']/text()"/><variable name="v3" select="*[local-name()='Einddatum']/text()"/><variable name="v4" select="*[local-name()='Product']/*[local-name()='Categorie']/text()"/><variable name="v5" select="*[local-name()='Product']/*[local-name()='Code']/text()"/><variable name="v6" select="*[local-name()='ToewijzingNummer']/text()"/><if test="$v2 and $v3 and $v4 and $v5 and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and $v3 and $v4 and $v5 and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and $v3 and $v4 and not($v5) and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and $v3 and $v4 and not($v5) and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and $v3 and not($v4) and $v5 and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and $v3 and not($v4) and $v5 and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and $v3 and not($v4) and not($v5) and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and $v3 and not($v4) and not($v5) and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and $v4 and $v5 and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and $v4 and $v5 and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and $v4 and not($v5) and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and $v4 and not($v5) and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and not($v4) and $v5 and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and not($v4) and $v5 and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and not($v4) and not($v5) and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and not($v4) and not($v5) and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and $v4 and $v5 and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and $v4 and $v5 and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and $v4 and not($v5) and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and $v4 and not($v5) and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and not($v4) and $v5 and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and not($v4) and $v5 and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and not($v4) and not($v5) and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and not($v4) and not($v5) and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and $v4 and $v5 and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and $v4 and $v5 and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and $v4 and not($v5) and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and $v4 and not($v5) and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and not($v4) and $v5 and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and not($v4) and $v5 and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and not($v4) and not($v5) and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and not($v4) and not($v5) and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n4:AangevraagdProduct" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='ReferentieAanbieder']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n4:AangevraagdProduct[*[local-name()='ReferentieAanbieder']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n4:AangevraagdProduct[*[local-name()='ReferentieAanbieder']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n4:AangevraagdProduct[(not(*[local-name()='ReferentieAanbieder']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n4:AangevraagdProduct[(not(*[local-name()='ReferentieAanbieder']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n4:Client" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Bsn']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n4:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n4:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n4:Client[(not(*[local-name()='Bsn']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n4:Client[(not(*[local-name()='Bsn']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n2:Client" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Bsn']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n2:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n2:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n2:Client[(not(*[local-name()='Bsn']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n2:Client[(not(*[local-name()='Bsn']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n2:NieuwProduct" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='GewensteIngangsdatum']/text()"/><variable name="v3" select="*[local-name()='Product']/*[local-name()='Categorie']/text()"/><variable name="v4" select="*[local-name()='Product']/*[local-name()='Code']/text()"/><if test="$v2 and $v3 and $v4"><variable name="v5" select="following-sibling::n2:NieuwProduct[*[local-name()='GewensteIngangsdatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4]"/><if test="not($v5)"><variable name="v6" select="preceding-sibling::n2:NieuwProduct[*[local-name()='GewensteIngangsdatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4]"/><if test="$v6"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v6"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and $v3 and not($v4)"><variable name="v5" select="following-sibling::n2:NieuwProduct[*[local-name()='GewensteIngangsdatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])])]"/><if test="not($v5)"><variable name="v6" select="preceding-sibling::n2:NieuwProduct[*[local-name()='GewensteIngangsdatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])])]"/><if test="$v6"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v6"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and $v4"><variable name="v5" select="following-sibling::n2:NieuwProduct[*[local-name()='GewensteIngangsdatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4]"/><if test="not($v5)"><variable name="v6" select="preceding-sibling::n2:NieuwProduct[*[local-name()='GewensteIngangsdatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4]"/><if test="$v6"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v6"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and not($v4)"><variable name="v5" select="following-sibling::n2:NieuwProduct[*[local-name()='GewensteIngangsdatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])])]"/><if test="not($v5)"><variable name="v6" select="preceding-sibling::n2:NieuwProduct[*[local-name()='GewensteIngangsdatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])])]"/><if test="$v6"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v6"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and $v4"><variable name="v5" select="following-sibling::n2:NieuwProduct[(not(*[local-name()='GewensteIngangsdatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4]"/><if test="not($v5)"><variable name="v6" select="preceding-sibling::n2:NieuwProduct[(not(*[local-name()='GewensteIngangsdatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4]"/><if test="$v6"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v6"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and not($v4)"><variable name="v5" select="following-sibling::n2:NieuwProduct[(not(*[local-name()='GewensteIngangsdatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])])]"/><if test="not($v5)"><variable name="v6" select="preceding-sibling::n2:NieuwProduct[(not(*[local-name()='GewensteIngangsdatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])])]"/><if test="$v6"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v6"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and $v4"><variable name="v5" select="following-sibling::n2:NieuwProduct[(not(*[local-name()='GewensteIngangsdatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4]"/><if test="not($v5)"><variable name="v6" select="preceding-sibling::n2:NieuwProduct[(not(*[local-name()='GewensteIngangsdatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4]"/><if test="$v6"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v6"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and not($v4)"><variable name="v5" select="following-sibling::n2:NieuwProduct[(not(*[local-name()='GewensteIngangsdatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])])]"/><if test="not($v5)"><variable name="v6" select="preceding-sibling::n2:NieuwProduct[(not(*[local-name()='GewensteIngangsdatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])])]"/><if test="$v6"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v6"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n2:OngewijzigdProduct" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='ToewijzingNummer']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n2:OngewijzigdProduct[*[local-name()='ToewijzingNummer']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n2:OngewijzigdProduct[*[local-name()='ToewijzingNummer']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n2:OngewijzigdProduct[(not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n2:OngewijzigdProduct[(not(*[local-name()='ToewijzingNummer']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n2:TeWijzigenProduct" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='ToewijzingNummer']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n2:TeWijzigenProduct[*[local-name()='ToewijzingNummer']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n2:TeWijzigenProduct[*[local-name()='ToewijzingNummer']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n2:TeWijzigenProduct[(not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n2:TeWijzigenProduct[(not(*[local-name()='ToewijzingNummer']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n2:Verzoek" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='ReferentieAanbieder']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n2:Verzoek[*[local-name()='ReferentieAanbieder']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n2:Verzoek[*[local-name()='ReferentieAanbieder']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n2:Verzoek[(not(*[local-name()='ReferentieAanbieder']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n2:Verzoek[(not(*[local-name()='ReferentieAanbieder']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n0:Antwoord" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='ReferentieAanbieder']/text()"/><variable name="v3" select="*[local-name()='VerzoekAntwoord']/text()"/><if test="$v2 and $v3"><variable name="v4" select="following-sibling::n0:Antwoord[*[local-name()='ReferentieAanbieder']/text()=$v2 and *[local-name()='VerzoekAntwoord']/text()=$v3]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n0:Antwoord[*[local-name()='ReferentieAanbieder']/text()=$v2 and *[local-name()='VerzoekAntwoord']/text()=$v3]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3)"><variable name="v4" select="following-sibling::n0:Antwoord[*[local-name()='ReferentieAanbieder']/text()=$v2 and (not(*[local-name()='VerzoekAntwoord']))]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n0:Antwoord[*[local-name()='ReferentieAanbieder']/text()=$v2 and (not(*[local-name()='VerzoekAntwoord']))]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3"><variable name="v4" select="following-sibling::n0:Antwoord[(not(*[local-name()='ReferentieAanbieder'])) and *[local-name()='VerzoekAntwoord']/text()=$v3]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n0:Antwoord[(not(*[local-name()='ReferentieAanbieder'])) and *[local-name()='VerzoekAntwoord']/text()=$v3]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3)"><variable name="v4" select="following-sibling::n0:Antwoord[(not(*[local-name()='ReferentieAanbieder'])) and (not(*[local-name()='VerzoekAntwoord']))]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n0:Antwoord[(not(*[local-name()='ReferentieAanbieder'])) and (not(*[local-name()='VerzoekAntwoord']))]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n0:Woonplaatsbeginsel" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Gemeente']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n0:Woonplaatsbeginsel[*[local-name()='Gemeente']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n0:Woonplaatsbeginsel[*[local-name()='Gemeente']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n0:Woonplaatsbeginsel[(not(*[local-name()='Gemeente']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n0:Woonplaatsbeginsel[(not(*[local-name()='Gemeente']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n7:Client" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Bsn']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n7:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n7:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n7:Client[(not(*[local-name()='Bsn']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n7:Client[(not(*[local-name()='Bsn']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n7:Declaratie" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='DeclaratieNummer']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n7:Declaratie[*[local-name()='DeclaratieNummer']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n7:Declaratie[*[local-name()='DeclaratieNummer']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n7:Declaratie[(not(*[local-name()='DeclaratieNummer']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n7:Declaratie[(not(*[local-name()='DeclaratieNummer']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n7:Prestatie" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='ProductReferentie']/*[local-name()='ReferentieNummer']/text()"/><variable name="v3" select="*[local-name()='ProductReferentie']/*[local-name()='VorigReferentieNummer']/text()"/><if test="$v2 and $v3"><variable name="v4" select="following-sibling::n7:Prestatie[*[local-name()='ProductReferentie']/*[local-name()='ReferentieNummer']/text()=$v2 and *[local-name()='ProductReferentie']/*[local-name()='VorigReferentieNummer']/text()=$v3]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n7:Prestatie[*[local-name()='ProductReferentie']/*[local-name()='ReferentieNummer']/text()=$v2 and *[local-name()='ProductReferentie']/*[local-name()='VorigReferentieNummer']/text()=$v3]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3)"><variable name="v4" select="following-sibling::n7:Prestatie[*[local-name()='ProductReferentie']/*[local-name()='ReferentieNummer']/text()=$v2 and (not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='VorigReferentieNummer'])])]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n7:Prestatie[*[local-name()='ProductReferentie']/*[local-name()='ReferentieNummer']/text()=$v2 and (not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='VorigReferentieNummer'])])]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3"><variable name="v4" select="following-sibling::n7:Prestatie[(not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='ReferentieNummer'])]) and *[local-name()='ProductReferentie']/*[local-name()='VorigReferentieNummer']/text()=$v3]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n7:Prestatie[(not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='ReferentieNummer'])]) and *[local-name()='ProductReferentie']/*[local-name()='VorigReferentieNummer']/text()=$v3]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3)"><variable name="v4" select="following-sibling::n7:Prestatie[(not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='ReferentieNummer'])]) and (not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='VorigReferentieNummer'])])]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n7:Prestatie[(not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='ReferentieNummer'])]) and (not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='VorigReferentieNummer'])])]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n5:Client" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Bsn']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n5:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n5:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n5:Client[(not(*[local-name()='Bsn']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n5:Client[(not(*[local-name()='Bsn']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n5:DeclaratieAntwoord" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='DeclaratieNummer']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n5:DeclaratieAntwoord[*[local-name()='DeclaratieNummer']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n5:DeclaratieAntwoord[*[local-name()='DeclaratieNummer']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n5:DeclaratieAntwoord[(not(*[local-name()='DeclaratieNummer']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n5:DeclaratieAntwoord[(not(*[local-name()='DeclaratieNummer']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n5:Prestatie" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='ProductReferentie']/*[local-name()='ReferentieNummer']/text()"/><variable name="v3" select="*[local-name()='ProductReferentie']/*[local-name()='VorigReferentieNummer']/text()"/><if test="$v2 and $v3"><variable name="v4" select="following-sibling::n5:Prestatie[*[local-name()='ProductReferentie']/*[local-name()='ReferentieNummer']/text()=$v2 and *[local-name()='ProductReferentie']/*[local-name()='VorigReferentieNummer']/text()=$v3]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n5:Prestatie[*[local-name()='ProductReferentie']/*[local-name()='ReferentieNummer']/text()=$v2 and *[local-name()='ProductReferentie']/*[local-name()='VorigReferentieNummer']/text()=$v3]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3)"><variable name="v4" select="following-sibling::n5:Prestatie[*[local-name()='ProductReferentie']/*[local-name()='ReferentieNummer']/text()=$v2 and (not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='VorigReferentieNummer'])])]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n5:Prestatie[*[local-name()='ProductReferentie']/*[local-name()='ReferentieNummer']/text()=$v2 and (not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='VorigReferentieNummer'])])]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3"><variable name="v4" select="following-sibling::n5:Prestatie[(not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='ReferentieNummer'])]) and *[local-name()='ProductReferentie']/*[local-name()='VorigReferentieNummer']/text()=$v3]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n5:Prestatie[(not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='ReferentieNummer'])]) and *[local-name()='ProductReferentie']/*[local-name()='VorigReferentieNummer']/text()=$v3]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3)"><variable name="v4" select="following-sibling::n5:Prestatie[(not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='ReferentieNummer'])]) and (not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='VorigReferentieNummer'])])]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n5:Prestatie[(not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='ReferentieNummer'])]) and (not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='VorigReferentieNummer'])])]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="*" mode="TR134"/><template match="n6:Beschikking/n6:Afgiftedatum" mode="TR134"><call-template name="TR134"/></template><template match="n6:Client/n6:Geboortedatum/n9:Datum" mode="TR134"><call-template name="TR134"/></template><template match="n6:Relatie/n6:Geboortedatum/n9:Datum" mode="TR134"><call-template name="TR134"/></template><template match="n6:ToegewezenProduct/n6:Toewijzingsdatum" mode="TR134"><call-template name="TR134"/></template><template match="n9:DeclaratiePeriode/n9:Begindatum" mode="TR134"><call-template name="TR134declaratie"/></template><template match="n3:Client/n3:Geboortedatum/n9:Datum" mode="TR134"><call-template name="TR134"/></template><template match="n3:StartProduct/n3:Begindatum" mode="TR134"><call-template name="TR134"/></template><template match="n1:Client/n1:Geboortedatum/n9:Datum" mode="TR134"><call-template name="TR134"/></template><template match="n1:StopProduct/n1:Einddatum" mode="TR134"><call-template name="TR134"/></template><template match="n4:Client/n4:Geboortedatum/n9:Datum" mode="TR134"><call-template name="TR134"/></template><template match="n7:DeclaratiePeriode/n9:Begindatum" mode="TR134"><call-template name="TR134"/></template><template match="n7:ProductPeriode/n9:Begindatum" mode="TR134"><call-template name="TR134"/></template><template match="n5:ProductPeriode/n9:Begindatum" mode="TR134"><call-template name="TR134"/></template><template name="TR134"><param name="pThis" select="."/><call-template name="checkafter"><with-param name="pThis" select="ancestor-or-self::*[local-name()='Bericht']/*[local-name()='Header']/*[local-name()='BerichtIdentificatie']/*[local-name()='Dagtekening']"/><with-param name="pOther" select="$pThis"/><with-param name="pRule">TR134</with-param></call-template></template><template name="TR134declaratie"><param name="pThis" select="."/><call-template name="checkafter"><with-param name="pThis" select="ancestor-or-self::*[local-name()='Bericht']/*[local-name()='Header']/*[local-name()='DeclaratieFactuurIdentificatie']/*[local-name()='FactuurDagtekening']"/><with-param name="pOther" select="$pThis"/><with-param name="pRule">TR134</with-param></call-template></template><template match="*" mode="TR137"/><template match="n7:DeclaratiePeriode" mode="TR137"><call-template name="TR137"/></template><template match="n7:ProductPeriode" mode="TR137"><call-template name="TR137"/></template><template match="n5:ProductPeriode" mode="TR137"><call-template name="TR137"/></template><template name="TR137"><call-template name="checkafter"><with-param name="pThis" select="n9:Einddatum"/><with-param name="pOther" select="n9:Begindatum"/><with-param name="pRule">TR137</with-param></call-template><call-template name="checkafter"><with-param name="pThis" select="ancestor-or-self::*[local-name()='Bericht']/*[local-name()='Header']/*[local-name()='DeclaratieFactuurIdentificatie']/*[local-name()='FactuurDagtekening']|ancestor-or-self::*[local-name()='Bericht']/*[local-name()='Header']/*[local-name()='BerichtIdentificatie']/*[local-name()='Dagtekening']"/><with-param name="pOther" select="n9:Einddatum"/><with-param name="pRule">TR137</with-param></call-template></template><template match="*" mode="TR302"/><template match="n6:ToegewezenProduct" mode="TR302"><call-template name="tr302"/></template><template name="tr302"><param name="pThis" select="."/><param name="pList" select="preceding-sibling::*"/><variable name="v1"><call-template name="ignoreForTR302"/></variable><if test="$v1!='true'"><for-each select="$pList"><if test="(( ($pThis/n6:Product/n9:Code and current()/n6:Product/n9:Code and $pThis/n6:Product/n9:Code=current()/n6:Product/n9:Code) and ($pThis/n6:Product/n9:Categorie and current()/n6:Product/n9:Categorie and $pThis/n6:Product/n9:Categorie=current()/n6:Product/n9:Categorie)) or ((not($pThis/n6:Product/n9:Code) or not(current()/n6:Product/n9:Code)) and ($pThis/n6:Product/n9:Categorie and current()/n6:Product/n9:Categorie and $pThis/n6:Product/n9:Categorie=current()/n6:Product/n9:Categorie)) or ((not($pThis/n6:Product/n9:Code) and not($pThis/n6:Product/n9:Categorie)) or (not(current()/n6:Product/n9:Code) and not(current()/n6:Product/n9:Categorie))) )"><variable name="v2"><call-template name="isPeriodOverlay"><with-param name="pThis" select="$pThis"/><with-param name="pOther" select="current()"/></call-template></variable><if test="$v2='true'"><call-template name="addError"><with-param name="pElements" select="$pThis|current()"/><with-param name="pRule">TR302</with-param></call-template></if></if></for-each></if></template><template name="ignoreForTR302"><param name="pThis" select="."/><choose><when test="(n6:RedenWijziging/text()='01' or n6:RedenWijziging/text()='13') and n6:Einddatum/. and normalize-space(n6:Einddatum/text())!=''"><choose><when test="translate(n6:Ingangsdatum/text(),'-','')=translate(n6:Einddatum/text(),'-','')"><value-of select="true()"/></when><otherwise><value-of select="false()"/></otherwise></choose></when><otherwise><value-of select="false()"/></otherwise></choose></template><template match="*" mode="TR315"/><template match="n7:ProductReferentie" mode="TR315"><variable name="v1" select="normalize-space(n9:VorigReferentieNummer/text())"/><variable name="v2" select="n9:VorigReferentieNummer"/><for-each select="ancestor-or-self::n7:Prestatie/preceding-sibling::n7:Prestatie/n7:ProductReferentie/n9:VorigReferentieNummer[text()=$v1]|ancestor-or-self::n7:Client/preceding-sibling::n7:Client/n7:Prestaties/n7:Prestatie/n7:ProductReferentie/n9:VorigReferentieNummer[text()=$v1]"><call-template name="checkvalue"><with-param name="pValues">!#</with-param><with-param name="pRule">TR315</with-param><with-param name="pExtra" select="$v2"/></call-template></for-each></template><template match="*" mode="TR316"/><template match="n7:ProductReferentie" mode="TR316"><variable name="v1" select="normalize-space(n9:ReferentieNummer/text())"/><variable name="v2" select="normalize-space(n9:VorigReferentieNummer/text())"/><variable name="v3" select="n9:ReferentieNummer"/><variable name="v4" select="n9:VorigReferentieNummer"/><for-each select="ancestor-or-self::n7:Prestatie/preceding-sibling::n7:Prestatie/n7:ProductReferentie/n9:ReferentieNummer[text()=$v2]|ancestor-or-self::n7:Client/preceding-sibling::n7:Client/n7:Prestaties/n7:Prestatie/n7:ProductReferentie/n9:ReferentieNummer[text()=$v2]"><call-template name="checkvalue"><with-param name="pValues">!#</with-param><with-param name="pRule">TR316</with-param><with-param name="pExtra" select="$v4"/></call-template></for-each><for-each select="ancestor-or-self::n7:Prestatie/preceding-sibling::n7:Prestatie/n7:ProductReferentie/n9:VorigReferentieNummer[text()=$v1]|ancestor-or-self::n7:Client/preceding-sibling::n7:Client/n7:Prestaties/n7:Prestatie/n7:ProductReferentie/n9:VorigReferentieNummer[text()=$v1]"><call-template name="checkvalue"><with-param name="pValues">!#</with-param><with-param name="pRule">TR316</with-param><with-param name="pExtra" select="$v3"/></call-template></for-each><if test="$v1=$v2"><call-template name="addError"><with-param name="pRule">TR316</with-param><with-param name="pElements" select="n9:ReferentieNummer|n9:VorigReferentieNummer"/></call-template></if></template><template match="*" mode="TR319"/><template match="n7:Prestatie" mode="TR319"><call-template name="checkafter"><with-param name="pThis" select="ancestor-or-self::n7:Declaratie/n7:DeclaratiePeriode/n9:Einddatum"/><with-param name="pOther" select="n7:ProductPeriode/n9:Begindatum"/><with-param name="pRule">TR319</with-param></call-template><call-template name="checkafter"><with-param name="pThis" select="ancestor-or-self::n7:Declaratie/n7:DeclaratiePeriode/n9:Einddatum"/><with-param name="pOther" select="n7:ProductPeriode/n9:Einddatum"/><with-param name="pRule">TR319</with-param></call-template></template><template match="*" mode="TR335"/><template match="n7:Prestatie/n7:ProductPeriode/n9:Einddatum" mode="TR335"><call-template name="checkDateRelation"><with-param name="pDate" select="ancestor-or-self::n7:Declaratie/n7:DeclaratieDagtekening"/><with-param name="pRelation">monthsAfter</with-param><with-param name="pExtra">-60</with-param><with-param name="pRule">TR335</with-param></call-template></template><template match="*" mode="TR342"/><template match="n5:DeclaratieAntwoord" mode="TR342"><variable name="v1" select="sum(./n5:Clienten/n5:Client/n5:Prestaties/n5:Prestatie/n5:IngediendBedrag[./n9:DebetCredit/text()='D']/n9:Bedrag)"/><variable name="v2" select="sum(./n5:Clienten/n5:Client/n5:Prestaties/n5:Prestatie/n5:IngediendBedrag[./n9:DebetCredit/text()='C']/n9:Bedrag)"/><variable name="v3" select="$v1 - $v2"/><variable name="v4"><choose><when test="./n5:TotaalToegekendBedrag/n9:DebetCredit/text()='C'"><value-of select="number(./n5:TotaalToegekendBedrag/n9:TotaalBedrag/text())*-1"/></when><otherwise><value-of select="number(./n5:TotaalToegekendBedrag/n9:TotaalBedrag/text())"/></otherwise></choose></variable><variable name="v5"><choose><when test="./n5:TotaalIngediendBedrag/n9:DebetCredit/text()='C'"><value-of select="number(./n5:TotaalIngediendBedrag/n9:TotaalBedrag/text())*-1"/></when><otherwise><value-of select="number(./n5:TotaalIngediendBedrag/n9:TotaalBedrag/text())"/></otherwise></choose></variable><variable name="v6" select="$v5 - $v4"/><choose><when test="count(ancestor-or-self::n5:DeclaratieAntwoord/n5:RetourCodes/*[local-name()='RetourCode'][text()!='0200' and text()!='8001'])=0"><if test="normalize-space($v3)!=normalize-space($v6)"><call-template name="addError"><with-param name="pRule">TR342</with-param><with-param name="pCode">0001</with-param><with-param name="pElements" select="n5:TotaalToegekendBedrag|n5:TotaalIngediendBedrag"/></call-template></if></when><otherwise><if test="$v4!=0"><call-template name="addError"><with-param name="pRule">TR342</with-param><with-param name="pCode">0001</with-param><with-param name="pElements" select="n5:TotaalToegekendBedrag"/></call-template></if></otherwise></choose></template><template match="*" mode="TR352"/><template match="n2:Verzoek" mode="TR352"><call-template name="checkvalue"><with-param name="pThis" select="n2:OngewijzigdeProducten/n2:OngewijzigdProduct|n2:TeWijzigenProducten/n2:TeWijzigenProduct"/><with-param name="pValues">#</with-param><with-param name="pExtra" select="."/><with-param name="pRule">TR352</with-param></call-template></template><template match="*" mode="TR353"/><template match="n2:Verzoek" mode="TR353"><call-template name="checkvalue"><with-param name="pThis" select="n2:TeWijzigenProducten/n2:TeWijzigenProduct|n2:NieuweProducten/n2:NieuwProduct"/><with-param name="pValues">#</with-param><with-param name="pExtra" select="."/><with-param name="pRule">TR353</with-param></call-template></template><template match="*" mode="TR358"/><template match="n7:TotaalIngediendBedrag" mode="TR358"><variable name="v1" select="sum(ancestor-or-self::n7:Declaratie/n7:Clienten/n7:Client/n7:Prestaties/n7:Prestatie/n7:IngediendBedrag[n9:DebetCredit/text()='D']/n9:Bedrag)"/><variable name="v2" select="sum(ancestor-or-self::n7:Declaratie/n7:Clienten/n7:Client/n7:Prestaties/n7:Prestatie/n7:IngediendBedrag[n9:DebetCredit/text()='C']/n9:Bedrag)"/><variable name="v3" select="$v1 - $v2"/><call-template name="checkimplication"><with-param name="pThis" select="n9:DebetCredit"/><with-param name="pValue1">D</with-param><with-param name="pOther" select="n9:TotaalBedrag"/><with-param name="pValue2"><call-template name="formatNumber"><with-param name="pValue" select="$v3"/></call-template></with-param><with-param name="pExtra" select="ancestor-or-self::n7:Declaratie/n7:Clienten/n7:Client/n7:Prestaties/n7:Prestatie/n7:IngediendBedrag"/><with-param name="pRule">TR358</with-param></call-template><call-template name="checkimplication"><with-param name="pThis" select="n9:DebetCredit"/><with-param name="pValue1">C</with-param><with-param name="pOther" select="n9:TotaalBedrag"/><with-param name="pValue2"><call-template name="formatNumber"><with-param name="pValue" select="0 - 1*$v3"/></call-template></with-param><with-param name="pExtra" select="ancestor-or-self::n7:Declaratie/n7:Clienten/n7:Client/n7:Prestaties/n7:Prestatie/n7:IngediendBedrag"/><with-param name="pRule">TR358</with-param></call-template></template><template match="*" mode="TR377"/><template match="n0:RedenAfwijzingVerzoek" mode="TR377"><call-template name="checkimplication"><with-param name="pValue1">8</with-param><with-param name="pOther" select="../n0:Woonplaatsbeginsel"/><with-param name="pValue2">#</with-param><with-param name="pRule">TR377</with-param></call-template></template><template match="*" mode="TR378"/><template match="n6:Afzender" mode="TR378"><call-template name="checkGemeenteCode"><with-param name="pRule">TR378</with-param></call-template></template><template match="n3:Ontvanger" mode="TR378"><call-template name="checkGemeenteCode"><with-param name="pRule">TR378</with-param></call-template></template><template match="n1:Ontvanger" mode="TR378"><call-template name="checkGemeenteCode"><with-param name="pRule">TR378</with-param></call-template></template><template match="n4:Ontvanger" mode="TR378"><call-template name="checkGemeenteCode"><with-param name="pRule">TR378</with-param></call-template></template><template match="n2:Ontvanger" mode="TR378"><call-template name="checkGemeenteCode"><with-param name="pRule">TR378</with-param></call-template></template><template match="n0:Afzender" mode="TR378"><call-template name="checkGemeenteCode"><with-param name="pRule">TR378</with-param></call-template></template><template match="n0:Gemeente" mode="TR378"><call-template name="checkGemeenteCode"><with-param name="pRule">TR378</with-param></call-template></template><template match="n7:Ontvanger" mode="TR378"><call-template name="checkGemeenteCode"><with-param name="pRule">TR378</with-param></call-template></template><template match="n5:Afzender" mode="TR378"><call-template name="checkGemeenteCode"><with-param name="pRule">TR378</with-param></call-template></template><template match="*" mode="TR380"/><template match="n2:NieuwProduct/n2:GewensteIngangsdatum" mode="TR380"><call-template name="checkafterstrict"><with-param name="pOther" select="ancestor-or-self::*[local-name()='Bericht']/*[local-name()='Header']/*[local-name()='BerichtIdentificatie']/*[local-name()='Dagtekening']"/><with-param name="pRule">TR380</with-param></call-template></template><template match="*" mode="TR383"/><template match="n4:AangevraagdProduct" mode="TR383"><variable name="v1" select="normalize-space(n4:ReferentieAanbieder/text())"/><variable name="v2" select="n4:VorigReferentieNummer"/><for-each select="ancestor-or-self::n4:AangevraagdProduct/preceding-sibling::n4:AangevraagdProduct/n4:ReferentieAanbieder[text()=$v1]"><call-template name="checkvalue"><with-param name="pValues">!#</with-param><with-param name="pRule">TR383</with-param><with-param name="pExtra" select="$v2"/></call-template></for-each></template><template match="*" mode="TR386"/><template match="n4:AangevraagdProduct" mode="TR386"><call-template name="TR386"/></template><template name="TR386"><param name="pThis" select="."/><param name="pList" select="preceding-sibling::*"/><for-each select="$pList"><if test="(( ($pThis/n4:Product/n9:Code and current()/n4:Product/n9:Code and $pThis/n4:Product/n9:Code=current()/n4:Product/n9:Code) and ($pThis/n4:Product/n9:Categorie and current()/n4:Product/n9:Categorie and $pThis/n4:Product/n9:Categorie=current()/n4:Product/n9:Categorie)) or ((not($pThis/n4:Product/n9:Code) or not(current()/n4:Product/n9:Code)) and ($pThis/n4:Product/n9:Categorie and current()/n4:Product/n9:Categorie and $pThis/n4:Product/n9:Categorie=current()/n4:Product/n9:Categorie)) or ((not($pThis/n4:Product/n9:Code) and not($pThis/n4:Product/n9:Categorie)) or (not(current()/n4:Product/n9:Code) and not(current()/n4:Product/n9:Categorie))) )"><variable name="v1"><call-template name="isPeriodOverlay"><with-param name="pThis" select="$pThis"/><with-param name="pOther" select="current()"/></call-template></variable><if test="$v1='true'"><call-template name="addError"><with-param name="pElements" select="$pThis|current()"/><with-param name="pRule">TR386</with-param></call-template></if></if></for-each></template><template match="*" mode="TR409"/><template match="n0:RedenAfwijzingVerzoek" mode="TR409"><call-template name="checkimplication"><with-param name="pValue1">!8</with-param><with-param name="pOther" select="../n0:Woonplaatsbeginsel"/><with-param name="pValue2">!#</with-param><with-param name="pRule">TR409</with-param></call-template></template><template match="*" mode="TR410"/><template match="n2:NieuwProduct" mode="TR410"><call-template name="TR410"/></template><template name="TR410"><param name="pThis" select="."/><param name="pList" select="preceding-sibling::*"/><for-each select="$pList"><if test="(( ($pThis/n2:Product/n9:Code and current()/n2:Product/n9:Code and $pThis/n2:Product/n9:Code=current()/n2:Product/n9:Code) and ($pThis/n2:Product/n9:Categorie and current()/n2:Product/n9:Categorie and $pThis/n2:Product/n9:Categorie=current()/n2:Product/n9:Categorie)) or ((not($pThis/n2:Product/n9:Code) or not(current()/n2:Product/n9:Code)) and ($pThis/n2:Product/n9:Categorie and current()/n2:Product/n9:Categorie and $pThis/n2:Product/n9:Categorie=current()/n2:Product/n9:Categorie)) or ((not($pThis/n2:Product/n9:Code) and not($pThis/n2:Product/n9:Categorie)) or (not(current()/n2:Product/n9:Code) and not(current()/n2:Product/n9:Categorie))) )"><variable name="v1"><call-template name="isPeriodOverlay"><with-param name="pThis" select="$pThis"/><with-param name="pOther" select="current()"/></call-template></variable><if test="$v1='true'"><call-template name="addError"><with-param name="pElements" select="$pThis|current()"/><with-param name="pRule">TR410</with-param></call-template></if></if></for-each></template><template match="*" mode="check" priority="0"><apply-templates mode="CD005" select="."/><apply-templates mode="CD007" select="."/><apply-templates mode="CD009" select="."/><apply-templates mode="CD025" select="."/><apply-templates mode="CD034" select="."/><apply-templates mode="CD041" select="."/><apply-templates mode="CD043" select="."/><apply-templates mode="CD060" select="."/><apply-templates mode="CD066" select="."/><apply-templates mode="CD067" select="."/><apply-templates mode="CD068" select="."/><apply-templates mode="CD075" select="."/><apply-templates mode="CD076" select="."/><apply-templates mode="CD077" select="."/><apply-templates mode="CD078" select="."/><apply-templates mode="CD079" select="."/><apply-templates mode="CD080" select="."/><apply-templates mode="CD085" select="."/><apply-templates mode="CD086" select="."/><apply-templates mode="CD087" select="."/><apply-templates mode="CD095" select="."/><apply-templates mode="CD096" select="."/><apply-templates mode="CS002" select="."/><apply-templates mode="CS003" select="."/><apply-templates mode="CS050" select="."/><apply-templates mode="CS058" select="."/><apply-templates mode="CS089" select="."/><apply-templates mode="CS100" select="."/><apply-templates mode="CS139" select="."/><apply-templates mode="CS318" select="."/><apply-templates mode="CS325" select="."/><apply-templates mode="CS335" select="."/><apply-templates mode="CS336" select="."/><apply-templates mode="CS337" select="."/><apply-templates mode="CS338" select="."/><apply-templates mode="CS339" select="."/><apply-templates mode="CS340" select="."/><apply-templates mode="CS343" select="."/><apply-templates mode="TR002" select="."/><apply-templates mode="TR006" select="."/><apply-templates mode="TR018" select="."/><apply-templates mode="TR061" select="."/><apply-templates mode="TR101" select="."/><apply-templates mode="TR134" select="."/><apply-templates mode="TR137" select="."/><apply-templates mode="TR302" select="."/><apply-templates mode="TR315" select="."/><apply-templates mode="TR316" select="."/><apply-templates mode="TR319" select="."/><apply-templates mode="TR335" select="."/><apply-templates mode="TR342" select="."/><apply-templates mode="TR352" select="."/><apply-templates mode="TR353" select="."/><apply-templates mode="TR358" select="."/><apply-templates mode="TR377" select="."/><apply-templates mode="TR378" select="."/><apply-templates mode="TR380" select="."/><apply-templates mode="TR383" select="."/><apply-templates mode="TR386" select="."/><apply-templates mode="TR409" select="."/><apply-templates mode="TR410" select="."/></template><variable name="v1"><na:XSLTHeader><na:Standaard>ijw</na:Standaard><na:StandaardRelease>3.1</na:StandaardRelease><na:XSLTVersie>2.4.4</na:XSLTVersie></na:XSLTHeader></variable></stylesheet>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><stylesheet xmlns="http://www.w3.org/1999/XSL/Transform" xmlns:n0="http://www.istandaarden.nl/ijw/3_1/jw319/schema" xmlns:n1="http://www.istandaarden.nl/ijw/3_1/jw307/schema" xmlns:n2="http://www.istandaarden.nl/ijw/3_1/jw317/schema" xmlns:n3="http://www.istandaarden.nl/ijw/3_1/jw305/schema" xmlns:n4="http://www.istandaarden.nl/ijw/3_1/jw315/schema" xmlns:n5="http://www.istandaarden.nl/ijw/3_1/jw325/schema" xmlns:n6="http://www.istandaarden.nl/ijw/3_1/jw301/schema" xmlns:n7="http://www.istandaarden.nl/ijw/3_1/jw323/schema" xmlns:n8="http://www.istandaarden.nl/validatie/1_1/rapport/schema" xmlns:n9="http://www.istandaarden.nl/ijw/3_1/basisschema/schema" xmlns:na="http://www.istandaarden.nl/validatie/1_1/rapport/schema" exclude-result-prefixes="n8 n9 n6 n2 n4 n5 n7 n0 n1 n3" version="1.0"><output encoding="UTF-8" indent="yes" method="xml" version="1.0"/><template name="printXPath"><param name="pElement" select="."/><if test="$pElement/ancestor::*"><call-template name="printXPath"><with-param name="pElement" select="$pElement/.."/></call-template><text>/</text></if><value-of select="local-name($pElement)"/><if test="($pElement/preceding-sibling::*|$pElement/following-sibling::*)[local-name()=local-name($pElement)]"><value-of select="concat('[',count($pElement/preceding-sibling::*[local-name()=local-name($pElement)])+1,']')"/></if></template><template name="addError"><param name="pRule">FOUT</param><param name="pElements" select="."/><param name="pCode" select="nonExistingNode"/><param name="pDetails" select="''"/><n8:Fout><n8:Code><value-of select="normalize-space($pRule)"/></n8:Code><if test="$pCode"><n8:Retourcode><value-of select="$pCode"/></n8:Retourcode></if><for-each select="$pElements"><n8:Locatie><text>/</text><call-template name="printXPath"><with-param name="pElement" select="."/></call-template></n8:Locatie></for-each><choose><when test="$pDetails!=''"><n8:Details><value-of select="$pDetails"/></n8:Details></when><otherwise><variable name="v0"><apply-templates mode="getDetails" select="."><with-param name="pRule" select="normalize-space($pRule)"/></apply-templates></variable><if test="$v0!=''"><n8:Details><value-of select="$v0"/></n8:Details></if></otherwise></choose></n8:Fout></template><template match="*" mode="getDetails" priority="0"><param name="pRule">FOUT</param></template><template name="checkGemeenteCode"><param name="pThis" select="."/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><variable name="v0"><apply-templates mode="validGemeente" select="."><with-param name="pGemeenteCode" select="1*normalize-space($pThis/text())"/></apply-templates></variable><if test="$v0!='true'"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pExtra"/></call-template></if></template><template match="*" mode="validGemeente" priority="0"><param name="pGemeenteCode" select="."/><value-of select="true()"/></template><template match="*" mode="validAGBCode" priority="0"><param name="pAGBCode" select="."/><param name="pFrom"/><param name="pTo" select="0"/><value-of select="true()"/></template><template match="*" mode="validZorginstelling" priority="0"><param name="pInstelling"/><param name="pOntvanger"/><value-of select="true()"/></template><template name="check11proef"><param name="pElement" select="."/><param name="pRule">FOUT</param><variable name="v0" select="floor(number($pElement/text()) div 1) mod 10"/><variable name="v1" select="floor(number($pElement/text()) div 10) mod 10"/><variable name="v2" select="floor(number($pElement/text()) div 100) mod 10"/><variable name="v3" select="floor(number($pElement/text()) div 1000) mod 10"/><variable name="v4" select="floor(number($pElement/text()) div 10000) mod 10"/><variable name="v5" select="floor(number($pElement/text()) div 100000) mod 10"/><variable name="v6" select="floor(number($pElement/text()) div 1000000) mod 10"/><variable name="v7" select="floor(number($pElement/text()) div 10000000) mod 10"/><variable name="v8" select="floor(number($pElement/text()) div 100000000) mod 10"/><if test="((9*$v8+8*$v7+7*$v6+6*$v5+5*$v4+4*$v3+3*$v2+2*$v1 - 1*$v0) mod 11)!=0"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pElement"/></call-template></if></template><template name="split"><param name="pElement" select="."/><param name="pValue"/><choose><when test="string-length(normalize-space($pValue)) &gt; 0"><variable name="v0" select="normalize-space(substring-before(concat($pValue,','),','))"/><choose><when test="normalize-space($pElement/text())=$v0"><value-of select="true()"/></when><otherwise><call-template name="split"><with-param name="pElement" select="$pElement"/><with-param name="pValue" select="substring-after($pValue,',')"/></call-template></otherwise></choose></when><otherwise><value-of select="false()"/></otherwise></choose></template><template name="callrecursive"><param name="pT"/><param name="pValues"/><param name="pText"/><param name="pPattern"/><choose><when test="string-length($pT)=1 and string-length(translate($pT,$pValues,''))=0"><call-template name="patternmatch"><with-param name="pText" select="$pText"/><with-param name="pPattern" select="$pPattern"/></call-template></when><otherwise><value-of select="false()"/></otherwise></choose></template><template name="patternmatch"><param name="pText"/><param name="pPattern"/><choose><when test="(string-length($pText)=0 and string-length($pPattern)!=0) or (string-length($pText)!=0 and string-length($pPattern)=0)"><value-of select="false()"/></when><when test="string-length($pText)=0"><value-of select="true()"/></when><otherwise><variable name="v0" select="substring($pText,1,1)"/><variable name="v1" select="substring($pPattern,1,1)"/><variable name="v2" select="substring($pText,2)"/><variable name="v3" select="substring($pPattern,2)"/><choose><when test="$v1='.'"><call-template name="patternmatch"><with-param name="pText" select="$v2"/><with-param name="pPattern" select="$v3"/></call-template></when><when test="$v1='\' and string-length($v3)!=0"><call-template name="callrecursive"><with-param name="pT" select="$v0"/><with-param name="pValues" select="substring($v3,1,1)"/><with-param name="pText" select="$v2"/><with-param name="pPattern" select="substring($v3,2)"/></call-template></when><when test="$v1='1'"><call-template name="callrecursive"><with-param name="pT" select="$v0"/><with-param name="pValues">123456789</with-param><with-param name="pText" select="$v2"/><with-param name="pPattern" select="$v3"/></call-template></when><when test="$v1='0'"><call-template name="callrecursive"><with-param name="pT" select="$v0"/><with-param name="pValues">0123456789</with-param><with-param name="pText" select="$v2"/><with-param name="pPattern" select="$v3"/></call-template></when><when test="$v1='a'"><call-template name="callrecursive"><with-param name="pT" select="$v0"/><with-param name="pValues">abcdefghijklmnopqrstuvwxyz</with-param><with-param name="pText" select="$v2"/><with-param name="pPattern" select="$v3"/></call-template></when><when test="$v1='A'"><call-template name="callrecursive"><with-param name="pT" select="$v0"/><with-param name="pValues">ABCDEFGHIJKLMNOPQRSTUVWXYZ</with-param><with-param name="pText" select="$v2"/><with-param name="pPattern" select="$v3"/></call-template></when><when test="$v1='z' or $v1='Z'"><call-template name="callrecursive"><with-param name="pT" select="$v0"/><with-param name="pValues">abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</with-param><with-param name="pText" select="$v2"/><with-param name="pPattern" select="$v3"/></call-template></when><when test="$v0=$v1"><call-template name="patternmatch"><with-param name="pText" select="$v2"/><with-param name="pPattern" select="$v3"/></call-template></when><otherwise><value-of select="false()"/></otherwise></choose></otherwise></choose></template><template name="testpattern"><param name="pElement" select="."/><param name="pPattern" select="''"/><variable name="v0" select="$pElement/text()"/><call-template name="patternmatch"><with-param name="pText" select="$v0"/><with-param name="pPattern" select="$pPattern"/></call-template></template><template name="testvalue"><param name="pElement" select="."/><param name="pValues" select="''"/><choose><when test="normalize-space($pValues)=''"><choose><when test="not($pElement/.)"><value-of select="true()"/></when><when test="normalize-space($pElement/text())=''"><value-of select="true()"/></when><otherwise><value-of select="false()"/></otherwise></choose></when><when test="normalize-space($pValues)='*'"><choose><when test="normalize-space($pElement/text())!=''"><value-of select="true()"/></when><otherwise><value-of select="false()"/></otherwise></choose></when><when test="normalize-space($pValues)='#'"><choose><when test="$pElement/."><value-of select="true()"/></when><otherwise><value-of select="false()"/></otherwise></choose></when><when test="string-length(normalize-space($pValues)) &gt; 1 and substring(normalize-space($pValues),1,1)='#'"><call-template name="testpattern"><with-param name="pElement" select="$pElement"/><with-param name="pPattern" select="substring(normalize-space($pValues),2)"/></call-template></when><when test="string-length(normalize-space($pValues)) &gt; 1 and substring(normalize-space($pValues),1,1)='!'"><variable name="v0"><call-template name="testvalue"><with-param name="pElement" select="$pElement"/><with-param name="pValues" select="substring(normalize-space($pValues),2)"/></call-template></variable><choose><when test="$v0='true'"><value-of select="false()"/></when><otherwise><value-of select="true()"/></otherwise></choose></when><otherwise><call-template name="split"><with-param name="pElement" select="$pElement"/><with-param name="pValue" select="$pValues"/></call-template></otherwise></choose></template><template name="checkRelation"><param name="pThis" select="."/><param name="pOther"/><param name="pRelation"/><param name="pExtra" select="node()"/><param name="pRule">FAIL</param><choose><when test="normalize-space($pRelation)='equals'"><call-template name="checkRelation"><with-param name="pThis" select="$pOther"/><with-param name="pOther" select="$pThis"/><with-param name="pRelation">equalsGt</with-param><with-param name="pExtra" select="$pExtra"/><with-param name="pRule" select="$pRule"/></call-template><call-template name="checkRelation"><with-param name="pThis" select="$pOther"/><with-param name="pOther" select="$pThis"/><with-param name="pRelation">equalsLt</with-param><with-param name="pExtra" select="$pExtra"/><with-param name="pRule" select="$pRule"/></call-template></when><when test="normalize-space($pRelation)='equalsGt' and $pThis &lt; $pOther"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pOther|$pExtra"/></call-template></when><when test="normalize-space($pRelation)='equalsLt'"><call-template name="checkRelation"><with-param name="pThis" select="$pOther"/><with-param name="pOther" select="$pThis"/><with-param name="pRelation">equalsGt</with-param><with-param name="pExtra" select="$pExtra"/><with-param name="pRule" select="$pRule"/></call-template></when></choose></template><template name="adjustDate"><param name="pDate"/><param name="pOverflow">carry</param><variable name="v0" select="$pDate mod 100"/><variable name="v1" select="floor($pDate div 100) mod 100"/><variable name="v2" select="floor($pDate div 10000) mod 10000"/><variable name="v3"><choose><when test="$v0 &gt; 30 and ($v1=4 or $v1=6 or $v1=9 or $v1=11)"><choose><when test="$pOverflow='carry'"><value-of select="$pDate - 30+100"/></when><when test="$pOverflow='truncate'"><value-of select="$pDate - $v0+30"/></when></choose></when><when test="$v0 &gt; 31 and ($v1=1 or $v1=3 or $v1=5 or $v1=7 or $v1=8 or $v1=10 or $v1=12)"><choose><when test="$pOverflow='carry'"><value-of select="$pDate - 31+100"/></when><when test="$pOverflow='truncate'"><value-of select="$pDate - $v0+31"/></when></choose></when><when test="$v0 &gt; 29 and $v1=2 and ($v2 mod 4)=0"><choose><when test="$pOverflow='carry'"><value-of select="$pDate - 29+100"/></when><when test="$pOverflow='truncate'"><value-of select="$pDate - $v0+29"/></when></choose></when><when test="$v0 &gt; 28 and $v1=2 and ($v2 mod 4)!=0"><choose><when test="$pOverflow='carry'"><value-of select="$pDate - 28+100"/></when><when test="$pOverflow='truncate'"><value-of select="$pDate - $v0+28"/></when></choose></when><otherwise><value-of select="0+$pDate"/></otherwise></choose></variable><variable name="v4"><choose><when test="floor($v3 div 100) mod 100 &gt; 12"><value-of select="$v3 - 1200+10000"/></when><otherwise><value-of select="0+$v3"/></otherwise></choose></variable><choose><when test="$v4=$pDate"><value-of select="0+$pDate"/></when><otherwise><call-template name="adjustDate"><with-param name="pDate" select="$v4"/><with-param name="pOverflow" select="$pOverflow"/></call-template></otherwise></choose></template><template name="addDate"><param name="pDate"/><param name="pExtra"/><param name="pOverflow">carry</param><if test="normalize-space($pDate)!=''"><call-template name="adjustDate"><with-param name="pDate" select="translate($pDate,'-','')+$pExtra"/><with-param name="pOverflow" select="$pOverflow"/></call-template></if></template><template name="addMonths"><param name="pDate"/><param name="pExtra"/><param name="pOverflow">carry</param><choose><when test="$pExtra &lt; 0"><call-template name="addMonths"><with-param name="pDate" select="translate($pDate,'-','') - 10000"/><with-param name="pExtra" select="$pExtra+12"/><with-param name="pOverflow" select="$pOverflow"/></call-template></when><when test="$pExtra &gt; 12"><call-template name="addMonths"><with-param name="pDate" select="translate($pDate,'-','')+10000"/><with-param name="pExtra" select="$pExtra - 12"/><with-param name="pOverflow" select="$pOverflow"/></call-template></when><otherwise><call-template name="adjustDate"><with-param name="pDate" select="translate($pDate,'-','')+100*$pExtra"/><with-param name="pOverflow" select="$pOverflow"/></call-template></otherwise></choose></template><template name="checkDateRelation"><param name="pSource" select="."/><param name="pThis" select="$pSource/text()"/><param name="pDate">2018-01-01</param><param name="pRelation"/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><choose><when test="not($pSource)"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pSource"/></call-template></when><when test="$pRelation='equals'"><call-template name="checkDateRelation"><with-param name="pThis" select="$pDate"/><with-param name="pDate" select="$pThis"/><with-param name="pRelation">equalsGt</with-param><with-param name="pExtra" select="$pExtra"/><with-param name="pRule" select="$pRule"/></call-template><call-template name="checkDateRelation"><with-param name="pThis" select="$pDate"/><with-param name="pDate" select="$pThis"/><with-param name="pRelation">equalsLt</with-param><with-param name="pExtra" select="$pExtra"/><with-param name="pRule" select="$pRule"/></call-template></when><when test="$pRelation='equalsGt' and translate($pThis,'-','') &lt; translate($pDate,'-','')"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pSource|$pExtra"/></call-template></when><when test="$pRelation='equalsLt'"><call-template name="checkDateRelation"><with-param name="pThis" select="$pDate"/><with-param name="pDate" select="$pThis"/><with-param name="pRelation">equalsGt</with-param><with-param name="pExtra" select="$pExtra"/><with-param name="pRule" select="$pRule"/></call-template></when><when test="$pRelation='daysAfter'"><variable name="v0"><call-template name="addDate"><with-param name="pDate" select="$pDate"/><with-param name="pExtra" select="$pExtra"/></call-template></variable><if test="1*translate($pThis,'-','') &lt;= 1*$v0"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pSource|$pDate"/></call-template></if></when><when test="$pRelation='monthsBefore'"><variable name="v0"><call-template name="addMonths"><with-param name="pDate" select="$pDate"/><with-param name="pExtra" select="$pExtra"/><with-param name="pOverflow">truncate</with-param></call-template></variable><if test="1*translate($pThis,'-','') &gt; 1*$v0"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pSource|$pDate"/></call-template></if></when><when test="$pRelation='monthsAfter'"><variable name="v0"><call-template name="addMonths"><with-param name="pDate" select="$pDate"/><with-param name="pExtra" select="$pExtra"/><with-param name="pOverflow">truncate</with-param></call-template></variable><if test="1*translate($pThis,'-','') &lt; 1*$v0"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pSource|$pDate"/></call-template></if></when></choose></template><template name="checkempty"><param name="pThis" select="."/><param name="pOther" select="."/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><variable name="v0"><call-template name="testvalue"><with-param name="pElement" select="$pThis"/></call-template></variable><variable name="v1"><call-template name="testvalue"><with-param name="pElement" select="$pOther"/></call-template></variable><if test="$v0='false' and $v1='true'"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pOther|$pExtra"/></call-template></if></template><template name="checkDateEquals"><param name="pThis"/><param name="pOther"/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><if test="$pThis and $pOther and $pThis!=$pOther/text()"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pOther|$pExtra"/></call-template></if></template><template name="checkafter"><param name="pThis" select="."/><param name="pOther" select="."/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><if test="not($pThis) or not($pOther) or translate($pOther/text(),'-','') &gt; translate(substring($pThis/text(),1,10),'-','')"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pOther|$pExtra"/></call-template></if></template><template name="checkafterstrict"><param name="pThis" select="."/><param name="pOther" select="."/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><if test="not($pThis) or not($pOther) or translate($pOther/text(),'-','') &gt;= translate($pThis/text(),'-','')"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pOther|$pExtra"/></call-template></if></template><template name="checksameyear"><param name="pThis" select="."/><param name="pOther" select="."/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><if test="not($pThis) or not($pOther) or substring(translate($pOther/text(),'-',''),1,4)!=substring(translate($pThis/text(),'-',''),1,4)"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pOther|$pExtra"/></call-template></if></template><template name="checksamemonth"><param name="pThis" select="."/><param name="pOther" select="."/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><if test="not($pThis) or not($pOther) or substring(translate($pOther/text(),'-',''),5,2)!=substring(translate($pThis/text(),'-',''),5,2)"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pOther|$pExtra"/></call-template></if></template><template name="checkYearsBetween"><param name="pDate1"/><param name="pDate2"/><param name="pYears"/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">ERROR</param><variable name="v0" select="number(translate(substring($pDate1,1,10),'-',''))"/><variable name="v1" select="number(translate($pDate2,'-',''))"/><variable name="v2" select="number($pYears)*10000"/><if test="($v1+$v2) &lt; $v0"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pDate1|$pDate2|$pExtra"/></call-template></if></template><template name="isPeriodOverlay"><param name="pThis"/><param name="pOther"/><choose><when test="$pThis/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'] and $pOther/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum']"><choose><when test="translate($pThis/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','') &gt;= translate($pOther/*[substring(local-name(),string-length(local-name()) - 11)='Ingangsdatum'],'-','') and translate($pThis/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','') &lt;= translate($pOther/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','') or translate($pOther/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','') &gt;= translate($pThis/*[substring(local-name(),string-length(local-name()) - 11)='Ingangsdatum'],'-','') and translate($pOther/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','') &lt;= translate($pThis/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','')"><value-of select="true()"/></when><otherwise><value-of select="false()"/></otherwise></choose></when><when test="$pThis/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'] and not($pOther/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'])"><choose><when test="translate($pThis/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','') &gt;= translate($pOther/*[substring(local-name(),string-length(local-name()) - 11)='Ingangsdatum'],'-','') and translate($pThis/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','') &lt;= '99999999' or '99999999' &gt;= translate($pThis/*[substring(local-name(),string-length(local-name()) - 11)='Ingangsdatum'],'-','') and '99999999' &lt;= translate($pThis/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','')"><value-of select="true()"/></when><otherwise><value-of select="false()"/></otherwise></choose></when><when test="$pOther/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'] and not($pThis/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'])"><choose><when test="'99999999' &gt;= translate($pOther/*[substring(local-name(),string-length(local-name()) - 11)='Ingangsdatum'],'-','') and '99999999' &lt;= translate($pOther/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','') or translate($pOther/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','') &gt;= translate($pThis/*[substring(local-name(),string-length(local-name()) - 11)='Ingangsdatum'],'-','') and translate($pOther/*[substring(local-name(),string-length(local-name()) - 8)='Einddatum'],'-','') &lt;= '99999999'"><value-of select="true()"/></when><otherwise><value-of select="false()"/></otherwise></choose></when><otherwise><value-of select="true()"/></otherwise></choose></template><template name="checkvalue"><param name="pThis" select="."/><param name="pValues" select="''"/><param name="pExtra" select="emptyNodeSet"/><param name="pCode" select="nonExistingNode"/><param name="pRule">FAIL</param><variable name="v0"><call-template name="testvalue"><with-param name="pElement" select="$pThis"/><with-param name="pValues" select="$pValues"/></call-template></variable><if test="$v0='false'"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pExtra"/><with-param name="pCode" select="$pCode"/></call-template></if></template><template name="checknvalue"><param name="pThis" select="."/><param name="pValues" select="''"/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><variable name="v0"><call-template name="testvalue"><with-param name="pElement" select="$pThis"/><with-param name="pValues" select="$pValues"/></call-template></variable><if test="$v0='true'"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pExtra"/></call-template></if></template><template name="checkimplication"><param name="pThis" select="."/><param name="pValue1" select="''"/><param name="pOther" select="."/><param name="pValue2" select="''"/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><variable name="v0"><call-template name="testvalue"><with-param name="pElement" select="$pThis"/><with-param name="pValues" select="$pValue1"/></call-template></variable><variable name="v1"><call-template name="testvalue"><with-param name="pElement" select="$pOther"/><with-param name="pValues" select="$pValue2"/></call-template></variable><if test="$v0='true' and $v1='false'"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pOther|$pExtra"/></call-template></if></template><template name="checksame"><param name="pThis" select="."/><param name="pValue1" select="''"/><param name="pOther" select="."/><param name="pValue2" select="''"/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><variable name="v0"><call-template name="testvalue"><with-param name="pElement" select="$pThis"/><with-param name="pValues" select="$pValue1"/></call-template></variable><variable name="v1"><call-template name="testvalue"><with-param name="pElement" select="$pOther"/><with-param name="pValues" select="$pValue2"/></call-template></variable><if test="$v0!=$v1"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pOther|$pExtra"/></call-template></if></template><template name="checkSingleCorrect"><param name="pThis" select="."/><param name="pValue1" select="''"/><param name="pOther" select="."/><param name="pValue2" select="''"/><param name="pExtra" select="emptyNodeSet"/><param name="pRule">FAIL</param><variable name="v0"><call-template name="testvalue"><with-param name="pElement" select="$pThis"/><with-param name="pValues" select="$pValue1"/></call-template></variable><variable name="v1"><call-template name="testvalue"><with-param name="pElement" select="$pOther"/><with-param name="pValues" select="$pValue2"/></call-template></variable><if test="$v0='false' and $v1='false'"><call-template name="addError"><with-param name="pRule" select="$pRule"/><with-param name="pElements" select="$pThis|$pOther|$pExtra"/></call-template></if></template><template name="formatNumberInternal"><param name="pValue"/><if test="$pValue &gt; 0"><call-template name="formatNumberInternal"><with-param name="pValue" select="floor(number($pValue) div 10)"/></call-template><value-of select="number($pValue) mod 10"/></if></template><template name="formatNumber"><param name="pValue"/><choose><when test="number($pValue) &lt; 0">-<call-template name="formatNumberInternal"><with-param name="pValue" select="0 - number($pValue)"/></call-template></when><when test="number($pValue)=0">0</when><otherwise><call-template name="formatNumberInternal"><with-param name="pValue" select="number($pValue)"/></call-template></otherwise></choose></template><template match="*[local-name()='Afzender']" mode="header" priority="10"/><template match="*[local-name()='Ontvanger']" mode="header" priority="10"/><template match="*[local-name()='BerichtCode']" mode="header" priority="10"><n8:BerichtCode><value-of select="text()"/></n8:BerichtCode></template><template match="*[local-name()='BerichtType']" mode="header" priority="10"><n8:BerichtCode><value-of select="text()"/></n8:BerichtCode></template><template match="*[local-name()='BerichtVersie']" mode="header" priority="10"><n8:BerichtVersie><value-of select="text()"/></n8:BerichtVersie></template><template match="*[local-name()='BerichtSubversie']" mode="header" priority="10"><n8:BerichtSubversie><value-of select="text()"/></n8:BerichtSubversie></template><template match="*[local-name()='Identificatie'] | *[local-name()='DeclarantFactuurNummer']" mode="header" priority="10"><n8:Identificatie><value-of select="normalize-space(text())"/></n8:Identificatie></template><template match="*[local-name()='Dagtekening'] | *[local-name()='FactuurDagtekening']" mode="header" priority="10"><n8:Dagtekening><value-of select="substring(text(),1,10)"/></n8:Dagtekening></template><template match="*[local-name()='BerichtIdentificatie'] | *[local-name()='DeclaratieFactuurIdentificatie']" mode="header" priority="10"><n8:BerichtIdentificatie><apply-templates mode="header" select="*"/></n8:BerichtIdentificatie></template><template match="*[local-name()='DeclaratieIdentificatie']" mode="header" priority="10"/><variable name="v0">2.5.3</variable><template match="*|@*|text()" mode="check"/><template match="*|@*|text()" mode="header"><apply-templates mode="header" select="*"/></template><template match="*|@*|text()" mode="traverse"><apply-templates mode="traverse" select="*"/><apply-templates mode="check" select="."/></template><template match="*[local-name() = 'Bericht']"><n8:Rapport><n8:Header><apply-templates mode="header" select="//*[local-name()='Header']/*"/><choose><when test="contains($v0,'-SNAPSHOT')"><n8:XSLTVersie>0.0.0</n8:XSLTVersie></when><otherwise><n8:XSLTVersie><value-of select="normalize-space($v0)"/></n8:XSLTVersie></otherwise></choose></n8:Header><n8:Fouten><apply-templates mode="traverse" select="*"/></n8:Fouten></n8:Rapport></template><template match="*" mode="getDetails" priority="100"><param name="pRule">FOUT</param><choose><when test="$pRule='CD005'">Als Postcode gevuld is, dan verplicht vullen, anders leeg laten.</when><when test="$pRule='CD007'">Als Communicatie / Vorm de waarde 1 (tolk taal) heeft, dan verplicht vullen, anders leeglaten.</when><when test="$pRule='CD009'">Alleen als Soort adres de waarde 04 (tijdelijk adres) heeft, is vullen toegestaan.</when><when test="$pRule='CD025'">Als Adres / LandCode de waarde NL (Nederland) heeft, dan verplicht vullen.</when><when test="$pRule='CD034'">Als Soort adres de waarde 1 (BRP-adres) of 3 (verblijfadres) heeft, dan verplicht vullen.</when><when test="$pRule='CD041'">Indien Code in Product gevuld is, verplicht vullen.</when><when test="$pRule='CD043'">Indien Beschikkingnummer gevuld is, verplicht vullen, anders leeg laten.</when><when test="$pRule='CD060'">Verplicht vullen indien DebetCredit bij het ingediende bedrag de waarde C (credit) heeft, anders leeg laten.</when><when test="$pRule='CD066'">Als type verwijzer gelijk is aan 02, 03, 04 of 05 en ZorgverlenerCode is gevuld, dan is Naamverwijzer leeg.</when><when test="$pRule='CD067'">Als type verwijzer gelijk is aan 02, 03, 04 of 05 en ZorgverlenerCode is leeg, dan is Naamverwijzer gevuld.</when><when test="$pRule='CD068'">Als type verwijzer ongelijk is aan 02, 03, 04 of 05, dan is ZorgverlenerCode leeg.</when><when test="$pRule='CD075'">Verplicht vullen indien Budget gevuld is</when><when test="$pRule='CD076'">Verplicht vullen indien Frequentie waarde 2 (per week)</when><when test="$pRule='CD077'">Indien Budget gevuld is, dan leeg laten</when><when test="$pRule='CD078'">Indien Omvang gevuld is, dan leeg laten</when><when test="$pRule='CD079'">Indien Budget leeg is, dan verplicht vullen</when><when test="$pRule='CD080'">Indien Code in Product leeg is en Einddatum van het ToegewezenProduct groter dan 31-12-2020 of leeg is, dan leeg laten</when><when test="$pRule='CD085'">Als VerzoekAntwoord de waarde 1 (Verzoek afgewezen) heeft, dan vullen</when><when test="$pRule='CD086'">Als VerzoekAntwoord de waarde 2 (Aanvraag in onderzoek) heeft, dan leeg laten</when><when test="$pRule='CD087'">Als eenheid ongelijk is aan 83 (euro's) dan verplicht vullen, anders leeg laten.</when><when test="$pRule='CD095'">Indien Code in AangevraagdProduct leeg is en ToewijzingEinddatum van het AangevraagdProduct groter dan 31-12-2020 of leeg is, dan leeg laten</when><when test="$pRule='CD096'">Indien Code in NieuwProduct leeg is en Einddatum groter dan 31-12-2020 of leeg is, dan leeg laten</when><when test="$pRule='CS002'">De waarde moet voldoen aan de 11-proef.</when><when test="$pRule='CS003'">Indien van toepassing vullen met een waarde die groter is dan, of gelijk is aan de Begindatum (of Ingangsdatum) van de aangeduide periode.</when><when test="$pRule='CS015'">BerichtSubversie vullen met 1.</when><when test="$pRule='CS025'">BerichtVersie vullen met 3.</when><when test="$pRule='CS050'">Als Partnernaam gevuld is, dan NaamGebruik vullen met waarde 1, 2, 3 of 4. Anders waarde 1 of 6 vullen.</when><when test="$pRule='CS058'">1 (eerste aanlevering) of 3 (verwijderen aanlevering) vullen.</when><when test="$pRule='CS089'">Als LandCode de waarde NL (Nederland) heeft, dan moet het formaat overeenkomen met dat van een Nederlandse postcode.</when><when test="$pRule='CS100'">Vullen met een datum die groter dan of gelijk is aan 01-01-2021</when><when test="$pRule='CS139'">Voor Geboortedatum geldt dat DatumGebruik en Datum met elkaar in overeenstemming moeten zijn.</when><when test="$pRule='CS318'">NaamGebruik 6 (Niet-natuurlijk persoon) niet vullen.</when><when test="$pRule='CS319'">Aaneengesloten vullen met cijfers en/of letters</when><when test="$pRule='CS325'">Indien (Totaal)Bedrag de waarde 0 heeft, dan DebetCredit vullen met D (Debet).</when><when test="$pRule='CS335'">RedenWijziging 13 (verwijderd) mag alleen gebruikt worden indien de ingangsdatum gelijk is aan de einddatum</when><when test="$pRule='CS336'">01 (Administratieve correctie (vervallen)) niet gebruiken</when><when test="$pRule='CS337'">Einddatum in de ProductPeriode vullen met een datum die valt in dezelfde kalendermaand en jaar als de Begindatum van de ProductPeriode</when><when test="$pRule='CS338'">Indien eenheid de waarde 14, 16, 83 of 84 heeft en Einddatum groter dan 31-12-2020 of leeg is, dan Frequentie vullen met de waarde 2 , 4 of 6</when><when test="$pRule='CS339'">Indien Eenheid de waarde 83 (euro's) heeft, moet IngediendBedrag gelijk zijn aan GeleverdVolume.</when><when test="$pRule='CS340'">De periode is exact gelijk aan 1 hele kalendermaand</when><when test="$pRule='CS343'">Indien eenheid de waarde 14, 16, 83 of 84 heeft en ToewijzingEinddatum is groter dan 31-12-2020 of leeg, dan Frequentie vullen met waarde 2, 4 of 6</when><when test="$pRule='TR002'">Geboortedatum mag niet meer dan 120 jaar voor de Dagtekening liggen, tenzij Geboortedatum onbekend is.</when><when test="$pRule='TR006'">De berichtklasse Contact moet een berichtelement Telefoon, en/of de combinatie Huis en Postcode bevatten.</when><when test="$pRule='TR018'">Einddatum moet groter dan of gelijk zijn aan Begindatum.</when><when test="$pRule='TR019'">Bij een output- of inspanningsgerichte werkwijze moet de melding van de start of de stop van de ondersteuning gerelateerd zijn aan een toewijzing op basis van het ToewijzingNummer</when><when test="$pRule='TR056'">Identificatie moet per berichtsoort uniek zijn voor de verzendende partij.</when><when test="$pRule='TR061'">Bij een Client moet minimaal één Adres voorkomen waarvan Soort de waarde '01' (BRP-adres), '02' (Correspondentie-adres) of '03' (Verblijfadres) heeft.</when><when test="$pRule='TR063'">Indien StatusAanlevering de waarde 3 (aanlevering verwijderen) bevat, dan moet voor de betreffende Client een eerdere aanlevering met dezelfde logische sleutel verstuurd zijn.</when><when test="$pRule='TR071'">StatusAanlevering mag niet de waarde '3' bevatten als er voor de betreffende melding start zorg al een stop zorg is verstuurd.</when><when test="$pRule='TR074'">Indien StatusAanlevering de waarde '1' bevat, dan moet de sleutel van de betreffende aanlevering niet alleen uniek zijn binnen het bericht zelf, maar ook in combinatie met alle reeds ontvangen berichten.</when><when test="$pRule='TR101'">Binnen een bericht zijn dubbele regels niet toegestaan.</when><when test="$pRule='TR134'">Vullen met een bestaande datum die niet groter is dan de Dagtekening van het bericht.</when><when test="$pRule='TR135'">Vullen met een bestaande datum die niet in de toekomst ligt.</when><when test="$pRule='TR137'">Vullen met een waarde die groter is dan, of gelijk is aan de Begindatum van de aangeduide periode én die niet groter is dan de Dagtekening van het bericht.</when><when test="$pRule='TR302'">Een Product mag alleen vaker in een toewijzingsbericht voorkomen indien de zorgperiodes elkaar niet overlappen</when><when test="$pRule='TR304'">Bsn moet overeenkomen met Bsn van een Client.</when><when test="$pRule='TR307'">Begindatum in de Prestatie moet groter dan of gelijk zijn aan Ingangsdatum in het ToegewezenProduct.</when><when test="$pRule='TR308'">Einddatum in de Prestatie moet kleiner dan of gelijk zijn aan Einddatum in het ToegewezenProduct, indien die gevuld is.</when><when test="$pRule='TR314'">ReferentieNummer van de Prestatie moet uniek zijn voor de aanbieder binnen het wettelijk domein waarop de Prestatie betrekking heeft, zowel binnen één bericht als berichtoverstijgend.</when><when test="$pRule='TR315'">VorigReferentieNummer van de Prestatie moet uniek zijn in het bericht.</when><when test="$pRule='TR316'">Debetregels mogen niet in hetzelfde bericht gecrediteerd worden.</when><when test="$pRule='TR318'">Indien iedere DeclaratiePeriode zorg is geleverd, moet de DeclaratiePeriode de kalendermaand volgend op de voorgaande DeclaratiePeriode zijn</when><when test="$pRule='TR319'">Een declaratiebericht bevat alleen prestaties waarvan de ProductPeriode valt binnen de huidige, of een voorgaande declaratieperiode.</when><when test="$pRule='TR321'">Indien in het ToegewezenProduct een Omvang is meegegeven, moet GeleverdVolume in de Prestatie passen binnen Volume in het ToegewezenProduct.</when><when test="$pRule='TR322'">Indien in het ToegewezenProduct een Omvang is meegegeven, moet de som van GeleverdVolume in alle ingediende Prestaties die betrekking hebben op dat ToegewezenProduct passen binnen de toegewezen Omvang.</when><when test="$pRule='TR323'">Een credit Prestatie moet gerelateerd zijn aan een eerder verzonden (goedgekeurde) debet Prestatie op basis van sleutelvelden.</when><when test="$pRule='TR326'">Een Startbericht mag pas verstuurd worden als er géén actueel Startbericht bij ToegewezenProduct is.</when><when test="$pRule='TR332'">Ieder ToegewezenProduct binnen één gemeente heeft een uniek nummer per wettelijk domein.</when><when test="$pRule='TR333'">DeclaratieNummer van de Declaratie moet uniek zijn voor de aanbieder binnen het wettelijk domein waarop de Declaratie betrekking heeft.</when><when test="$pRule='TR335'">Einddatum mag niet meer dan 5 jaar voor DeclaratieDagtekening liggen.</when><when test="$pRule='TR337'">De DeclaratieIdentificatie dient overeen te komen met de BerichtIdentificatie van een eerder ontvangen Declaratiebericht.</when><when test="$pRule='TR338'">Iedere Prestatie in een declaratiebericht is gerelateerd aan een ToegewezenProduct op basis van het toewijzingnummer.</when><when test="$pRule='TR339'">ProductCategorie in Prestatie moet gelijk zijn aan ProductCategorie in het ToegewezenProduct indien deze opgenomen is.</when><when test="$pRule='TR340'">ProductCode in Prestatie moet gelijk zijn aan ProductCode in het ToegewezenProduct, indien deze opgenomen is.</when><when test="$pRule='TR341'">Eenheid in Prestatie moet passen bij Eenheid in het ToegewezenProduct.</when><when test="$pRule='TR342'">Alleen afgewezen Prestaties dienen meegestuurd te worden in het declaratie-antwoordbericht op een declaratie.</when><when test="$pRule='TR346'">Indien Eenheid ongelijk is aan waarde 83 (Euro’s), moet IngediendBedrag gelijk zijn aan GeleverdVolume vermenigvuldigd met ProductTarief</when><when test="$pRule='TR347'">ReferentieAanbieder is uniek voor de aanbieder binnen het wettelijk domein</when><when test="$pRule='TR349'">Het verzoek om wijziging bericht bevat alle actuele ToegewezenProducten van de client</when><when test="$pRule='TR350'">Ieder OngewijzigdProduct in een verzoek om wijziging bericht is gerelateerd aan een actueel toegewezen product op basis van het ToewijzingNummer.</when><when test="$pRule='TR351'">Ieder TeWijzigenProduct in een verzoek om wijziging is gerelateerd aan een actueel ToegewezenProduct op basis van ToewijzingNummer.</when><when test="$pRule='TR352'">Bij een verzoek om wijziging komt minstens 1 OngewijzigdProduct of TeWijzigenProduct voor.</when><when test="$pRule='TR353'">Bij een verzoek om wijziging komt minstens 1 TeWijzigenProduct of NieuwProduct voor.</when><when test="$pRule='TR355'">ReferentieAanbieder in het antwoordbericht komt voor in een eerder verzoek om toewijzing of verzoek om wijziging</when><when test="$pRule='TR357'">Als GewensteIngangsdatum kleiner dan of gelijk is aan de dagtekening, dan is GewensteIngangsdatum gelijk aan ingangsdatum van het originele ToegewezenProduct.</when><when test="$pRule='TR358'">De waarde van TotaalBedrag in TotaalIngediendBedrag  moet gelijk zijn aan de SOM van de waarden van Bedrag in Ingediendbedrag in alle onderliggende Prestaties, rekening houdend met indicatie debet/credit.</when><when test="$pRule='TR359'">Als een antwoordbericht wordt verstuurd, mag er niet al eerder een toewijzingsbericht gestuurd zijn met dezelfde ReferentieAanbieder</when><when test="$pRule='TR360'">Een antwoordbericht met in VerzoekAntwoord de waarde 2 (Aanvraag in onderzoek), mag alleen gestuurd worden indien er nog geen antwoordbericht is met deze ReferentieAanbieder</when><when test="$pRule='TR361'">Een Product mag alleen vaker in verzoek om wijziging voorkomen als de zorgperiodes elkaar niet overlappen</when><when test="$pRule='TR365'">Als er al een antwoordbericht is met dezelfde ReferentieAanbieder dan moet VerzoekAntwoord daar de waarde 2 (Aanvraag in onderzoek) hebben.</when><when test="$pRule='TR366'">Iedere Prestatie in een declaratieantwoord is gerelateerd aan een declaratiebericht op basis van ProductReferentie.</when><when test="$pRule='TR367'">Waarde moet overeenkomen met waarde uit het declaratiebericht dat gerelateerd is op basis van ProductReferentie</when><when test="$pRule='TR369'">Indien in het ToegewezenProduct een Budget is meegegeven, moet de som van GeleverdVolume in alle ingediende Prestaties die betrekking hebben op dat ToegewezenProduct passen binnen het toegewezen Budget.</when><when test="$pRule='TR371'">Waarde moet overeenkomen met waarde van XsdVersie uit het declaratiebericht dat gerelateerd is op basis van DeclaratieIdentificatie.</when><when test="$pRule='TR373'">Indien in een TeWijzigenProduct het Budget of het totaal over toewijzingsperiode wordt gewijzigd, dient GewensteIngangsdatum gelijk te zijn aan de actuele toewijzing</when><when test="$pRule='TR374'">Een verzoek mag alleen worden verstuurd als er geen onderhanden verzoek is voor de betreffende client van dezelfde aanbieder.</when><when test="$pRule='TR375'">Indien Product in de toewijzing met ToewijzingNummer leeg is en Einddatum groter dan 31-12-2020 of leeg is, dan leeg laten.</when><when test="$pRule='TR376'">Het DeclaratieNummer dient overeen te komen met het DeclaratieNummer van een eerder ontvangen Declaratie.</when><when test="$pRule='TR377'">Indien RedenAfwijzingVerzoek de waarde 8 (Woonplaatsbeginsel) heeft, dan berichtklasse Woonplaatsbeginsel opnemen</when><when test="$pRule='TR378'">Vullen met een bestaande gemeentecode uit het overzicht van CBS.</when><when test="$pRule='TR379'">Indien ToegewezenProduct wordt verstuurd ter honorering van een VOT of VOW, dient ReferentieAanbieder te worden gevuld met ReferentieAanbieder uit die VOT of VOW, anders leeglaten</when><when test="$pRule='TR380'">Vullen met een datum die groter is dan de dagtekening van het bericht.</when><when test="$pRule='TR381'">ProductCode vullen met met een code die, volgens de gehanteerde productcodelijst, past bij de ProductCategorie.</when><when test="$pRule='TR382'">De sleutelelementen uit het startbericht moeten in het stopbericht, waarin wordt aangegeven dat de betreffende levering (tijdelijk) beeindigd wordt, ongewijzigd worden overgenomen.</when><when test="$pRule='TR383'">ReferentieAanbieder is uniek voor elk AangevraagdProduct binnen het bericht</when><when test="$pRule='TR384'">Het is niet toegestaan te declareren op een toewijzing met RedenWijziging waarde "13" (Verwijderd)</when><when test="$pRule='TR385'">Indien de toewijzing goedgekeurde (niet gecrediteerde) prestatiesregels met gelijk ToewijzingNummer heeft, is het niet toegestaan deze toewijzing te verwijderen met RedenWijziging waarde 13 (verwijderd)</when><when test="$pRule='TR386'">Een Product mag alleen vaker in een verzoek om toewijzing voorkomen indien de zorgperiodes elkaar niet overlappen</when><when test="$pRule='TR387'">De Begindatum van een ProductPeriode is altijd de eerste dag van de kalendermaand waarop de ProductPeriode betrekking heeft tenzij de Ingangsdatum van de toewijzing later in de betreffende maand ligt</when><when test="$pRule='TR388'">De Einddatum van een ProductPeriode is altijd de laatste dag van de kalendermaand waarop de ProductPeriode betrekking heeft tenzij de Einddatum van de toewijzing eerder in de betreffende maand ligt</when><when test="$pRule='TR389'">Een Prestatie met waarde Debet mag alleen ingezonden worden voor dezelfde ProductPeriode met gelijk ToewijzingNummer als er niet al een Prestatie met waarde Debet is zonder bijbehorende creditprestatie</when><when test="$pRule='TR390'">DebetCredit mag alleen waarde Credit hebben indien voor Prestatie met gelijk ProductReferentie niet een Prestatie met Credit bestaat</when><when test="$pRule='TR409'">Als RedenAfwijzingVerzoek ongelijk is aan 8 (Woonplaatsbeginsel), dan berichtklasse Woonplaatsbeginsel weglaten</when><when test="$pRule='TR410'">Een Product mag alleen vaker in de berichtklassen NieuwProduct voorkomen als de zorgperiodes elkaar niet overlappen.</when><when test="$pRule='TR411'">Indien Code in Product bij de toewijzing met ToewijzingNummer gevuld is, dan Omvang verplicht vullen</when><when test="$pRule='TR412'">Indien Code in Product bij de toewijzing met ToewijzingNummer leeg is en einddatum groter dan 31-12-2020 of leeg is, dan leeg laten</when></choose></template><template match="*" mode="CD005"/><template match="n9:Postcode" mode="CD005"><call-template name="checkempty"><with-param name="pOther" select="../n9:LandCode"/><with-param name="pRule">CD005</with-param></call-template></template><template match="n9:LandCode" mode="CD005"><call-template name="checkempty"><with-param name="pOther" select="../n9:Postcode"/><with-param name="pRule">CD005</with-param></call-template></template><template match="*" mode="CD007"/><template match="*[n9:Taal | n9:Vorm]" mode="check"><call-template name="checksame"><with-param name="pThis" select="n9:Taal"/><with-param name="pValue1">*</with-param><with-param name="pOther" select="n9:Vorm"/><with-param name="pValue2">1</with-param><with-param name="pRule">CD007</with-param></call-template></template><template match="*" mode="CD009"/><template match="n6:Contact/n6:Periode" mode="CD009"><call-template name="checkimplication"><with-param name="pValue1">#</with-param><with-param name="pOther" select="../n6:Soort"/><with-param name="pValue2">04</with-param><with-param name="pRule">CD009</with-param></call-template></template><template match="*" mode="CD025"/><template match="n9:LandCode" mode="CD025"><call-template name="checkimplication"><with-param name="pValue1">NL</with-param><with-param name="pOther" select="../n9:Huis/n9:Huisnummer"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD025</with-param></call-template></template><template match="*" mode="CD034"/><template match="n6:Contact" mode="CD034"><call-template name="checkimplication"><with-param name="pThis" select="n6:Soort"/><with-param name="pValue1">01,03</with-param><with-param name="pOther" select="n6:Adres/n9:Postcode"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD034</with-param></call-template></template><template match="*" mode="CD041"/><template match="n6:ToegewezenProduct" mode="CD041"><call-template name="checkimplication"><with-param name="pThis" select="n6:Product/n9:Code"/><with-param name="pValue1">*</with-param><with-param name="pOther" select="n6:Omvang"/><with-param name="pValue2">#</with-param><with-param name="pRule">CD041</with-param></call-template></template><template match="n4:AangevraagdProduct" mode="CD041"><call-template name="checkimplication"><with-param name="pThis" select="n4:Product/n9:Code"/><with-param name="pValue1">*</with-param><with-param name="pOther" select="n4:Omvang"/><with-param name="pValue2">#</with-param><with-param name="pRule">CD041</with-param></call-template></template><template match="n2:NieuwProduct" mode="CD041"><call-template name="checkimplication"><with-param name="pThis" select="n2:Product/n9:Code"/><with-param name="pValue1">*</with-param><with-param name="pOther" select="n2:Omvang"/><with-param name="pValue2">#</with-param><with-param name="pRule">CD041</with-param></call-template></template><template match="*" mode="CD043"/><template match="n4:AangevraagdProduct" mode="CD043"><call-template name="checksame"><with-param name="pThis" select="n4:BeschikkingNummer"/><with-param name="pValue1">*</with-param><with-param name="pOther" select="n4:BeschikkingIngangsdatum"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD043</with-param></call-template></template><template match="*" mode="CD060"/><template match="n7:Prestatie" mode="CD060"><call-template name="checksame"><with-param name="pThis" select="n7:IngediendBedrag/n9:DebetCredit"/><with-param name="pValue1">C</with-param><with-param name="pOther" select="n7:ProductReferentie/n9:VorigReferentieNummer"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD060</with-param></call-template></template><template match="n5:Prestatie" mode="CD060"><call-template name="checksame"><with-param name="pThis" select="n5:IngediendBedrag/n9:DebetCredit"/><with-param name="pValue1">C</with-param><with-param name="pOther" select="n5:ProductReferentie/n9:VorigReferentieNummer"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD060</with-param></call-template></template><template match="*" mode="CD066"/><template match="n4:Verwijzer" mode="CD066"><variable name="v1"><call-template name="testvalue"><with-param name="pElement" select="n9:Type"/><with-param name="pValues">02,03,04,05</with-param></call-template></variable><choose><when test="$v1='true'"><call-template name="checkimplication"><with-param name="pThis" select="n9:ZorgverlenerCode"/><with-param name="pValue1">*</with-param><with-param name="pOther" select="n9:Naam"/><with-param name="pValue2"/><with-param name="pExtra" select="n9:Type"/><with-param name="pRule">CD066</with-param></call-template></when></choose></template><template match="*" mode="CD067"/><template match="n4:Verwijzer" mode="CD067"><variable name="v1"><call-template name="testvalue"><with-param name="pElement" select="n9:Type"/><with-param name="pValues">02,03,04,05</with-param></call-template></variable><choose><when test="$v1='true'"><call-template name="checkimplication"><with-param name="pThis" select="n9:ZorgverlenerCode"/><with-param name="pValue1"/><with-param name="pOther" select="n9:Naam"/><with-param name="pValue2">*</with-param><with-param name="pExtra" select="n9:Type"/><with-param name="pRule">CD067</with-param></call-template></when></choose></template><template match="*" mode="CD068"/><template match="n4:Verwijzer" mode="CD068"><call-template name="checkimplication"><with-param name="pThis" select="n9:Type"/><with-param name="pValue1">!02,03,04,05</with-param><with-param name="pOther" select="n9:ZorgverlenerCode"/><with-param name="pValue2"/><with-param name="pRule">CD068</with-param></call-template></template><template match="*" mode="CD075"/><template match="n6:ToegewezenProduct//n6:Budget" mode="CD075"><call-template name="checkimplication"><with-param name="pValue1">*</with-param><with-param name="pOther" select="ancestor-or-self::n6:ToegewezenProduct/n6:Einddatum"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD075</with-param></call-template></template><template match="n4:AangevraagdProduct//n4:Budget" mode="CD075"><call-template name="checkimplication"><with-param name="pValue1">*</with-param><with-param name="pOther" select="ancestor-or-self::n4:AangevraagdProduct/n4:ToewijzingEinddatum"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD075</with-param></call-template></template><template match="n2:TeWijzigenProduct//n2:Budget" mode="CD075"><call-template name="checkimplication"><with-param name="pValue1">*</with-param><with-param name="pOther" select="ancestor-or-self::n2:TeWijzigenProduct/n2:Einddatum"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD075</with-param></call-template></template><template match="n2:NieuwProduct//n2:Budget" mode="CD075"><call-template name="checkimplication"><with-param name="pValue1">*</with-param><with-param name="pOther" select="ancestor-or-self::n2:NieuwProduct/n2:Einddatum"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD075</with-param></call-template></template><template match="*" mode="CD076"/><template match="n6:ToegewezenProduct/n6:Omvang/n9:Frequentie" mode="CD076"><call-template name="checkimplication"><with-param name="pValue1">2</with-param><with-param name="pOther" select="ancestor-or-self::n6:ToegewezenProduct/n6:Einddatum"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD076</with-param></call-template></template><template match="n4:AangevraagdProduct/n4:Omvang/n9:Frequentie" mode="CD076"><call-template name="checkimplication"><with-param name="pValue1">2</with-param><with-param name="pOther" select="ancestor-or-self::n4:AangevraagdProduct/n4:ToewijzingEinddatum"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD076</with-param></call-template></template><template match="n2:TeWijzigenProduct/n2:Omvang/n9:Frequentie" mode="CD076"><call-template name="checkimplication"><with-param name="pValue1">2</with-param><with-param name="pOther" select="ancestor-or-self::n2:TeWijzigenProduct/n2:Einddatum"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD076</with-param></call-template></template><template match="n2:NieuwProduct/n2:Omvang/n9:Frequentie" mode="CD076"><call-template name="checkimplication"><with-param name="pValue1">2</with-param><with-param name="pOther" select="ancestor-or-self::n2:NieuwProduct/n2:Einddatum"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD076</with-param></call-template></template><template match="*" mode="CD077"/><template match="n6:ToegewezenProduct/n6:Budget" mode="CD077"><call-template name="checkimplication"><with-param name="pValue1">*</with-param><with-param name="pOther" select="ancestor-or-self::n6:ToegewezenProduct/n6:Omvang"/><with-param name="pValue2">!#</with-param><with-param name="pRule">CD077</with-param></call-template></template><template match="n4:AangevraagdProduct/n4:Budget" mode="CD077"><call-template name="checkimplication"><with-param name="pValue1">*</with-param><with-param name="pOther" select="ancestor-or-self::n4:AangevraagdProduct/n4:Omvang"/><with-param name="pValue2">!#</with-param><with-param name="pRule">CD077</with-param></call-template></template><template match="n2:TeWijzigenProduct/n2:Budget" mode="CD077"><call-template name="checkimplication"><with-param name="pValue1">*</with-param><with-param name="pOther" select="ancestor-or-self::n2:TeWijzigenProduct/n2:Omvang"/><with-param name="pValue2">!#</with-param><with-param name="pRule">CD077</with-param></call-template></template><template match="n2:NieuwProduct/n2:Budget" mode="CD077"><call-template name="checkimplication"><with-param name="pValue1">*</with-param><with-param name="pOther" select="ancestor-or-self::n2:NieuwProduct/n2:Omvang"/><with-param name="pValue2">!#</with-param><with-param name="pRule">CD077</with-param></call-template></template><template match="*" mode="CD078"/><template match="n6:ToegewezenProduct/n6:Omvang" mode="CD078"><call-template name="checkimplication"><with-param name="pValue1">#</with-param><with-param name="pOther" select="ancestor-or-self::n6:ToegewezenProduct/n6:Budget"/><with-param name="pValue2">!#</with-param><with-param name="pRule">CD078</with-param></call-template></template><template match="n4:AangevraagdProduct/n4:Omvang" mode="CD078"><call-template name="checkimplication"><with-param name="pValue1">#</with-param><with-param name="pOther" select="ancestor-or-self::n4:AangevraagdProduct/n4:Budget"/><with-param name="pValue2">!#</with-param><with-param name="pRule">CD078</with-param></call-template></template><template match="n2:TeWijzigenProduct/n2:Omvang" mode="CD078"><call-template name="checkimplication"><with-param name="pValue1">#</with-param><with-param name="pOther" select="ancestor-or-self::n2:TeWijzigenProduct/n2:Budget"/><with-param name="pValue2">!#</with-param><with-param name="pRule">CD078</with-param></call-template></template><template match="n2:NieuwProduct/n2:Omvang" mode="CD078"><call-template name="checkimplication"><with-param name="pValue1">#</with-param><with-param name="pOther" select="ancestor-or-self::n2:NieuwProduct/n2:Budget"/><with-param name="pValue2">!#</with-param><with-param name="pRule">CD078</with-param></call-template></template><template match="*" mode="CD079"/><template match="n6:ToegewezenProduct" mode="CD079"><call-template name="checkimplication"><with-param name="pThis" select="n6:Budget"/><with-param name="pValue1"/><with-param name="pOther" select="n6:Product"/><with-param name="pValue2">#</with-param><with-param name="pExtra" select="."/><with-param name="pRule">CD079</with-param></call-template></template><template match="n4:AangevraagdProduct" mode="CD079"><call-template name="checkimplication"><with-param name="pThis" select="n4:Budget"/><with-param name="pValue1"/><with-param name="pOther" select="n4:Product"/><with-param name="pValue2">#</with-param><with-param name="pExtra" select="."/><with-param name="pRule">CD079</with-param></call-template></template><template match="n2:NieuwProduct" mode="CD079"><call-template name="checkimplication"><with-param name="pThis" select="n2:Budget"/><with-param name="pValue1"/><with-param name="pOther" select="n2:Product"/><with-param name="pValue2">#</with-param><with-param name="pExtra" select="."/><with-param name="pRule">CD079</with-param></call-template></template><template match="*" mode="CD080"/><template match="n6:ToegewezenProduct/n6:Omvang" mode="CD080"><if test="not(ancestor-or-self::n6:ToegewezenProduct/n6:Einddatum) or number(translate(ancestor-or-self::n6:ToegewezenProduct/n6:Einddatum/text(),'-','')) &gt; 20201231"><call-template name="checkimplication"><with-param name="pValue1">#</with-param><with-param name="pOther" select="ancestor-or-self::n6:ToegewezenProduct/n6:Product/n9:Code"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD080</with-param><with-param name="pExtra" select="ancestor-or-self::n6:ToegewezenProduct/n6:Einddatum"/></call-template></if></template><template match="*" mode="CD085"/><template match="n0:VerzoekAntwoord" mode="CD085"><call-template name="checkimplication"><with-param name="pValue1">1</with-param><with-param name="pOther" select="../n0:RedenAfwijzingVerzoek"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD085</with-param></call-template></template><template match="*" mode="CD086"/><template match="n0:VerzoekAntwoord" mode="CD086"><call-template name="checkimplication"><with-param name="pValue1">2</with-param><with-param name="pOther" select="../n0:RedenAfwijzingVerzoek"/><with-param name="pValue2"/><with-param name="pRule">CD086</with-param></call-template></template><template match="*" mode="CD087"/><template match="n7:Eenheid" mode="CD087"><call-template name="checksame"><with-param name="pValue1">!83</with-param><with-param name="pOther" select="../n7:ProductTarief"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD087</with-param></call-template></template><template match="*" mode="CD095"/><template match="n4:AangevraagdProduct/n4:Omvang" mode="CD095"><if test="not(ancestor-or-self::n4:AangevraagdProduct/n4:ToewijzingEinddatum) or number(translate(ancestor-or-self::n4:AangevraagdProduct/n4:ToewijzingEinddatum/text(),'-','')) &gt; 20201231"><call-template name="checkimplication"><with-param name="pValue1">#</with-param><with-param name="pOther" select="ancestor-or-self::n4:AangevraagdProduct/n4:Product/n9:Code"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD095</with-param><with-param name="pExtra" select="ancestor-or-self::n4:AangevraagdProduct/n4:ToewijzingEinddatum"/></call-template></if></template><template match="*" mode="CD096"/><template match="n2:NieuwProduct/n2:Omvang" mode="CD096"><if test="not(ancestor-or-self::n2:NieuwProduct/n2:Einddatum) or number(translate(ancestor-or-self::n2:NieuwProduct/n2:Einddatum/text(),'-','')) &gt; 20201231"><call-template name="checkimplication"><with-param name="pValue1">#</with-param><with-param name="pOther" select="ancestor-or-self::n2:NieuwProduct/n2:Product/n9:Code"/><with-param name="pValue2">*</with-param><with-param name="pRule">CD096</with-param><with-param name="pExtra" select="ancestor-or-self::n2:NieuwProduct/n2:Einddatum"/></call-template></if></template><template match="*" mode="CS002"/><template match="*[local-name() = 'Bsn']" mode="CS002"><call-template name="check11proef"><with-param name="pRule">CS002</with-param></call-template></template><template match="*" mode="CS003"/><template match="n6:Beschikking/n6:Einddatum" mode="CS003"><call-template name="checkafter"><with-param name="pOther" select="../n6:Ingangsdatum"/><with-param name="pRule">CS003</with-param></call-template></template><template match="n6:ToegewezenProduct/n6:Einddatum" mode="CS003"><call-template name="checkafter"><with-param name="pOther" select="../n6:Ingangsdatum"/><with-param name="pRule">CS003</with-param></call-template></template><template match="n6:Contact/n6:Periode/n9:Einddatum" mode="CS003"><call-template name="checkafter"><with-param name="pOther" select="../n9:Begindatum"/><with-param name="pRule">CS003</with-param></call-template></template><template match="n4:AangevraagdProduct/n4:ToewijzingEinddatum" mode="CS003"><call-template name="checkafter"><with-param name="pOther" select="../n4:ToewijzingIngangsdatum"/><with-param name="pRule">CS003</with-param></call-template></template><template match="n2:TeWijzigenProduct/n2:Einddatum" mode="CS003"><call-template name="checkafter"><with-param name="pOther" select="../n2:GewensteIngangsdatum"/><with-param name="pRule">CS003</with-param></call-template></template><template match="n2:NieuwProduct/n2:Einddatum" mode="CS003"><call-template name="checkafter"><with-param name="pOther" select="../n2:GewensteIngangsdatum"/><with-param name="pRule">CS003</with-param></call-template></template><template match="*" mode="CS050"/><template match="n9:NaamGebruik" mode="CS050"><call-template name="checkimplication"><with-param name="pThis" select="../n9:Partnernaam"/><with-param name="pValue1">#</with-param><with-param name="pOther" select="."/><with-param name="pValue2">1,2,3,4</with-param><with-param name="pRule">CS050</with-param></call-template><call-template name="checkimplication"><with-param name="pThis" select="../n9:Partnernaam"/><with-param name="pValue1">!#</with-param><with-param name="pOther" select="."/><with-param name="pValue2">1,6</with-param><with-param name="pRule">CS050</with-param></call-template></template><template match="*" mode="CS058"/><template match="n3:StartProduct/n3:StatusAanlevering" mode="CS058"><call-template name="checkvalue"><with-param name="pValues">1,3</with-param><with-param name="pRule">CS058</with-param></call-template></template><template match="n1:StopProduct/n1:StatusAanlevering" mode="CS058"><call-template name="checkvalue"><with-param name="pValues">1,3</with-param><with-param name="pRule">CS058</with-param></call-template></template><template match="*" mode="CS089"/><template match="n9:LandCode" mode="CS089"><call-template name="checkimplication"><with-param name="pValue1">NL</with-param><with-param name="pOther" select="../n9:Postcode"/><with-param name="pValue2">#1000ZZ</with-param><with-param name="pRule">CS089</with-param></call-template></template><template match="*" mode="CS100"/><template match="n7:ProductPeriode/n9:Begindatum" mode="CS100"><if test="translate(text(),'-','') &lt; 20210101"><call-template name="addError"><with-param name="pRule">CS100</with-param></call-template></if></template><template match="n7:DeclaratiePeriode/n9:Begindatum" mode="CS100"><if test="translate(text(),'-','') &lt; 20210101"><call-template name="addError"><with-param name="pRule">CS100</with-param></call-template></if></template><template match="*" mode="CS139"/><template match="*[n9:Datum and n9:DatumGebruik]" mode="CS139"><choose><when test="n9:DatumGebruik='3' and n9:Datum!='1900-01-01'"><call-template name="addError"><with-param name="pElements" select="n9:Datum|n9:DatumGebruik"/><with-param name="pRule">CS139</with-param></call-template></when><when test="n9:DatumGebruik='2' and substring-after(n9:Datum,'-')!='01-01'"><call-template name="addError"><with-param name="pElements" select="n9:Datum|n9:DatumGebruik"/><with-param name="pRule">CS139</with-param></call-template></when><when test="n9:DatumGebruik='1' and substring-after(substring-after(n9:Datum,'-'),'-')!='01'"><call-template name="addError"><with-param name="pElements" select="n9:Datum|n9:DatumGebruik"/><with-param name="pRule">CS139</with-param></call-template></when></choose></template><template match="*" mode="CS318"/><template match="n6:Client/n6:Naam/n9:NaamGebruik" mode="CS318"><call-template name="checknvalue"><with-param name="pValues">6</with-param><with-param name="pRule">CS318</with-param></call-template></template><template match="*" mode="CS325"/><template match="*[local-name() = 'DeclaratieFactuurTotaalBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:TotaalBedrag"/></call-template></template><template match="*[local-name() = 'BtwTotaalBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:TotaalBedrag"/></call-template></template><template match="*[local-name() = 'BerekendBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:Bedrag"/></call-template></template><template match="*[local-name() = 'BtwBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:Bedrag"/></call-template></template><template match="*[local-name() = 'DeclaratieFactuurBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:Bedrag"/></call-template></template><template match="*[local-name() = 'IngediendTotaalBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:TotaalBedrag"/></call-template></template><template match="*[local-name() = 'ToegekendTotaalBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:TotaalBedrag"/></call-template></template><template match="*[local-name() = 'GemeenteBerekendBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:Bedrag"/></call-template></template><template match="*[local-name() = 'ToegekendBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:Bedrag"/></call-template></template><template match="*[local-name() = 'TotaalIngediendBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:TotaalBedrag"/></call-template></template><template match="*[local-name() = 'IngediendBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:Bedrag"/></call-template></template><template match="*[local-name() = 'TotaalToegekendBedrag']" mode="CS325"><call-template name="cs325"><with-param name="bedrag" select="n9:TotaalBedrag"/></call-template></template><template name="cs325"><param name="bedrag"/><param name="debetCredit" select="./n9:DebetCredit"/><if test="$bedrag=0 and (normalize-space($debetCredit)='c' or normalize-space($debetCredit)='C')"><call-template name="addError"><with-param name="pElements" select="$bedrag|$debetCredit"/><with-param name="pRule">CS325</with-param></call-template></if></template><template match="*" mode="CS335"/><template match="n6:ToegewezenProduct[n6:RedenWijziging/text() = '13']" mode="CS335"><call-template name="checkDateEquals"><with-param name="pThis" select="n6:Ingangsdatum"/><with-param name="pOther" select="n6:Einddatum"/><with-param name="pExtra" select="nonExistantNode"/><with-param name="pRule">CS335</with-param></call-template></template><template match="*" mode="CS336"/><template match="n6:ToegewezenProduct/n6:RedenWijziging" mode="CS336"><call-template name="checknvalue"><with-param name="pValues">01</with-param><with-param name="pRule">CS336</with-param></call-template></template><template match="*" mode="CS337"/><template match="n7:Prestatie" mode="CS337"><call-template name="checksameyear"><with-param name="pThis" select="n7:ProductPeriode/n9:Begindatum"/><with-param name="pOther" select="n7:ProductPeriode/n9:Einddatum"/><with-param name="pRule">CS337</with-param></call-template><call-template name="checksamemonth"><with-param name="pThis" select="n7:ProductPeriode/n9:Begindatum"/><with-param name="pOther" select="n7:ProductPeriode/n9:Einddatum"/><with-param name="pRule">CS337</with-param></call-template></template><template match="*" mode="CS338"/><template match="n6:ToegewezenProduct//n6:Omvang/n9:Eenheid" mode="CS338"><if test="not(ancestor-or-self::n6:ToegewezenProduct/n6:Einddatum) or number(translate(ancestor-or-self::n6:ToegewezenProduct/n6:Einddatum/text(),'-','')) &gt; 20201231"><call-template name="checkimplication"><with-param name="pValue1">14,16,83,84</with-param><with-param name="pOther" select="../n9:Frequentie"/><with-param name="pValue2">2,4,6</with-param><with-param name="pRule">CS338</with-param><with-param name="pExtra" select="ancestor-or-self::n6:ToegewezenProduct/n6:Einddatum"/></call-template></if></template><template match="n2:TeWijzigenProduct//n2:Omvang/n9:Eenheid" mode="CS338"><if test="not(ancestor-or-self::n2:TeWijzigenProduct/n2:Einddatum) or number(translate(ancestor-or-self::n2:TeWijzigenProduct/n2:Einddatum/text(),'-','')) &gt; 20201231"><call-template name="checkimplication"><with-param name="pValue1">14,16,83,84</with-param><with-param name="pOther" select="../n9:Frequentie"/><with-param name="pValue2">2,4,6</with-param><with-param name="pRule">CS338</with-param><with-param name="pExtra" select="ancestor-or-self::n2:TeWijzigenProduct/n2:Einddatum"/></call-template></if></template><template match="n2:NieuwProduct//n2:Omvang/n9:Eenheid" mode="CS338"><if test="not(ancestor-or-self::n2:NieuwProduct/n2:Einddatum) or number(translate(ancestor-or-self::n2:NieuwProduct/n2:Einddatum/text(),'-','')) &gt; 20201231"><call-template name="checkimplication"><with-param name="pValue1">14,16,83,84</with-param><with-param name="pOther" select="../n9:Frequentie"/><with-param name="pValue2">2,4,6</with-param><with-param name="pRule">CS338</with-param><with-param name="pExtra" select="ancestor-or-self::n2:NieuwProduct/n2:Einddatum"/></call-template></if></template><template match="*" mode="CS339"/><template match="n7:Prestatie[n7:Eenheid/text() = '83']" mode="CS339"><call-template name="checkRelation"><with-param name="pThis" select="n7:GeleverdVolume"/><with-param name="pOther" select="n7:IngediendBedrag/n9:Bedrag"/><with-param name="pExtra" select="nonExistantNode"/><with-param name="pRelation">equals</with-param><with-param name="pRule">CS339</with-param></call-template></template><template match="*" mode="CS340"/><template match="n7:DeclaratiePeriode" mode="CS340"><if test="substring-after(substring-after(n9:Begindatum,'-'),'-')!='01'"><call-template name="addError"><with-param name="pElements" select="n9:Begindatum"/><with-param name="pRule">CS340</with-param></call-template></if><variable name="v1"><call-template name="addDate"><with-param name="pDate" select="n9:Einddatum/text()"/><with-param name="pExtra">1</with-param></call-template></variable><variable name="v2"><call-template name="addMonths"><with-param name="pDate" select="n9:Begindatum/text()"/><with-param name="pExtra">1</with-param></call-template></variable><if test="$v1!=$v2"><call-template name="addError"><with-param name="pElements" select="n9:Begindatum|n9:Einddatum"/><with-param name="pRule">CS340</with-param></call-template></if></template><template match="*" mode="CS343"/><template match="n4:AangevraagdProduct//n4:Omvang/n9:Eenheid" mode="CS343"><if test="not(ancestor-or-self::n4:AangevraagdProduct/n4:ToewijzingEinddatum) or number(translate(ancestor-or-self::n4:AangevraagdProduct/n4:ToewijzingEinddatum/text(),'-','')) &gt; 20201231"><call-template name="checkimplication"><with-param name="pValue1">14,16,83,84</with-param><with-param name="pOther" select="../n9:Frequentie"/><with-param name="pValue2">2,4,6</with-param><with-param name="pRule">CS343</with-param><with-param name="pExtra" select="ancestor-or-self::n4:AangevraagdProduct/n4:ToewijzingEinddatum"/></call-template></if></template><template match="*" mode="TR002"/><template match="*[local-name() = 'Geboortedatum']/n9:Datum" mode="TR002"><if test="not(../n9:DatumGebruik/text()='3' and text()='1900-01-01')"><variable name="v1" select="ancestor-or-self::*[local-name()='Bericht']/*[local-name()='Header']"/><call-template name="checkYearsBetween"><with-param name="pDate1" select="$v1/*[local-name()='BerichtIdentificatie']/*[local-name()='Dagtekening']|$v1/*[local-name()='DeclaratieFactuurIdentificatie']/*[local-name()='FactuurDagtekening']"/><with-param name="pDate2" select="."/><with-param name="pYears">120</with-param><with-param name="pRule">TR002</with-param></call-template></if></template><template match="*" mode="TR006"/><template match="n6:Contact" mode="TR006"><call-template name="checkSingleCorrect"><with-param name="pThis" select="n6:Telefoon"/><with-param name="pValue1">#</with-param><with-param name="pOther" select="n6:Adres/n9:Huis"/><with-param name="pValue2">#</with-param><with-param name="pExtra" select="."/><with-param name="pRule">TR006</with-param></call-template><call-template name="checkSingleCorrect"><with-param name="pThis" select="n6:Telefoon"/><with-param name="pValue1">#</with-param><with-param name="pOther" select="n6:Adres/n9:Postcode"/><with-param name="pValue2">#</with-param><with-param name="pExtra" select="."/><with-param name="pRule">TR006</with-param></call-template></template><template match="*" mode="TR018"/><template match="n1:StopProduct/n1:Einddatum" mode="TR018"><call-template name="checkafter"><with-param name="pOther" select="../n1:Begindatum"/><with-param name="pRule">TR018</with-param></call-template></template><template match="*" mode="TR061"/><template match="n6:Client/n6:Contactgegevens" mode="TR061"><if test="not(./n6:Contact/n6:Soort[text()='01' or text()='02' or text()='03'])"><call-template name="addError"><with-param name="pElements" select="n6:Contact"/><with-param name="pRule">TR061</with-param></call-template></if></template><template match="*" mode="TR101simple"/><template match="*" mode="TR101generic"/><template match="*" mode="TR101"><apply-templates mode="TR101simple" select="*"/><apply-templates mode="TR101generic" select="*"/></template><template match="n6:Client" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Bsn']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n6:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n6:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n6:Client[(not(*[local-name()='Bsn']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n6:Client[(not(*[local-name()='Bsn']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n6:Contact" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Soort']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n6:Contact[*[local-name()='Soort']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n6:Contact[*[local-name()='Soort']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n6:Contact[(not(*[local-name()='Soort']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n6:Contact[(not(*[local-name()='Soort']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n6:Relatie" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Nummer']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n6:Relatie[*[local-name()='Nummer']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n6:Relatie[*[local-name()='Nummer']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n6:Relatie[(not(*[local-name()='Nummer']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n6:Relatie[(not(*[local-name()='Nummer']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n6:ToegewezenProduct" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='ToewijzingNummer']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n6:ToegewezenProduct[*[local-name()='ToewijzingNummer']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n6:ToegewezenProduct[*[local-name()='ToewijzingNummer']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n6:ToegewezenProduct[(not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n6:ToegewezenProduct[(not(*[local-name()='ToewijzingNummer']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n3:Client" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Bsn']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n3:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n3:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n3:Client[(not(*[local-name()='Bsn']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n3:Client[(not(*[local-name()='Bsn']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n3:StartProduct" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Begindatum']/text()"/><variable name="v3" select="*[local-name()='Product']/*[local-name()='Categorie']/text()"/><variable name="v4" select="*[local-name()='Product']/*[local-name()='Code']/text()"/><variable name="v5" select="*[local-name()='ToewijzingNummer']/text()"/><if test="$v2 and $v3 and $v4 and $v5"><variable name="v6" select="following-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and $v3 and $v4 and not($v5)"><variable name="v6" select="following-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and $v3 and not($v4) and $v5"><variable name="v6" select="following-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and $v3 and not($v4) and not($v5)"><variable name="v6" select="following-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and $v4 and $v5"><variable name="v6" select="following-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and $v4 and not($v5)"><variable name="v6" select="following-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and not($v4) and $v5"><variable name="v6" select="following-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and not($v4) and not($v5)"><variable name="v6" select="following-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and $v4 and $v5"><variable name="v6" select="following-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and $v4 and not($v5)"><variable name="v6" select="following-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and not($v4) and $v5"><variable name="v6" select="following-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and not($v4) and not($v5)"><variable name="v6" select="following-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and $v4 and $v5"><variable name="v6" select="following-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and $v4 and not($v5)"><variable name="v6" select="following-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and not($v4) and $v5"><variable name="v6" select="following-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v5]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and not($v4) and not($v5)"><variable name="v6" select="following-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v6)"><variable name="v7" select="preceding-sibling::n3:StartProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v7"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v7"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n1:Client" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Bsn']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n1:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n1:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n1:Client[(not(*[local-name()='Bsn']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n1:Client[(not(*[local-name()='Bsn']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n1:StopProduct" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Begindatum']/text()"/><variable name="v3" select="*[local-name()='Einddatum']/text()"/><variable name="v4" select="*[local-name()='Product']/*[local-name()='Categorie']/text()"/><variable name="v5" select="*[local-name()='Product']/*[local-name()='Code']/text()"/><variable name="v6" select="*[local-name()='ToewijzingNummer']/text()"/><if test="$v2 and $v3 and $v4 and $v5 and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and $v3 and $v4 and $v5 and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and $v3 and $v4 and not($v5) and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and $v3 and $v4 and not($v5) and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and $v3 and not($v4) and $v5 and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and $v3 and not($v4) and $v5 and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and $v3 and not($v4) and not($v5) and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and $v3 and not($v4) and not($v5) and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and $v4 and $v5 and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and $v4 and $v5 and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and $v4 and not($v5) and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and $v4 and not($v5) and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and not($v4) and $v5 and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and not($v4) and $v5 and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and not($v4) and not($v5) and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and not($v4) and not($v5) and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[*[local-name()='Begindatum']/text()=$v2 and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and $v4 and $v5 and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and $v4 and $v5 and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and $v4 and not($v5) and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and $v4 and not($v5) and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and not($v4) and $v5 and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and not($v4) and $v5 and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and not($v4) and not($v5) and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and not($v4) and not($v5) and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and *[local-name()='Einddatum']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and $v4 and $v5 and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and $v4 and $v5 and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and $v4 and not($v5) and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and $v4 and not($v5) and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v4 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and not($v4) and $v5 and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and not($v4) and $v5 and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v5 and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and not($v4) and not($v5) and $v6"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and *[local-name()='ToewijzingNummer']/text()=$v6]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and not($v4) and not($v5) and not($v6)"><variable name="v7" select="following-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v7)"><variable name="v8" select="preceding-sibling::n1:StopProduct[(not(*[local-name()='Begindatum'])) and (not(*[local-name()='Einddatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])]) and (not(*[local-name()='ToewijzingNummer']))]"/><if test="$v8"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v8"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n4:AangevraagdProduct" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='ReferentieAanbieder']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n4:AangevraagdProduct[*[local-name()='ReferentieAanbieder']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n4:AangevraagdProduct[*[local-name()='ReferentieAanbieder']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n4:AangevraagdProduct[(not(*[local-name()='ReferentieAanbieder']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n4:AangevraagdProduct[(not(*[local-name()='ReferentieAanbieder']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n4:Client" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Bsn']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n4:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n4:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n4:Client[(not(*[local-name()='Bsn']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n4:Client[(not(*[local-name()='Bsn']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n2:Client" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Bsn']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n2:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n2:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n2:Client[(not(*[local-name()='Bsn']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n2:Client[(not(*[local-name()='Bsn']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n2:NieuwProduct" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='GewensteIngangsdatum']/text()"/><variable name="v3" select="*[local-name()='Product']/*[local-name()='Categorie']/text()"/><variable name="v4" select="*[local-name()='Product']/*[local-name()='Code']/text()"/><if test="$v2 and $v3 and $v4"><variable name="v5" select="following-sibling::n2:NieuwProduct[*[local-name()='GewensteIngangsdatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4]"/><if test="not($v5)"><variable name="v6" select="preceding-sibling::n2:NieuwProduct[*[local-name()='GewensteIngangsdatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4]"/><if test="$v6"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v6"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and $v3 and not($v4)"><variable name="v5" select="following-sibling::n2:NieuwProduct[*[local-name()='GewensteIngangsdatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])])]"/><if test="not($v5)"><variable name="v6" select="preceding-sibling::n2:NieuwProduct[*[local-name()='GewensteIngangsdatum']/text()=$v2 and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])])]"/><if test="$v6"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v6"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and $v4"><variable name="v5" select="following-sibling::n2:NieuwProduct[*[local-name()='GewensteIngangsdatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4]"/><if test="not($v5)"><variable name="v6" select="preceding-sibling::n2:NieuwProduct[*[local-name()='GewensteIngangsdatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4]"/><if test="$v6"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v6"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3) and not($v4)"><variable name="v5" select="following-sibling::n2:NieuwProduct[*[local-name()='GewensteIngangsdatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])])]"/><if test="not($v5)"><variable name="v6" select="preceding-sibling::n2:NieuwProduct[*[local-name()='GewensteIngangsdatum']/text()=$v2 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])])]"/><if test="$v6"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v6"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and $v4"><variable name="v5" select="following-sibling::n2:NieuwProduct[(not(*[local-name()='GewensteIngangsdatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4]"/><if test="not($v5)"><variable name="v6" select="preceding-sibling::n2:NieuwProduct[(not(*[local-name()='GewensteIngangsdatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and *[local-name()='Product']/*[local-name()='Code']/text()=$v4]"/><if test="$v6"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v6"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3 and not($v4)"><variable name="v5" select="following-sibling::n2:NieuwProduct[(not(*[local-name()='GewensteIngangsdatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])])]"/><if test="not($v5)"><variable name="v6" select="preceding-sibling::n2:NieuwProduct[(not(*[local-name()='GewensteIngangsdatum'])) and *[local-name()='Product']/*[local-name()='Categorie']/text()=$v3 and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])])]"/><if test="$v6"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v6"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and $v4"><variable name="v5" select="following-sibling::n2:NieuwProduct[(not(*[local-name()='GewensteIngangsdatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4]"/><if test="not($v5)"><variable name="v6" select="preceding-sibling::n2:NieuwProduct[(not(*[local-name()='GewensteIngangsdatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and *[local-name()='Product']/*[local-name()='Code']/text()=$v4]"/><if test="$v6"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v6"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3) and not($v4)"><variable name="v5" select="following-sibling::n2:NieuwProduct[(not(*[local-name()='GewensteIngangsdatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])])]"/><if test="not($v5)"><variable name="v6" select="preceding-sibling::n2:NieuwProduct[(not(*[local-name()='GewensteIngangsdatum'])) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Categorie'])]) and (not(*[local-name()='Product']) or *[local-name()='Product' and not(*[local-name()='Code'])])]"/><if test="$v6"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v6"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n2:OngewijzigdProduct" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='ToewijzingNummer']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n2:OngewijzigdProduct[*[local-name()='ToewijzingNummer']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n2:OngewijzigdProduct[*[local-name()='ToewijzingNummer']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n2:OngewijzigdProduct[(not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n2:OngewijzigdProduct[(not(*[local-name()='ToewijzingNummer']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n2:TeWijzigenProduct" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='ToewijzingNummer']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n2:TeWijzigenProduct[*[local-name()='ToewijzingNummer']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n2:TeWijzigenProduct[*[local-name()='ToewijzingNummer']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n2:TeWijzigenProduct[(not(*[local-name()='ToewijzingNummer']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n2:TeWijzigenProduct[(not(*[local-name()='ToewijzingNummer']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n2:Verzoek" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='ReferentieAanbieder']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n2:Verzoek[*[local-name()='ReferentieAanbieder']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n2:Verzoek[*[local-name()='ReferentieAanbieder']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n2:Verzoek[(not(*[local-name()='ReferentieAanbieder']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n2:Verzoek[(not(*[local-name()='ReferentieAanbieder']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n0:Antwoord" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='ReferentieAanbieder']/text()"/><variable name="v3" select="*[local-name()='VerzoekAntwoord']/text()"/><if test="$v2 and $v3"><variable name="v4" select="following-sibling::n0:Antwoord[*[local-name()='ReferentieAanbieder']/text()=$v2 and *[local-name()='VerzoekAntwoord']/text()=$v3]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n0:Antwoord[*[local-name()='ReferentieAanbieder']/text()=$v2 and *[local-name()='VerzoekAntwoord']/text()=$v3]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3)"><variable name="v4" select="following-sibling::n0:Antwoord[*[local-name()='ReferentieAanbieder']/text()=$v2 and (not(*[local-name()='VerzoekAntwoord']))]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n0:Antwoord[*[local-name()='ReferentieAanbieder']/text()=$v2 and (not(*[local-name()='VerzoekAntwoord']))]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3"><variable name="v4" select="following-sibling::n0:Antwoord[(not(*[local-name()='ReferentieAanbieder'])) and *[local-name()='VerzoekAntwoord']/text()=$v3]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n0:Antwoord[(not(*[local-name()='ReferentieAanbieder'])) and *[local-name()='VerzoekAntwoord']/text()=$v3]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3)"><variable name="v4" select="following-sibling::n0:Antwoord[(not(*[local-name()='ReferentieAanbieder'])) and (not(*[local-name()='VerzoekAntwoord']))]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n0:Antwoord[(not(*[local-name()='ReferentieAanbieder'])) and (not(*[local-name()='VerzoekAntwoord']))]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n0:Woonplaatsbeginsel" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Gemeente']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n0:Woonplaatsbeginsel[*[local-name()='Gemeente']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n0:Woonplaatsbeginsel[*[local-name()='Gemeente']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n0:Woonplaatsbeginsel[(not(*[local-name()='Gemeente']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n0:Woonplaatsbeginsel[(not(*[local-name()='Gemeente']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n7:Client" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Bsn']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n7:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n7:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n7:Client[(not(*[local-name()='Bsn']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n7:Client[(not(*[local-name()='Bsn']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n7:Declaratie" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='DeclaratieNummer']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n7:Declaratie[*[local-name()='DeclaratieNummer']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n7:Declaratie[*[local-name()='DeclaratieNummer']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n7:Declaratie[(not(*[local-name()='DeclaratieNummer']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n7:Declaratie[(not(*[local-name()='DeclaratieNummer']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n7:Prestatie" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='ProductReferentie']/*[local-name()='ReferentieNummer']/text()"/><variable name="v3" select="*[local-name()='ProductReferentie']/*[local-name()='VorigReferentieNummer']/text()"/><if test="$v2 and $v3"><variable name="v4" select="following-sibling::n7:Prestatie[*[local-name()='ProductReferentie']/*[local-name()='ReferentieNummer']/text()=$v2 and *[local-name()='ProductReferentie']/*[local-name()='VorigReferentieNummer']/text()=$v3]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n7:Prestatie[*[local-name()='ProductReferentie']/*[local-name()='ReferentieNummer']/text()=$v2 and *[local-name()='ProductReferentie']/*[local-name()='VorigReferentieNummer']/text()=$v3]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3)"><variable name="v4" select="following-sibling::n7:Prestatie[*[local-name()='ProductReferentie']/*[local-name()='ReferentieNummer']/text()=$v2 and (not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='VorigReferentieNummer'])])]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n7:Prestatie[*[local-name()='ProductReferentie']/*[local-name()='ReferentieNummer']/text()=$v2 and (not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='VorigReferentieNummer'])])]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3"><variable name="v4" select="following-sibling::n7:Prestatie[(not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='ReferentieNummer'])]) and *[local-name()='ProductReferentie']/*[local-name()='VorigReferentieNummer']/text()=$v3]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n7:Prestatie[(not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='ReferentieNummer'])]) and *[local-name()='ProductReferentie']/*[local-name()='VorigReferentieNummer']/text()=$v3]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3)"><variable name="v4" select="following-sibling::n7:Prestatie[(not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='ReferentieNummer'])]) and (not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='VorigReferentieNummer'])])]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n7:Prestatie[(not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='ReferentieNummer'])]) and (not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='VorigReferentieNummer'])])]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n5:Client" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='Bsn']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n5:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n5:Client[*[local-name()='Bsn']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n5:Client[(not(*[local-name()='Bsn']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n5:Client[(not(*[local-name()='Bsn']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n5:DeclaratieAntwoord" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='DeclaratieNummer']/text()"/><if test="$v2"><variable name="v3" select="following-sibling::n5:DeclaratieAntwoord[*[local-name()='DeclaratieNummer']/text()=$v2]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n5:DeclaratieAntwoord[*[local-name()='DeclaratieNummer']/text()=$v2]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2)"><variable name="v3" select="following-sibling::n5:DeclaratieAntwoord[(not(*[local-name()='DeclaratieNummer']))]"/><if test="not($v3)"><variable name="v4" select="preceding-sibling::n5:DeclaratieAntwoord[(not(*[local-name()='DeclaratieNummer']))]"/><if test="$v4"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v4"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="n5:Prestatie" mode="TR101generic"><variable name="v1" select="."/><variable name="v2" select="*[local-name()='ProductReferentie']/*[local-name()='ReferentieNummer']/text()"/><variable name="v3" select="*[local-name()='ProductReferentie']/*[local-name()='VorigReferentieNummer']/text()"/><if test="$v2 and $v3"><variable name="v4" select="following-sibling::n5:Prestatie[*[local-name()='ProductReferentie']/*[local-name()='ReferentieNummer']/text()=$v2 and *[local-name()='ProductReferentie']/*[local-name()='VorigReferentieNummer']/text()=$v3]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n5:Prestatie[*[local-name()='ProductReferentie']/*[local-name()='ReferentieNummer']/text()=$v2 and *[local-name()='ProductReferentie']/*[local-name()='VorigReferentieNummer']/text()=$v3]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="$v2 and not($v3)"><variable name="v4" select="following-sibling::n5:Prestatie[*[local-name()='ProductReferentie']/*[local-name()='ReferentieNummer']/text()=$v2 and (not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='VorigReferentieNummer'])])]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n5:Prestatie[*[local-name()='ProductReferentie']/*[local-name()='ReferentieNummer']/text()=$v2 and (not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='VorigReferentieNummer'])])]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and $v3"><variable name="v4" select="following-sibling::n5:Prestatie[(not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='ReferentieNummer'])]) and *[local-name()='ProductReferentie']/*[local-name()='VorigReferentieNummer']/text()=$v3]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n5:Prestatie[(not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='ReferentieNummer'])]) and *[local-name()='ProductReferentie']/*[local-name()='VorigReferentieNummer']/text()=$v3]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if><if test="not($v2) and not($v3)"><variable name="v4" select="following-sibling::n5:Prestatie[(not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='ReferentieNummer'])]) and (not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='VorigReferentieNummer'])])]"/><if test="not($v4)"><variable name="v5" select="preceding-sibling::n5:Prestatie[(not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='ReferentieNummer'])]) and (not(*[local-name()='ProductReferentie']) or *[local-name()='ProductReferentie' and not(*[local-name()='VorigReferentieNummer'])])]"/><if test="$v5"><call-template name="addError"><with-param name="pElements" select=".|$v1|$v5"/><with-param name="pRule">TR101</with-param></call-template></if></if></if></template><template match="*" mode="TR134"/><template match="n6:Beschikking/n6:Afgiftedatum" mode="TR134"><call-template name="TR134"/></template><template match="n6:Client/n6:Geboortedatum/n9:Datum" mode="TR134"><call-template name="TR134"/></template><template match="n6:Relatie/n6:Geboortedatum/n9:Datum" mode="TR134"><call-template name="TR134"/></template><template match="n6:ToegewezenProduct/n6:Toewijzingsdatum" mode="TR134"><call-template name="TR134"/></template><template match="n9:DeclaratiePeriode/n9:Begindatum" mode="TR134"><call-template name="TR134declaratie"/></template><template match="n3:Client/n3:Geboortedatum/n9:Datum" mode="TR134"><call-template name="TR134"/></template><template match="n3:StartProduct/n3:Begindatum" mode="TR134"><call-template name="TR134"/></template><template match="n1:Client/n1:Geboortedatum/n9:Datum" mode="TR134"><call-template name="TR134"/></template><template match="n1:StopProduct/n1:Einddatum" mode="TR134"><call-template name="TR134"/></template><template match="n4:Client/n4:Geboortedatum/n9:Datum" mode="TR134"><call-template name="TR134"/></template><template match="n7:DeclaratiePeriode/n9:Begindatum" mode="TR134"><call-template name="TR134"/></template><template match="n7:ProductPeriode/n9:Begindatum" mode="TR134"><call-template name="TR134"/></template><template match="n5:ProductPeriode/n9:Begindatum" mode="TR134"><call-template name="TR134"/></template><template name="TR134"><param name="pThis" select="."/><call-template name="checkafter"><with-param name="pThis" select="ancestor-or-self::*[local-name()='Bericht']/*[local-name()='Header']/*[local-name()='BerichtIdentificatie']/*[local-name()='Dagtekening']"/><with-param name="pOther" select="$pThis"/><with-param name="pRule">TR134</with-param></call-template></template><template name="TR134declaratie"><param name="pThis" select="."/><call-template name="checkafter"><with-param name="pThis" select="ancestor-or-self::*[local-name()='Bericht']/*[local-name()='Header']/*[local-name()='DeclaratieFactuurIdentificatie']/*[local-name()='FactuurDagtekening']"/><with-param name="pOther" select="$pThis"/><with-param name="pRule">TR134</with-param></call-template></template><template match="*" mode="TR137"/><template match="n7:DeclaratiePeriode" mode="TR137"><call-template name="TR137"/></template><template match="n7:ProductPeriode" mode="TR137"><call-template name="TR137"/></template><template match="n5:ProductPeriode" mode="TR137"><call-template name="TR137"/></template><template name="TR137"><call-template name="checkafter"><with-param name="pThis" select="n9:Einddatum"/><with-param name="pOther" select="n9:Begindatum"/><with-param name="pRule">TR137</with-param></call-template><call-template name="checkafter"><with-param name="pThis" select="ancestor-or-self::*[local-name()='Bericht']/*[local-name()='Header']/*[local-name()='DeclaratieFactuurIdentificatie']/*[local-name()='FactuurDagtekening']|ancestor-or-self::*[local-name()='Bericht']/*[local-name()='Header']/*[local-name()='BerichtIdentificatie']/*[local-name()='Dagtekening']"/><with-param name="pOther" select="n9:Einddatum"/><with-param name="pRule">TR137</with-param></call-template></template><template match="*" mode="TR302"/><template match="n6:ToegewezenProduct" mode="TR302"><call-template name="tr302"/></template><template name="tr302"><param name="pThis" select="."/><param name="pList" select="preceding-sibling::*"/><variable name="v1"><call-template name="ignoreForTR302"/></variable><if test="$v1!='true'"><for-each select="$pList"><variable name="v2"><call-template name="ignoreForTR302"/></variable><if test="$v2!='true' and (( ($pThis/n6:Product/n9:Code and current()/n6:Product/n9:Code and $pThis/n6:Product/n9:Code=current()/n6:Product/n9:Code) and ($pThis/n6:Product/n9:Categorie and current()/n6:Product/n9:Categorie and $pThis/n6:Product/n9:Categorie=current()/n6:Product/n9:Categorie)) or ((not($pThis/n6:Product/n9:Code) or not(current()/n6:Product/n9:Code)) and ($pThis/n6:Product/n9:Categorie and current()/n6:Product/n9:Categorie and $pThis/n6:Product/n9:Categorie=current()/n6:Product/n9:Categorie)) or ((not($pThis/n6:Product/n9:Code) and not($pThis/n6:Product/n9:Categorie)) or (not(current()/n6:Product/n9:Code) and not(current()/n6:Product/n9:Categorie))) )"><variable name="v3"><call-template name="isPeriodOverlay"><with-param name="pThis" select="$pThis"/><with-param name="pOther" select="current()"/></call-template></variable><if test="$v3='true'"><call-template name="addError"><with-param name="pElements" select="$pThis|current()"/><with-param name="pRule">TR302</with-param></call-template></if></if></for-each></if></template><template name="ignoreForTR302"><param name="pThis" select="."/><choose><when test="(n6:RedenWijziging/text()='01' or n6:RedenWijziging/text()='13') and n6:Einddatum/. and normalize-space(n6:Einddatum/text())!=''"><choose><when test="translate(n6:Ingangsdatum/text(),'-','')=translate(n6:Einddatum/text(),'-','')"><value-of select="true()"/></when><otherwise><value-of select="false()"/></otherwise></choose></when><otherwise><value-of select="false()"/></otherwise></choose></template><template match="*" mode="TR315"/><template match="n7:ProductReferentie" mode="TR315"><variable name="v1" select="normalize-space(n9:VorigReferentieNummer/text())"/><variable name="v2" select="n9:VorigReferentieNummer"/><for-each select="ancestor-or-self::n7:Prestatie/preceding-sibling::n7:Prestatie/n7:ProductReferentie/n9:VorigReferentieNummer[text()=$v1]|ancestor-or-self::n7:Client/preceding-sibling::n7:Client/n7:Prestaties/n7:Prestatie/n7:ProductReferentie/n9:VorigReferentieNummer[text()=$v1]"><call-template name="checkvalue"><with-param name="pValues">!#</with-param><with-param name="pRule">TR315</with-param><with-param name="pExtra" select="$v2"/></call-template></for-each></template><template match="*" mode="TR316"/><template match="n7:ProductReferentie" mode="TR316"><variable name="v1" select="normalize-space(n9:ReferentieNummer/text())"/><variable name="v2" select="normalize-space(n9:VorigReferentieNummer/text())"/><variable name="v3" select="n9:ReferentieNummer"/><variable name="v4" select="n9:VorigReferentieNummer"/><for-each select="ancestor-or-self::n7:Prestatie/preceding-sibling::n7:Prestatie/n7:ProductReferentie/n9:ReferentieNummer[text()=$v2]|ancestor-or-self::n7:Client/preceding-sibling::n7:Client/n7:Prestaties/n7:Prestatie/n7:ProductReferentie/n9:ReferentieNummer[text()=$v2]"><call-template name="checkvalue"><with-param name="pValues">!#</with-param><with-param name="pRule">TR316</with-param><with-param name="pExtra" select="$v4"/></call-template></for-each><for-each select="ancestor-or-self::n7:Prestatie/preceding-sibling::n7:Prestatie/n7:ProductReferentie/n9:VorigReferentieNummer[text()=$v1]|ancestor-or-self::n7:Client/preceding-sibling::n7:Client/n7:Prestaties/n7:Prestatie/n7:ProductReferentie/n9:VorigReferentieNummer[text()=$v1]"><call-template name="checkvalue"><with-param name="pValues">!#</with-param><with-param name="pRule">TR316</with-param><with-param name="pExtra" select="$v3"/></call-template></for-each><if test="$v1=$v2"><call-template name="addError"><with-param name="pRule">TR316</with-param><with-param name="pElements" select="n9:ReferentieNummer|n9:VorigReferentieNummer"/></call-template></if></template><template match="*" mode="TR319"/><template match="n7:Prestatie" mode="TR319"><call-template name="checkafter"><with-param name="pThis" select="ancestor-or-self::n7:Declaratie/n7:DeclaratiePeriode/n9:Einddatum"/><with-param name="pOther" select="n7:ProductPeriode/n9:Begindatum"/><with-param name="pRule">TR319</with-param></call-template><call-template name="checkafter"><with-param name="pThis" select="ancestor-or-self::n7:Declaratie/n7:DeclaratiePeriode/n9:Einddatum"/><with-param name="pOther" select="n7:ProductPeriode/n9:Einddatum"/><with-param name="pRule">TR319</with-param></call-template></template><template match="*" mode="TR335"/><template match="n7:Prestatie/n7:ProductPeriode/n9:Einddatum" mode="TR335"><call-template name="checkDateRelation"><with-param name="pDate" select="ancestor-or-self::n7:Declaratie/n7:DeclaratieDagtekening"/><with-param name="pRelation">monthsAfter</with-param><with-param name="pExtra">-60</with-param><with-param name="pRule">TR335</with-param></call-template></template><template match="*" mode="TR342"/><template match="n5:DeclaratieAntwoord" mode="TR342"><variable name="v1" select="sum(./n5:Clienten/n5:Client/n5:Prestaties/n5:Prestatie/n5:IngediendBedrag[./n9:DebetCredit/text()='D']/n9:Bedrag)"/><variable name="v2" select="sum(./n5:Clienten/n5:Client/n5:Prestaties/n5:Prestatie/n5:IngediendBedrag[./n9:DebetCredit/text()='C']/n9:Bedrag)"/><variable name="v3" select="$v1 - $v2"/><variable name="v4"><choose><when test="./n5:TotaalToegekendBedrag/n9:DebetCredit/text()='C'"><value-of select="number(./n5:TotaalToegekendBedrag/n9:TotaalBedrag/text())*-1"/></when><otherwise><value-of select="number(./n5:TotaalToegekendBedrag/n9:TotaalBedrag/text())"/></otherwise></choose></variable><variable name="v5"><choose><when test="./n5:TotaalIngediendBedrag/n9:DebetCredit/text()='C'"><value-of select="number(./n5:TotaalIngediendBedrag/n9:TotaalBedrag/text())*-1"/></when><otherwise><value-of select="number(./n5:TotaalIngediendBedrag/n9:TotaalBedrag/text())"/></otherwise></choose></variable><variable name="v6" select="$v5 - $v4"/><choose><when test="count(ancestor-or-self::n5:DeclaratieAntwoord/n5:RetourCodes/*[local-name()='RetourCode'][text()!='0200' and text()!='8001'])=0"><if test="normalize-space($v3)!=normalize-space($v6)"><call-template name="addError"><with-param name="pRule">TR342</with-param><with-param name="pCode">0001</with-param><with-param name="pElements" select="n5:TotaalToegekendBedrag|n5:TotaalIngediendBedrag"/></call-template></if></when><otherwise><if test="$v4!=0"><call-template name="addError"><with-param name="pRule">TR342</with-param><with-param name="pCode">0001</with-param><with-param name="pElements" select="n5:TotaalToegekendBedrag"/></call-template></if></otherwise></choose></template><template match="*" mode="TR352"/><template match="n2:Verzoek" mode="TR352"><call-template name="checkvalue"><with-param name="pThis" select="n2:OngewijzigdeProducten/n2:OngewijzigdProduct|n2:TeWijzigenProducten/n2:TeWijzigenProduct"/><with-param name="pValues">#</with-param><with-param name="pExtra" select="."/><with-param name="pRule">TR352</with-param></call-template></template><template match="*" mode="TR353"/><template match="n2:Verzoek" mode="TR353"><call-template name="checkvalue"><with-param name="pThis" select="n2:TeWijzigenProducten/n2:TeWijzigenProduct|n2:NieuweProducten/n2:NieuwProduct"/><with-param name="pValues">#</with-param><with-param name="pExtra" select="."/><with-param name="pRule">TR353</with-param></call-template></template><template match="*" mode="TR358"/><template match="n7:TotaalIngediendBedrag" mode="TR358"><variable name="v1" select="sum(ancestor-or-self::n7:Declaratie/n7:Clienten/n7:Client/n7:Prestaties/n7:Prestatie/n7:IngediendBedrag[n9:DebetCredit/text()='D']/n9:Bedrag)"/><variable name="v2" select="sum(ancestor-or-self::n7:Declaratie/n7:Clienten/n7:Client/n7:Prestaties/n7:Prestatie/n7:IngediendBedrag[n9:DebetCredit/text()='C']/n9:Bedrag)"/><variable name="v3" select="$v1 - $v2"/><call-template name="checkimplication"><with-param name="pThis" select="n9:DebetCredit"/><with-param name="pValue1">D</with-param><with-param name="pOther" select="n9:TotaalBedrag"/><with-param name="pValue2"><call-template name="formatNumber"><with-param name="pValue" select="$v3"/></call-template></with-param><with-param name="pExtra" select="ancestor-or-self::n7:Declaratie/n7:Clienten/n7:Client/n7:Prestaties/n7:Prestatie/n7:IngediendBedrag"/><with-param name="pRule">TR358</with-param></call-template><call-template name="checkimplication"><with-param name="pThis" select="n9:DebetCredit"/><with-param name="pValue1">C</with-param><with-param name="pOther" select="n9:TotaalBedrag"/><with-param name="pValue2"><call-template name="formatNumber"><with-param name="pValue" select="0 - 1*$v3"/></call-template></with-param><with-param name="pExtra" select="ancestor-or-self::n7:Declaratie/n7:Clienten/n7:Client/n7:Prestaties/n7:Prestatie/n7:IngediendBedrag"/><with-param name="pRule">TR358</with-param></call-template></template><template match="*" mode="TR377"/><template match="n0:RedenAfwijzingVerzoek" mode="TR377"><call-template name="checkimplication"><with-param name="pValue1">8</with-param><with-param name="pOther" select="../n0:Woonplaatsbeginsel"/><with-param name="pValue2">#</with-param><with-param name="pRule">TR377</with-param></call-template></template><template match="*" mode="TR378"/><template match="n6:Afzender" mode="TR378"><call-template name="checkGemeenteCode"><with-param name="pRule">TR378</with-param></call-template></template><template match="n3:Ontvanger" mode="TR378"><call-template name="checkGemeenteCode"><with-param name="pRule">TR378</with-param></call-template></template><template match="n1:Ontvanger" mode="TR378"><call-template name="checkGemeenteCode"><with-param name="pRule">TR378</with-param></call-template></template><template match="n4:Ontvanger" mode="TR378"><call-template name="checkGemeenteCode"><with-param name="pRule">TR378</with-param></call-template></template><template match="n2:Ontvanger" mode="TR378"><call-template name="checkGemeenteCode"><with-param name="pRule">TR378</with-param></call-template></template><template match="n0:Afzender" mode="TR378"><call-template name="checkGemeenteCode"><with-param name="pRule">TR378</with-param></call-template></template><template match="n0:Gemeente" mode="TR378"><call-template name="checkGemeenteCode"><with-param name="pRule">TR378</with-param></call-template></template><template match="n7:Ontvanger" mode="TR378"><call-template name="checkGemeenteCode"><with-param name="pRule">TR378</with-param></call-template></template><template match="n5:Afzender" mode="TR378"><call-template name="checkGemeenteCode"><with-param name="pRule">TR378</with-param></call-template></template><template match="*" mode="TR380"/><template match="n2:NieuwProduct/n2:GewensteIngangsdatum" mode="TR380"><call-template name="checkafterstrict"><with-param name="pOther" select="ancestor-or-self::*[local-name()='Bericht']/*[local-name()='Header']/*[local-name()='BerichtIdentificatie']/*[local-name()='Dagtekening']"/><with-param name="pRule">TR380</with-param></call-template></template><template match="*" mode="TR383"/><template match="n4:AangevraagdProduct" mode="TR383"><variable name="v1" select="normalize-space(n4:ReferentieAanbieder/text())"/><variable name="v2" select="n4:VorigReferentieNummer"/><for-each select="ancestor-or-self::n4:AangevraagdProduct/preceding-sibling::n4:AangevraagdProduct/n4:ReferentieAanbieder[text()=$v1]"><call-template name="checkvalue"><with-param name="pValues">!#</with-param><with-param name="pRule">TR383</with-param><with-param name="pExtra" select="$v2"/></call-template></for-each></template><template match="*" mode="TR386"/><template match="n4:AangevraagdProduct" mode="TR386"><call-template name="TR386"/></template><template name="TR386"><param name="pThis" select="."/><param name="pList" select="preceding-sibling::*"/><for-each select="$pList"><if test="(( ($pThis/n4:Product/n9:Code and current()/n4:Product/n9:Code and $pThis/n4:Product/n9:Code=current()/n4:Product/n9:Code) and ($pThis/n4:Product/n9:Categorie and current()/n4:Product/n9:Categorie and $pThis/n4:Product/n9:Categorie=current()/n4:Product/n9:Categorie)) or ((not($pThis/n4:Product/n9:Code) or not(current()/n4:Product/n9:Code)) and ($pThis/n4:Product/n9:Categorie and current()/n4:Product/n9:Categorie and $pThis/n4:Product/n9:Categorie=current()/n4:Product/n9:Categorie)) or ((not($pThis/n4:Product/n9:Code) and not($pThis/n4:Product/n9:Categorie)) or (not(current()/n4:Product/n9:Code) and not(current()/n4:Product/n9:Categorie))) )"><variable name="v1"><call-template name="isPeriodOverlay"><with-param name="pThis" select="$pThis"/><with-param name="pOther" select="current()"/></call-template></variable><if test="$v1='true'"><call-template name="addError"><with-param name="pElements" select="$pThis|current()"/><with-param name="pRule">TR386</with-param></call-template></if></if></for-each></template><template match="*" mode="TR409"/><template match="n0:RedenAfwijzingVerzoek" mode="TR409"><call-template name="checkimplication"><with-param name="pValue1">!8</with-param><with-param name="pOther" select="../n0:Woonplaatsbeginsel"/><with-param name="pValue2">!#</with-param><with-param name="pRule">TR409</with-param></call-template></template><template match="*" mode="TR410"/><template match="n2:NieuwProduct" mode="TR410"><call-template name="TR410"/></template><template name="TR410"><param name="pThis" select="."/><param name="pList" select="preceding-sibling::*"/><for-each select="$pList"><if test="(( ($pThis/n2:Product/n9:Code and current()/n2:Product/n9:Code and $pThis/n2:Product/n9:Code=current()/n2:Product/n9:Code) and ($pThis/n2:Product/n9:Categorie and current()/n2:Product/n9:Categorie and $pThis/n2:Product/n9:Categorie=current()/n2:Product/n9:Categorie)) or ((not($pThis/n2:Product/n9:Code) or not(current()/n2:Product/n9:Code)) and ($pThis/n2:Product/n9:Categorie and current()/n2:Product/n9:Categorie and $pThis/n2:Product/n9:Categorie=current()/n2:Product/n9:Categorie)) or ((not($pThis/n2:Product/n9:Code) and not($pThis/n2:Product/n9:Categorie)) or (not(current()/n2:Product/n9:Code) and not(current()/n2:Product/n9:Categorie))) )"><variable name="v1"><call-template name="isPeriodOverlay"><with-param name="pThis" select="$pThis"/><with-param name="pOther" select="current()"/></call-template></variable><if test="$v1='true'"><call-template name="addError"><with-param name="pElements" select="$pThis|current()"/><with-param name="pRule">TR410</with-param></call-template></if></if></for-each></template><template match="*" mode="check" priority="0"><apply-templates mode="CD005" select="."/><apply-templates mode="CD007" select="."/><apply-templates mode="CD009" select="."/><apply-templates mode="CD025" select="."/><apply-templates mode="CD034" select="."/><apply-templates mode="CD041" select="."/><apply-templates mode="CD043" select="."/><apply-templates mode="CD060" select="."/><apply-templates mode="CD066" select="."/><apply-templates mode="CD067" select="."/><apply-templates mode="CD068" select="."/><apply-templates mode="CD075" select="."/><apply-templates mode="CD076" select="."/><apply-templates mode="CD077" select="."/><apply-templates mode="CD078" select="."/><apply-templates mode="CD079" select="."/><apply-templates mode="CD080" select="."/><apply-templates mode="CD085" select="."/><apply-templates mode="CD086" select="."/><apply-templates mode="CD087" select="."/><apply-templates mode="CD095" select="."/><apply-templates mode="CD096" select="."/><apply-templates mode="CS002" select="."/><apply-templates mode="CS003" select="."/><apply-templates mode="CS050" select="."/><apply-templates mode="CS058" select="."/><apply-templates mode="CS089" select="."/><apply-templates mode="CS100" select="."/><apply-templates mode="CS139" select="."/><apply-templates mode="CS318" select="."/><apply-templates mode="CS325" select="."/><apply-templates mode="CS335" select="."/><apply-templates mode="CS336" select="."/><apply-templates mode="CS337" select="."/><apply-templates mode="CS338" select="."/><apply-templates mode="CS339" select="."/><apply-templates mode="CS340" select="."/><apply-templates mode="CS343" select="."/><apply-templates mode="TR002" select="."/><apply-templates mode="TR006" select="."/><apply-templates mode="TR018" select="."/><apply-templates mode="TR061" select="."/><apply-templates mode="TR101" select="."/><apply-templates mode="TR134" select="."/><apply-templates mode="TR137" select="."/><apply-templates mode="TR302" select="."/><apply-templates mode="TR315" select="."/><apply-templates mode="TR316" select="."/><apply-templates mode="TR319" select="."/><apply-templates mode="TR335" select="."/><apply-templates mode="TR342" select="."/><apply-templates mode="TR352" select="."/><apply-templates mode="TR353" select="."/><apply-templates mode="TR358" select="."/><apply-templates mode="TR377" select="."/><apply-templates mode="TR378" select="."/><apply-templates mode="TR380" select="."/><apply-templates mode="TR383" select="."/><apply-templates mode="TR386" select="."/><apply-templates mode="TR409" select="."/><apply-templates mode="TR410" select="."/></template><variable name="v1"><na:XSLTHeader><na:Standaard>ijw</na:Standaard><na:StandaardRelease>3.1</na:StandaardRelease><na:XSLTVersie>2.5.3</na:XSLTVersie></na:XSLTHeader></variable></stylesheet>
\ No newline at end of file
diff --git a/xslt-validatie/jw/3_1/common/basis.xsl b/xslt-validatie/jw/3_1/common/basis.xsl
index b3913e68a58cbfd70e06ce7b7205294bda8084f0..bb17b8e7089744339b31cc2598d74180c44caa11 100644
--- a/xslt-validatie/jw/3_1/common/basis.xsl
+++ b/xslt-validatie/jw/3_1/common/basis.xsl
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-	<!-- iJw 3.1 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.1 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../../../common/2_0/basis.xsl" />
 		<xsl:template match="*" mode="getDetails" priority="100">
diff --git a/xslt-validatie/jw/3_1/condities/CD005.xsl b/xslt-validatie/jw/3_1/condities/CD005.xsl
index dd81035aa9d4100e2dc4cce711bf8db3ad8461ae..f038c147de036e3f40bce7c3bbdf4bcd1949fc27 100644
--- a/xslt-validatie/jw/3_1/condities/CD005.xsl
+++ b/xslt-validatie/jw/3_1/condities/CD005.xsl
@@ -2,7 +2,7 @@
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 				xmlns:ijw="http://www.istandaarden.nl/ijw/3_1/basisschema/schema"
 >
-	<!-- iJw 3.0 CD005 version 1.0.20404 (2021-10-08) -->
+	<!-- iJw 3.0 CD005 version 1.0.20503 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CD005"/>
diff --git a/xslt-validatie/jw/3_1/condities/CD007.xsl b/xslt-validatie/jw/3_1/condities/CD007.xsl
index 94e0b534e2e23aa0073d6c407dc0b15077f54eba..3415bdebe1cb3d27f72e94836dcbaf1949367249 100644
--- a/xslt-validatie/jw/3_1/condities/CD007.xsl
+++ b/xslt-validatie/jw/3_1/condities/CD007.xsl
@@ -2,7 +2,7 @@
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 				xmlns:ijw="http://www.istandaarden.nl/ijw/3_1/basisschema/schema"
 >
-	<!-- iJw 3.0 CD007 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CD007 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CD007"/>
diff --git a/xslt-validatie/jw/3_1/condities/CD009.xsl b/xslt-validatie/jw/3_1/condities/CD009.xsl
index 5b9962f5d88a962ce7cda5af376fda47a991fb88..29cc75c37d87ad5e2468afb9329f48f16e1392fc 100644
--- a/xslt-validatie/jw/3_1/condities/CD009.xsl
+++ b/xslt-validatie/jw/3_1/condities/CD009.xsl
@@ -2,7 +2,7 @@
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 				xmlns:jw301="http://www.istandaarden.nl/ijw/3_1/jw301/schema"
 >
-	<!-- iJw 3.0 CD009 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CD009 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CD009"/>
diff --git a/xslt-validatie/jw/3_1/condities/CD025.xsl b/xslt-validatie/jw/3_1/condities/CD025.xsl
index 7e0b474b706a51b97a7725e587f4fff15a651986..7e8a41a7571b13741883420a2aab5bfb62d9a40c 100644
--- a/xslt-validatie/jw/3_1/condities/CD025.xsl
+++ b/xslt-validatie/jw/3_1/condities/CD025.xsl
@@ -3,7 +3,7 @@
 				xmlns:ijw="http://www.istandaarden.nl/ijw/3_1/basisschema/schema"
 >
 
-	<!-- iJw 3.0 CD025 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CD025 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CD025"/>
diff --git a/xslt-validatie/jw/3_1/condities/CD034.xsl b/xslt-validatie/jw/3_1/condities/CD034.xsl
index 1c3bb7d6971d3ca2d89edaafb376cce4b3d2a31b..53d3605c60d1666aa3f9ce608a1d26b253ca6a1f 100644
--- a/xslt-validatie/jw/3_1/condities/CD034.xsl
+++ b/xslt-validatie/jw/3_1/condities/CD034.xsl
@@ -3,7 +3,7 @@
 				xmlns:ijw="http://www.istandaarden.nl/ijw/3_1/basisschema/schema"
 				xmlns:jw301="http://www.istandaarden.nl/ijw/3_1/jw301/schema"
 >
-	<!-- iJw 3.0 CD034 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CD034 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CD034"/>
diff --git a/xslt-validatie/jw/3_1/condities/CD041.xsl b/xslt-validatie/jw/3_1/condities/CD041.xsl
index 7f7485e5e3c2d86ebf6cba3ed034e7c47d82c09a..b874b85f2edd7b822812c2495968b364fe9392b6 100644
--- a/xslt-validatie/jw/3_1/condities/CD041.xsl
+++ b/xslt-validatie/jw/3_1/condities/CD041.xsl
@@ -6,7 +6,7 @@
 				xmlns:jw317="http://www.istandaarden.nl/ijw/3_1/jw317/schema"
 >
 
-	<!-- iJw 3.0 CD041 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CD041 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CD041"/>
diff --git a/xslt-validatie/jw/3_1/condities/CD043.xsl b/xslt-validatie/jw/3_1/condities/CD043.xsl
index cc52d0516831674f9c5795f8b99157472ab10cf7..a2542bb3da31df3d48d4adbd4967668a1875b122 100644
--- a/xslt-validatie/jw/3_1/condities/CD043.xsl
+++ b/xslt-validatie/jw/3_1/condities/CD043.xsl
@@ -3,7 +3,7 @@
 				xmlns:jw315="http://www.istandaarden.nl/ijw/3_1/jw315/schema"
 >
 
-	<!-- iJw 3.0 CD043 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CD043 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CD043"/>
diff --git a/xslt-validatie/jw/3_1/condities/CD060.xsl b/xslt-validatie/jw/3_1/condities/CD060.xsl
index a320da73786e5dd62a1ac518ce8c6e81b7562cfc..442c461a35899d3035bac3ed0255585993db9e02 100644
--- a/xslt-validatie/jw/3_1/condities/CD060.xsl
+++ b/xslt-validatie/jw/3_1/condities/CD060.xsl
@@ -5,7 +5,7 @@
 				xmlns:jw325="http://www.istandaarden.nl/ijw/3_1/jw325/schema"
 >
 
-	<!-- iJw 3.0 CD060 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CD060 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CD060"/>
diff --git a/xslt-validatie/jw/3_1/condities/CD066.xsl b/xslt-validatie/jw/3_1/condities/CD066.xsl
index c29ac1c96682dba726f23be69413dc3ad87ff7fb..b51e6b8f3bf9f291c93adca1415683f1048e76b9 100644
--- a/xslt-validatie/jw/3_1/condities/CD066.xsl
+++ b/xslt-validatie/jw/3_1/condities/CD066.xsl
@@ -5,7 +5,7 @@
 				xmlns:jw315="http://www.istandaarden.nl/ijw/3_1/jw315/schema"
 >
 
-	<!-- iJw 3.0 CD066 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CD066 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CD066"/>
diff --git a/xslt-validatie/jw/3_1/condities/CD067.xsl b/xslt-validatie/jw/3_1/condities/CD067.xsl
index 57308c00a9a4be92315199bfbbcc59b5e33616a1..54c5cc8028f4ba2410609547ed401aca391e466d 100644
--- a/xslt-validatie/jw/3_1/condities/CD067.xsl
+++ b/xslt-validatie/jw/3_1/condities/CD067.xsl
@@ -5,7 +5,7 @@
 				xmlns:jw315="http://www.istandaarden.nl/ijw/3_1/jw315/schema"
 >
 
-	<!-- iJw 3.0 CD067 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CD067 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CD067"/>
diff --git a/xslt-validatie/jw/3_1/condities/CD068.xsl b/xslt-validatie/jw/3_1/condities/CD068.xsl
index 963c8b4abb64589587f577ced75f3e0d3a95a616..75f37929229deb93c3abde1bc292a4ff4f232e3a 100644
--- a/xslt-validatie/jw/3_1/condities/CD068.xsl
+++ b/xslt-validatie/jw/3_1/condities/CD068.xsl
@@ -5,7 +5,7 @@
 				xmlns:jw315="http://www.istandaarden.nl/ijw/3_1/jw315/schema"
 >
 
-	<!-- iJw 3.0 CD068 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CD068 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CD068"/>
diff --git a/xslt-validatie/jw/3_1/condities/CD075.xsl b/xslt-validatie/jw/3_1/condities/CD075.xsl
index dc91a98cb8340383b8cc79ee36500a50bbd87e87..e3349906e13517b241c666a595c90256bed462a9 100644
--- a/xslt-validatie/jw/3_1/condities/CD075.xsl
+++ b/xslt-validatie/jw/3_1/condities/CD075.xsl
@@ -6,7 +6,7 @@
 				xmlns:jw317="http://www.istandaarden.nl/ijw/3_1/jw317/schema"
 >
 
-	<!-- iJw 3.0 CD075 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CD075 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CD075"/>
diff --git a/xslt-validatie/jw/3_1/condities/CD076.xsl b/xslt-validatie/jw/3_1/condities/CD076.xsl
index ded20a00ed6e5c62c0cc5883c0c0479a68ed83aa..8087ce3b2e77ea624fc62b8de3f5fb4d5c31f0a4 100644
--- a/xslt-validatie/jw/3_1/condities/CD076.xsl
+++ b/xslt-validatie/jw/3_1/condities/CD076.xsl
@@ -7,7 +7,7 @@
 				xmlns:jw317="http://www.istandaarden.nl/ijw/3_1/jw317/schema"
 >
 
-	<!-- iJw 3.0 CD076 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CD076 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CD076"/>
diff --git a/xslt-validatie/jw/3_1/condities/CD077.xsl b/xslt-validatie/jw/3_1/condities/CD077.xsl
index 6eda0b226a7a49c771406523fb1f7741c4a5a19c..623e56eb5ac6d029b6f796cb0c4ee6d3aa756bdc 100644
--- a/xslt-validatie/jw/3_1/condities/CD077.xsl
+++ b/xslt-validatie/jw/3_1/condities/CD077.xsl
@@ -6,7 +6,7 @@
 				xmlns:jw317="http://www.istandaarden.nl/ijw/3_1/jw317/schema"
 >
 
-	<!-- iJw 3.0 CD077 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CD077 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CD077"/>
diff --git a/xslt-validatie/jw/3_1/condities/CD078.xsl b/xslt-validatie/jw/3_1/condities/CD078.xsl
index 7256e6a67516b32346ed2fc08f99402b5d577b0a..227af7e17915af51d1322d15d401cb366c513266 100644
--- a/xslt-validatie/jw/3_1/condities/CD078.xsl
+++ b/xslt-validatie/jw/3_1/condities/CD078.xsl
@@ -6,7 +6,7 @@
 				xmlns:jw317="http://www.istandaarden.nl/ijw/3_1/jw317/schema"
 >
 
-	<!-- iJw 3.0 CD078 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CD078 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CD078"/>
diff --git a/xslt-validatie/jw/3_1/condities/CD079.xsl b/xslt-validatie/jw/3_1/condities/CD079.xsl
index c2d910ef61ce29e6ca26aad025c816b56281aa2a..53838b9a25dd5e21ee1760c145a78da687a2a6c3 100644
--- a/xslt-validatie/jw/3_1/condities/CD079.xsl
+++ b/xslt-validatie/jw/3_1/condities/CD079.xsl
@@ -6,7 +6,7 @@
 				xmlns:jw317="http://www.istandaarden.nl/ijw/3_1/jw317/schema"
 >
 
-	<!-- iJw 3.0 CD079 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CD079 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CD079"/>
diff --git a/xslt-validatie/jw/3_1/condities/CD080.xsl b/xslt-validatie/jw/3_1/condities/CD080.xsl
index dd4f4cc0a3a483869c8ee7b527734f7a89f734f7..e9139173bf37821a5a88b3f25625fd161d2f15a9 100644
--- a/xslt-validatie/jw/3_1/condities/CD080.xsl
+++ b/xslt-validatie/jw/3_1/condities/CD080.xsl
@@ -5,7 +5,7 @@
 				xmlns:jw301="http://www.istandaarden.nl/ijw/3_1/jw301/schema"
 >
 
-	<!-- iJw 3.0 CD080 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CD080 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CD080"/>
diff --git a/xslt-validatie/jw/3_1/condities/CD085.xsl b/xslt-validatie/jw/3_1/condities/CD085.xsl
index 0edd9100c9d3192490fa8eb5957292f5f0b9eff8..16a5b90316a310ff35a80748cc657182fdc8fcee 100644
--- a/xslt-validatie/jw/3_1/condities/CD085.xsl
+++ b/xslt-validatie/jw/3_1/condities/CD085.xsl
@@ -3,7 +3,7 @@
 				xmlns:jw319="http://www.istandaarden.nl/ijw/3_1/jw319/schema"
 >
 
-	<!-- iJw 3.0 CD085 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CD085 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CD085"/>
diff --git a/xslt-validatie/jw/3_1/condities/CD086.xsl b/xslt-validatie/jw/3_1/condities/CD086.xsl
index af1d1b9dece85933bce04c9dd48133c37998b8f7..bb6bd2d9b56c1e8b80cdd1e6b828578ee3525884 100644
--- a/xslt-validatie/jw/3_1/condities/CD086.xsl
+++ b/xslt-validatie/jw/3_1/condities/CD086.xsl
@@ -4,7 +4,7 @@
 				xmlns:jw319="http://www.istandaarden.nl/ijw/3_1/jw319/schema"
 >
 
-	<!-- iJw 3.0 CD086 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CD086 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CD086"/>
diff --git a/xslt-validatie/jw/3_1/condities/CD087.xsl b/xslt-validatie/jw/3_1/condities/CD087.xsl
index 6dc6a61e29ffe9eb8cd227625b8b3e468c5c412d..80e0ccaccc17edfda207acd78bfe4076d25f8c57 100644
--- a/xslt-validatie/jw/3_1/condities/CD087.xsl
+++ b/xslt-validatie/jw/3_1/condities/CD087.xsl
@@ -4,7 +4,7 @@
 				xmlns:jw323="http://www.istandaarden.nl/ijw/3_1/jw323/schema"
 >
 
-	<!-- iJw 3.0 CD087 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CD087 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CD087"/>
diff --git a/xslt-validatie/jw/3_1/condities/CD095.xsl b/xslt-validatie/jw/3_1/condities/CD095.xsl
index 89bdc4358f437b25d26c10f12af48151c4858be2..8d71d344f7ea8c6f886b657a859791cffa0c804e 100644
--- a/xslt-validatie/jw/3_1/condities/CD095.xsl
+++ b/xslt-validatie/jw/3_1/condities/CD095.xsl
@@ -5,7 +5,7 @@
 				xmlns:jw315="http://www.istandaarden.nl/ijw/3_1/jw315/schema"
 >
 
-	<!-- iJw 3.0 CD095 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CD095 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CD095"/>
diff --git a/xslt-validatie/jw/3_1/condities/CD096.xsl b/xslt-validatie/jw/3_1/condities/CD096.xsl
index 6051d027fe4cfae8f75108384144cd874b3baf21..b31294841033564331135dac3a2ed2f511f0e322 100644
--- a/xslt-validatie/jw/3_1/condities/CD096.xsl
+++ b/xslt-validatie/jw/3_1/condities/CD096.xsl
@@ -5,7 +5,7 @@
 				xmlns:jw317="http://www.istandaarden.nl/ijw/3_1/jw317/schema"
 >
 
-	<!-- iJw 3.0 CD096 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CD096 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CD096"/>
diff --git a/xslt-validatie/jw/3_1/constraints/CS002.xsl b/xslt-validatie/jw/3_1/constraints/CS002.xsl
index edc00508c1b95b315110d8de93ef1b4de1a0bb49..49a9e9ba486f48d67e08e486d49c93cd6ff09356 100644
--- a/xslt-validatie/jw/3_1/constraints/CS002.xsl
+++ b/xslt-validatie/jw/3_1/constraints/CS002.xsl
@@ -2,7 +2,7 @@
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 >
 
-	<!-- iJw 3.0 CS002 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CS002 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CS002"/>
diff --git a/xslt-validatie/jw/3_1/constraints/CS003.xsl b/xslt-validatie/jw/3_1/constraints/CS003.xsl
index 033d2884cc60c131a073f6eec2ae5e0605f3812d..a4a0b70968eb74a3b1afac8b24d0f071d01e8f1c 100644
--- a/xslt-validatie/jw/3_1/constraints/CS003.xsl
+++ b/xslt-validatie/jw/3_1/constraints/CS003.xsl
@@ -6,7 +6,7 @@
 				xmlns:jw317="http://www.istandaarden.nl/ijw/3_1/jw317/schema"
 >
 
-	<!-- iJw 3.0 CS003 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CS003 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CS003"/>
diff --git a/xslt-validatie/jw/3_1/constraints/CS050.xsl b/xslt-validatie/jw/3_1/constraints/CS050.xsl
index c302b843932a043ee4f74e361389b5ba20a230e9..ea960b51f43c824adf69f49c60b166ee352fb4cd 100644
--- a/xslt-validatie/jw/3_1/constraints/CS050.xsl
+++ b/xslt-validatie/jw/3_1/constraints/CS050.xsl
@@ -2,7 +2,7 @@
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 				xmlns:ijw="http://www.istandaarden.nl/ijw/3_1/basisschema/schema"
 >
-	<!-- iJw 3.0 CS050 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CS050 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CS050"/>
diff --git a/xslt-validatie/jw/3_1/constraints/CS058.xsl b/xslt-validatie/jw/3_1/constraints/CS058.xsl
index db65cbaf10df0f4a8ca8b117832a72c6edf68506..ba4d3abb41579de10d388b3bccc381c977f4260f 100644
--- a/xslt-validatie/jw/3_1/constraints/CS058.xsl
+++ b/xslt-validatie/jw/3_1/constraints/CS058.xsl
@@ -4,7 +4,7 @@
 				xmlns:jw307="http://www.istandaarden.nl/ijw/3_1/jw307/schema"
 >
 
-	<!-- iJw 3.0 CS058 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CS058 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CS058"/>
diff --git a/xslt-validatie/jw/3_1/constraints/CS089.xsl b/xslt-validatie/jw/3_1/constraints/CS089.xsl
index db02d6bdf6e201ba168b075b99a0bc6ea5d3f05f..2ba1ea1900af5ac4ddf1f55702190b3fbad0e74b 100644
--- a/xslt-validatie/jw/3_1/constraints/CS089.xsl
+++ b/xslt-validatie/jw/3_1/constraints/CS089.xsl
@@ -3,7 +3,7 @@
 				xmlns:ijw="http://www.istandaarden.nl/ijw/3_1/basisschema/schema"
 >
 
-	<!-- iJw 3.0 CS089 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CS089 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CS089"/>
diff --git a/xslt-validatie/jw/3_1/constraints/CS100.xsl b/xslt-validatie/jw/3_1/constraints/CS100.xsl
index 8e8aa9e707bb49ed2855dff9e87fe90ab63fdcf7..b395f0f2b89812f92cd9b648bcbd1c1290fcd13e 100644
--- a/xslt-validatie/jw/3_1/constraints/CS100.xsl
+++ b/xslt-validatie/jw/3_1/constraints/CS100.xsl
@@ -4,7 +4,7 @@
 				xmlns:jw323="http://www.istandaarden.nl/ijw/3_1/jw323/schema"
 >
 
-	<!-- iJw 3.0 CS100 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CS100 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CS100"/>
diff --git a/xslt-validatie/jw/3_1/constraints/CS139.xsl b/xslt-validatie/jw/3_1/constraints/CS139.xsl
index 4c461f9128d1a0833de9767243cccf17de7e5491..9e02b1680959bbee58c0e1e43e855c82d85a9fdd 100644
--- a/xslt-validatie/jw/3_1/constraints/CS139.xsl
+++ b/xslt-validatie/jw/3_1/constraints/CS139.xsl
@@ -3,7 +3,7 @@
 				xmlns:ijw="http://www.istandaarden.nl/ijw/3_1/basisschema/schema"
 >
 
-	<!-- iJw 3.0 CS139 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CS139 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CS139"/>
diff --git a/xslt-validatie/jw/3_1/constraints/CS318.xsl b/xslt-validatie/jw/3_1/constraints/CS318.xsl
index 43fc510dc4b22df61a3aaf9d3e26642bf15d99f4..0555c718bb6a120d47e3f16b879882e38704cae7 100644
--- a/xslt-validatie/jw/3_1/constraints/CS318.xsl
+++ b/xslt-validatie/jw/3_1/constraints/CS318.xsl
@@ -2,7 +2,7 @@
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 				xmlns:ijw="http://www.istandaarden.nl/ijw/3_1/basisschema/schema"
 				xmlns:jw301="http://www.istandaarden.nl/ijw/3_1/jw301/schema">
-	<!-- iJw 3.0 CS318 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CS318 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CS318"/>
diff --git a/xslt-validatie/jw/3_1/constraints/CS325.xsl b/xslt-validatie/jw/3_1/constraints/CS325.xsl
index 605ea660fa8a6e4ecd4027bff278826305939510..9d6815691687f766efa293d6520f5f10344d2c4a 100644
--- a/xslt-validatie/jw/3_1/constraints/CS325.xsl
+++ b/xslt-validatie/jw/3_1/constraints/CS325.xsl
@@ -2,7 +2,7 @@
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 				xmlns:ijw="http://www.istandaarden.nl/ijw/3_1/basisschema/schema"
 >
-	<!-- ijw 2.4 CS325 version 2.4.4 (2021-10-08) -->
+	<!-- ijw 2.4 CS325 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CS325"/>
diff --git a/xslt-validatie/jw/3_1/constraints/CS335.xsl b/xslt-validatie/jw/3_1/constraints/CS335.xsl
index d141a77eb8f578ba0854145f2357b4f106385845..482a37000aac9b8226c4e93f8cc10c73b7a1ac20 100644
--- a/xslt-validatie/jw/3_1/constraints/CS335.xsl
+++ b/xslt-validatie/jw/3_1/constraints/CS335.xsl
@@ -4,7 +4,7 @@
 				xmlns:jw301="http://www.istandaarden.nl/ijw/3_1/jw301/schema"
 >
 
-	<!-- iJw 3.0 CS335 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CS335 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CS335"/>
diff --git a/xslt-validatie/jw/3_1/constraints/CS336.xsl b/xslt-validatie/jw/3_1/constraints/CS336.xsl
index 2040337cfc033690cd03a6cf5c0757bbcf6d07bc..94cf06260469d604224afcced8c68aa530513b00 100644
--- a/xslt-validatie/jw/3_1/constraints/CS336.xsl
+++ b/xslt-validatie/jw/3_1/constraints/CS336.xsl
@@ -4,7 +4,7 @@
 				xmlns:jw301="http://www.istandaarden.nl/ijw/3_1/jw301/schema"
 >
 
-	<!-- iJw 3.0 CS336 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CS336 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CS336"/>
diff --git a/xslt-validatie/jw/3_1/constraints/CS337.xsl b/xslt-validatie/jw/3_1/constraints/CS337.xsl
index c2706e6b1f03e5d6bd6fe181d28599ad7bab6eae..341b053b7c2199499896c892959d6dfb2e71a9ca 100644
--- a/xslt-validatie/jw/3_1/constraints/CS337.xsl
+++ b/xslt-validatie/jw/3_1/constraints/CS337.xsl
@@ -5,7 +5,7 @@
 				xmlns:jw323="http://www.istandaarden.nl/ijw/3_1/jw323/schema"
 >
 
-	<!-- iJw 3.0 CS337 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CS337 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CS337"/>
diff --git a/xslt-validatie/jw/3_1/constraints/CS338.xsl b/xslt-validatie/jw/3_1/constraints/CS338.xsl
index 633966329faa1995926e646cfa00b891901c62ba..7d6f2bfe442157f393f6728a08873f7c9f60b4ab 100644
--- a/xslt-validatie/jw/3_1/constraints/CS338.xsl
+++ b/xslt-validatie/jw/3_1/constraints/CS338.xsl
@@ -6,7 +6,7 @@
 				xmlns:jw317="http://www.istandaarden.nl/ijw/3_1/jw317/schema"
 >
 
-	<!-- iJw 3.0 CS338 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CS338 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CS338"/>
diff --git a/xslt-validatie/jw/3_1/constraints/CS339.xsl b/xslt-validatie/jw/3_1/constraints/CS339.xsl
index 27ed11192d4245ad9f8816d4ac48aac25123db74..e524072082e1b1da3ded5ff4a1fb7251a967bb7f 100644
--- a/xslt-validatie/jw/3_1/constraints/CS339.xsl
+++ b/xslt-validatie/jw/3_1/constraints/CS339.xsl
@@ -4,7 +4,7 @@
 				xmlns:jw323="http://www.istandaarden.nl/ijw/3_1/jw323/schema"
 >
 
-	<!-- iJw 3.0 CS339 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CS339 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CS339"/>
diff --git a/xslt-validatie/jw/3_1/constraints/CS340.xsl b/xslt-validatie/jw/3_1/constraints/CS340.xsl
index aac35b0e463384c28ee9fedf4b6046cf08e9443e..f02728e5d010f5cf6dae6eb21ac93b9fb38f4b2a 100644
--- a/xslt-validatie/jw/3_1/constraints/CS340.xsl
+++ b/xslt-validatie/jw/3_1/constraints/CS340.xsl
@@ -4,7 +4,7 @@
 				xmlns:jw323="http://www.istandaarden.nl/ijw/3_1/jw323/schema"
 >
 
-	<!-- iJw 3.0 CS340 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CS340 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CS340"/>
diff --git a/xslt-validatie/jw/3_1/constraints/CS343.xsl b/xslt-validatie/jw/3_1/constraints/CS343.xsl
index 9af3ffa80421ae48519b8716a1dbad8c6d34094e..c44a705794cb4a8aae7478f1f18953875d00bfb9 100644
--- a/xslt-validatie/jw/3_1/constraints/CS343.xsl
+++ b/xslt-validatie/jw/3_1/constraints/CS343.xsl
@@ -5,7 +5,7 @@
 				xmlns:jw315="http://www.istandaarden.nl/ijw/3_1/jw315/schema"
 >
 
-	<!-- iJw 3.0 CS343 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 CS343 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="CS343"/>
diff --git a/xslt-validatie/jw/3_1/rules/TR002.xsl b/xslt-validatie/jw/3_1/rules/TR002.xsl
index aa707c9b7dac5deb474f9c7ba37dc4e0df53de93..bd07389777fd815d2c26f727e017e37c8a7bc0a1 100644
--- a/xslt-validatie/jw/3_1/rules/TR002.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR002.xsl
@@ -3,7 +3,7 @@
 				xmlns:ijw="http://www.istandaarden.nl/ijw/3_1/basisschema/schema"
 >
 
-	<!-- iJw 3.0 TR002 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 TR002 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR002"/>
diff --git a/xslt-validatie/jw/3_1/rules/TR006.xsl b/xslt-validatie/jw/3_1/rules/TR006.xsl
index 424245cd30956b96ec328361dd13d190bafd695e..c82dce64a488401e9731920d89f9c7b43cd593e5 100644
--- a/xslt-validatie/jw/3_1/rules/TR006.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR006.xsl
@@ -4,7 +4,7 @@
 				xmlns:jw301="http://www.istandaarden.nl/ijw/3_1/jw301/schema"
 >
 
-	<!-- iJw 3.0 TR006 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 TR006 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR006"/>
diff --git a/xslt-validatie/jw/3_1/rules/TR018.xsl b/xslt-validatie/jw/3_1/rules/TR018.xsl
index 00fc4b48fd903241ccabc73bd25313ed548343d1..bc1aaa95abd30116049e394d663ea9e557648ec4 100644
--- a/xslt-validatie/jw/3_1/rules/TR018.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR018.xsl
@@ -3,7 +3,7 @@
 				xmlns:jw307="http://www.istandaarden.nl/ijw/3_1/jw307/schema"
 >
 
-	<!-- iJw 3.0 TR018 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 TR018 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR018"/>
diff --git a/xslt-validatie/jw/3_1/rules/TR061.xsl b/xslt-validatie/jw/3_1/rules/TR061.xsl
index bb29a9c1aacc7869f2a5e1916c4ef06010ec7f72..e041fbd1d6359073785268a2ec855033faa960c6 100644
--- a/xslt-validatie/jw/3_1/rules/TR061.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR061.xsl
@@ -3,7 +3,7 @@
 				xmlns:jw301="http://www.istandaarden.nl/ijw/3_1/jw301/schema"
 >
 
-	<!-- iJw 3.0 TR052 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 TR052 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR061"/>
diff --git a/xslt-validatie/jw/3_1/rules/TR101.xsl b/xslt-validatie/jw/3_1/rules/TR101.xsl
index 3bc666ed5b0a8809e18e69165e2f4d6881c8af23..85bf3820d1ead2093d186d08f6feed0f4165c5db 100644
--- a/xslt-validatie/jw/3_1/rules/TR101.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR101.xsl
@@ -9,7 +9,7 @@
 	xmlns:jw323="http://www.istandaarden.nl/ijw/3_1/jw323/schema"
 	xmlns:jw325="http://www.istandaarden.nl/ijw/3_1/jw325/schema"
 >
-	<!-- iJw 3.1 TR101 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.1 TR101 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR101simple"/>
diff --git a/xslt-validatie/jw/3_1/rules/TR134.xsl b/xslt-validatie/jw/3_1/rules/TR134.xsl
index 56d85503e35077eed9a5d9b026a0aa721c794d99..a05d5c0a3bf9f22b2acedd6ca881f0d940dac681 100644
--- a/xslt-validatie/jw/3_1/rules/TR134.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR134.xsl
@@ -9,7 +9,7 @@
 				xmlns:jw325="http://www.istandaarden.nl/ijw/3_1/jw325/schema"
 >
 
-	<!-- iJw 3.0 TR134 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 TR134 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR134"/>
diff --git a/xslt-validatie/jw/3_1/rules/TR137.xsl b/xslt-validatie/jw/3_1/rules/TR137.xsl
index 7e52ffd9482cbb56021db4da1f0d00fe9067dbb2..9ebb0cde8e2ca2e075a61e3989094577e82fe22d 100644
--- a/xslt-validatie/jw/3_1/rules/TR137.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR137.xsl
@@ -5,7 +5,7 @@
 				xmlns:jw325="http://www.istandaarden.nl/ijw/3_1/jw325/schema"
 >
 
-	<!-- iJw 3.0 TR137 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 TR137 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR137"/>
diff --git a/xslt-validatie/jw/3_1/rules/TR302.xsl b/xslt-validatie/jw/3_1/rules/TR302.xsl
index d6463d2997ba8cf8f4c44a230d5d7d73ee2bc502..f2d50c951ca3fbf5f6aa763f2864e466dbf7b87a 100644
--- a/xslt-validatie/jw/3_1/rules/TR302.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR302.xsl
@@ -4,7 +4,7 @@
 				xmlns:jw301="http://www.istandaarden.nl/ijw/3_1/jw301/schema"
 >
 
-	<!-- iJw 3.0 TR302 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 TR302 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR302"/>
@@ -26,7 +26,10 @@
 
 		<xsl:if test="$vIgnoreSelf != 'true'">
 			<xsl:for-each select="$pList">
-				<xsl:if test="(
+				<xsl:variable name="vIgnorePredecessor">
+					<xsl:call-template name="ignoreForTR302"/>
+				</xsl:variable>
+				<xsl:if test="$vIgnorePredecessor != 'true' and (
 	                 	(
 					 		($pThis/jw301:Product/ijw:Code and current()/jw301:Product/ijw:Code and $pThis/jw301:Product/ijw:Code = current()/jw301:Product/ijw:Code) and
 	                 		($pThis/jw301:Product/ijw:Categorie and current()/jw301:Product/ijw:Categorie and $pThis/jw301:Product/ijw:Categorie = current()/jw301:Product/ijw:Categorie)
diff --git a/xslt-validatie/jw/3_1/rules/TR315.xsl b/xslt-validatie/jw/3_1/rules/TR315.xsl
index 0ea9100464a985ca420d0e14b16e810246eee73b..a07cda9b2c7256f789d3c0f344514d0953f67559 100644
--- a/xslt-validatie/jw/3_1/rules/TR315.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR315.xsl
@@ -4,7 +4,7 @@
 				xmlns:jw323="http://www.istandaarden.nl/ijw/3_1/jw323/schema"
 >
 
-	<!-- iJw 3.0 TR315 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 TR315 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR315"/>
diff --git a/xslt-validatie/jw/3_1/rules/TR316.xsl b/xslt-validatie/jw/3_1/rules/TR316.xsl
index 8b8dd4a04dadf9092f9e08c01718dc99e37869a7..8b4d200bdd59c3f0d01f609a6606436e8eff0dd0 100644
--- a/xslt-validatie/jw/3_1/rules/TR316.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR316.xsl
@@ -4,7 +4,7 @@
 				xmlns:jw323="http://www.istandaarden.nl/ijw/3_1/jw323/schema"
 >
 
-	<!-- iWw 3.0 TR316 version 2.4.4 (2021-10-08) -->
+	<!-- iWw 3.0 TR316 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR316"/>
diff --git a/xslt-validatie/jw/3_1/rules/TR319.xsl b/xslt-validatie/jw/3_1/rules/TR319.xsl
index d3bfe3671e2370e09a9785358113768a42bbc5fc..f0cc37584ab30dc1b59d63d6762674ab40c5d9ac 100644
--- a/xslt-validatie/jw/3_1/rules/TR319.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR319.xsl
@@ -4,7 +4,7 @@
 				xmlns:jw323="http://www.istandaarden.nl/ijw/3_1/jw323/schema"
 >
 
-	<!-- iJw 3.0 TR319 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 TR319 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR319"/>
diff --git a/xslt-validatie/jw/3_1/rules/TR335.xsl b/xslt-validatie/jw/3_1/rules/TR335.xsl
index 0c627117f0375d6795b19357d200b07fa9cfbab1..31280fb145c023f7202432eb411fdcbfc997c523 100644
--- a/xslt-validatie/jw/3_1/rules/TR335.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR335.xsl
@@ -4,7 +4,7 @@
 				xmlns:jw323="http://www.istandaarden.nl/ijw/3_1/jw323/schema"
 >
 
-	<!-- iJw 3.0 TR335 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 TR335 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR335"/>
diff --git a/xslt-validatie/jw/3_1/rules/TR342.xsl b/xslt-validatie/jw/3_1/rules/TR342.xsl
index ef56b95be42649cd4c811a2b23d8495af9997212..f2f8c9d0ebfbf94d9e98fb87615a039f97bf5ffa 100644
--- a/xslt-validatie/jw/3_1/rules/TR342.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR342.xsl
@@ -4,7 +4,7 @@
 				xmlns:jw325="http://www.istandaarden.nl/ijw/3_1/jw325/schema"
 >
 
-	<!-- iJw 3.0 TR342 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 TR342 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR342"/>
diff --git a/xslt-validatie/jw/3_1/rules/TR352.xsl b/xslt-validatie/jw/3_1/rules/TR352.xsl
index b7852bcf724ebb31f44e72eed673e50a8dabc63b..05f82d89c07b11e05154f0a29e5ff064e93d2741 100644
--- a/xslt-validatie/jw/3_1/rules/TR352.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR352.xsl
@@ -3,7 +3,7 @@
 				xmlns:jw317="http://www.istandaarden.nl/ijw/3_1/jw317/schema"
 >
 
-	<!-- iJw 3.0 TR352 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 TR352 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR352"/>
diff --git a/xslt-validatie/jw/3_1/rules/TR353.xsl b/xslt-validatie/jw/3_1/rules/TR353.xsl
index eed869475c989ecf0c65a5a15a58df8384a481d8..d8de649c2255634408fb91de7e0d0a15502945dc 100644
--- a/xslt-validatie/jw/3_1/rules/TR353.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR353.xsl
@@ -3,7 +3,7 @@
 				xmlns:jw317="http://www.istandaarden.nl/ijw/3_1/jw317/schema"
 >
 
-	<!-- iJw 3.0 TR353 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 TR353 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR353"/>
diff --git a/xslt-validatie/jw/3_1/rules/TR358.xsl b/xslt-validatie/jw/3_1/rules/TR358.xsl
index bd85de18186794e782969c990485d60ad8bd95ec..ee7f84f72ba3fa29a41e0b3d4dd38f030798f3b9 100644
--- a/xslt-validatie/jw/3_1/rules/TR358.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR358.xsl
@@ -4,7 +4,7 @@
 				xmlns:jw323="http://www.istandaarden.nl/ijw/3_1/jw323/schema"
 >
 
-	<!-- iJw 3.0 TR358 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 TR358 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR358"/>
diff --git a/xslt-validatie/jw/3_1/rules/TR377.xsl b/xslt-validatie/jw/3_1/rules/TR377.xsl
index dedf7af7816c4a526d10198d175588e04fa42721..f4cb147ea6fc72237598d2a68181e7d498ee037f 100644
--- a/xslt-validatie/jw/3_1/rules/TR377.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR377.xsl
@@ -3,7 +3,7 @@
 				xmlns:jw319="http://www.istandaarden.nl/ijw/3_1/jw319/schema"
 >
 
-	<!-- iJw 3.0 TR377 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 TR377 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR377"/>
diff --git a/xslt-validatie/jw/3_1/rules/TR378.xsl b/xslt-validatie/jw/3_1/rules/TR378.xsl
index 1b5f97eda6aadbc5c51a171a48676dac0122496c..5e38f392efa0e278f84efce2fb8096986c2a1820 100644
--- a/xslt-validatie/jw/3_1/rules/TR378.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR378.xsl
@@ -9,7 +9,7 @@
 				xmlns:jw323="http://www.istandaarden.nl/ijw/3_1/jw323/schema"
 				xmlns:jw325="http://www.istandaarden.nl/ijw/3_1/jw325/schema"
 >
-	<!-- iJw 3.0 TR378 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 TR378 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR378"/>
diff --git a/xslt-validatie/jw/3_1/rules/TR380.xsl b/xslt-validatie/jw/3_1/rules/TR380.xsl
index eacbc80975bd530b17c6a629b4fd1b3a262ce92c..03ca5902e816276e8845b7a6aaa7a300aad1f7cb 100644
--- a/xslt-validatie/jw/3_1/rules/TR380.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR380.xsl
@@ -3,7 +3,7 @@
 				xmlns:jw317="http://www.istandaarden.nl/ijw/3_1/jw317/schema"
 >
 
-	<!-- iJw 3.0 TR380 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 TR380 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR380"/>
diff --git a/xslt-validatie/jw/3_1/rules/TR383.xsl b/xslt-validatie/jw/3_1/rules/TR383.xsl
index 0e879e27595884c10a132a1d71660895010825c5..b34e540483e55492d7273bed8d4f3ecf976f0b22 100644
--- a/xslt-validatie/jw/3_1/rules/TR383.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR383.xsl
@@ -3,7 +3,7 @@
 				xmlns:jw315="http://www.istandaarden.nl/ijw/3_1/jw315/schema"
 >
 
-	<!-- iJw 3.0 TR383 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 TR383 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR383"/>
diff --git a/xslt-validatie/jw/3_1/rules/TR386.xsl b/xslt-validatie/jw/3_1/rules/TR386.xsl
index d9f65c3a4ddc60d9dd44ad265e7dc982ae2a743f..9dcaa8aa725aa3fbe8ce4230ff5d78270d83b9dc 100644
--- a/xslt-validatie/jw/3_1/rules/TR386.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR386.xsl
@@ -4,7 +4,7 @@
 				xmlns:jw315="http://www.istandaarden.nl/ijw/3_1/jw315/schema"
 >
 
-	<!-- ijw 3.0 TR386 version 2.4.4 (2021-10-08) -->
+	<!-- ijw 3.0 TR386 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR386"/>
diff --git a/xslt-validatie/jw/3_1/rules/TR409.xsl b/xslt-validatie/jw/3_1/rules/TR409.xsl
index 2a3783d04a840cc465ed458f45f3accf519abed0..0dcf5f5d2750f824550785fd3ea54c0c02184983 100644
--- a/xslt-validatie/jw/3_1/rules/TR409.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR409.xsl
@@ -4,7 +4,7 @@
 				xmlns:jw319="http://www.istandaarden.nl/ijw/3_1/jw319/schema"
 >
 
-	<!-- iJw 3.0 TR409 version 2.4.4 (2021-10-08) -->
+	<!-- iJw 3.0 TR409 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR409"/>
diff --git a/xslt-validatie/jw/3_1/rules/TR410.xsl b/xslt-validatie/jw/3_1/rules/TR410.xsl
index 3a4eada1517bb504939995338f88bada79ace620..7fc3b6483df1400cc27f994d2f0e2fae293a4016 100644
--- a/xslt-validatie/jw/3_1/rules/TR410.xsl
+++ b/xslt-validatie/jw/3_1/rules/TR410.xsl
@@ -4,7 +4,7 @@
 				xmlns:jw317="http://www.istandaarden.nl/ijw/3_1/jw317/schema"
 >
 
-	<!-- ijw 3.0 TR410 version 2.4.4 (2021-10-08) -->
+	<!-- ijw 3.0 TR410 version 2.5.3 (2022-02-07) -->
 
 	<xsl:import href="../common/basis.xsl"/>
 	<xsl:template match="*" mode="TR410"/>