View stylesheet

XML schema http://dd.eionet.europa.eu/schemas/natura2000/sdf_v1.xsd
Output type HTML
Description List of sites
XSL file sdflistsites.xsl (Last modified: 12 Sep 2013 14:24 )
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">


    <xsl:output method="xml" indent="yes" encoding="utf-8" omit-xml-declaration="yes"/>


    <xsl:template match="sdfs" >
    <html>
      <head>
      <meta http-equiv="content-type" content="text/html; charset=utf-8" />
      <title>List of sites</title>
      <style type="text/css">
      table, th, td {
          border: 1px solid Black;
          border-collapse:collapse;
          background-color:white;
          color:black;
      }
      </style>
      </head>
      <body>
      <h1>
        List of sites in file
      </h1>
      <table>
        <tr><th>Type</th><th>Code</th><th>Site name</th><th>Updated</th></tr>
        <xsl:for-each select="sdf">
         <tr>
         <td><xsl:value-of select="siteIdentification/siteType"/></td>
         <td><xsl:value-of select="siteIdentification/siteCode"/></td>
         <td><xsl:value-of select="siteIdentification/siteName"/></td>
         <td><xsl:value-of select="siteIdentification/updateDate"/></td>
         </tr>
        </xsl:for-each>
      </table>
      </body>
      </html>
  </xsl:template>

</xsl:stylesheet>