<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" doctype-public="-//W3C//DTD XHTML 1.1//EN"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl">
 <head>
  <title>Voorbeeld xml + xsl</title>

  <style type="text/css">
   html{
    background:yellow;
    font-family:verdana, sans-serif;
   }
   table tr td{
    width:200px;
    border:1px solid #000;
   }
  </style>
 </head>

 <body>
  <table>
   <tr>
    <th>Jaar</th>
    <th>Aantal</th>
    <th>Oppervlakte (ha)</th>
   </tr>

  <xsl:apply-templates select="document/landbouwbedrijven/biologisch"/>
  </table>
 </body>
</html>
</xsl:template>

<xsl:template match="document/landbouwbedrijven/biologisch">
 <xsl:for-each select="situatie">
  <tr xmlns="http://www.w3.org/1999/xhtml">
   <td><xsl:value-of select="jaar"/></td>
   <td><xsl:value-of select="aantal"/></td>
   <td><xsl:value-of select="oppervlakte"/></td>
  </tr>
 </xsl:for-each>
</xsl:template>
</xsl:stylesheet>
