<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<!--http://localhost:8080/cocoon/FLWB/checkPDF/dossierID=1425&legislat=50&nr=001-->
	<xsl:template match="/" name="normaal">
		<xsl:for-each select="FLWBDOC">
			<xsl:variable name="id1" select="substring(SDOCNAME/new_line,4,4)"/>
			<!-- DOSSIER xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="dossier-out.xsd" -->
			<DOSSIER>
				<SDOCNAME>
					<xsl:value-of select="SDOCNAME/new_line"/>
				</SDOCNAME>
				<ID>
					<xsl:choose>
						<xsl:when test="substring(SDOCNAME/new_line,1,3)='NO-'">
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="substring(SDOCNAME/new_line,4,4)"/>
						</xsl:otherwise>
					</xsl:choose>
				</ID>
				<xsl:variable name="legis" select="LEGISL"/>
				<LEGISL>
					<xsl:value-of select="LEGISL/new_line"/>
				</LEGISL>
				<SESSION>
					<xsl:value-of select="substring-before(SESSION,'-')"/>
					<!-- change BP -->
				</SESSION>
				<OWNER>K</OWNER>
				<DEPOT>
					<xsl:value-of select="DEPOT/new_line"/>
				</DEPOT>
				<TITLE>
					<textN>
						<xsl:for-each select="TITN/new_line">
							<xsl:value-of select="concat(.,' ')"/>
							<!-- change BP -->
						</xsl:for-each>
					</textN>
					<textF>
						<xsl:for-each select="TITF/new_line">
							<!-- change BP -->
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</textF>
				</TITLE>
				<xsl:for-each select="BICAM">
					<BICAM>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</BICAM>
				</xsl:for-each>
				<SITU>
					<textN>
						<xsl:value-of select="SITUN/new_line"/>
					</textN>
					<textF>
						<xsl:value-of select="SITUF/new_line"/>
					</textF>
				</SITU>
				<xsl:for-each select="CADUC">
					<CADUC>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</CADUC>
				</xsl:for-each>
				<xsl:for-each select="EXCADUC">
					<EXCADUC>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</EXCADUC>
				</xsl:for-each>
				<xsl:for-each select="VOTEK">
					<VOTEK>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</VOTEK>
				</xsl:for-each>
				<xsl:for-each select="VOTES">
					<VOTES>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</VOTES>
				</xsl:for-each>
				<xsl:for-each select="VOTEMOT">
					<VOTEMOT>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</VOTEMOT>
				</xsl:for-each>
				<xsl:for-each select="VOTECAN">
					<VOTECAN>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</VOTECAN>
				</xsl:for-each>
				<xsl:for-each select="LAWDAT">
					<LAWDAT>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</LAWDAT>
				</xsl:for-each>
				<xsl:for-each select="PUBLIC">
					<PUBLIC>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</PUBLIC>
				</xsl:for-each>
				<JOINTDOCS>
					<xsl:for-each select="JOINT">
						<JOINT>
							<xsl:for-each select="new_line">
								<xsl:value-of select="concat(.,' ')"/>
							</xsl:for-each>
						</JOINT>
					</xsl:for-each>
				</JOINTDOCS>
				<COMMS>
					<xsl:for-each select="COMM">
						<COMM>
							<!-- get position of new_line where RAPTR-->
							<xsl:variable name="RAPTR_position">
								<xsl:for-each select="new_line">
									<xsl:if test="contains(.,'RAPTR :')">
										<xsl:value-of select="position()"/>
									</xsl:if>
								</xsl:for-each>
							</xsl:variable>
							<xsl:variable name="OPENBAAR_position">
								<xsl:for-each select="new_line">
									<xsl:if test="contains(.,'(OPENBAAR)')">
										<xsl:value-of select="position()"/>
									</xsl:if>
								</xsl:for-each>
							</xsl:variable>
							<xsl:variable name="PUBLIC_position">
								<xsl:for-each select="new_line">
									<xsl:if test="contains(.,'(PUBLIC)')">
										<xsl:value-of select="position()"/>
									</xsl:if>
								</xsl:for-each>
							</xsl:variable>
							<!-- if no RAPTR exists -->
							<xsl:if test="string-length($RAPTR_position)=0">
								<xsl:choose>
									<xsl:when test="not(string-length($OPENBAAR_position)=0)">
										<textN>
											<xsl:for-each select="new_line">
												<xsl:if test="not(position() > $OPENBAAR_position)">
													<xsl:value-of select="concat(.,' ')"/>
												</xsl:if>
											</xsl:for-each>
										</textN>
										<textF>
											<xsl:for-each select="new_line">
												<xsl:if test="(position() > $OPENBAAR_position) and not(position() > $PUBLIC_position)">
													<xsl:value-of select="concat(.,' ')"/>
												</xsl:if>
											</xsl:for-each>
										</textF>
										<xsl:for-each select="new_line">
											<xsl:if test="position() > $PUBLIC_position">
												<comment>
													<xsl:value-of select="."/>
												</comment>
											</xsl:if>
										</xsl:for-each>
									</xsl:when>
									<xsl:otherwise>
										<comment>
											<xsl:for-each select="new_line">
												<xsl:value-of select="concat(.,' ')"/>
											</xsl:for-each>
										</comment>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:if>
							<!-- RAPTR 'exists -->
							<xsl:if test="not(string-length($RAPTR_position)=0)">
								<textN>
									<xsl:for-each select="new_line">
										<xsl:if test="not(position() > $RAPTR_position div 2)">
											<xsl:value-of select="concat(.,' ')"/>
										</xsl:if>
									</xsl:for-each>
								</textN>
								<textF>
									<xsl:for-each select="new_line">
										<xsl:if test="(position() > $RAPTR_position div 2) and not (position() >= $RAPTR_position)">
											<xsl:value-of select="concat(.,' ')"/>
										</xsl:if>
									</xsl:for-each>
								</textF>
								<xsl:for-each select="new_line">
									<xsl:if test="position() >= $RAPTR_position">
										<xsl:choose>
											<xsl:when test="number(substring-after(substring-before(.,')') , '(') )       > 19800000">
												<RAPPORTEUR>
													<xsl:choose>
														<xsl:when test="contains(.,'RAPTR :')">
															<xsl:call-template name="persoon">
																<xsl:with-param name="VOLLEDIG" select="substring-after(.,':')"/>
															</xsl:call-template>
														</xsl:when>
														<xsl:otherwise>
															<xsl:call-template name="persoon">
																<xsl:with-param name="VOLLEDIG" select="."/>
															</xsl:call-template>
														</xsl:otherwise>
													</xsl:choose>
												</RAPPORTEUR>
											</xsl:when>
											<xsl:otherwise>
												<comment>
													<xsl:value-of select="concat(.,' ')"/>
												</comment>
											</xsl:otherwise>
										</xsl:choose>
									</xsl:if>
								</xsl:for-each>
							</xsl:if>
						</COMM>
					</xsl:for-each>
				</COMMS>
				<COMPET-BEVOEGD>
					<xsl:for-each select="COMPET/new_line">
						<xsl:variable name="COMPET_position" select="position()"/>
						<xsl:choose>
							<xsl:when test="position()=1">
								<CODE>
									<xsl:value-of select="."/>
								</CODE>
							</xsl:when>
							<xsl:otherwise>
								<xsl:choose>
									<xsl:when test="number(substring-before(.,' ')) > 19800000">
										<DATE>
											<xsl:value-of select="substring-before(.,' ')"/>
										</DATE>
										<textN>
											<xsl:value-of select="substring-after(//BEVOEGD/new_line[position()=$COMPET_position],' ')"/>
										</textN>
										<textF>
											<xsl:value-of select="substring-after(.,' ')"/>
										</textF>
									</xsl:when>
									<xsl:otherwise>
										<DATE/>
										<textN>
											<xsl:value-of select="//BEVOEGD/new_line[position()=$COMPET_position]"/>
										</textN>
										<textF>
											<xsl:value-of select="."/>
										</textF>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:otherwise>
						</xsl:choose>
					</xsl:for-each>
				</COMPET-BEVOEGD>
				<xsl:for-each select="CALPLK">
					<CALPLK>
						<xsl:for-each select="new_line">
							<comment>
								<xsl:value-of select="."/>
							</comment>
						</xsl:for-each>
					</CALPLK>
				</xsl:for-each>
				<xsl:for-each select="CALPLS">
					<CALPLS>
						<xsl:for-each select="new_line">
							<comment>
								<xsl:value-of select="."/>
							</comment>
						</xsl:for-each>
					</CALPLS>
				</xsl:for-each>
				<xsl:for-each select="CALPLR">
					<CALPLR>
						<xsl:for-each select="new_line">
							<comment>
								<xsl:value-of select="."/>
							</comment>
						</xsl:for-each>
					</CALPLR>
				</xsl:for-each>
				<MAINDOCS>
					<xsl:for-each select="DOC">
						<!-- change BP -->
						<xsl:variable name="subd1" select="substring(DOCA/new_line,15,4)"/>
						<MAINDOC>
							<SDOCNAME>
								<xsl:value-of select="../SDOCNAME/new_line"/>
							</SDOCNAME>
							<ID>
								<xsl:value-of select="$id1"/>
							</ID>
							<LEGISL>
								<xsl:value-of select="../LEGISL/new_line"/>
							</LEGISL>
							<xsl:apply-templates select="." mode="main">
								<xsl:with-param name="id1" select="$id1"/>
								<xsl:with-param name="legis" select="LEGISL"/>
							</xsl:apply-templates>
						</MAINDOC>
					</xsl:for-each>
				</MAINDOCS>
				<!-- ADAPT BP -->
				<xsl:for-each select="DOC">
					<SUBDOCS>
						<xsl:apply-templates select="." mode="sub">
							<xsl:with-param name="id1" select="$id1"/>
							<xsl:with-param name="legis" select="LEGISL"/>
						</xsl:apply-templates>
					</SUBDOCS>
				</xsl:for-each>
				<xsl:for-each select="AUTSUIV">
					<AUTSUIVS>
						<xsl:for-each select="new_line">
							<AUTSUIV>
								<xsl:call-template name="persoon">
									<xsl:with-param name="VOLLEDIG" select="concat(.,' (')"/>
								</xsl:call-template>
							</AUTSUIV>
						</xsl:for-each>
					</AUTSUIVS>
				</xsl:for-each>
				<xsl:for-each select="RESF">
					<RESF>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</RESF>
				</xsl:for-each>
				<xsl:for-each select="RESN">
					<RESN>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</RESN>
				</xsl:for-each>
				<xsl:for-each select="THESAF">
					<THESAF>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</THESAF>
				</xsl:for-each>
				<xsl:for-each select="THESAN">
					<THESAN>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</THESAN>
				</xsl:for-each>
				<xsl:for-each select="THESAD">
					<THESAD>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</THESAD>
				</xsl:for-each>
				<xsl:for-each select="CANDF">
					<CANDF>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</CANDF>
				</xsl:for-each>
				<xsl:for-each select="CANDN">
					<CANDN>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</CANDN>
				</xsl:for-each>
				<xsl:for-each select="CANDD">
					<CANDD>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</CANDD>
				</xsl:for-each>
				<xsl:for-each select="FREEF">
					<FREEF>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</FREEF>
				</xsl:for-each>
				<xsl:for-each select="FREEN">
					<FREEN>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</FREEN>
				</xsl:for-each>
				<xsl:for-each select="FREED">
					<FREED>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</FREED>
				</xsl:for-each>
				<xsl:for-each select="IMPRTNF">
					<IMPRTNF>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</IMPRTNF>
				</xsl:for-each>
				<xsl:for-each select="IMPRTNN">
					<IMPRTNN>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</IMPRTNN>
				</xsl:for-each>
				<xsl:for-each select="IMPRTNF">
					<IMPRTND>
						<xsl:for-each select="new_line">
							<xsl:value-of select="concat(.,' ')"/>
						</xsl:for-each>
					</IMPRTND>
				</xsl:for-each>
			</DOSSIER>
		</xsl:for-each>
	</xsl:template>
	<xsl:template name="MDOC" match="DOC" mode="main">
		<SESSION>
			<xsl:value-of select="DOCA/new_line[(position() =1)]"/>
		</SESSION>
		<OWNER>
			<xsl:value-of select="DOCA/new_line[(position() =3)]"/>
		</OWNER>
		<DEPOTDATE>
			<xsl:choose>
				<xsl:when test="contains(DOCA/new_line[(position() =2)],':')">
					<xsl:value-of select="substring-after(DOCA/new_line[(position() =2)],':')"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="DOCA/new_line[(position() =2)]"/>
				</xsl:otherwise>
			</xsl:choose>
		</DEPOTDATE>
		<DOCTYPE>
			<xsl:for-each select="DOCA/new_line[(position() =4) or (position() =5)]">
				<xsl:if test="position()=2">
					<textN>
						<xsl:value-of select="."/>
					</textN>
				</xsl:if>
				<xsl:if test="position()=1">
					<textF>
						<xsl:value-of select="."/>
					</textF>
				</xsl:if>
			</xsl:for-each>
		</DOCTYPE>
		<AUTEURS>
			<xsl:for-each select="DOCA/new_line[contains(.,'(AUTEUR') ]">
				<AUTEUR>
					<xsl:call-template name="persoon">
						<xsl:with-param name="VOLLEDIG" select="."/>
					</xsl:call-template>
				</AUTEUR>
			</xsl:for-each>
		</AUTEURS>
		<COMMENTS>
			<xsl:for-each select="DOCA/new_line[not(contains(.,'(AUTEUR')) and (position() >6) ]">
				<COMMENT>
					<xsl:value-of select="."/>
				</COMMENT>
			</xsl:for-each>
		</COMMENTS>
		<!--		<xsl:variable name="DOCL1" select="concat('http://localhost:8080/cocoon/FLWB/checkPDF?dossierID=',substring(../SDOCNAME,4,4),'&#38;','legislat=',../LEGISL,'&#38;','nr=001')"/>
		<xsl:value-of select="$DOCL1"/>
		<xsl:copy-of select="document($DOCL1)"/>-->
		<PDFDOC>
			<DOCLINK>
				<xsl:variable name="DOCL1" select="concat('/FLWB/pdf/',normalize-space(../LEGISL),'/',substring(../SDOCNAME/new_line,4,4),'/')"/>
				<xsl:variable name="DOCL2" select="concat(normalize-space(../LEGISL),'K',substring(../SDOCNAME/new_line,4,4),'001.pdf')"/>
				<xsl:variable name="DOCL3" select="concat($DOCL1,$DOCL2)"/>
				<xsl:value-of select="$DOCL3"/>
				<!--
				<DOCPATH>
					<xsl:value-of select="$DOCL1"/>
				</DOCPATH>
				<DOCNAME>
					<xsl:value-of select="$DOCL2"/>
				</DOCNAME>
				<DOCSEARCH>
					<xsl:value-of select="$DOCL3"/>
				</DOCSEARCH>	
				-->
			</DOCLINK>
			<DOCDATE>NO</DOCDATE>
			<DOCSIZE>00</DOCSIZE>
		</PDFDOC>
	</xsl:template>
	<xsl:template name="MDOC1" match="DOC" mode="sub">
		<xsl:variable name="id1" select="substring(//SDOCNAME/new_line,4,4)"/>
		<xsl:variable name="LEGIS" select="//LEGISL"/>
		<xsl:variable name="docposition" select="position()"/>
		<xsl:for-each select="DOCF/new_line">
			<xsl:variable name="F_position" select="position()"/>
			<xsl:variable name="nummer" select="translate(substring-after(.,':'),'()KS','    ')"/>
			<xsl:variable name="LIJNF" select="substring-before(.,':')"/>
			<xsl:variable name="LIJNN" select="substring-before(../../DOCN/new_line[position()=$F_position],':')"/>
			<!-- xsl:variable name="LIJNN" select="../../DOCN/new_line[position()=$F_position]"/ -->
			<xsl:variable name="nrb" select="substring-before($nummer,'-')"/>
			<xsl:variable name="nre" select="number(substring-after($nummer,'-'))"/>
			<xsl:variable name="nr" select="number($nrb)"/>
			<xsl:choose>
				<xsl:when test="contains($nummer,'-')">
					<xsl:call-template name="recur">
						<xsl:with-param name="SUBLF" select="substring-before(.,':')"/>
						<!--						<xsl:with-param name="SUBLN" select="substring-before(//DOCN/new_line[position()=$F_position],':')"/>-->
						<xsl:with-param name="SUBLN" select="$LIJNN"/>
						<xsl:with-param name="NM" select="number(substring-before(translate(substring-after(.,':'),'()KS','    '),'-'))"/>
						<xsl:with-param name="NE" select="number(substring-after(translate(substring-after(.,':'),'()KS','    '),'-'))"/>
					</xsl:call-template>
				</xsl:when>
				<xsl:otherwise>
					<xsl:variable name="nr" select="number($nummer)"/>
					<xsl:call-template name="recur">
						<xsl:with-param name="SUBLF" select="substring-before(.,':')"/>
						<!--						<xsl:with-param name="SUBLN" select="substring-before(//DOCN/new_line[position()=$F_position],':')"/>-->
						<xsl:with-param name="SUBLN" select="$LIJNN"/>
						<xsl:with-param name="NM" select="$nr"/>
						<xsl:with-param name="NE" select="$nr"/>
					</xsl:call-template>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:for-each>
	</xsl:template>
	<xsl:template name="recur">
		<xsl:param name="SUBLF"/>
		<xsl:param name="SUBLN"/>
		<xsl:param name="NM"/>
		<xsl:param name="NE"/>
		<xsl:choose>
			<xsl:when test="$NM &lt; $NE">
				<xsl:call-template name="SUBD">
					<xsl:with-param name="SUBLF" select="$SUBLF"/>
					<xsl:with-param name="SUBLN" select="$SUBLN"/>
					<xsl:with-param name="NM" select="$NM"/>
				</xsl:call-template>
				<xsl:call-template name="recur">
					<xsl:with-param name="SUBLF" select="$SUBLF"/>
					<xsl:with-param name="SUBLN" select="$SUBLN"/>
					<xsl:with-param name="NM" select="($NM+1)"/>
					<xsl:with-param name="NE" select="$NE"/>
				</xsl:call-template>
			</xsl:when>
			<xsl:otherwise>
				<xsl:call-template name="SUBD">
					<xsl:with-param name="SUBLF" select="$SUBLF"/>
					<xsl:with-param name="SUBLN" select="$SUBLN"/>
					<xsl:with-param name="NM" select="$NM"/>
				</xsl:call-template>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	<xsl:template name="SUBD">
		<xsl:param name="SUBLF"/>
		<xsl:param name="SUBLN"/>
		<xsl:param name="NM"/>
		<SUBDOC>
			<NR>
				<xsl:number value="$NM" format="001"/>
			</NR>
			<DOCTYPE>
				<textN>
					<xsl:copy-of select="$SUBLN"/>
				</textN>
				<textF>
					<xsl:copy-of select="$SUBLF"/>
				</textF>
			</DOCTYPE>
			<xsl:variable name="pdfnr" select="format-number($NM,'000')"/>
			<!--			<xsl:variable name="DOCL1" select="concat('http://localhost:8080/cocoon/FLWB/checkPDF?dossierID=',substring(../../../SDOCNAME,4,4),'&#38;','legislat=',../../../LEGISL,'&#38;','nr=',$pdfnr)"/>
		<xsl:value-of select="$DOCL1"/>
			<xsl:copy-of select="document($DOCL1)"/>-->
			<!--<xsl:copy-of select="document(concat(concat(concat(concat('http://localhost:8080/cocoon/FLWB/checkPDF/dossierID=$id1&legislat=$legis&nr=001"/>-->
			<PDFDOC>
				<DOCLINK>
					<xsl:variable name="DOCL1" select="concat('/FLWB/pdf/',normalize-space(../../../LEGISL),'/',substring(../../../SDOCNAME/new_line,4,4),'/')"/>
					<xsl:variable name="DOCL2" select="concat(normalize-space(../../../LEGISL),'K',substring(../../../SDOCNAME/new_line,4,4),$pdfnr,'.pdf')"/>
					<xsl:variable name="DOCL3" select="concat($DOCL1,$DOCL2)"/>
					<xsl:value-of select="$DOCL3"/>
					<!--				<DOCPATH>
					<xsl:value-of select="$DOCL1"/>
				</DOCPATH>
				<DOCNAME>
					<xsl:value-of select="$DOCL2"/>
				</DOCNAME>
				<DOCSEARCH>
					<xsl:value-of select="$DOCL3"/>
				</DOCSEARCH>	 -->				
				</DOCLINK>
				<DOCDATE>NO</DOCDATE>
				<DOCSIZE>00</DOCSIZE>
			</PDFDOC>
		</SUBDOC>
	</xsl:template>
	<xsl:template name="persoon">
		<xsl:param name="VOLLEDIG"/>
		<xsl:variable name="famnaam" select="substring-before($VOLLEDIG,',')"/>
		<xsl:variable name="voornaam1" select="substring-after($VOLLEDIG,',')"/>
		<xsl:variable name="voornaam" select="substring-before($voornaam1,',')"/>
		<xsl:variable name="partij1" select="substring-after($voornaam1,',')"/>
		<xsl:variable name="partij" select="substring-before($partij1,'(')"/>
		<FAMNAAM>
			<xsl:value-of select="$famnaam"/>
		</FAMNAAM>
		<FORNAAM>
			<xsl:value-of select="$voornaam"/>
		</FORNAAM>
		<PARTY>
			<xsl:value-of select="$partij"/>
		</PARTY>
	</xsl:template>
</xsl:stylesheet>
