﻿<?xml version="1.0" encoding="utf-8" ?>
<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" version="4.0" />
	<xsl:output omit-xml-declaration="yes" />
	<xsl:key name="pers-per-maand" match="pers" use="@Maand" />
	<xsl:template match="NewDataSet">
			<xsl:variable name="aantallinks">
				<xsl:value-of select="ceiling(count(website_leden) div 2)"/>
			</xsl:variable>
		<table width="100%">
		<tr valign="top">
		<td>
			<xsl:apply-templates select="website_leden[position() &lt; $aantallinks]"/>
		</td>
		<td>
			<xsl:apply-templates select="website_leden[position() &gt;= $aantallinks]"/>
		</td>
		</tr>
		</table>
	</xsl:template>
	<xsl:template match="website_leden">
		<xsl:choose>
			<xsl:when test="string-length(@website) &gt; 1">
				<a style="font-size: 8pt" target="_blank">
					<xsl:attribute name="href">
						http://<xsl:value-of select="@website"></xsl:value-of>
					</xsl:attribute>
					<xsl:value-of select="@organisatie"></xsl:value-of>
				</a>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="@organisatie"></xsl:value-of>
			</xsl:otherwise>
		</xsl:choose>
		<br/>
	</xsl:template>
</xsl:stylesheet>
