]> matita.cs.unibo.it Git - helm.git/blob - helm/mowgli/home/xsl/consortium.xsl
- main page now generated automatically
[helm.git] / helm / mowgli / home / xsl / consortium.xsl
1 <?xml version="1.0"?>
2
3 <xsl:stylesheet version="1.0"
4                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5
6 <xsl:import href="common.xsl"/>
7
8 <xsl:output method="html"/>
9
10 <xsl:template match="/">
11  <html>
12   <head>
13    <title>Consortium</title>
14    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
15    <link rel="stylesheet" href="../style/mowgli.css" type="text/css"/>
16   </head>
17   <body>
18     <xsl:call-template name="head">
19      <xsl:with-param name="path_to_top" select="'.'"/>
20     </xsl:call-template>
21     <xsl:apply-templates/>
22     <xsl:call-template name="foot">
23      <xsl:with-param name="path_to_top" select="'.'"/>
24     </xsl:call-template>
25   </body>
26  </html>
27 </xsl:template>
28
29 <xsl:template match="consortium">
30  <h1>The Consortium</h1>
31  <p>
32   <xsl:text>The Consortium is made of </xsl:text>
33   <xsl:value-of select="count(site)"/>
34   <xsl:text> sites:</xsl:text>
35  </p>
36  <ul>
37   <xsl:for-each select="site">
38    <li>
39     <a href="sites/{@file}.html">
40      <xsl:variable name="site" select="document(concat('../xml/sites/',@file,'.xml'))/site"/>
41     <xsl:choose>
42      <xsl:when test="$site/name">
43       <xsl:value-of select="$site/name"/>
44      </xsl:when>
45      <xsl:otherwise>
46       <xsl:value-of select="$site/subsite/name"/>
47      </xsl:otherwise>
48     </xsl:choose>
49     </a>
50    </li>
51   </xsl:for-each>
52  </ul>
53  <xsl:copy-of select="description/*"/>
54 </xsl:template>
55
56 </xsl:stylesheet>