From d3f3cd37aad5aeec523184440fc16db81a736690 Mon Sep 17 00:00:00 2001 From: toidinamai Date: Fri, 6 Jan 2006 18:51:03 +0000 Subject: [PATCH] Atom support, please test. git-svn-id: svn://svn.c3d2.de/c3d2-web/branches/toidinamais_coole_scheisse@101 31f61c52-7bfb-0310-b897-fc00f8a278f0 --- Makefile | 6 +++-- xsl/atom.xsl | 45 +++++++++++++++++++++++++++++++++++++ xsl/common.xsl | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++ xsl/xhtml.xsl | 52 +------------------------------------------ 4 files changed, 110 insertions(+), 53 deletions(-) create mode 100644 xsl/atom.xsl create mode 100644 xsl/common.xsl diff --git a/Makefile b/Makefile index fa6a4263d..64043530b 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,7 @@ DESTDIR?=www-export STYLE=xsl/xhtml.xsl DS_STYLE=xsl/datenspuren/xhtml.xsl STYLE_RSS=xsl/rss.xsl +STYLE_ATOM=xsl/atom.xsl # Navigationsleiste: NAVIGATION=content/navigation.xml # XML-Skeletons @@ -31,12 +32,12 @@ SKEL=empty # Zu verwendendes Skeleton SKELFILE=content/skel-$(SKEL).xml # Dateinamen der Inhalte: -CONTENT=$(PAGES) $(DS_PAGES) www/news.html www/news-rss.xml +CONTENT=$(PAGES) $(DS_PAGES) $(NEWSFILES) PAGES:=$(patsubst content/%.xml, www/%.html, $(filter-out $(NAVIGATION) $(SKELETONS), $(wildcard content/*.xml))) DS_PAGES:=$(patsubst content/datenspuren/%.xml, www/datenspuren/%.html, $(wildcard content/datenspuren/*.xml)) NEWSITEMS:=$(wildcard content/news/*.xml) -NEWSFILES:=www/news.html www/news-rss.xml +NEWSFILES:=www/news.html www/news-rss.xml www/news-atom.xml DTD:=dtd/c3d2web.dtd CLEAN=$(CONTENT) $(NEWSFILES) @@ -65,6 +66,7 @@ check: $(PAGES) ### Regeln für den XSLT-Prozess ### www/news.html: $(STYLE) www/news-rss.xml: $(STYLE_RSS) +www/news-atom.xml: $(STYLE_ATOM) $(NEWSFILES): $(NEWSITEMS) $(NAVIGATION) for item in $(NEWSITEMS) ; do \ diff --git a/xsl/atom.xsl b/xsl/atom.xsl new file mode 100644 index 000000000..2f2f515fa --- /dev/null +++ b/xsl/atom.xsl @@ -0,0 +1,45 @@ + + + + + + + + + + http://www.w3.org/2005/Atom + de + + www.c3d2.de Newsfeed + + http://www.c3d2.de/ + Neues aus dem Chaos Computer Club Dresden + de-de + + + + + + + + <xsl:value-of select="@title"/> + + + + + + + + + + + + diff --git a/xsl/common.xsl b/xsl/common.xsl new file mode 100644 index 000000000..1547ff425 --- /dev/null +++ b/xsl/common.xsl @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/xsl/xhtml.xsl b/xsl/xhtml.xsl index f536ce902..38e739930 100644 --- a/xsl/xhtml.xsl +++ b/xsl/xhtml.xsl @@ -6,6 +6,7 @@ xmlns:date="http://exslt.org/dates-and-times" exclude-result-prefixes="xsl rss rdf"> + @@ -200,61 +201,10 @@ - - - - - - - - - - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -