]> matita.cs.unibo.it Git - helm.git/blob - helm/mowgli/home/xsl/management.xsl
* New MOWGLI members
[helm.git] / helm / mowgli / home / xsl / management.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="xml"/>
9
10 <xsl:template match="/">
11  <html>
12   <head>
13    <title>Project Management</title>
14   </head>
15   <body>
16    <xsl:apply-templates/>
17   </body>
18  </html>
19 </xsl:template>
20
21 <xsl:template match="management">
22    <xsl:copy-of select="head-links/*"/>
23    <xsl:copy-of select="introduction/*"/>
24    <dl>
25     <xsl:apply-templates select="main"/>
26    </dl>
27    <xsl:copy-of select="other-infos/*"/>
28    <xsl:copy-of select="tail-links/*"/>
29 </xsl:template>
30
31 <xsl:template match="project-manager">
32  <dt>
33   <span style="font-weight: bold">Project Manager: </span>
34   <a href="../people/{@site}/{@file}.html">
35    <xsl:call-template name="person-name">
36     <xsl:with-param name="file" select="concat(@site,'/',@file)"/>
37    </xsl:call-template>
38   </a>
39  </dt>
40  <dd>
41   <xsl:value-of select="mandate"/>
42  </dd>
43 </xsl:template>
44
45 <xsl:template match="exploitation-manager">
46  <dt>
47   <span style="font-weight: bold">Exploitation Manager: </span>
48   <a href="../people/{@site}/{@file}.html">
49    <xsl:call-template name="person-name">
50     <xsl:with-param name="file" select="concat(@site,'/',@file)"/>
51    </xsl:call-template>
52   </a>
53  </dt>
54  <dd>
55   <xsl:value-of select="mandate"/>
56  </dd>
57 </xsl:template>
58
59 <xsl:template match="work-package-leaders">
60  <dt>
61   <span style="font-weight: bold">Work-Package Leaders</span>
62  </dt>
63  <dd>
64   <table>
65    <tr>
66     <xsl:for-each select="document('../xml/work-packages/index.xml')/work-packages/work-package">
67      <td>
68       <a href="../work-packages/{@file}.html">
69        <xsl:value-of select="document(concat('../xml/work-packages/',@file,'.xml'))/*/name"/>
70       </a>
71      </td>
72     </xsl:for-each>
73    </tr>
74    <tr>
75     <xsl:for-each select="document('../xml/work-packages/index.xml')/work-packages/work-package">
76      <td>
77       <xsl:variable name="leader" select="document(concat('../xml/work-packages/',@file,'.xml'))/*/leader/@file"/>
78       <a href="../people/{$leader}.html">
79        <xsl:call-template name="person-name">
80         <xsl:with-param name="file" select="$leader"/>
81        </xsl:call-template>
82       </a>
83      </td>
84     </xsl:for-each>
85    </tr>
86   </table>
87   <xsl:value-of select="mandate"/>
88  </dd>
89 </xsl:template>
90
91 <xsl:template match="technical-contributors">
92  <dt>
93   <span style="font-weight: bold">Technical Contributors</span>
94  </dt>
95  <dd>
96   <xsl:value-of select="mandate"/>
97  </dd>
98 </xsl:template>
99
100 <xsl:template match="project-coordination-committee">
101  <dt>
102   <span style="font-weight: bold">Project Coordination Committee</span>
103  </dt>
104  <dd>
105   <p>
106    <xsl:text>Chaired by </xsl:text>
107    <xsl:variable name="filename" select="concat(chair/@site,'/',chair/@file)"/>
108    <a href="../people/{$filename}.html">
109     <xsl:call-template name="person-name">
110      <xsl:with-param name="file" select="$filename"/>
111     </xsl:call-template>
112    </a>
113   </p>
114   <p>
115    <xsl:text>Members:</xsl:text>
116    <span style="margin-left: 1cm">
117     <table>
118      <tr>
119       <xsl:for-each select="member">
120        <td style="text-align: center"><xsl:value-of select="@site"/></td>
121       </xsl:for-each>
122      </tr>
123      <tr>
124       <xsl:for-each select="member">
125        <td style="text-align: center">
126         <xsl:variable name="filename" select="concat(@site,'/',@file)"/>
127         <a href="../people/{$filename}.html">
128          <xsl:call-template name="person-name">
129           <xsl:with-param name="file" select="$filename"/>
130          </xsl:call-template>
131         </a>
132        </td>
133       </xsl:for-each>
134      </tr>
135     </table>
136    </span>
137   </p>
138   <xsl:value-of select="mandate"/>
139  </dd>
140 </xsl:template>
141
142 <xsl:template match="project-exploitation-board">
143  <dt>
144   <span style="font-weight: bold">Project Exploitation Board</span>
145  </dt>
146  <dd>
147   <p>
148    <xsl:text>Chaired by </xsl:text>
149    <xsl:variable name="filename" select="concat(chair/@site,'/',chair/@file)"/>
150    <a href="../people/{$filename}.html">
151     <xsl:call-template name="person-name">
152      <xsl:with-param name="file" select="$filename"/>
153     </xsl:call-template>
154    </a>
155   </p>
156   <p>
157    <xsl:text>Members:</xsl:text>
158    <span style="margin-left: 1cm">
159     <table>
160      <tr>
161       <xsl:for-each select="member">
162        <td style="text-align: center"><xsl:value-of select="@site"/></td>
163       </xsl:for-each>
164      </tr>
165      <tr>
166       <xsl:for-each select="member">
167        <td style="text-align: center">
168         <a href="../people/{$filename}.html">
169          <xsl:call-template name="person-name">
170           <xsl:with-param name="file" select="concat(@site,'/',@file)"/>
171          </xsl:call-template>
172         </a>
173        </td>
174       </xsl:for-each>
175      </tr>
176     </table>
177    </span>
178   </p>
179   <xsl:value-of select="mandate"/>
180  </dd>
181 </xsl:template>
182
183 <xsl:template match="work-package-teams">
184  <dt>
185   <span style="font-weight: bold">Work-Package Teams</span>
186  </dt>
187  <dd>
188   <xsl:value-of select="mandate"/>
189  </dd>
190 </xsl:template>
191
192 </xsl:stylesheet>