]> matita.cs.unibo.it Git - helm.git/blob - helm/mowgli/home/xsl/publication.xsl
- more uniform layout
[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:apply-templates/>
21     <xsl:call-template name="foot"/>
22    </blockquote>
23   </body>
24  </html>
25 </xsl:template>
26
27 <xsl:template match="publication">
28  <h1><xsl:value-of select="title"/></h1>
29  <h2>
30   <xsl:for-each select="author">
31    <xsl:choose>
32     <xsl:when test="@file">
33      <a href="../../people/{@file}.html">
34       <xsl:value-of select="@file"/>
35      </a>
36     </xsl:when>
37     <xsl:otherwise>
38      <xsl:value-of select="surname"/>
39      <xsl:text>, </xsl:text>
40      <xsl:value-of select="name"/>
41     </xsl:otherwise>
42    </xsl:choose>
43    <xsl:if test="position() != last()">
44     <xsl:text> ; </xsl:text>
45    </xsl:if>
46   </xsl:for-each>
47  </h2>
48  <p><xsl:value-of select="where"/></p>
49 </xsl:template>
50
51 </xsl:stylesheet>