blob: 1130defc3b9840145a6a267932eff5b5935cddc3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="https://beratung-franzke.de/web-tpl">
<xsl:template name="navigation">
<xsl:variable name="file" select="concat(substring-before(/s:html/@name, '.xml'), $suffix)" />
<xsl:for-each select="document('../main.xml')/s:site/s:page">
<xsl:variable name="url" select="concat(substring-before(@filename, '.xml'), $suffix)"/>
<xsl:variable name="i">
<xsl:number />
</xsl:variable>
<xsl:if test="not(@visibility='hidden')">
<li>
<a href="{concat($url, @anchor)}">
<xsl:if test="$url = $file">
<xsl:attribute name="class">
<xsl:value-of select="'active'" />
</xsl:attribute>
</xsl:if>
<xsl:attribute name="accesskey">
<xsl:value-of select="$i" />
</xsl:attribute>
<xsl:value-of select="@title" />
</a>
</li>
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
|