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">
7 <xsl:import href="common.xsl"/>
9 <xsl:output method="html"/>
11 <xsl:param name="path_to_top" select="'.'"/>
12 <xsl:param name="current-date"/>
13 <xsl:param name="make_header" select="true()"/>
15 <!--CSC: The following mess is due to a bug of xsltproc w.r.t. patterns
16 precedence: the less general pattern is sometimes applied ;-( -->
17 <xsl:template match="html">
18 <xsl:call-template name="html"/>
21 <xsl:template name="html">
24 <title><xsl:value-of select="head/title"/></title>
25 <link rel="stylesheet" href="{$path_to_top}/../style/mowgli.css" type="text/css"/>
28 <xsl:if test="$make_header">
29 <xsl:call-template name="head">
30 <xsl:with-param name="path_to_top" select="$path_to_top"/>
33 <xsl:apply-templates select="*[2]/node()"/>
34 <xsl:call-template name="foot">
35 <xsl:with-param name="path_to_top" select="$path_to_top"/>
41 <xsl:template match="*|text()|@*">
43 <xsl:when test="name(.) = 'html'">
44 <xsl:call-template name="html"/>
48 <xsl:apply-templates select="*|text()|@*"/>
54 <xsl:template match="mowgli:latest-news">
55 <xsl:copy-of select="document('../html/latest-news.xml')/*/*"/>
58 <xsl:template match="mowgli:approaching-deadlines">
59 <xsl:copy-of select="document('../html/approaching-deadlines.xml')/*/*"/>
62 <xsl:template match="mowgli:date">
63 <xsl:copy-of select="$current-date"/>