diff options
author | randomdan <randomdan@localhost> | 2013-08-19 00:38:04 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2013-08-19 00:38:04 +0000 |
commit | 234032d3038b531aea2499d59e9e5092ecfe3f53 (patch) | |
tree | 8ef9ed6899a0c7e84ccca70563514f927da9dec0 | |
parent | Allow specifying a custom date format in an XML presenter declaration, used t... (diff) | |
download | gentoobrowse-234032d3038b531aea2499d59e9e5092ecfe3f53.tar.bz2 gentoobrowse-234032d3038b531aea2499d59e9e5092ecfe3f53.tar.xz gentoobrowse-234032d3038b531aea2499d59e9e5092ecfe3f53.zip |
Fix up some RSS odds and ends, thanks validator
-rw-r--r-- | gentoobrowse/present/atom.xml | 2 | ||||
-rw-r--r-- | gentoobrowse/xslt/atomebuilds.xslt | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/gentoobrowse/present/atom.xml b/gentoobrowse/present/atom.xml index e487f89..48d12dd 100644 --- a/gentoobrowse/present/atom.xml +++ b/gentoobrowse/present/atom.xml @@ -10,7 +10,7 @@ <value source="parent" name="moddate" /> </project2:max> </project2:view> - <project2:xml root="gentoo" style="xslt/atomebuilds.xslt" dateformat="%a, %d %b %Y %T UTC"> + <project2:xml root="gentoo" style="xslt/atomebuilds.xslt" dateformat="%a, %d %b %Y %T UT"> <project2:htmldocument /> </project2:xml> </view> diff --git a/gentoobrowse/xslt/atomebuilds.xslt b/gentoobrowse/xslt/atomebuilds.xslt index 708c38e..4d647f4 100644 --- a/gentoobrowse/xslt/atomebuilds.xslt +++ b/gentoobrowse/xslt/atomebuilds.xslt @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8" ?> -<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - xmlns:project2="http://project2.randomdan.homeip.net" exclude-result-prefixes="project2" > +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:atom="http://www.w3.org/2005/Atom" + xmlns:project2="http://project2.randomdan.homeip.net" exclude-result-prefixes="project2" > <xsl:output encoding="utf-8" method="xml" media-type="text/xml" indent="yes"/> <xsl:template match="/gentoo"> <rss version="2.0"> @@ -11,6 +11,9 @@ <channel> <title>Gentoo Browse | New ebuilds</title> <link>http://gentoobrowse.randomdan.homeip.net/</link> + <atom:link rel="self" type="application/rss+xml"> + <xsl:attribute name="href">http://<xsl:value-of select="/gentoo/project2:environment/servername" />/atom/<xsl:value-of select="/gentoo/project2:uriElems/uriElem[2]" /></xsl:attribute> + </atom:link> <description>Unofficial Gentoo package browser</description> <language>en-gb</language> <lastBuildDate> @@ -18,7 +21,7 @@ </lastBuildDate> <copyright>Copyright: (C) Gentoo Foundation, Inc.</copyright> <ttl>15</ttl> - <xsl:apply-templates select="/gentoo/newebuilds/ebuild" /> + <xsl:apply-templates select="/gentoo/newebuilds/ebuild" /> </channel> </xsl:template> <xsl:template match="/gentoo/newebuilds/ebuild"> |