made changes to make current page a non-link in the menu

svn path=/trunk/; revision=10673
This commit is contained in:
rolf_camps 2008-06-17 19:22:26 +00:00
parent c8aca7cfa9
commit 10e0ae8db9
2 changed files with 14 additions and 12 deletions

View File

@ -101,16 +101,8 @@ a[name], a[name]:hover, a.gl img, a.gl:link, a.gl:visited, a.gl:hover {
list-style: none;
}
.menu li a, .menu li a:link, .menu li a:visited {
display: block;
}
.menu li.submenu {
margin: 0;
}
.menu li.submenu a, .menu li.submenu a:link, .menu li.submenu a:visited {
display: block;
padding-left: 0.6em;
}

View File

@ -82,6 +82,9 @@
<xsl:when test="not(string(.))">
<xsl:value-of select="/buildinfo/textset/text[@id=$id]"/>
</xsl:when>
<xsl:when test=". = concat(/buildinfo/@filename ,'.html')">
<xsl:value-of select="/buildinfo/textset/text[@id=$id]"/>
</xsl:when>
<xsl:otherwise>
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
@ -95,10 +98,17 @@
<xsl:variable name="mid"><xsl:value-of select="@id"/></xsl:variable>
<xsl:element name="li">
<xsl:attribute name="class">submenu</xsl:attribute>
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
<xsl:value-of select="/buildinfo/textset/text[@id=$mid]"/>
</xsl:element>
<xsl:choose>
<xsl:when test=". = concat(/buildinfo/@filename ,'.html')">
<xsl:value-of select="/buildinfo/textset/text[@id=$mid]"/>
</xsl:when>
<xsl:otherwise>
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
<xsl:value-of select="/buildinfo/textset/text[@id=$mid]"/>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:element>
</xsl:for-each>
</xsl:for-each>