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