]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/mowgli/home/xsl/news.xsl
ocaml 3.09 transition
[helm.git] / helm / mowgli / home / xsl / news.xsl
index 6e7146cb1e3a5f6dc83048360b6977fe1a6439e4..6ed83b3aa1db8230526e3d93bd98579f5fcee17e 100644 (file)
@@ -5,50 +5,49 @@
 
 <xsl:import href="common.xsl"/>
 
-<xsl:output method="html"/>
+<xsl:output method="xml"/>
 
 <xsl:template match="/">
  <html>
   <head>
    <title>News Archive</title>
-   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-   <link rel="stylesheet" href="../style/mowgli.css" type="text/css"/>
   </head>
   <body>
-   <blockquote>
-    <xsl:call-template name="head"/>
     <h1>News Archive</h1>
     <dl>
      <xsl:apply-templates/>
     </dl>
-    <xsl:call-template name="foot"/>
-   </blockquote>
   </body>
  </html>
 </xsl:template>
 
 <xsl:template match="event">
+ <xsl:param name="small" select="false()"/>
  <dt>
-  <b><xsl:value-of select="date"/></b>
-  <xsl:if test="head">
+  <b>
+   <xsl:call-template name="print_date">
+    <xsl:with-param name="date" select="date"/>
+   </xsl:call-template>
+  </b>
+  <xsl:if test="header">
    <xsl:value-of select="' -- '"/>
    <em>
-    <xsl:value-of select="head"/>
+    <xsl:value-of select="header"/>
    </em>
   </xsl:if>
  </dt>
  <dd>
-  <xsl:value-of select="description"/>
-  <xsl:if test="who">
+  <xsl:copy-of select="description/*|description/text()"/>
+  <xsl:if test="not($small) and who">
    <br/><br/>
    <div class="right">
     <xsl:variable name="who" select="document(concat('../xml/people/',who/@file,'.xml'))/person"/>
     <em>
      <a href="people/{who/@file}.html">
       <div class="small">
-       <xsl:value-of select="$who/name"/>
-       <xsl:text> </xsl:text>
-       <xsl:value-of select="$who/surname"/>
+       <xsl:call-template name="person-name">
+        <xsl:with-param name="file" select="who/@file"/>
+       </xsl:call-template>
       </div>
      </a>
     </em>