Atom-ID fixed and misc whitespace fixes.

git-svn-id: svn://svn.c3d2.de/c3d2-web/branches/toidinamais_coole_scheisse@105 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
toidinamai 2006-01-10 21:53:19 +00:00
parent 731068fde5
commit 8823ec1d16
5 changed files with 43 additions and 42 deletions

View File

@ -1,14 +1,15 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:date="http://exslt.org/dates-and-times" xmlns:date="http://exslt.org/dates-and-times"
xmlns:crypto="http://exslt.org/crypto"
exclude-result-prefixes="xsl"> exclude-result-prefixes="xsl">
<xsl:include href="common.xsl" /> <xsl:include href="common.xsl" />
<xsl:output method="xml" <xsl:output method="xml"
version="1.0" version="1.0"
encoding="utf-8" encoding="utf-8"
indent="yes"/> indent="yes"/>
<xsl:template match="news"> <xsl:template match="news">
@ -29,7 +30,7 @@
<xsl:sort select="date:seconds(@date)" data-type="number" order="descending" /> <xsl:sort select="date:seconds(@date)" data-type="number" order="descending" />
<entry> <entry>
<id><xsl:value-of select="generate-id(current())"/></id> <id><xsl:value-of select="crypto:sha1(concat(@title,@date))"/></id>
<title><xsl:value-of select="@title"/></title> <title><xsl:value-of select="@title"/></title>
<updated><xsl:value-of select="@date"/></updated> <updated><xsl:value-of select="@date"/></updated>
<author> <author>

View File

