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