<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!--We use the XML Namespace defined at www.w3.org
Those element without explicit namespace (not XLS tagged) will
follow the HTML namespace definition.-->
<!--Match the document root-->
<xsl:template match="/">
<html>
<head>
<title>Project sem7 overview</title>
<style type="text/css">
body {font-family:arial,helvetica}
</style>
</head>
<body>
<H2>Project Aalborg Harbour semester 7 2001</H2>
<p>
<xsl:apply-templates select="Project" />
</p>
<EM>©Per Christiansson, 10.10.2001</EM>
</body>
</html>
<!--Here ends the root match-->
</xsl:template>
<!--==========================================================-->
<xsl:template match="Project">
<table border="1">
<tr>
<td>
Project Name:
</td>
<td>
<xsl:value-of select="ProjectName" />
</td>
</tr>
<tr>
<td>
Site Name:
</td>
<td>
<xsl:value-of select="Site/SiteName" />
</td>
</tr>
</table>
<p>
===================================
</p>
<xsl:apply-templates select="Site/Building" />
</xsl:template>
<!--==========================================================-->
<xsl:template match="Building">
<p>
This is
<xsl:value-of select="BuildingId" />
<xsl:apply-templates select="Storey" />
</p>
</xsl:template>
<!--==========================================================-->
<xsl:template match="Storey">
<dir>
Storey
<xsl:value-of select="StoreyLevel" />
<br></br>
<table border="2" bgcolor="lightblue">
<xsl:apply-templates select="Space" />
</table>
<br></br>
</dir>
</xsl:template>
<!--==========================================================-->
<xsl:template match="Building">
<p>
This is
<xsl:value-of select="BuildingId" />
<xsl:apply-templates select="Storey" />
=======================================
</p>
</xsl:template>
<!--==========================================================-->
<xsl:template match="Space">
<tr>
<td>
<xsl:value-of select="usage" />
(
<xsl:value-of select="@SpaceFloorArea" />
m2)
</td>
</tr>
</xsl:template>
</xsl:stylesheet>