]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/mowgli/home/xsl/management.xsl
* New MOWGLI members
[helm.git] / helm / mowgli / home / xsl / management.xsl
diff --git a/helm/mowgli/home/xsl/management.xsl b/helm/mowgli/home/xsl/management.xsl
new file mode 100644 (file)
index 0000000..53fd826
--- /dev/null
@@ -0,0 +1,192 @@
+<?xml version="1.0"?>
+
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:import href="common.xsl"/>
+
+<xsl:output method="xml"/>
+
+<xsl:template match="/">
+ <html>
+  <head>
+   <title>Project Management</title>
+  </head>
+  <body>
+   <xsl:apply-templates/>
+  </body>
+ </html>
+</xsl:template>
+
+<xsl:template match="management">
+   <xsl:copy-of select="head-links/*"/>
+   <xsl:copy-of select="introduction/*"/>
+   <dl>
+    <xsl:apply-templates select="main"/>
+   </dl>
+   <xsl:copy-of select="other-infos/*"/>
+   <xsl:copy-of select="tail-links/*"/>
+</xsl:template>
+
+<xsl:template match="project-manager">
+ <dt>
+  <span style="font-weight: bold">Project Manager: </span>
+  <a href="../people/{@site}/{@file}.html">
+   <xsl:call-template name="person-name">
+    <xsl:with-param name="file" select="concat(@site,'/',@file)"/>
+   </xsl:call-template>
+  </a>
+ </dt>
+ <dd>
+  <xsl:value-of select="mandate"/>
+ </dd>
+</xsl:template>
+
+<xsl:template match="exploitation-manager">
+ <dt>
+  <span style="font-weight: bold">Exploitation Manager: </span>
+  <a href="../people/{@site}/{@file}.html">
+   <xsl:call-template name="person-name">
+    <xsl:with-param name="file" select="concat(@site,'/',@file)"/>
+   </xsl:call-template>
+  </a>
+ </dt>
+ <dd>
+  <xsl:value-of select="mandate"/>
+ </dd>
+</xsl:template>
+
+<xsl:template match="work-package-leaders">
+ <dt>
+  <span style="font-weight: bold">Work-Package Leaders</span>
+ </dt>
+ <dd>
+  <table>
+   <tr>
+    <xsl:for-each select="document('../xml/work-packages/index.xml')/work-packages/work-package">
+     <td>
+      <a href="../work-packages/{@file}.html">
+       <xsl:value-of select="document(concat('../xml/work-packages/',@file,'.xml'))/*/name"/>
+      </a>
+     </td>
+    </xsl:for-each>
+   </tr>
+   <tr>
+    <xsl:for-each select="document('../xml/work-packages/index.xml')/work-packages/work-package">
+     <td>
+      <xsl:variable name="leader" select="document(concat('../xml/work-packages/',@file,'.xml'))/*/leader/@file"/>
+      <a href="../people/{$leader}.html">
+       <xsl:call-template name="person-name">
+        <xsl:with-param name="file" select="$leader"/>
+       </xsl:call-template>
+      </a>
+     </td>
+    </xsl:for-each>
+   </tr>
+  </table>
+  <xsl:value-of select="mandate"/>
+ </dd>
+</xsl:template>
+
+<xsl:template match="technical-contributors">
+ <dt>
+  <span style="font-weight: bold">Technical Contributors</span>
+ </dt>
+ <dd>
+  <xsl:value-of select="mandate"/>
+ </dd>
+</xsl:template>
+
+<xsl:template match="project-coordination-committee">
+ <dt>
+  <span style="font-weight: bold">Project Coordination Committee</span>
+ </dt>
+ <dd>
+  <p>
+   <xsl:text>Chaired by </xsl:text>
+   <xsl:variable name="filename" select="concat(chair/@site,'/',chair/@file)"/>
+   <a href="../people/{$filename}.html">
+    <xsl:call-template name="person-name">
+     <xsl:with-param name="file" select="$filename"/>
+    </xsl:call-template>
+   </a>
+  </p>
+  <p>
+   <xsl:text>Members:</xsl:text>
+   <span style="margin-left: 1cm">
+    <table>
+     <tr>
+      <xsl:for-each select="member">
+       <td style="text-align: center"><xsl:value-of select="@site"/></td>
+      </xsl:for-each>
+     </tr>
+     <tr>
+      <xsl:for-each select="member">
+       <td style="text-align: center">
+        <xsl:variable name="filename" select="concat(@site,'/',@file)"/>
+        <a href="../people/{$filename}.html">
+         <xsl:call-template name="person-name">
+          <xsl:with-param name="file" select="$filename"/>
+         </xsl:call-template>
+        </a>
+       </td>
+      </xsl:for-each>
+     </tr>
+    </table>
+   </span>
+  </p>
+  <xsl:value-of select="mandate"/>
+ </dd>
+</xsl:template>
+
+<xsl:template match="project-exploitation-board">
+ <dt>
+  <span style="font-weight: bold">Project Exploitation Board</span>
+ </dt>
+ <dd>
+  <p>
+   <xsl:text>Chaired by </xsl:text>
+   <xsl:variable name="filename" select="concat(chair/@site,'/',chair/@file)"/>
+   <a href="../people/{$filename}.html">
+    <xsl:call-template name="person-name">
+     <xsl:with-param name="file" select="$filename"/>
+    </xsl:call-template>
+   </a>
+  </p>
+  <p>
+   <xsl:text>Members:</xsl:text>
+   <span style="margin-left: 1cm">
+    <table>
+     <tr>
+      <xsl:for-each select="member">
+       <td style="text-align: center"><xsl:value-of select="@site"/></td>
+      </xsl:for-each>
+     </tr>
+     <tr>
+      <xsl:for-each select="member">
+       <td style="text-align: center">
+        <a href="../people/{$filename}.html">
+         <xsl:call-template name="person-name">
+          <xsl:with-param name="file" select="concat(@site,'/',@file)"/>
+         </xsl:call-template>
+        </a>
+       </td>
+      </xsl:for-each>
+     </tr>
+    </table>
+   </span>
+  </p>
+  <xsl:value-of select="mandate"/>
+ </dd>
+</xsl:template>
+
+<xsl:template match="work-package-teams">
+ <dt>
+  <span style="font-weight: bold">Work-Package Teams</span>
+ </dt>
+ <dd>
+  <xsl:value-of select="mandate"/>
+ </dd>
+</xsl:template>
+
+</xsl:stylesheet>