blob: 928edd504f48486d2f59071ce2c857654686d253 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
<?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="span3 bs-docs-sidebar">
<ul class="nav nav-list bs-docs-sidenav">
<xsl:for-each select="categories/category">
<li>
<a>
<xsl:attribute name="href">#<xsl:value-of select="cname" /></xsl:attribute>
<i class="icon-chevron-right"></i> <xsl:value-of select="cname" />
</a>
</li>
</xsl:for-each>
</ul>
</div>
<div class="span9">
<xsl:for-each select="categories//package">
<section>
<xsl:if test="count(preceding-sibling::package) = 0">
<xsl:attribute name="id"><xsl:value-of select="../../cname" /></xsl:attribute>
</xsl:if>
<h3>
<xsl:value-of select="../../cname"/> /
<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="pname"/>
</a>
</h3>
<p>
<xsl:value-of select="description"/>
</p>
<ul>
<xsl:for-each select="versions/version">
<li><xsl:value-of select="../../../../cname"/>/<xsl:value-of select="../../pname"/>-<xsl:value-of select="."/></li>
</xsl:for-each>
</ul>
</section>
</xsl:for-each>
</div>
</xsl:template>
</xsl:stylesheet>
|