View stylesheet

XML schemas http://dd.sdr.edw.ro/GetSchema?id=TBL7212
Output type HTML
Description HTML table
XSL file sdr-lakes-station-html.xsl (Last modified: 19 Apr 2011 23:58 )
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dd715="http://dd.sdr.edw.ro/namespace.jsp?ns_id=715" xmlns:dd716="http://dd.sdr.edw.ro/namespace.jsp?ns_id=716">
	<xsl:output method="html"/>
	<xsl:template match="/">
		<html>
			<head>
				<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
				<title>StationsLakes</title>
			</head>
			<body>
				<h1>StationsLakes</h1>
				<table border="1">
					<xsl:apply-templates select="dd715:StationsLakes/dd715:Row"/>
				</table>
			</body>
		</html>
	</xsl:template>
	<xsl:template match="dd715:StationsLakes/dd715: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>