]> matita.cs.unibo.it Git - helm.git/blob - helm/mowgli/home/xsl/management.xsl
ocaml 3.09 transition
[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 border="1">
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 border="1">
118      <tr>
119       <xsl:for-each select="member">
120        <td style="text-align: center">
121         <a href="../sites/{@site}.html">
122          <xsl:value-of select="@site"/>
123         </a>
124        </td>
125       </xsl:for-each>
126      </tr>
127      <tr>
128       <xsl:for-each select="member">
129        <td style="text-align: center">
130         <xsl:variable name="filename" select="concat(@site,'/',@file)"/>
131         <a href="../people/{$filename}.html">
132          <xsl:call-template name="person-name">
133           <xsl:with-param name="file" select="$filename"/>
134          </xsl:call-template>
135         </a>
136        </td>
137       </xsl:for-each>
138      </tr>
139     </table>
140    </span>
141   </p>
142   <xsl:value-of select="mandate"/>
143  </dd>
144 </xsl:template>
145
146 <xsl:template match="project-exploitation-board">
147  <dt>
148   <span style="font-weight: bold">Project Exploitation Board</span>
149  </dt>
150  <dd>
151   <p>
152    <xsl:text>Chaired by </xsl:text>
153    <xsl:variable name="filename" select="concat(chair/@site,'/',chair/@file)"/>
154    <a href="../people/{$filename}.html">
155     <xsl:call-template name="person-name">
156      <xsl:with-param name="file" select="$filename"/>
157     </xsl:call-template>
158    </a>
159   </p>
160   <p>
161    <xsl:text>Members:</xsl:text>
162    <span style="margin-left: 1cm">
163     <table border="1">
164      <tr>
165       <xsl:for-each select="member">
166        <td style="text-align: center">
167         <a href="../sites/{@site}.html">
168          <xsl:value-of select="@site"/>
169         </a>
170        </td>
171       </xsl:for-each>
172      </tr>
173      <tr>
174       <xsl:for-each select="member">
175        <td style="text-align: center">
176         <xsl:variable name="filename" select="concat(@site,'/',@file)"/>
177         <a href="../people/{$filename}.html">
178          <xsl:call-template name="person-name">
179           <xsl:with-param name="file" select="$filename"/>
180          </xsl:call-template>
181         </a>
182        </td>
183       </xsl:for-each>
184      </tr>
185     </table>
186    </span>
187   </p>
188   <xsl:value-of select="mandate"/>
189  </dd>
190 </xsl:template>
191
192 <xsl:template match="work-package-teams">
193  <dt>
194   <span style="font-weight: bold">Work-Package Teams</span>
195  </dt>
196  <dd>
197   <xsl:value-of select="mandate"/>
198  </dd>
199 </xsl:template>
200
201 </xsl:stylesheet>