]> matita.cs.unibo.it Git - helm.git/blob - helm/mowgli/home/xsl/publication.xsl
Bug fixed: the top directory has a different (relative) path depending on
[helm.git] / helm / mowgli / home / xsl / publication.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="html"/>
9
10 <xsl:template match="/">
11  <html>
12   <head>
13    <title><xsl:value-of select="publication/title"/></title>
14    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
15    <link rel="stylesheet" href="../../../style/mowgli.css" type="text/css"/>
16   </head>
17   <body>
18    <blockquote>
19     <xsl:call-template name="head">
20      <xsl:with-param name="path_to_top" select="'../..'"/>
21     </xsl:call-template>
22     <xsl:apply-templates/>
23     <xsl:call-template name="foot"/>
24    </blockquote>
25   </body>
26  </html>
27 </xsl:template>
28
29 <xsl:template match="publication">
30  <h1><xsl:value-of select="title"/></h1>
31  <h2>
32   <xsl:for-each select="author">
33    <xsl:choose>
34     <xsl:when test="@file">
35      <a href="../../people/{@file}.html">
36       <xsl:value-of select="@file"/>
37      </a>
38     </xsl:when>
39     <xsl:otherwise>
40      <xsl:value-of select="surname"/>
41      <xsl:text>, </xsl:text>
42      <xsl:value-of select="name"/>
43     </xsl:otherwise>
44    </xsl:choose>
45    <xsl:if test="position() != last()">
46     <xsl:text> ; </xsl:text>
47    </xsl:if>
48   </xsl:for-each>
49  </h2>
50  <p><xsl:value-of select="where"/></p>
51 </xsl:template>
52
53 </xsl:stylesheet>