<ViewDefinitions xmlns="http://www.windex.nl/schemas/viewdefinition/2007">
	<Views>
		<View Name="Verlofaanvragen" HiddenColumnIds="0;7;8;9;10;11"
			  DefaultOrderColumn="2">
			<Columns>
				<XsltColumn HeaderText="Van" Ordinal="2" OrderBy="StartDate">
					<Transform>
						<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
							<xsl:output method="html" indent="yes"/>
							<xsl:template match="/Row">
								<xsl:choose>
									<xsl:when test="substring-after(Column[@name='StartDate']/., ' ') = '0:00:00'">
										<xsl:value-of select="substring-before(Column[@name='StartDate']/., ' ')"/>
									</xsl:when>
									<xsl:otherwise>
										<xsl:value-of select="Column[@name = 'StartDate']/."/>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:template>
						</xsl:stylesheet>
					</Transform>
				</XsltColumn>
				<XsltColumn HeaderText="Tot" Ordinal="3" OrderBy="EndDate">
					<Transform>
						<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
							<xsl:output method="html" indent="yes"/>
							<xsl:template match="/Row">
								<xsl:choose>
									<xsl:when test="substring-after(Column[@name='EndDate']/., ' ') = '0:00:00'">
										<xsl:value-of select="substring-before(Column[@name='EndDate']/., ' ')"/>
									</xsl:when>
									<xsl:otherwise>
										<xsl:value-of select="Column[@name = 'EndDate']/."/>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:template>
						</xsl:stylesheet>
					</Transform>
				</XsltColumn>
				<XsltColumn HeaderText="Aantal uren" Ordinal="4" OrderBy="NoOfHours">
					<Transform>
						<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
							<xsl:output method="html" indent="yes"/>
							<xsl:template match="/Row">
								<xsl:choose>
									<xsl:when test="substring-after(Column[@name='NoOfHours']/., ',') = '00'">
										<xsl:value-of select="substring-before(Column[@name='NoOfHours']/., ',')"/>
									</xsl:when>
									<xsl:otherwise>
										<xsl:value-of select="Column[@name = 'NoOfHours']/."/>
									</xsl:otherwise>
								</xsl:choose>
							</xsl:template>
						</xsl:stylesheet>
					</Transform>
				</XsltColumn>
				<XsltColumn HeaderText="Status" Ordinal="5" OrderBy="Status">
					<Transform>
						<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
							<xsl:output method="html" indent="yes"/>
							<xsl:template match="/Row">
								<xsl:choose>
									<xsl:when test="Column[@name='Status']/. = 'Requested'">
										Aangevraagd
									</xsl:when>
									<xsl:when test="Column[@name='Status']/. = 'Accepted'">
										Geaccepteerd
									</xsl:when>
									<xsl:otherwise>
										Afgewezen
									</xsl:otherwise>
								</xsl:choose>
							</xsl:template>
						</xsl:stylesheet>
					</Transform>
				</XsltColumn>
				<XsltColumn HeaderText="Type" Ordinal="6" OrderBy="Type">
					<Transform>
						<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
							<xsl:output method="html" indent="yes"/>
							<xsl:template match="/Row">
								<xsl:choose>
									<xsl:when test="Column[@name='Type']/. = 'Request'">
										Aanvraag
									</xsl:when>
									<xsl:when test="Column[@name='Type']/. = 'Withdraw'">
										Intrekking
									</xsl:when>
								</xsl:choose>
							</xsl:template>
						</xsl:stylesheet>
					</Transform>
				</XsltColumn>
			</Columns>
		</View>
	</Views>
</ViewDefinitions>