1 <?xml version='
1.0'
?> <!--*- mode: nxml -*-->
2 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
5 <xsl:output method=
"html" encoding=
"ISO-8859-1" indent=
"yes" />
6 <xsl:key name=
"module-id" match=
"moduleset/*" use=
"@id" />
8 <xsl:template match=
"/">
11 <title>Module Set
</title>
12 <style type=
"text/css">
15 -moz-column-width:
40em;
49 <xsl:apply-templates />
54 <xsl:template match=
"moduleset">
55 <h1>JHBuild Module Set
</h1>
57 <xsl:apply-templates />
61 <xsl:template match=
"dependencies|suggests|after">
62 <xsl:variable name=
"deps" select=
"dep/@package" />
63 <xsl:for-each select=
"$deps">
64 <a href=
"#{generate-id(key('module-id', .))}">
65 <xsl:value-of select=
"." />
67 <xsl:if test=
"not($deps[last()] = .)">
68 <xsl:text>,
</xsl:text>
73 <xsl:template match=
"moduleset/*">
74 <xsl:param name=
"reponame">
76 <xsl:when test=
"branch/@repo"><xsl:value-of select=
"branch/@repo"/></xsl:when>
78 <xsl:value-of select=
"//repository[@default = 'yes']/@name"/>
83 <dt id=
"{generate-id(.)}">
84 <xsl:attribute name=
"class">module
85 <xsl:if test=
"name(.) = 'tarball' or
86 //repository[@name = $reponame]/@type = 'tarball'">tarball
</xsl:if>
88 <xsl:value-of select=
"@id" />
97 <xsl:when test=
"@module">
98 <xsl:value-of select=
"@module" />
101 <xsl:value-of select=
"@id" />
104 <xsl:if test=
"branch/@revision">
105 <xsl:text> revision:
</xsl:text>
106 <xsl:value-of select=
"branch/@revision" />
110 <xsl:if test=
"name(.) = 'tarball' or //repository[@name = $reponame]/@type = 'tarball'">
114 <xsl:variable name=
"url">
116 <xsl:when test=
"name(.) = 'tarball'">
117 <xsl:value-of select=
"source/@href"/>
120 <xsl:value-of select=
"//repository[@name=$reponame]/@href"
121 /><xsl:value-of select=
"branch/@module"/>
125 <a href=
"{$url}"><xsl:value-of select=
"$url"/></a>
126 <xsl:if test=
"branch/@size"> (
<xsl:value-of select=
"branch/@size"/> bytes)
</xsl:if>
127 <xsl:if test=
"source/@size"> (
<xsl:value-of select=
"source/@size"/> bytes)
</xsl:if>
131 <xsl:if test=
"branch/patch">
136 <xsl:apply-templates select=
"branch/patch"/>
141 <xsl:if test=
"@checkoutdir">
143 <th>Checkout directory:
</th>
144 <td><xsl:value-of select=
"@checkoutdir" /></td>
147 <xsl:if test=
"@autogenargs">
149 <th>Autogen args:
</th>
150 <td><xsl:value-of select=
"@autogenargs" /></td>
153 <xsl:if test=
"dependencies/dep">
155 <th>Dependencies:
</th>
156 <td><xsl:apply-templates select=
"dependencies" /></td>
159 <xsl:if test=
"suggests">
162 <td><xsl:apply-templates select=
"suggests" /></td>
165 <xsl:if test=
"after">
168 <td><xsl:apply-templates select=
"after" /></td>
175 <xsl:template match=
"moduleset/repository|moduleset/include">
178 <xsl:template match=
"moduleset/metamodule">
179 <dt id=
"{generate-id(.)}" class=
"metamodule"><xsl:value-of select=
"@id" /></dt>
182 <xsl:if test=
"dependencies/dep">
184 <th>Dependencies:
</th>
185 <td><xsl:apply-templates select=
"dependencies" /></td>
192 <xsl:template match=
"patch">
193 <li><xsl:value-of select=
"@file" /></li>