<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:output method="text"/>

	<xsl:variable name="new_line" select="'&#xA;'"/>

	<xsl:template match="/">
		<xsl:if test="facilitor/personen">personeelsnummer;naam;tussenvoegsel;voorletters;voornaam;afdelingscode;functie;indienstdatum;uitdienstdatum;dienstverbandcode;dienstverbandgebouw;afdelingsdomein;telefoon;email;loginnaam<xsl:value-of select="$new_line"/></xsl:if>
		<xsl:for-each select="facilitor/personen/persoon">
			<xsl:value-of select="personeelsnummer"/>;<xsl:value-of select="naam"/>;<xsl:value-of select="tussenvoegsel"/>;<xsl:value-of select="voorletters"/>;<xsl:value-of select="voornaam"/>;<xsl:value-of select="afdelingscode"/>;<xsl:value-of select="functie"/>;<xsl:value-of select="indienstdatum"/>;<xsl:value-of select="uitdienstdatum"/>;<xsl:value-of select="dienstverbandcode"/>;<xsl:value-of select="dienstverbandgebouw"/>;<xsl:value-of select="afdelingsdomein"/>;<xsl:value-of select="telefoon"/>;<xsl:value-of select="email"/>;<xsl:value-of select="loginnaam"/><xsl:value-of select="$new_line"/>
		</xsl:for-each>
	</xsl:template>

</xsl:stylesheet>
