diff options
author | Adrian Kummerlaender | 2014-10-27 19:38:41 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2014-10-27 19:38:41 +0100 |
commit | a37c7453f46a08d9831a7705464edaafa28e81ef (patch) | |
tree | a45088de2b1b9dc575aa09cd47ed1cdb9eff6b82 /source | |
parent | 389174fe2227fd299a748f34d7ba211dcb24e622 (diff) | |
download | Overview-a37c7453f46a08d9831a7705464edaafa28e81ef.tar Overview-a37c7453f46a08d9831a7705464edaafa28e81ef.tar.gz Overview-a37c7453f46a08d9831a7705464edaafa28e81ef.tar.bz2 Overview-a37c7453f46a08d9831a7705464edaafa28e81ef.tar.lz Overview-a37c7453f46a08d9831a7705464edaafa28e81ef.tar.xz Overview-a37c7453f46a08d9831a7705464edaafa28e81ef.tar.zst Overview-a37c7453f46a08d9831a7705464edaafa28e81ef.zip |
Changed timeline transformation to generate a valid ATOM feed
* `id` has to contain a valid URL
** i.e. it now contains the same value as `link/@href`
* `author` was missing
Diffstat (limited to 'source')
-rw-r--r-- | source/99_result/timeline.xsl | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/source/99_result/timeline.xsl b/source/99_result/timeline.xsl index 2e89082..1900a14 100644 --- a/source/99_result/timeline.xsl +++ b/source/99_result/timeline.xsl @@ -41,23 +41,28 @@ <entry xmlns="http://www.w3.org/2005/Atom"> <id> - <xsl:value-of select="$hash"/> + <xsl:value-of select="$commit/link"/> </id> <title> <xsl:value-of select="$commit/title"/> </title> <link rel="alternate" title="{$commit/title}" href="{$commit/link}"/> - <content type="xhtml"> - <div xmlns="http://www.w3.org/1999/xhtml"> - <xsl:apply-templates select="$commit/message/*" mode="xhtml"/> - </div> - </content> + <author> + <name> + <xsl:value-of select="$commit/author"/> + </name> + </author> <updated> <xsl:value-of select="$commit/date"/> <xsl:text>T</xsl:text> <xsl:value-of select="$commit/date/@time"/> <xsl:text>:00+02:00</xsl:text> </updated> + <content type="xhtml"> + <div xmlns="http://www.w3.org/1999/xhtml"> + <xsl:apply-templates select="$commit/message/*" mode="xhtml"/> + </div> + </content> </entry> </xsl:template> |