2007-07-16 22:27:55 -04:00
|
|
|
<?xml version='1.0'?>
|
|
|
|
|
2007-11-10 00:55:15 -05:00
|
|
|
<xsl:stylesheet version="1.0"
|
2007-08-11 05:24:19 -04:00
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
2007-08-11 04:26:38 -04:00
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
2007-11-10 00:55:15 -05:00
|
|
|
xmlns:csc="http://csclub.uwaterloo.ca/xsltproc">
|
2007-07-16 22:27:55 -04:00
|
|
|
|
|
|
|
<xsl:template match="directory">
|
2007-07-23 04:42:32 -04:00
|
|
|
<xsl:variable name="href">
|
|
|
|
<xsl:choose>
|
2007-07-23 05:50:59 -04:00
|
|
|
<xsl:when test="@href != ''"><xsl:value-of select="@href"/></xsl:when>
|
2007-07-23 04:42:32 -04:00
|
|
|
<xsl:otherwise>index.html</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:variable>
|
2007-09-18 03:01:57 -04:00
|
|
|
<xsl:if test="@title">
|
2007-09-29 21:58:00 -04:00
|
|
|
<a class="diritem homedir" href="{$g_pre}">Home</a>
|
2007-09-18 03:01:57 -04:00
|
|
|
<a class="diritem" href="{$href}">
|
|
|
|
<xsl:value-of select="@title" />
|
|
|
|
</a>
|
|
|
|
</xsl:if>
|
2007-08-11 04:26:38 -04:00
|
|
|
<xsl:apply-templates select="diritem" />
|
2007-07-16 22:27:55 -04:00
|
|
|
</xsl:template>
|
|
|
|
|
2007-09-19 04:43:46 -04:00
|
|
|
<xsl:template name="diritem">
|
|
|
|
<xsl:param name="title" />
|
|
|
|
<xsl:param name="href" />
|
|
|
|
<a class="diritem" href="{$href}">
|
|
|
|
<xsl:value-of select="$title" />
|
2007-07-23 04:42:32 -04:00
|
|
|
</a>
|
2007-07-16 22:27:55 -04:00
|
|
|
</xsl:template>
|
|
|
|
|
2007-09-19 04:43:46 -04:00
|
|
|
<xsl:template match="diritem">
|
|
|
|
<xsl:call-template name="diritem">
|
|
|
|
<xsl:with-param name="title" select="@title" />
|
|
|
|
<xsl:with-param name="href" select="@href" />
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:template>
|
|
|
|
|
2007-07-16 22:27:55 -04:00
|
|
|
</xsl:stylesheet>
|