2 <xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5 <xsl:output method="html"/>
7 <xsl:template match="/">
10 <title><xsl:value-of select="site/name"/></title>
11 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
12 <link rel="stylesheet" href="../../style/mowgli.css" type="text/css"/>
15 <xsl:apply-templates/>
20 <xsl:template match="site|subsite">
22 <xsl:when test="subsite">
23 <p>This is an aggregate site, whose members are:</p>
25 <xsl:for-each select="subsite">
27 <a href="#{generate-id()}">
28 <xsl:value-of select="name"/>
33 <xsl:for-each select="subsite">
35 <a name="{generate-id()}"/>
36 <xsl:apply-templates select="."/>
40 <h1><xsl:value-of select="name"/></h1>
41 <h2><xsl:value-of select="country"/></h2>
42 <p><xsl:value-of select="address"/></p>
43 <p><a href="{url}">Visit the institution home page.</a></p>
45 <xsl:text>Site responsible: </xsl:text>
46 <a href="../people/{responsible/@file}.html">
47 <xsl:value-of select="responsible/@file"/>
49 <xsl:text>.</xsl:text>
51 <xsl:copy-of select="description/*"/>
52 <xsl:if test="project">
53 <h1>Projects developed by this site related to MOWGLI:</h1>
55 <xsl:apply-templates select="project"/>
60 <xsl:template match="project">
62 <xsl:value-of select="name"/>
63 <xsl:if test="acronym">
64 <xsl:text> (</xsl:text>
65 <xsl:value-of select="acronym"/>
66 <xsl:text>)</xsl:text>
69 <p><a href="{url}">Visit the project home page.</a></p>
70 <p>Members of the project also involved in MOWGLI:</p>
72 <xsl:for-each select="member">
74 <a href="../people/{@file}.html">
75 <xsl:value-of select="@file"/>
80 <xsl:copy-of select="description/*"/>