From 6c4b49cf4c1bae5dc874e2614a5f2a6ca492e961 Mon Sep 17 00:00:00 2001 From: toidinamai Date: Wed, 28 Dec 2005 18:04:17 +0000 Subject: [PATCH] News in verschiedenen Dateien weiter, news-rss.xml kaputt... git-svn-id: svn://svn.c3d2.de/c3d2-web/branches/toidinamais_coole_scheisse@69 31f61c52-7bfb-0310-b897-fc00f8a278f0 --- Makefile | 21 ++++++++++++----- content/navigation.xml | 1 - xsl/xhtml.xsl | 53 +++++++++++++++++++++--------------------- 3 files changed, 42 insertions(+), 33 deletions(-) diff --git a/Makefile b/Makefile index 6982bfb60..500c4515f 100644 --- a/Makefile +++ b/Makefile @@ -16,12 +16,14 @@ STYLE_RSS=xsl/rss.xsl NAVIGATION=content/navigation.xml # XML-Skeletons SKELETONS:=$(wildcard content/skel-*.xml) -SKEL=empty +SKEL:=empty # Zu verwendendes Skeleton SKELFILE=content/skel-$(SKEL).xml # Dateinamen der Inhalte: -CONTENT:=$(patsubst content/%.xml, www/%.html, $(filter-out $(NAVIGATION) $(SKELETONS), $(wildcard content/*.xml))) -CLEAN:=$(CONTENT) www/news-rss.xml chaosupdates.rdf +CONTENT=$(PAGES) www/news.html #www/news-rss.xml +PAGES:=$(patsubst content/%.xml, www/%.html, $(filter-out $(NAVIGATION) $(SKELETONS), $(wildcard content/*.xml))) +NEWSITEMS:=$(wildcard content/news/*.xml) +CLEAN:=$(CONTENT) www/news.html www/news-rss.xml chaosupdates.rdf ### Defaults ### .PHONY: contents clean @@ -30,10 +32,17 @@ CLEAN:=$(CONTENT) www/news-rss.xml chaosupdates.rdf contents: $(CONTENT) -#www/news-rss.xml - - ### Regeln für den XSLT-Prozess ### +www/news.html: $(NEWSITEMS) $(STYLE) $(NAVIGATION) + { echo '' ; \ + echo ""; \ + echo " "; \ + for item in $^ ; do \ + echo " $${item}"; \ + done; \ + echo " "; \ + echo ""; } | $(PROCESSOR) -o $@ $(STYLE) - + www/%.html: content/%.xml $(STYLE) $(NAVIGATION) chaosupdates.rdf $(PROCESSOR) -o $@ $(STYLE) $< diff --git a/content/navigation.xml b/content/navigation.xml index f9eb00bf3..378c5ce20 100644 --- a/content/navigation.xml +++ b/content/navigation.xml @@ -1,7 +1,6 @@ - news kontakt mailingliste wiki diff --git a/xsl/xhtml.xsl b/xsl/xhtml.xsl index 3752d6527..fce77931a 100644 --- a/xsl/xhtml.xsl +++ b/xsl/xhtml.xsl @@ -196,34 +196,35 @@ + +

+ + + + + + + + + + + + + news_date + + + +
+ +
+ +
+
+ - -

- - - + + - - - - - - - - Date: () - - - - news_date - - @ - -
- -
-