-DESTDIR = /projects/mowgli/public_html
+#DESTDIR = /projects/mowgli/public_html
+DESTDIR = /tmp/mowgli
TEMPLATESROOT = ../templates
XMLROOT = ../xml
all: $(DOCUMENTS)
-home.html: $(TEMPLATESROOT)/home.html
- cp $< $@
+home.html: $(TEMPLATESROOT)/home.html.top $(TEMPLATESROOT)/home.html.bot \
+ $(XMLROOT)/news.xml \
+ $(XSLROOT)/latest-news.xsl
+ cat $(TEMPLATESROOT)/home.html.top >$@
+ xsltproc $(XSLROOT)/latest-news.xsl $(XMLROOT)/news.xml >>$@
+ cat $(TEMPLATESROOT)/home.html.bot >>$@
index.html: $(TEMPLATESROOT)/index.html
cp $< $@
rm -rf $(DESTDIR)/*
$(XSLROOT)/%.xsl : $(XSLROOT)/common.xsl
+$(XSLROOT)/latest-news.xsl : $(XSLROOT)/news.xsl
$(DOCUMENTS) : $(XSLROOT)/common.xsl
table.menuborder {
- background-color: #663300;
+ background-color: #003377;
}
td.menutitle {
- background-color: #cc9966;
+ background-color: #ffeeaa;
color: black;
font-family: sans-serif;
font-weight: bold;
}
td.menuentries {
- background-color: #ffcc99;
+ background-color: #ccddff;
color: black;
font-family: sans-serif;
font-size: smaller;
}
a {
- color: #990033;
+ color: #003377;
}
a:hover {
- background-color: #cc9966;
- color: black;
+ background-color: #ffeeaa;
+ color: #003377;
}
a:visited {
+++ /dev/null
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
- "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml">
-
- <head>
- <title>MoWGLI Home Page</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <link rel="stylesheet" href="../style/mowgli.css" type="text/css"/>
- </head>
-
- <body class="content">
- <blockquote>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td align="left" valign="top">
- <img alt="MoWGLI Logo" src="../images/mowgli_combo.gif"/>
- </td>
- <td align="right" valign="top">
- <a href="http://www.cordis.lu/ist"><img border="0" alt="IST Logo" src="../images/istdrop.gif"/></a>
- </td>
- </tr>
- </table>
-
- <br />
- <h3>A few lines</h3>
- with a brief description of the project
- and possibly links to the member sites.
- A link to a more detailed section should be provided
- here, so that newcomers don't have to look inside the menu to read more.
-
- <br /><br />
- <hr width="100%"/>
-
- <h3>Latest News</h3>
-
- <dl class="news">
- <dt class="news">January 19, 2002</dt>
- <dd class="news">first web pages created (lp).</dd>
-
- <dt class="news">???, 2001</dt>
- <dd class="news">The MoWGLI project was born
- </dd>
- </dl>
-
- <hr width="100%"/>
-
- <div class="small">
- <table border="0" cellspacing="0" cellpadding="0" width="100%">
- <tr>
- <td align="left" valign="top">
- This pages are hosted by the
- <a href="http:/www.cs.unibo.it">Department of Computer Science</a>,
- <a href="http://www.unibo.it">University of Bologna</a>.
- </td>
- <td align="right" valign="top">
- <a href="http://www.cordis.lu/ist"><img border="0" alt="IST Logo Small" src="../images/istbutton_small.gif"/></a>
- </td>
- </tr>
- </table>
- </div>
- </blockquote>
- </body>
-
-</html>
--- /dev/null
+ </dl>
+
+ <hr width="100%"/>
+
+ <table border="0" cellspacing="0" cellpadding="0" width="100%">
+ <tr>
+ <td align="left" valign="top">
+ <div class="small">
+ This pages are hosted by the
+ <a href="http:/www.cs.unibo.it">Department of Computer Science</a>,
+ <a href="http://www.unibo.it">University of Bologna</a>.
+ </div>
+ </td>
+ <td align="right" valign="top">
+ <a href="http://www.cordis.lu/ist"><img border="0" alt="IST Logo Small" src="../images/istbutton_small.gif"/></a>
+ </td>
+ </tr>
+ </table>
+ <br />
+ </body>
+
+</html>
--- /dev/null
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+ <head>
+ <title>MoWGLI Home Page</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <link rel="stylesheet" href="../style/mowgli.css" type="text/css"/>
+ </head>
+
+ <body class="content">
+ <br />
+ <table width="100%" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td align="left" valign="top">
+ <img alt="MoWGLI Logo" src="../images/mowgli_combo.gif"/>
+ </td>
+ <td align="right" valign="top">
+ <a href="http://www.cordis.lu/ist"><img border="0" alt="IST Logo" src="../images/istdrop.gif"/></a>
+ </td>
+ </tr>
+ </table>
+
+ <br />
+ <h3>A few lines</h3>
+ with a brief description of the project
+ and possibly links to the member sites.
+ A link to a more detailed section should be provided
+ here, so that newcomers don't have to look inside the menu to read more.
+
+ <br /><br />
+ <hr width="100%"/>
+
+ <h3>Latest News</h3>
+
+ <dl>
<frameset cols="200,*" border="0">
<frame name="menu" src="menu.html">
- <frame name="content" src="home.html">
+ <frame name="content" src="home.html" marginwidth="30">
</frameset>
</html>
<tr>
<td class="menuentries">
- <div class="small">
- <table width="100%" border="0">
- <tr><td>Contact:</td></tr>
- <tr><td><a href="mailto:asperti@cs.unibo.it">asperti@cs.unibo.it</a></td></tr>
- <tr><td>Webmaster:</td></tr>
- <tr><td><a href="mailto:mowgli-webmaster@cs.unibo.it">mowgli-webmaster@cs.unibo.it</a></td></tr>
- <tr><td>Last Update:</td></tr>
- <tr><td><b>@DATE@</b></td></tr>
- </table>
+ <table width="100%" border="0">
+ <tr>
+ <td><div class="small">Contact:</td>
+ </tr>
+ <tr>
+ <td><div class="small"><a href="mailto:asperti@cs.unibo.it">asperti@cs.unibo.it</a></td>
+ </tr>
+ <tr>
+ <td><div class="small">Webmaster:</div></td>
+ </tr>
+ <tr>
+ <td><div class="small"><a href="mailto:mowgli-webmaster@cs.unibo.it">mowgli-webmaster@cs.unibo.it</a></div></td>
+ </tr>
+ <tr>
+ <td><div class="small">Last Update:</div></td>
+ </tr>
+ <tr>
+ <td><div class="small"><b>@DATE@</b></div></td>
+ </tr>
+ </table>
</td>
</tr>
<news>
+ <event>
+ <date>February 14, 2002</date>
+ <header>Valentine's Day</header>
+ <description>
+ New fancy colours, improved layout, especially for I.E. (bleah), main page
+ generated automatically.
+ </description>
+ <who file="bologna/padovani"/>
+ </event>
+
<event>
<date>February 12, 2002</date>
<description>
<xsl:template name="head">
<xsl:param name="path_to_top" select="'.'"/>
+ <br />
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td align="left" valign="bottom">
</td>
</tr>
</table>
+ <br />
</xsl:template>
<xsl:template name="person-name">
<link rel="stylesheet" href="../style/mowgli.css" type="text/css"/>
</head>
<body>
- <blockquote>
<xsl:call-template name="head">
<xsl:with-param name="path_to_top" select="'.'"/>
</xsl:call-template>
<xsl:call-template name="foot">
<xsl:with-param name="path_to_top" select="'.'"/>
</xsl:call-template>
- </blockquote>
</body>
</html>
</xsl:template>
<link rel="stylesheet" href="../../../style/mowgli.css" type="text/css"/>
</head>
<body>
- <blockquote>
<xsl:call-template name="head">
<xsl:with-param name="path_to_top" select="'../..'"/>
</xsl:call-template>
<xsl:call-template name="foot">
<xsl:with-param name="path_to_top" select="'../..'"/>
</xsl:call-template>
- </blockquote>
</body>
</html>
</xsl:template>
--- /dev/null
+<?xml version="1.0"?>
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:import href="common.xsl"/>
+<xsl:import href="news.xsl"/>
+
+<xsl:output method="html"/>
+
+<xsl:template match="/">
+ <xsl:apply-templates select="news/event[position() < 4]"/>
+</xsl:template>
+
+</xsl:stylesheet>
+
<link rel="stylesheet" href="../style/mowgli.css" type="text/css"/>
</head>
<body>
- <blockquote>
<xsl:call-template name="head">
<xsl:with-param name="path_to_top" select="'.'"/>
</xsl:call-template>
<xsl:call-template name="foot">
<xsl:with-param name="path_to_top" select="'.'"/>
</xsl:call-template>
- </blockquote>
</body>
</html>
</xsl:template>
<xsl:template match="event">
<dt>
<b><xsl:value-of select="date"/></b>
- <xsl:if test="head">
+ <xsl:if test="header">
<xsl:value-of select="' -- '"/>
<em>
- <xsl:value-of select="head"/>
+ <xsl:value-of select="header"/>
</em>
</xsl:if>
</dt>
<link rel="stylesheet" href="../../../style/mowgli.css" type="text/css"/>
</head>
<body>
- <blockquote>
<xsl:call-template name="head">
<xsl:with-param name="path_to_top" select="'../..'"/>
</xsl:call-template>
<xsl:call-template name="foot">
<xsl:with-param name="path_to_top" select="'../..'"/>
</xsl:call-template>
- </blockquote>
</body>
</html>
</xsl:template>
<link rel="stylesheet" href="../style/mowgli.css" type="text/css"/>
</head>
<body>
- <blockquote>
<xsl:call-template name="head">
<xsl:with-param name="path_to_top" select="'.'"/>
</xsl:call-template>
<xsl:call-template name="foot">
<xsl:with-param name="path_to_top" select="'../..'"/>
</xsl:call-template>
- </blockquote>
</body>
</html>
</xsl:template>
<link rel="stylesheet" href="../../../style/mowgli.css" type="text/css"/>
</head>
<body>
- <blockquote>
<xsl:call-template name="head">
<xsl:with-param name="path_to_top" select="'../..'"/>
</xsl:call-template>
<xsl:call-template name="foot">
<xsl:with-param name="path_to_top" select="'../..'"/>
</xsl:call-template>
- </blockquote>
</body>
</html>
</xsl:template>
<link rel="stylesheet" href="../../style/mowgli.css" type="text/css"/>
</head>
<body>
- <blockquote>
<xsl:call-template name="head">
<xsl:with-param name="path_to_top" select="'..'"/>
</xsl:call-template>
<xsl:call-template name="foot">
<xsl:with-param name="path_to_top" select="'..'"/>
</xsl:call-template>
- </blockquote>
</body>
</html>
</xsl:template>
<link rel="stylesheet" href="../../style/mowgli.css" type="text/css"/>
</head>
<body>
- <blockquote>
<xsl:call-template name="head">
<xsl:with-param name="path_to_top" select="'..'"/>
</xsl:call-template>
<xsl:call-template name="foot">
<xsl:with-param name="path_to_top" select="'..'"/>
</xsl:call-template>
- </blockquote>
</body>
</html>
</xsl:template>
<link rel="stylesheet" href="../../style/mowgli.css" type="text/css"/>
</head>
<body>
- <blockquote>
<xsl:call-template name="head">
<xsl:with-param name="path_to_top" select="'..'"/>
</xsl:call-template>
<xsl:call-template name="foot">
<xsl:with-param name="path_to_top" select="'..'"/>
</xsl:call-template>
- </blockquote>
</body>
</html>
</xsl:template>