2006-01-06 19:51:03 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2006-01-10 22:53:19 +01:00
|
|
|
<xsl:stylesheet version="1.0"
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
2006-01-06 19:51:03 +01:00
|
|
|
xmlns:date="http://exslt.org/dates-and-times"
|
2006-01-10 22:53:19 +01:00
|
|
|
xmlns:crypto="http://exslt.org/crypto"
|
2006-01-06 19:51:03 +01:00
|
|
|
exclude-result-prefixes="xsl">
|
|
|
|
|
|
|
|
<xsl:include href="common.xsl" />
|
2006-01-10 22:53:19 +01:00
|
|
|
|
|
|
|
<xsl:output method="xml"
|
|
|
|
version="1.0"
|
|
|
|
encoding="utf-8"
|
2006-01-06 19:51:03 +01:00
|
|
|
indent="yes"/>
|
|
|
|
|
|
|
|
<xsl:template match="news">
|
|
|
|
<xsl:element name="feed">
|
|
|
|
<xsl:attribute name="xmlns">http://www.w3.org/2005/Atom</xsl:attribute>
|
|
|
|
<xsl:attribute name="xml:lang">de</xsl:attribute>
|
|
|
|
|
|
|
|
<title>www.c3d2.de Newsfeed</title>
|
|
|
|
<link rel="self" href="https://www.c3d2.de/news-atom.xml" />
|
|
|
|
<id>http://www.c3d2.de/</id>
|
|
|
|
<description>Neues aus dem Chaos Computer Club Dresden</description>
|
|
|
|
<language>de-de</language>
|
|
|
|
<!-- XXX
|
|
|
|
<pubDate><xsl:value-of select="news/item/@date"/></pubDate>
|
|
|
|
-->
|
|
|
|
|
|
|
|
<xsl:for-each select="document(newsfile)/item">
|
|
|
|
<xsl:sort select="date:seconds(@date)" data-type="number" order="descending" />
|
|
|
|
|
|
|
|
<entry>
|
2006-01-10 22:53:19 +01:00
|
|
|
<id><xsl:value-of select="crypto:sha1(concat(@title,@date))"/></id>
|
2006-01-06 19:51:03 +01:00
|
|
|
<title><xsl:value-of select="@title"/></title>
|
|
|
|
<updated><xsl:value-of select="@date"/></updated>
|
|
|
|
<author>
|
|
|
|
<name><xsl:value-of select="@author"/></name>
|
|
|
|
</author>
|
2006-01-06 20:01:13 +01:00
|
|
|
<content type="xhtml">
|
|
|
|
<div xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<xsl:apply-templates/>
|
|
|
|
</div>
|
|
|
|
</content>
|
2006-01-06 19:51:03 +01:00
|
|
|
</entry>
|
|
|
|
</xsl:for-each>
|
|
|
|
|
|
|
|
</xsl:element>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|