blob: 3eb6c32b92fdb5ad77c59d3b5363f5299bc05bc2 (
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
33
34
|
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://exslt.org/strings" xmlns:project2="http://project2.randomdan.homeip.net" version="1.0" exclude-result-prefixes="project2 fn">
<xsl:import href="base.xslt"/>
<xsl:output encoding="utf-8" method="html" media-type="text/html" indent="yes"/>
<xsl:template name="header">
<h2>New versions of packages you're tracking.</h2>
</xsl:template>
<xsl:template name="content">
<div class="span9">
<xsl:for-each select="newpackageversions/pkgs/value">
<div class="container">
<xsl:variable name="versions" select="../../version[cname = fn:tokenize(current(),'/')[1] and pname = fn:tokenize(current(),'/')[2]]"/>
<h3>
<xsl:value-of select="$versions[1]/cname"/> /
<a>
<xsl:attribute name="href">http://gentoobrowse.randomdan.homeip.net/package/<xsl:value-of select="$versions[1]/cname"/>/<xsl:value-of select="$versions[1]/pname"/></xsl:attribute>
<xsl:value-of select="$versions[1]/pname"/>
</a>
</h3>
<p>
<xsl:value-of select="$versions[1]/description"/>
</p>
<ul>
<xsl:for-each select="$versions">
<li><xsl:value-of select="cname"/>/<xsl:value-of select="pname"/>-<xsl:value-of select="version"/></li>
</xsl:for-each>
</ul>
</div>
</xsl:for-each>
</div>
</xsl:template>
</xsl:stylesheet>
|