summaryrefslogtreecommitdiff
path: root/gentoobrowse/emails/newpackageversions.xslt
blob: e5e23be432fbe3cc2a9132609b40e3f026b9ec05 (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
<?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="html" media-type="text/html" indent="yes"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" />
  <xsl:template match="/newpackageversions">
	<html>
		<head>
			<title>Welcome to Gentoo Browse</title>
		</head>
		<body>
			<p>All new shiny ebuilds available!</p>
			<ul>
				<xsl:for-each select="newpackageversions/version">
					<li>
						<a>
							<xsl:attribute name="href">http://gentoobrowse.randomdan.homeip.net/package/<xsl:value-of select="cname"/>/<xsl:value-of select="pname"/></xsl:attribute>
							<xsl:value-of select="cname"/>/<xsl:value-of select="pname"/>-<xsl:value-of select="version"/>
						</a>
					</li>
				</xsl:for-each>
			</ul>
		</body>
	</html>
  </xsl:template>
</xsl:stylesheet>