From bb29db45ad8807d3150cd9e3f51b3932d5491da9 Mon Sep 17 00:00:00 2001 From: astro Date: Wed, 24 May 2006 00:19:45 +0000 Subject: [PATCH] =?UTF-8?q?html.xsl=20raus!=20XPath-Klarifikationen=20Jede?= =?UTF-8?q?r=20News=20noch=20eine=20eigene=20HTML-Seite=20=20f?= =?UTF-8?q?=C3=BCr=20Newstext,=20der=20nicht=20in=20der=20=C3=9Cbersicht?= =?UTF-8?q?=20stehen=20soll=20Weiterlesen-Link=20in=20der=20News=C3=BCbers?= =?UTF-8?q?icht=20(TODO:=20muss=20auch=20in=20RSS=20&=20ATOM!)?= 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@324 31f61c52-7bfb-0310-b897-fc00f8a278f0 --- Makefile | 7 +- content/news/22c3.xml | 6 ++ xsl/atom.xsl | 2 + xsl/common.xsl | 16 ++++- xsl/header.xsl | 3 - xsl/html.xsl | 149 ------------------------------------------ xsl/xhtml.xsl | 126 ++++++++++++++++++++--------------- 7 files changed, 101 insertions(+), 208 deletions(-) delete mode 100644 xsl/html.xsl diff --git a/Makefile b/Makefile index 654d279b9..b91f380de 100644 --- a/Makefile +++ b/Makefile @@ -32,11 +32,12 @@ SKEL=empty # Zu verwendendes Skeleton SKELFILE=content/skel-$(SKEL).xml # Dateinamen der Inhalte: -CONTENT=$(PAGES) $(DS_PAGES) $(NEWSFILES) +CONTENT=$(PAGES) $(NEWS_PAGES) $(DS_PAGES) $(NEWSFILES) # Chaosupdates WWW_CCC_DE_UPDATES=chaosupdates.rdf PAGES:=$(patsubst content/%.xml, www/%.html, $(filter-out $(NAVIGATION) $(SKELETONS), $(wildcard content/*.xml))) +NEWS_PAGES:=$(patsubst content/news/%.xml, www/news/%.html, $(wildcard content/news/*.xml)) DS_PAGES:=$(patsubst content/datenspuren/%.xml, www/datenspuren/%.html, $(wildcard content/datenspuren/*.xml)) www/datenspuren/schedule.html NEWSINDEX:=content/news.xml NEWSITEMS:=$(filter-out $(NEWSINDEX), $(wildcard content/news/*.xml)) @@ -105,6 +106,10 @@ www/%.html: content/%.xml $(STYLE) $(NAVIGATION) $(WWW_CCC_DE_UPDATES) $(VALIDATOR) $(VFLAGS) $< $(PROCESSOR) $(PFLAGS) -o $@ $(STYLE) $< +#www/news/%.html: content/news/%.xml $(STYLE) $(NAVIGATION) $(WWW_CCC_DE_UPDATES) +# $(VALIDATOR) $(VFLAGS) $< +# $(PROCESSOR) $(PFLAGS) -o $@ $(STYLE) $< + ### Hilfsregeln zum Editieren ### edit/%: @if [ ! -e content/$(@F).xml ] ; then \ diff --git a/content/news/22c3.xml b/content/news/22c3.xml index 8d64cec22..fb7bf30be 100644 --- a/content/news/22c3.xml +++ b/content/news/22c3.xml @@ -6,4 +6,10 @@

Der jährlich ausgetragene Chaos Communication Congress beginnt seine Magie auszustreuen. Pflicht!

+ + +

+ Unter http://media.ccc.de/filez/congress/2005/lectures/video/mp4/ gibts die Mitschnitte. +

+
diff --git a/xsl/atom.xsl b/xsl/atom.xsl index 3de055290..351caaba5 100644 --- a/xsl/atom.xsl +++ b/xsl/atom.xsl @@ -12,6 +12,8 @@ encoding="utf-8" indent="yes"/> + + http://www.w3.org/2005/Atom diff --git a/xsl/common.xsl b/xsl/common.xsl index 96fc96e47..069805c0f 100644 --- a/xsl/common.xsl +++ b/xsl/common.xsl @@ -76,11 +76,22 @@ + + + + + + + +
  • - .html + @@ -92,11 +103,12 @@ diff --git a/xsl/header.xsl b/xsl/header.xsl index f68aaf7ba..2f3eefd60 100644 --- a/xsl/header.xsl +++ b/xsl/header.xsl @@ -5,9 +5,6 @@ xmlns:date="http://exslt.org/dates-and-times" exclude-result-prefixes="xsl rss rdf date"> - - - diff --git a/xsl/html.xsl b/xsl/html.xsl deleted file mode 100644 index 1f723ec59..000000000 --- a/xsl/html.xsl +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - - - - - - - ../../ - - - ../ - - - - - - - - - - ../ - - - -
  • - - .xml - - - - - -
  • -
    - - - - - ../ - - - -
      -
    • - News -
    • - - - - - -
    -
    - - - - - - - - - - - - - - - - - -

    - - - - - - - - - - -

    - - - - - - - - - - - news_date - - - -
    - - - - - - - - - - - - - left - - - right - - - - - - - - - - - - -
    - -
    - -
    -
    - - diff --git a/xsl/xhtml.xsl b/xsl/xhtml.xsl index 55271b0e5..9237c825c 100644 --- a/xsl/xhtml.xsl +++ b/xsl/xhtml.xsl @@ -19,10 +19,11 @@ doctype-system="DTD/xhtml1-strict.dtd" indent="yes"/> - - - - + + ../ + + + @@ -141,64 +142,83 @@ - - - + + + -

    + + - - - +

    + + + .html + + + +

    - - - - - + + + - - news_date - - + + + + + -
    - + + news_date + + - - - - - - - - - - - left - - - right - - - - - - - - - - +
    + - -
    + + + + + + + + + + + left + + + right + + + + + + + + + + -
    + + +

    + + Weiterlesen... + +

    +
    +
    + +
    + +