2007-07-16 22:27:55 -04:00
|
|
|
<?xml version='1.0'?>
|
|
|
|
|
2007-08-11 04:26:38 -04:00
|
|
|
<xsl:stylesheet version="2.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"
|
|
|
|
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
2007-08-12 16:06:22 -04:00
|
|
|
xmlns:fn="http://www.w3.org/2005/xpath-functions"
|
2007-09-14 00:45:51 -04:00
|
|
|
xmlns:csc="http://csclub.uwaterloo.ca/xslt">
|
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">
|
|
|
|
<a class="diritem homedir" href="{$pre}">Home</a>
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<xsl:template match="diritem">
|
2007-07-23 04:42:32 -04:00
|
|
|
<a class="diritem" href="{@href}">
|
|
|
|
<xsl:value-of select="@title" />
|
|
|
|
</a>
|
2007-07-16 22:27:55 -04:00
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|