<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:mowgli="http://mowgli.cs.unibo.it/website">
<xsl:import href="common.xsl"/>
<xsl:output method="html"/>
<xsl:param name="path_to_top" select="'.'"/>
+<xsl:param name="current-date"/>
<xsl:template match="html">
<html>
<xsl:call-template name="head">
<xsl:with-param name="path_to_top" select="$path_to_top"/>
</xsl:call-template>
- <xsl:copy-of select="body/node()"/>
+ <xsl:apply-templates select="body/node()"/>
<xsl:call-template name="foot">
<xsl:with-param name="path_to_top" select="$path_to_top"/>
</xsl:call-template>
</html>
</xsl:template>
-</xsl:stylesheet>
+<xsl:template match="*|text()|@*">
+ <xsl:copy>
+ <xsl:apply-templates select="*|text()|@*"/>
+ </xsl:copy>
+</xsl:template>
+
+<xsl:template match="mowgli:latest-news">
+ <xsl:copy-of select="document('../html/latest-news.xml')/*/*"/>
+</xsl:template>
+<xsl:template match="mowgli:approaching-deadlines">
+ <xsl:copy-of select="document('../html/approaching-deadlines.xml')/*/*"/>
+</xsl:template>
+
+<xsl:template match="mowgli:date">
+ <xsl:copy-of select="$current-date"/>
+</xsl:template>
+</xsl:stylesheet>