View stylesheet

XML schemas http://dd.eionet.europa.eu/GetSchema?id=TBL5419
Output type HTML
Description Simple table
XSL file tbl-TBL5419.xsl (Last modified: 16 Oct 2008 13:58 )
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:dd579="http://dd.eionet.europa.eu/namespace.jsp?ns_id=579"
    xmlns:dd588="http://dd.eionet.europa.eu/namespace.jsp?ns_id=588"
    >
    <xsl:output method="html"/>

    <xsl:template match="/">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Noncompliance Information</title>
  </head>
  <body>
    <h1>Noncompliance Information</h1>
    <table border="1">
    <xsl:apply-templates select="dd579:NonComplicanceInformation/dd579:Row"/>
    </table>
  </body>
</html>
    </xsl:template>

    <xsl:template match="dd579:NonComplicanceInformation/dd579: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><xsl:for-each select="*">
        <th bgcolor="#87CEFA"><xsl:value-of select="local-name()" /> 
        </th> 
        </xsl:for-each>
        </tr>
    </xsl:template>

</xsl:stylesheet>