From 0d0b47b4a6dc53d8fa5504c25f6f7323f5e3aa1b Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Sun, 24 Feb 2002 14:36:50 +0000 Subject: [PATCH] More cleanup: the home page is now generated by means of XSLT only. (i.e. no more cat ... >> $@) --- helm/mowgli/home/html/.cvsignore | 2 + helm/mowgli/home/html/Makefile | 13 +++-- helm/mowgli/home/templates/home.html.bot | 30 ------------ .../{templates/home.html.top => xml/home.xml} | 47 +++++++++++++++---- .../mowgli/home/xsl/approaching-deadlines.xsl | 4 +- helm/mowgli/home/xsl/latest-news.xsl | 9 +++- helm/mowgli/home/xsl/xhtml-content.xsl | 24 ++++++++-- 7 files changed, 78 insertions(+), 51 deletions(-) delete mode 100644 helm/mowgli/home/templates/home.html.bot rename helm/mowgli/home/{templates/home.html.top => xml/home.xml} (71%) diff --git a/helm/mowgli/home/html/.cvsignore b/helm/mowgli/home/html/.cvsignore index a9263be2f..f2f11b699 100644 --- a/helm/mowgli/home/html/.cvsignore +++ b/helm/mowgli/home/html/.cvsignore @@ -11,3 +11,5 @@ mowgli-events.html other-events.html deadlines.html people-list.html +latest-news.xml +approaching-deadlines.xml diff --git a/helm/mowgli/home/html/Makefile b/helm/mowgli/home/html/Makefile index d19e187ef..8fc0e0b8a 100644 --- a/helm/mowgli/home/html/Makefile +++ b/helm/mowgli/home/html/Makefile @@ -121,17 +121,16 @@ DOCUMENTS = \ all: $(DOCUMENTS) -home.html: $(TEMPLATESROOT)/home.html.top $(TEMPLATESROOT)/home.html.bot \ +home.html: $(XMLROOT)/home.xml \ $(XMLROOT)/news.xml \ $(XMLROOT)/other-events.xml \ $(XMLROOT)/mowgli-events.xml \ $(XSLROOT)/latest-news.xsl \ - $(XSLROOT)/approaching-deadlines.xsl - cat $(TEMPLATESROOT)/home.html.top >$@ - $(XSLTP) $(XSLROOT)/latest-news.xsl $(XMLROOT)/news.xml >>$@ - echo "" >> $@ - $(XSLTP) --param today `date +%Y%m%d` $(XSLROOT)/approaching-deadlines.xsl $(XMLROOT)/other-events.xml >>$@ - sed s/\@DATE\@/"`date`"/ $(TEMPLATESROOT)/home.html.bot >>$@ + $(XSLROOT)/approaching-deadlines.xsl \ + $(XSLROOT)/xhtml-content.xsl + $(XSLTP) -o latest-news.xml $(XSLROOT)/latest-news.xsl $(XMLROOT)/news.xml + $(XSLTP) --param today `date +%Y%m%d` -o approaching-deadlines.xml $(XSLROOT)/approaching-deadlines.xsl $(XMLROOT)/other-events.xml + $(XSLTP) --param path_to_top "'.'" -o $@ $(XSLROOT)/xhtml-content.xsl $(XMLROOT)/home.xml index.html: $(TEMPLATESROOT)/index.html cp $< $@ diff --git a/helm/mowgli/home/templates/home.html.bot b/helm/mowgli/home/templates/home.html.bot deleted file mode 100644 index cd530bc0c..000000000 --- a/helm/mowgli/home/templates/home.html.bot +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - -
- -
- - - - - - -
-
- This page is hosted by the - Department of Computer Science, - University of Bologna. -
- Last update: @DATE@ -
-
- IST Logo Small -
-
- - - diff --git a/helm/mowgli/home/templates/home.html.top b/helm/mowgli/home/xml/home.xml similarity index 71% rename from helm/mowgli/home/templates/home.html.top rename to helm/mowgli/home/xml/home.xml index ad709f5c8..e784106a1 100644 --- a/helm/mowgli/home/templates/home.html.top +++ b/helm/mowgli/home/xml/home.xml @@ -1,12 +1,12 @@ - + - + MoWGLI Home Page - + @@ -45,7 +45,8 @@

The World Wide Web is already the largest resource of mathematical knowledge, and its importance will be exponentiated by emerging display - technologies like MathML. + technologies like + MathML. However, almost all mathematical documents available on the Web are marked up only for presentation, severely crippling the potentialities for automation, interoperability, @@ -74,13 +75,43 @@ -      +     

-

Latest News

+ + -
+
+ + + + + +
+ +
+ + + + + + +
+
+ This page is hosted by the + Department of Computer Science, + University of Bologna. +
+ Last update: +
+
+ IST Logo Small +
+
+ + + diff --git a/helm/mowgli/home/xsl/approaching-deadlines.xsl b/helm/mowgli/home/xsl/approaching-deadlines.xsl index ced2defa8..7a7317fb5 100644 --- a/helm/mowgli/home/xsl/approaching-deadlines.xsl +++ b/helm/mowgli/home/xsl/approaching-deadlines.xsl @@ -6,11 +6,12 @@ - + +

Approaching Deadlines:

@@ -18,6 +19,7 @@ +
diff --git a/helm/mowgli/home/xsl/latest-news.xsl b/helm/mowgli/home/xsl/latest-news.xsl index 29cbaa7a5..974c2e981 100644 --- a/helm/mowgli/home/xsl/latest-news.xsl +++ b/helm/mowgli/home/xsl/latest-news.xsl @@ -6,13 +6,18 @@ - + + +

Latest News

+
-
Older news
+
+ Older news +
diff --git a/helm/mowgli/home/xsl/xhtml-content.xsl b/helm/mowgli/home/xsl/xhtml-content.xsl index bd492129c..254b426b0 100644 --- a/helm/mowgli/home/xsl/xhtml-content.xsl +++ b/helm/mowgli/home/xsl/xhtml-content.xsl @@ -1,13 +1,15 @@ + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:mowgli="http://mowgli.cs.unibo.it/website"> + @@ -19,7 +21,7 @@ - + @@ -27,5 +29,21 @@ - + + + + + + + + + + + + + + + + + -- 2.39.2