View stylesheet

XML schema http://dd.eionet.europa.eu/GetSchema?id=TBL1924
Output type HTML
Description HTML table
XSL file tbl1924-europa.eu.xsl (Last modified: 31 Jul 2007 13:12 )
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dd207="http://dd.eionet.europa.eu/namespace.jsp?ns_id=207"
xmlns:dd209="http://dd.eionet.europa.eu/namespace.jsp?ns_id=209" version="1.0">
  <xsl:output method="html"/>
  <xsl:template match="/">
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>Alert</title>
      </head>
      <body>
        <h1>Alert</h1>
        <table border="1">
          <xsl:apply-templates select="dd207:Alert/dd207:Row"/>
        </table>
      </body>
    </html>
  </xsl:template>
  <xsl:template match="dd207:Alert/dd207:Row">
    <xsl:if test="position()=1">
      <xsl:call-template name="header"/>
    </xsl:if>
    <tr>
      <xsl:for-each select="*">
        <td>
          <xsl:if test=".=''">   </xsl:if>
          <xsl:value-of select="."/>
        </td>
      </xsl:for-each>
    </tr>
  </xsl:template>
  <xsl:template name="header">
    <tr>Alert    <xsl:for-each select="*"><th bgcolor="#87CEFA"><xsl:value-of select="local-name()"/></th></xsl:for-each>
</tr>
  </xsl:template>
</xsl:stylesheet>