Microsummaries support
Freundlichere Human-readable Datums git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@534 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
parent
78af8d890b
commit
4f01346045
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<generator xmlns="http://www.mozilla.org/microsummaries/0.1">
|
||||
<template>
|
||||
<xsl:transform xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
<xsl:output method="text"/>
|
||||
|
||||
<xsl:template match="/">
|
||||
<xsl:text><<</>> </xsl:text>
|
||||
<xsl:apply-templates select="/html/body/div[@id='page']/div[@id='body']/div[@id='content']"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="div[@id='content']">
|
||||
<xsl:value-of select="h2"/>
|
||||
<xsl:apply-templates select="div[@class='vevent']/h3[(position() = 1) and (@class = 'news summary')]"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="h3[@class='news summary']">
|
||||
<xsl:text> (</xsl:text>
|
||||
<xsl:apply-templates select="a"/>
|
||||
<xsl:text>)</xsl:text>
|
||||
</xsl:template>
|
||||
</xsl:transform>
|
||||
</template>
|
||||
</generator>
|
|
@ -354,7 +354,8 @@
|
|||
<xsl:value-of select="date:second-in-minute($date)"/>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:value-of select="$hour_in_day"/>:<xsl:value-of select="$minute_in_hour"/>:<xsl:value-of select="$second_in_minute"/>
|
||||
<xsl:value-of select="$hour_in_day"/>:<xsl:value-of select="$minute_in_hour"/>
|
||||
<xsl:text> Uhr</xsl:text>
|
||||
</xsl:if>
|
||||
|
||||
</xsl:template>
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="{$baseurl}news-rss.xml" />
|
||||
<link rel="alternate" type="application/atom" title="Atom 1.0" href="{$baseurl}news-atom.xml" />
|
||||
<link rel="stylesheet" title="Default" type="text/css" href="{$baseurl}style/default.css" />
|
||||
<link rel="microsummary" title="News Microsummary" type="application/xml" href="{$baseurl}microsummary.xml" />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="header">
|
||||
|
|
Loading…
Reference in New Issue