]> 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 83c5313764d5b786aea5ced0814202d7f5aeda9e..6ed83b3aa1db8230526e3d93bd98579f5fcee17e 100644 (file)
@@ -5,26 +5,18 @@
 
 <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>
-    <xsl:call-template name="head">
-     <xsl:with-param name="path_to_top" select="'.'"/>
-    </xsl:call-template>
     <h1>News Archive</h1>
     <dl>
      <xsl:apply-templates/>
     </dl>
-    <xsl:call-template name="foot">
-     <xsl:with-param name="path_to_top" select="'.'"/>
-    </xsl:call-template>
   </body>
  </html>
 </xsl:template>
 <xsl:template match="event">
  <xsl:param name="small" select="false()"/>
  <dt>
-  <b><xsl:value-of select="date"/></b>
+  <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>
@@ -41,7 +37,7 @@
   </xsl:if>
  </dt>
  <dd>
-  <xsl:value-of select="description"/>
+  <xsl:copy-of select="description/*|description/text()"/>
   <xsl:if test="not($small) and who">
    <br/><br/>
    <div class="right">