From 4ade65f7723c50fd4d94c601750283e64d6bc771 Mon Sep 17 00:00:00 2001 From: astro Date: Sun, 18 Nov 2007 13:22:53 +0000 Subject: [PATCH] =?UTF-8?q?Datenquelle=20f=C3=BCr=20xCal=20&=20iCal=20ist?= =?UTF-8?q?=20nun=20calendar-summary.xml,=20enth=C3=A4lt=20alle=20Events?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@1046 31f61c52-7bfb-0310-b897-fc00f8a278f0 --- Makefile | 20 +++++-- xsl/ical.xsl | 117 ++++++++++++++++++++++----------------- xsl/xcal.xsl | 151 ++++++++++++++++++++++++++++++--------------------- 3 files changed, 171 insertions(+), 117 deletions(-) diff --git a/Makefile b/Makefile index 5c85b26bd..7b1683961 100644 --- a/Makefile +++ b/Makefile @@ -51,7 +51,7 @@ PAGES:=$(patsubst content/pages/%.xml, build/%.html, $(wildcard content/pages/*. # Seiten zu einzelnen News-Items: NEWS_PAGES:=$(patsubst content/news/%.xml, build/news/%.html, $(wildcard content/news/*.xml)) # News-Index und Feeds: -NEWSFILES:=build/news.html build/news-rss.xml build/news-atom.xml build/xcal.xml build/ical.ics build/podcast.xml +NEWSFILES:=build/news.html build/news-rss.xml build/news-atom.xml build/podcast.xml # Datenspuren-Seiten: DS_PAGES:=$(patsubst content/datenspuren/%.xml, build/datenspuren/%.html, $(wildcard content/datenspuren/*.xml)) build/datenspuren/schedule.html # Suchseiten-Template @@ -88,10 +88,6 @@ build/news-rss.xml : VFLAGS_OUT=--noout --schema xsd/rss20.xsd build/news-atom.xml : STYLE=xsl/atom.xsl build/news-atom.xml : NOVALID_IGNORE:=true build/news-atom.xml : VFLAGS_OUT=--noout --relaxng xsd/atom.rng -build/xcal.xml : STYLE=xsl/xcal.xsl -build/ical.ics : STYLE=xsl/ical.xsl -build/ical.ics : NOVALID_IGNORE:=true -build/ical.ics : VFLAGS_OUT=--noout build/podcast.xml : STYLE=xsl/podcast.xsl build/podcast.xml : NOVALID_IGNORE:=true build/podcast.xml : VFLAGS_OUT=--noout --schema xsd/rss20.xsd @@ -115,6 +111,20 @@ build/calendar.html : VFLAGS_IN=--noout build/calendar.html: $(CALENDAR_SUMMARY) $(STYLE) $(NAVIGATION) $(WWW_CCC_DE_UPDATES) $(call xml_process) +# XCal +build/xcal.xml : STYLE=xsl/xcal.xsl +build/xcal.xml : VFLAGS_IN=--noout +build/xcal.xml: $(CALENDAR_SUMMARY) $(STYLE) + $(call xml_process) + +# iCal +build/ical.ics : STYLE=xsl/ical.xsl +build/ical.ics : NOVALID_IGNORE:=true +build/ical.ics : VFLAGS_IN=--noout +build/ical.ics : VFLAGS_OUT=--noout +build/ical.ics: $(CALENDAR_SUMMARY) $(STYLE) + $(call xml_process) + # Pages: build/%.html: content/pages/%.xml $(STYLE) $(NAVIGATION) $(WWW_CCC_DE_UPDATES) $(CALENDAR_SUMMARY) news.xml $(call xml_process) diff --git a/xsl/ical.xsl b/xsl/ical.xsl index 57c524af7..826ba4724 100644 --- a/xsl/ical.xsl +++ b/xsl/ical.xsl @@ -1,17 +1,21 @@ + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:date="http://exslt.org/dates-and-times" + xmlns:crypto="http://exslt.org/crypto"> - + https://www.c3d2.de/ - BEGIN:VCALENDAR + + + + + + BEGIN:VCALENDAR VERSION:2.0 @@ -32,16 +36,32 @@ X-WR-CALNAME;VALUE=TEXT:C3D2-Events - X-WR-TIMEZONE;VALUE=TEXT:Europe/Berlin + X-WR-TIMEZONE;VALUE=TEXT:Europe/Prague - - - - - - - + + + + + BEGIN:VEVENT + + + METHOD:PUBLISH + + + + + + + CLASS:PUBLIC + + + + + + END:VEVENT + + @@ -49,76 +69,73 @@ - - - - BEGIN:VEVENT - - - METHOD:PUBLISH - - - UID:@www.c3d2.de - - - DTSTAMP: - - - + + UID:@www.c3d2.de + + DTSTART: - + + - + + DTEND: - + + + - SUMMARY: + SUMMARY: + - CLASS:PUBLIC - - + CATEGORY: - - Themenabend + + Themenabend - - Event + + Event + + + Radio + + + Radio - Misc + Misc + + URL: - - - .html + + + + + - LOCATION: + LOCATION: - - END:VEVENT - - diff --git a/xsl/xcal.xsl b/xsl/xcal.xsl index 45cf072b3..5b829f030 100644 --- a/xsl/xcal.xsl +++ b/xsl/xcal.xsl @@ -1,9 +1,14 @@ + + + + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:date="http://exslt.org/dates-and-times" + xmlns:crypto="http://exslt.org/crypto" + exclude-result-prefixes="xsl crypto date"> - + https://www.c3d2.de/ - + - - + + + - - - - - - - + + + + + + + + + + + + - - - - - - @www.c3d2.de - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Themenabend - - - Event - - - Misc - - - - - + + @www.c3d2.de + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Themenabend + + + Event + + + Radio + + + Radio + + + Misc + + + + +