@ -27,11 +27,11 @@
<xsl:variable name="fourhundred"> <xsl:variable name="fourhundred">
<xsl:value-of select="floor($year div 400)" /> <xsl:value-of select="floor($year div 400)" />
</xsl:variable> </xsl:variable>
<xsl:value-of select="$four - $hundred + $fourhundred - 477" /> <xsl:value-of select="$four - $hundred + $fourhundred - 477" />
</xsl:template> </xsl:template>
<xsl:template name="correct-seconds"> <xsl:template name="correct-seconds">
<!-- Berechnet die Sekunden die vergangen wären, wenn es keine Schaltjahre gäbe --> <!-- Berechnet die Sekunden die vergangen wären, wenn es keine Schaltjahre gäbe -->
<xsl:param name="seconds" /> <xsl:param name="seconds" />
@ -52,7 +52,7 @@
<xsl:variable name="year"> <xsl:variable name="year">
<xsl:value-of select="floor($secondscorrected div (86400 * 365)) + 1970" /> <xsl:value-of select="floor($secondscorrected div (86400 * 365)) + 1970" />
</xsl:variable> </xsl:variable>
<xsl:variable name="isleap"> <xsl:variable name="isleap">
<xsl:call-template name="isleap"> <xsl:call-template name="isleap">
<xsl:with-param name="year" select="$year" /> <xsl:with-param name="year" select="$year" />
@ -77,7 +77,7 @@
<xsl:template name="get-days"> <xsl:template name="get-days">
<xsl:param name="seconds" /> <xsl:param name="seconds" />
<xsl:variable name="secondscorrected"> <xsl:variable name="secondscorrected">
<xsl:call-template name="correct-seconds"> <xsl:call-template name="correct-seconds">
<xsl:with-param name="seconds" select="$seconds"/> <xsl:with-param name="seconds" select="$seconds"/>
@ -102,13 +102,13 @@
<xsl:template name="get-month"> <xsl:template name="get-month">
<xsl:param name="seconds" /> <xsl:param name="seconds" />
<xsl:variable name="year"> <xsl:variable name="year">
<xsl:call-template name="get-year"> <xsl:call-template name="get-year">
<xsl:with-param name="seconds" select="$seconds"/> <xsl:with-param name="seconds" select="$seconds"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="isleap"> <xsl:variable name="isleap">
<xsl:call-template name="isleap"> <xsl:call-template name="isleap">
<xsl:with-param name="year" select="$year" /> <xsl:with-param name="year" select="$year" />
@ -125,7 +125,7 @@
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:variable> </xsl:variable>
<xsl:variable name="days"> <xsl:variable name="days">
<xsl:call-template name="get-days"> <xsl:call-template name="get-days">
<xsl:with-param name="seconds" select="$seconds" /> <xsl:with-param name="seconds" select="$seconds" />
@ -180,7 +180,7 @@
<xsl:with-param name="seconds" select="$seconds"/> <xsl:with-param name="seconds" select="$seconds"/>
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="isleap"> <xsl:variable name="isleap">
<xsl:call-template name="isleap"> <xsl:call-template name="isleap">
<xsl:with-param name="year" select="$year" /> <xsl:with-param name="year" select="$year" />
@ -197,7 +197,7 @@
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:variable> </xsl:variable>
<xsl:variable name="days"> <xsl:variable name="days">
<xsl:call-template name="get-days"> <xsl:call-template name="get-days">
<xsl:with-param name="seconds" select="$seconds" /> <xsl:with-param name="seconds" select="$seconds" />
@ -248,7 +248,7 @@
<xsl:template name="get-dayofweek"> <xsl:template name="get-dayofweek">
<!-- 1 entspricht Montag --> <!-- 1 entspricht Montag -->
<xsl:param name="seconds" /> <xsl:param name="seconds" />
<!-- 1. Januar 1970 war ein Donnerstag --> <!-- 1. Januar 1970 war ein Donnerstag -->
<xsl:value-of select="(floor($seconds div 86400) + 3) mod 7 + 1" /> <xsl:value-of select="(floor($seconds div 86400) + 3) mod 7 + 1" />
</xsl:template> </xsl:template>
@ -297,7 +297,7 @@
<xsl:with-param name="seconds" select="$seconds" /> <xsl:with-param name="seconds" select="$seconds" />
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:choose> <xsl:choose>
<xsl:when test="$month = 1">Januar</xsl:when> <xsl:when test="$month = 1">Januar</xsl:when>
<xsl:when test="$month = 2">Februar</xsl:when> <xsl:when test="$month = 2">Februar</xsl:when>
@ -313,14 +313,14 @@
<xsl:when test="$month = 12">Dezember</xsl:when> <xsl:when test="$month = 12">Dezember</xsl:when>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
<xsl:template name="get-datestring"> <xsl:template name="get-datestring">
<xsl:param name="date" /> <xsl:param name="date" />
<xsl:variable name="seconds"> <xsl:variable name="seconds">
<xsl:value-of select="date:seconds($date)" /> <xsl:value-of select="date:seconds($date)" />
</xsl:variable> </xsl:variable>
<xsl:variable name="year"> <xsl:variable name="year">
<xsl:call-template name="get-year"> <xsl:call-template name="get-year">
<xsl:with-param name="seconds" select="$seconds" /> <xsl:with-param name="seconds" select="$seconds" />
@ -344,7 +344,7 @@
<xsl:with-param name="seconds" select="$seconds" /> <xsl:with-param name="seconds" select="$seconds" />
</xsl:call-template> </xsl:call-template>
</xsl:variable> </xsl:variable>
<xsl:variable name="timestring"> <xsl:variable name="timestring">
<xsl:call-template name="get-timestring"> <xsl:call-template name="get-timestring">
<xsl:with-param name="seconds" select="$seconds" /> <xsl:with-param name="seconds" select="$seconds" />

View File

