]> matita.cs.unibo.it Git - helm.git/blob - helm/mowgli/home/xsl/publication.xsl
* Rendering of publications improved.
[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     <xsl:call-template name="head">
19      <xsl:with-param name="path_to_top" select="'../..'"/>
20     </xsl:call-template>
21     <xsl:apply-templates/>
22     <xsl:call-template name="foot">
23      <xsl:with-param name="path_to_top" select="'../..'"/>
24     </xsl:call-template>
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:call-template name="person-name">
37        <xsl:with-param name="form" select="'abbreviated'"/>
38        <xsl:with-param name="file" select="@file"/>
39       </xsl:call-template>
40      </a>
41     </xsl:when>
42     <xsl:otherwise>
43      <xsl:value-of select="surname"/>
44      <xsl:text>, </xsl:text>
45      <xsl:value-of select="name"/>
46     </xsl:otherwise>
47    </xsl:choose>
48    <xsl:if test="position() != last()">
49     <xsl:text> ; </xsl:text>
50    </xsl:if>
51   </xsl:for-each>
52  </h2>
53  <p><xsl:value-of select="where"/></p>
54 </xsl:template>
55
56 </xsl:stylesheet>