]> matita.cs.unibo.it Git - helm.git/blob - helm/mowgli/home/xsl/common.xsl
Bug fixed: the top directory has a different (relative) path depending on
[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   <div class="right">
9    <div class="small">
10     <a href="{$path_to_top}/home.html">MoWGLI: Mathematics on the Web: Get It by Logic and Interfaces</a>
11    </div>
12   </div>
13   <hr/>
14 </xsl:template>
15
16 <xsl:template name="foot">
17   <hr/>
18   <div class="small">
19    This page is hosted by the
20    <a href="http://www.cs.unibo.it">Department of Computer Science</a>,
21    <a href="http://www.unibo.it">University of Bologna</a>
22   </div>
23 </xsl:template>
24
25 <xsl:template name="person-name">
26   <xsl:param name="file" select="''"/>
27   <xsl:variable name="person" select="document(concat('../xml/people/',$file,'.xml'))/person"/>
28   <xsl:if test="$person/qualification">
29    <xsl:value-of select="$person/qualification"/>
30    <xsl:value-of select="' '"/>
31   </xsl:if>
32   <xsl:value-of select="$person/name"/>
33   <xsl:value-of select="' '"/>
34   <xsl:value-of select="$person/surname"/>
35 </xsl:template>
36
37 </xsl:stylesheet>
38