]> matita.cs.unibo.it Git - helm.git/blob - helm/mowgli/home/xsl/common.xsl
- main page now generated automatically
[helm.git] / helm / mowgli / home / xsl / common.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:template name="head">
7   <xsl:param name="path_to_top" select="'.'"/>
8   <br />
9   <table border="0" cellspacing="0" cellpadding="0" width="100%">
10     <tr>
11       <td align="left" valign="bottom">
12         <div class="small">
13           <a href="{$path_to_top}/home.html">MoWGLI: Mathematics on the Web: Get It by Logic and Interfaces</a>
14         </div>
15       </td>
16       <td align="right" valign="bottom">
17         <div class="small">
18           <a href="http://www.cordis.lu/ist"><img border="0" alt="IST Logo Small" src="{$path_to_top}/../images/istbutton_small.gif"/></a>
19         </div>
20       </td>
21     </tr>
22   </table>
23   <hr/>
24 </xsl:template>
25
26 <xsl:template name="foot">
27   <xsl:param name="path_to_top" select="'.'"/>
28   <hr/>
29   <table border="0" cellspacing="0" cellpadding="0" width="100%">
30     <tr>
31       <td align="left" valign="top">
32         <div class="small">
33           This pages are hosted by the
34           <a href="http:/www.cs.unibo.it">Department of Computer Science</a>,
35           <a href="http://www.unibo.it">University of Bologna</a>.
36         </div>
37       </td>
38       <td align="right" valign="top">
39         <div class="small">
40           <a href="http://www.cordis.lu/ist"><img border="0" alt="IST Logo Small" src="{$path_to_top}/../images/istbutton_small.gif"/></a>
41         </div>
42       </td>
43     </tr>
44   </table>
45   <br />
46 </xsl:template>
47
48 <xsl:template name="person-name">
49   <xsl:param name="file" select="''"/>
50   <xsl:variable name="person" select="document(concat('../xml/people/',$file,'.xml'))/person"/>
51   <xsl:if test="$person/qualification">
52    <xsl:value-of select="$person/qualification"/>
53    <xsl:value-of select="' '"/>
54   </xsl:if>
55   <xsl:value-of select="$person/name"/>
56   <xsl:value-of select="' '"/>
57   <xsl:value-of select="$person/surname"/>
58 </xsl:template>
59
60 </xsl:stylesheet>
61