]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/mowgli/home/xsl/site.xsl
ocaml 3.09 transition
[helm.git] / helm / mowgli / home / xsl / site.xsl
index df3ce1d0d46a7e545051a2f0195f79354005391e..eb1f0ab4fcdd1b936557afe36d1d7e1e8277be1e 100644 (file)
@@ -1,18 +1,19 @@
 <?xml version="1.0"?>
+
 <xsl:stylesheet version="1.0"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
-<xsl:output method="html"/>
+<xsl:import href="common.xsl"/>
+
+<xsl:output method="xml"/>
 
 <xsl:template match="/">
  <html>
   <head>
    <title><xsl:value-of select="site/name"/></title>
-   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-   <link rel="stylesheet" href="../../style/mowgli.css" type="text/css"/>
   </head>
   <body>
-   <xsl:apply-templates/>
+    <xsl:apply-templates/>
   </body>
  </html>
 </xsl:template>
    <p>
     <xsl:text>Site responsible: </xsl:text>
     <a href="../people/{responsible/@file}.html">
-     <xsl:value-of select="responsible/@file"/>
+     <xsl:call-template name="person-name">
+      <xsl:with-param name="file" select="responsible/@file"/>
+     </xsl:call-template>
     </a>
     <xsl:text>.</xsl:text>
    </p>
+   <xsl:if test="./member">
+    <p>Site members:</p>
+    <ul>
+     <xsl:for-each select="./member">
+      <li>
+       <a href="../people/{@file}.html">
+        <xsl:call-template name="person-name">
+         <xsl:with-param name="file" select="@file"/>
+        </xsl:call-template>
+       </a>
+      </li>
+     </xsl:for-each>
+    </ul>
+   </xsl:if>
    <xsl:copy-of select="description/*"/>
    <xsl:if test="project">
     <h1>Projects developed by this site related to MOWGLI:</h1>
@@ -72,7 +89,9 @@
   <xsl:for-each select="member">
    <li>
     <a href="../people/{@file}.html">
-     <xsl:value-of select="@file"/>
+     <xsl:call-template name="person-name">
+      <xsl:with-param name="file" select="@file"/>
+     </xsl:call-template>
     </a>
    </li>
   </xsl:for-each>