aboutsummaryrefslogtreecommitdiff
path: root/t/test-site/src/common/du2html.xsl
diff options
context:
space:
mode:
Diffstat (limited to 't/test-site/src/common/du2html.xsl')
-rw-r--r--t/test-site/src/common/du2html.xsl39
1 files changed, 37 insertions, 2 deletions
diff --git a/t/test-site/src/common/du2html.xsl b/t/test-site/src/common/du2html.xsl
index b67dbe6..569349e 100644
--- a/t/test-site/src/common/du2html.xsl
+++ b/t/test-site/src/common/du2html.xsl
@@ -45,10 +45,45 @@
<title><x:value-of select="title"/></title>
</head>
<body>
- <h1><x:apply-templates select="title/node()"/></h1>
- <x:apply-templates/>
+ <div>
+ <h1><x:apply-templates select="title/node()"/></h1>
+ <x:apply-templates/>
+ </div>
+ <div>
+ <x:apply-templates select="wc:tagged()"/>
+ </div>
</body>
</html>
</x:template>
+ <x:template match="/wc:tags">
+ <dl>
+ <x:apply-templates/>
+ </dl>
+ </x:template>
+
+ <x:template match="wc:tag">
+ <dt><x:apply-templates select="wc:title-for($language,$filename,concat('/tags/',@name,'/'))"/></dt>
+ <dd>
+ <x:apply-templates/>
+ </dd>
+ </x:template>
+
+ <x:template match="wc:doc">
+ <a href="{@uri}"><x:apply-templates select="wc:title-for($language,$filename,@uri)"/></a>
+ (<x:apply-templates/>)
+ </x:template>
+
+ <x:template match="wc:lang">
+ <x:choose>
+ <x:when test=".!=$language">
+ <a href="{../@uri}{.}"><x:value-of select="."/></a>
+ </x:when>
+ <x:otherwise>
+ <x:value-of select="."/>
+ </x:otherwise>
+ </x:choose>
+ <x:if test="following-sibling::wc:lang"> | </x:if>
+ </x:template>
+
</x:stylesheet> \ No newline at end of file