3 <!-- A sample XML transformation style sheet for displaying the Subversion
4 directory listing that is generated by mod_dav_svn when the "SVNIndexXSLT"
6 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
8 <xsl:output method="html"/>
10 <xsl:template match="*"/>
12 <xsl:template match="svn">
16 <xsl:if test="string-length(index/@name) != 0">
17 <xsl:value-of select="index/@name"/>
18 <xsl:text>: </xsl:text>
20 <xsl:value-of select="index/@path"/>
22 <link rel="stylesheet" type="text/css" href="/static/svn/svnindex.css"/>
26 <xsl:apply-templates/>
29 <xsl:text>Powered by </xsl:text>
30 <xsl:element name="a">
31 <xsl:attribute name="href">
32 <xsl:value-of select="@href"/>
34 <xsl:text>Subversion</xsl:text>
36 <xsl:text> </xsl:text>
37 <xsl:value-of select="@version"/>
43 <xsl:template match="index">
45 <xsl:value-of select="@name"/>
48 <xsl:text>:  </xsl:text>
50 <xsl:value-of select="@base" />
53 <xsl:if test="@base | @name">
54 <xsl:text> — </xsl:text>
56 <xsl:text>Revision </xsl:text>
57 <xsl:value-of select="@rev"/>
61 <xsl:value-of select="@path"/>
63 <xsl:apply-templates select="updir"/>
64 <xsl:apply-templates select="dir"/>
65 <xsl:apply-templates select="file"/>
68 <xsl:template match="updir">
70 <xsl:text>[</xsl:text>
71 <xsl:element name="a">
72 <xsl:attribute name="href">..</xsl:attribute>
73 <xsl:text>Parent Directory</xsl:text>
75 <xsl:text>]</xsl:text>
79 <xsl:template match="dir">
81 <xsl:element name="a">
82 <xsl:attribute name="href">
83 <xsl:value-of select="@href"/>
85 <xsl:value-of select="@name"/>
86 <xsl:text>/</xsl:text>
91 <xsl:template match="file">
93 <xsl:element name="a">
94 <xsl:attribute name="href">
95 <xsl:value-of select="@href"/>
97 <xsl:value-of select="@name"/>