XML schema |
http://dd.eionet.eu.int/GetSchema?id=TBL2551
|
---|---|
Output type | HTML |
Description | simple HTML table |
XSL file | gw_gc2htmltable_2551.xml (Last modified: 06 Jan 2006 14:46 ) |
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:dd8="http://dd.eionet.eu.int/namespace.jsp?ns_id=8" xmlns:dd37="http://dd.eionet.eu.int/namespace.jsp?ns_id=37"> <xsl:param name="table-tag" select="'dd8:GeneralCharacterisation'"/> <xsl:param name="row-tag" select="'dd8:Row'"/> <xsl:template match="dd8:GeneralCharacterisation"> <html> <head> <title>GW-Body_Characterisation</title> </head> <body> <h1>Groundwater Body Characteristics and Pressures </h1> <table border="1"> <xsl:apply-templates select="dd8:Row"/> </table> </body> </html> </xsl:template> <xsl:template match="dd8:Row"> <xsl:if test="position()=1"> <xsl:call-template name="header"/> </xsl:if> <tr> <td align="center"><xsl:value-of select="@status"/></td> <xsl:apply-templates /> </tr> </xsl:template> <!-- template for building table cells with values --> <xsl:template match="*"> <td align="center"> <xsl:value-of select="." />  </td> </xsl:template> <!-- a named template, which creates the table header row --> <xsl:template name="header"> <tr> <th bgcolor="#87CEFA">Status</th> <xsl:for-each select="*"> <th bgcolor="#87CEFA"><xsl:value-of select="local-name()" /></th> </xsl:for-each> </tr> </xsl:template> </xsl:stylesheet>
European Environment Agency
Kgs. Nytorv 6, DK-1050 Copenhagen K, Denmark