@ -12,7 +12,7 @@
<meta name="language" content="de" /> <meta name="language" content="de" />
<meta name="author" content="Fnordic walker" /> <meta name="author" content="Fnordic walker" />
<meta name="date" content="Jan 1 1970" /> <meta name="date" content="Jan 1 1970" />
<meta name="DC.Creator" content="Fnordic walker" /> <meta name="DC.Creator" content="Fnordic walker" />
<meta name="DC.Description" content="&lt;&lt;&lt;/&gt;&gt; c3d2, der Erfahrungsaustauschkreis aus dem sächsischen Dresden" /> <meta name="DC.Description" content="&lt;&lt;&lt;/&gt;&gt; c3d2, der Erfahrungsaustauschkreis aus dem sächsischen Dresden" />
<meta name="DC.Publisher" content="Chaos Computer Club Dresden" /> <meta name="DC.Publisher" content="Chaos Computer Club Dresden" />
@ -20,13 +20,13 @@
<meta name="DC.Type" content="Text" /> <meta name="DC.Type" content="Text" />
<meta name="DC.Format" content="text/html" /> <meta name="DC.Format" content="text/html" />
<meta name="DC.Language" content="de" /> <meta name="DC.Language" content="de" />
<meta name="DC.Coverage" content="Dresden" /> <meta name="DC.Coverage" content="Dresden" />
<meta name="DC.Title" content="c3d2: Chaos Computer Club Dresden" /> <meta name="DC.Title" content="c3d2: Chaos Computer Club Dresden" />
<link rel="icon" href="" type="image/png" /> <link rel="icon" href="" type="image/png" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="news-rss.xml" /> <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="news-rss.xml" />
<link rel="stylesheet" title="Default" type="text/css" href="style/default.css" /> <link rel="stylesheet" title="Default" type="text/css" href="style/default.css" />
<title>&lt;&lt;&lt;/&gt;&gt; Chaos Computer Club Dresden | c3d2</title> <title>&lt;&lt;&lt;/&gt;&gt; Chaos Computer Club Dresden | c3d2</title>
</xsl:template> </xsl:template>

View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
exclude-result-prefixes="xsl"> exclude-result-prefixes="xsl">
<xsl:output method="xml" <xsl:output method="xml"
version="1.0" version="1.0"
encoding="utf-8" encoding="utf-8"
indent="yes"/> indent="yes"/>
<xsl:template match="news"> <xsl:template match="news">

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:rss="http://purl.org/rss/1.0/" xmlns:rss="http://purl.org/rss/1.0/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:date="http://exslt.org/dates-and-times" xmlns:date="http://exslt.org/dates-and-times"
exclude-result-prefixes="xsl rss rdf"> exclude-result-prefixes="xsl rss rdf">
@ -11,9 +11,9 @@
<xsl:include href="header.xsl" /> <xsl:include href="header.xsl" />
<xsl:include href="footer.xsl" /> <xsl:include href="footer.xsl" />
<xsl:output method="xml" <xsl:output method="xml"
version="1.0" version="1.0"
encoding="utf-8" encoding="utf-8"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="DTD/xhtml1-strict.dtd" doctype-system="DTD/xhtml1-strict.dtd"
indent="yes"/> indent="yes"/>
@ -39,18 +39,18 @@
<div id="body"> <div id="body">
<!-- ### Navigation ### --> <!-- ### Navigation ### -->
<xsl:comment> <xsl:comment>
<xsl:text> ### Navigation ### </xsl:text> <xsl:text> ### Navigation ### </xsl:text>
</xsl:comment> </xsl:comment>
<div id="navigation"> <div id="navigation">
<!-- ### Search ### --> <!-- ### Search ### -->
<xsl:comment> <xsl:comment>
<xsl:text> ### Search ### </xsl:text> <xsl:text> ### Search ### </xsl:text>
</xsl:comment> </xsl:comment>
<form action="http://www.google.de/custom" method="get"> <form action="http://www.google.de/custom" method="get">
<p> <p>
<input type="text" name="q" size="20" value="c3d2" /> <input type="text" name="q" size="20" value="c3d2" />
<input type="hidden" name="domains" value="c3d2.de" /> <input type="hidden" name="domains" value="c3d2.de" />
@ -147,7 +147,7 @@
<h3 class="news"><xsl:value-of select="@title"/></h3> <h3 class="news"><xsl:value-of select="@title"/></h3>
<small class="news_author"> <small class="news_author">
<xsl:value-of select="@author"/> <xsl:value-of select="@author"/>
</small> </small>
<xsl:variable name="datestring"> <xsl:variable name="datestring">
@ -214,7 +214,7 @@
<xsl:attribute name="title"><xsl:value-of select="document(concat('../content/', $file, '.xml'))/page/@pagetitle"/></xsl:attribute> <xsl:attribute name="title"><xsl:value-of select="document(concat('../content/', $file, '.xml'))/page/@pagetitle"/></xsl:attribute>
</xsl:if> </xsl:if>
<xsl:value-of select="document(concat('../content/', $file, '.xml'))/page/@title"/> <xsl:value-of select="document(concat('../content/', $file, '.xml'))/page/@title"/>
</xsl:element> </xsl:element>
</li> </li>
</xsl:template> </xsl:template>