diff options
Diffstat (limited to 'gentoobrowse/xslt/atomebuilds.xslt')
-rw-r--r-- | gentoobrowse/xslt/atomebuilds.xslt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gentoobrowse/xslt/atomebuilds.xslt b/gentoobrowse/xslt/atomebuilds.xslt new file mode 100644 index 0000000..bd18e12 --- /dev/null +++ b/gentoobrowse/xslt/atomebuilds.xslt @@ -0,0 +1,32 @@ +<?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:output encoding="utf-8" method="xml" media-type="text/xml" indent="yes"/> + <xsl:template match="/gentoo"> + <rss version="2.0"> + <xsl:apply-templates match="/gentoo/newebuilds" /> + </rss> + </xsl:template> + <xsl:template match="/gentoo/newebuilds"> + <channel> + <title>Gentoo Browse | New ebuilds</title> + <link>http://gentoobrowse.randomdan.homeip.net/</link> + <description>Unofficial Gentoo package browser</description> + <language>en-gb</language> + <lastBuildDate>Wed, 16 Jun 2010 14:52:43 GMT</lastBuildDate> + <copyright>Copyright: (C) Gentoo Foundation, Inc.</copyright> + <ttl>15</ttl> + <xsl:apply-templates match="/gentoo/newebuilds/ebuild" /> + </channel> + </xsl:template> + <xsl:template match="/gentoo/newebuilds/ebuild"> + <item> + <title><xsl:value-of select="catname" />/<xsl:value-of select="pkgname" />-<xsl:value-of select="version" /></title> + <description><xsl:value-of select="description" /></description> + <link>http://<xsl:value-of select="/gentoo/project2:servername" />/package/<xsl:value-of select="catname" />/<xsl:value-of select="pkgname" /></link> + <guid isPermaLink="false">http://<xsl:value-of select="/gentoo/project2:servername" />/package/<xsl:value-of select="catname" />/<xsl:value-of select="pkgname" />-<xsl:value-of select="version" /></guid> + <pubDate><xsl:value-of select="translate(moddate,' ','T')" />Z</pubDate> + <category>ebuild</category> + </item> + </xsl:template> +</xsl:stylesheet> |