summaryrefslogtreecommitdiff
path: root/gentoobrowse/atomebuilds.xslt
blob: bd18e121b482ad7015f1af5445640acb276edb2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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>