blob: 37c73b79323261f05caf2b409bc78a69ceb0cf7f (
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
|
<?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:if test="not(@visibility='hidden')">
<li>
<a href="{concat($url, @anchor)}" accesskey="{position()}">
<xsl:if test="$url = $file">
<xsl:attribute name="class">
<xsl:value-of select="'active'" />
</xsl:attribute>
</xsl:if>
<xsl:value-of select="@title" />
</a>
</li>
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
|