View stylesheet

XML schemas http://cdrtest.eionet.eu.int/xmlexports/dir200053ec/schema.xsd
Output type HTML
Description Simple HTML table
XSL file dir200053ec_simple_html.xsl (Last modified: 06 Dec 2005 10:11 )
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:template match="questionnaire">
	<html>
		<head>
			<title>ELV implementation report</title>
		</head>
		<body>
			<h1>ELV implementation report</h1>
			<table border="1">
			<xsl:call-template name="header"/>
	<tr>
				<xsl:apply-templates/>
	</tr>
			</table>
		</body>
	</html>
</xsl:template>

<!--   template for building table cells with values -->

<xsl:template match="*">
	<td align="left">
		<xsl:value-of select="." />
	</td>
</xsl:template>

<!--  a named template, which creates the table header row -->
<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>