﻿<?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">
      <div class="wccCalendarTotal">
        <xsl:for-each select="pers[count(. | key('pers-per-maand', @Maand)[1]) = 1]">
           <xsl:for-each select="key('pers-per-maand', @Maand)">
            <div class="wccCalendarItem"  onmouseout="this.className='wccCalendarItem';">
              <xsl:attribute name="onclick">

              </xsl:attribute>
              <div class="wccCalendarEvent">
                            <table border="0" cellpadding="0" cellspacing="0">
              	<tr valign="top">
              		<td></td>
              		<td><span class="wccCalendarTitle"><strong><xsl:value-of select="@Lid" /></strong><br /><xsl:value-of select="@Organisatie" /> (<xsl:value-of select="@Plaats" />)</span><br /><br /></td>
              	</tr>
              </table>
                
              </div>
            </div>
          </xsl:for-each>
        </xsl:for-each>
      </div>
  </xsl:template>
</xsl:stylesheet>
