]> matita.cs.unibo.it Git - helm.git/blob - helm/mowgli/home/xsl/xhtml-content.xsl
More cleanup: the home page is now generated by means of XSLT only.
[helm.git] / helm / mowgli / home / xsl / xhtml-content.xsl
1 <?xml version="1.0"?>
2
3 <xsl:stylesheet version="1.0"
4                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5                 xmlns:mowgli="http://mowgli.cs.unibo.it/website">
6
7 <xsl:import href="common.xsl"/>
8
9 <xsl:output method="html"/>
10
11 <xsl:param name="path_to_top" select="'.'"/>
12 <xsl:param name="current-date"/>
13
14 <xsl:template match="html">
15  <html>
16   <head>
17    <title><xsl:value-of select="head/title"/></title>
18    <link rel="stylesheet" href="{$path_to_top}/../style/mowgli.css" type="text/css"/>
19   </head>
20   <body>
21     <xsl:call-template name="head">
22      <xsl:with-param name="path_to_top" select="$path_to_top"/>
23     </xsl:call-template>
24     <xsl:apply-templates select="body/node()"/>
25     <xsl:call-template name="foot">
26      <xsl:with-param name="path_to_top" select="$path_to_top"/>
27     </xsl:call-template>
28   </body>
29  </html>
30 </xsl:template>
31
32 <xsl:template match="*|text()|@*">
33  <xsl:copy>
34   <xsl:apply-templates select="*|text()|@*"/>
35  </xsl:copy>
36 </xsl:template>
37
38 <xsl:template match="mowgli:latest-news">
39  <xsl:copy-of select="document('../html/latest-news.xml')/*/*"/>
40 </xsl:template>
41
42 <xsl:template match="mowgli:approaching-deadlines">
43  <xsl:copy-of select="document('../html/approaching-deadlines.xml')/*/*"/>
44 </xsl:template>
45
46 <xsl:template match="mowgli:date">
47  <xsl:copy-of select="$current-date"/>
48 </xsl:template>
49 </xsl:stylesheet>