View stylesheet

XML schemas http://dd.eionet.europa.eu/schemas/WFD2016/GML_GroundWaterBodyHorizon_2016.xsd
Output type HTML
Description HTML table
XSL file GroundWaterBodyHorizon.xslt (Last modified: 01 May 2016 21:03 )
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wfdgml="http://dd.eionet.europa.eu/schemas/WFD2016/wfdgml" version="2.0">
	<xsl:output method="html" indent="yes"/>
	<xsl:template match="/">
		<html>
			<head>
				<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
				<title>GroundWaterBodyHorizon</title>
			</head>
			<body>
				<h1>GroundWaterBodyHorizon</h1>
				<table border="1" style="border-collapse:collapse;">
					<xsl:apply-templates select="wfdgml:FeatureCollection/wfdgml:featureMember/wfdgml:GroundWaterBodyHorizon"/>
				</table>
			</body>
		</html>
	</xsl:template>
	<xsl:template match="wfdgml:FeatureCollection/wfdgml:featureMember/wfdgml:GroundWaterBodyHorizon">
		<xsl:if test="position()=1">
			<xsl:call-template name="header"/>
		</xsl:if>
		<tr>
			<td><a target="_blank" href="{concat('http://dd.eionet.europa.eu/vocabularyconcept/wise/WaterBody/', wfdgml:thematicIdIdentifierScheme, '.', wfdgml:thematicIdIdentifier)}"><xsl:value-of select="wfdgml:thematicIdIdentifierScheme"/>.<xsl:value-of select="wfdgml:thematicIdIdentifier"/></a></td>
			<td><xsl:value-of select="wfdgml:horizon"/></td>
		</tr>
	</xsl:template>
	<xsl:template name="header">
		<tr>
			<th>thematicIdIdentifier</th>
			<th>horizon</th>
		</tr>
	</xsl:template>	
</xsl:stylesheet>