]> matita.cs.unibo.it Git - helm.git/blob - helm/mowgli/home/xsl/publication.xsl
* Obsolete debugging comments removed
[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="xml"/>
9
10 <xsl:template match="/">
11  <html>
12   <head>
13    <title><xsl:value-of select="publication/title"/></title>
14   </head>
15   <body>
16     <xsl:apply-templates/>
17   </body>
18  </html>
19 </xsl:template>
20
21 <xsl:template match="publication">
22  <h1><xsl:value-of select="title"/></h1>
23  <h2>
24   <xsl:for-each select="author">
25    <xsl:choose>
26     <xsl:when test="@file">
27      <a href="../../people/{@file}.html">
28       <xsl:call-template name="person-name">
29        <xsl:with-param name="form" select="'abbreviated'"/>
30        <xsl:with-param name="file" select="@file"/>
31       </xsl:call-template>
32      </a>
33     </xsl:when>
34     <xsl:otherwise>
35      <xsl:value-of select="surname"/>
36      <xsl:text>, </xsl:text>
37      <xsl:value-of select="name"/>
38     </xsl:otherwise>
39    </xsl:choose>
40    <xsl:if test="position() != last()">
41     <xsl:text> ; </xsl:text>
42    </xsl:if>
43   </xsl:for-each>
44  </h2>
45  <p><xsl:value-of select="where"/></p>
46  <xsl:if test="html">
47   <p>Download: <a href="{html/@file}.html">[HTML]</a></p>
48  </xsl:if>
49 </xsl:template>
50
51 </xsl:stylesheet>