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 @@ - - - - - - - - - - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -