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

<xsl:template match="/">
	<xsl:apply-templates select="examens"/>
</xsl:template>

	<xsl:template match="examens">
		<font face="arial">	
		<xsl:apply-templates select="vak"/>
		<hr></hr>
		<b>PROGNOSE: </b>
		Aantal A's = <xsl:value-of select="prognose/aantala"/>,
		Aantal B's = <xsl:value-of select="prognose/aantalb"/>,
		Aantal C's = <xsl:value-of select="prognose/aantalc"/>
		</font>
	</xsl:template>
	
	<xsl:template match="vak">
		<b><u><xsl:value-of select="naam"/></u></b>
		<br></br>
		<ul>
			<li><xsl:value-of select="datum"/></li>
			<li>Lokaal: <xsl:value-of select="lokaal"/></li>
			<li>Examinator: <xsl:value-of select="examinator/exnaam"/></li>
		</ul>
		<ul style="text-indent:40px;list-style-type:circle;">
			<li><xsl:value-of select="examinator/email"/></li>
			<li><xsl:value-of select="examinator/url"/></li>
		</ul>
		<table border="1px" width="100%" rules="all" cellspacing="0" bordercolor="black">
			<tr align="left">
				<th><b>Onderdeel</b></th>
				<th><b><center>Code</center></b></th>
				<th><b>Extra Info</b></th>
			</tr>
			<tbody>
				<xsl:apply-templates select="leerstofoverzicht/onderdeel"/>
			</tbody>
		</table>
		<br></br>
	</xsl:template>
	
	<xsl:template match="leerstofoverzicht/onderdeel">
		<tr style="vertical-align:top;">
			<td><xsl:value-of select="ondnaam"/></td>
			<td><center><xsl:value-of select="code"/></center></td>
			<td><xsl:apply-templates select="info/link"/></td>
		</tr>
	</xsl:template>
	
	<xsl:template match="info/link">
		<xsl:value-of select="linkurl"/><br></br>
	</xsl:template>
	






</xsl:stylesheet>
