3 <xsl:stylesheet version="1.0"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
6 <xsl:import href="common.xsl"/>
8 <xsl:output method="xml"/>
10 <xsl:template match="/">
13 <title><xsl:value-of select="site/name"/></title>
16 <xsl:apply-templates/>
21 <xsl:template match="site|subsite">
23 <xsl:when test="subsite">
24 <p>This is an aggregate site, whose members are:</p>
26 <xsl:for-each select="subsite">
28 <a href="#{generate-id()}">
29 <xsl:value-of select="name"/>
34 <xsl:for-each select="subsite">
36 <a name="{generate-id()}"/>
37 <xsl:apply-templates select="."/>
41 <h1><xsl:value-of select="name"/></h1>
42 <h2><xsl:value-of select="country"/></h2>
43 <p><xsl:value-of select="address"/></p>
44 <p><a href="{url}">Visit the institution home page.</a></p>
46 <xsl:text>Site responsible: </xsl:text>
47 <a href="../people/{responsible/@file}.html">
48 <xsl:call-template name="person-name">
49 <xsl:with-param name="file" select="responsible/@file"/>
52 <xsl:text>.</xsl:text>
54 <xsl:if test="./member">
57 <xsl:for-each select="./member">
59 <a href="../people/{@file}.html">
60 <xsl:call-template name="person-name">
61 <xsl:with-param name="file" select="@file"/>
68 <xsl:copy-of select="description/*"/>
69 <xsl:if test="project">
70 <h1>Projects developed by this site related to MOWGLI:</h1>
72 <xsl:apply-templates select="project"/>
77 <xsl:template match="project">
79 <xsl:value-of select="name"/>
80 <xsl:if test="acronym">
81 <xsl:text> (</xsl:text>
82 <xsl:value-of select="acronym"/>
83 <xsl:text>)</xsl:text>
86 <p><a href="{url}">Visit the project home page.</a></p>
87 <p>Members of the project also involved in MOWGLI:</p>
89 <xsl:for-each select="member">
91 <a href="../people/{@file}.html">
92 <xsl:call-template name="person-name">
93 <xsl:with-param name="file" select="@file"/>
99 <xsl:copy-of select="description/*"/>