1 <?xml version=
"1.0" encoding=
"utf-8"?>
4 template for displaying a list of available repositories, used when a
5 CGI request has no repository path information. This template expects
6 the following external variables:
8 cgi-program - path to the CGI executable, to place in links
9 stylesheet - path to the CSS stylesheet
11 the input XML must have the following structure:
19 <xsl:stylesheet version=
"1.0" xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform">
20 <xsl:variable name=
"command">
21 <xsl:value-of select=
"$cgi-program"/>/
<xsl:value-of select=
"/darcs/@target"/>
24 <xsl:template match=
"/darcs">
25 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en">
27 <title>darcs repository viewer
</title>
28 <link rel=
"stylesheet" href=
"{$stylesheet}"/>
32 <h1 class=
"target">Available Repositories
</h1>
35 <xsl:apply-templates/>
41 <xsl:template match=
"repositories">
43 <xsl:sort select=
"name(self::node())"/>
44 <xsl:sort select=
"@name"/>
45 </xsl:apply-templates>
48 <xsl:template match=
"repositories/repository">
49 <xsl:variable name=
"repository" select=
"@name"/>
53 <a href=
"{$cgi-program}/{$repository}/?c=browse">
54 <xsl:value-of select=
"$repository"/>