Complete support for localized web sites.
Approved by: blackend (mentor)
This commit is contained in:
parent
8eeb9f9cd3
commit
839379aa02
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=19963
2 changed files with 18 additions and 12 deletions
|
|
@ -2,7 +2,7 @@
|
|||
<navigation>
|
||||
<cvs:keywords xmlns:cvs="http://www.FreeBSD.org/XML/CVS" version="1.0">
|
||||
<cvs:keyword name="freebsd">
|
||||
$FreeBSD$
|
||||
$FreeBSD: www/en/navigation.xml,v 1.1 2004/02/01 00:02:58 josef Exp $
|
||||
</cvs:keyword>
|
||||
</cvs:keywords>
|
||||
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
<link src="platforms/index.html" name="More?"/>
|
||||
</category>
|
||||
|
||||
<category src="" name="Software">
|
||||
<category name="Software">
|
||||
<link src="doc/en_US.ISO8859-1/books/handbook/mirrors.html" name="Getting FreeBSD"/>
|
||||
<link src="releases/index.html" name="Release Information"/>
|
||||
<link src="ports/index.html" name="Ported Applications"/>
|
||||
|
|
@ -53,14 +53,14 @@
|
|||
<link src="doc/en_US.ISO8859-1/articles/contributing/index.html" name="Contributing to FreeBSD"/>
|
||||
</category>
|
||||
|
||||
<category src="" name="Vendors">
|
||||
<category name="Vendors">
|
||||
<link src="commercial/software_bycat.html" name="Software"/>
|
||||
<link src="commercial/hardware.html" name="Hardware"/>
|
||||
<link src="commercial/consulting_bycat.html" name="Consulting"/>
|
||||
<link src="commercial/misc.html" name="Misc"/>
|
||||
</category>
|
||||
|
||||
<category src="" name="Donations">
|
||||
<category name="Donations">
|
||||
<link src="donations/index.html" name="Donations Liaison"/>
|
||||
<link src="donations/donors.html" name="Current Donations"/>
|
||||
<link src="donations/wantlist.html" name="List of needs"/>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
|
||||
<!-- $FreeBSD: www/share/sgml/includes.misc.xsl,v 1.7 2004/02/01 00:02:58 josef Exp $ -->
|
||||
<!-- $FreeBSD: www/share/sgml/includes.misc.xsl,v 1.8 2004/02/01 22:56:56 ale Exp $ -->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
|
|
@ -219,18 +219,24 @@
|
|||
<xsl:param name="navigation.xml" select="''" />
|
||||
<xsl:for-each select="document($navigation.xml)/navigation/category">
|
||||
<p>
|
||||
<xsl:if test="@src != ''">
|
||||
<a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="boolean(@src)">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@path = 'base'"><xsl:value-of select="$base"/>/</xsl:when>
|
||||
<xsl:when test="@path = 'enbase'"><xsl:value-of select="$enbase"/>/</xsl:when>
|
||||
</xsl:choose>
|
||||
<xsl:value-of select="@src"/>
|
||||
</xsl:attribute>
|
||||
<font size="+1" color="#990000"><b><xsl:value-of select="@name"/></b></font>
|
||||
</a>
|
||||
</xsl:if>
|
||||
</a>
|
||||
</xsl:when>
|
||||
|
||||
<xsl:if test="not(@src != '')">
|
||||
<font size="+1" color="#990000"><b><xsl:value-of select="@name"/></b></font>
|
||||
</xsl:if>
|
||||
<xsl:otherwise>
|
||||
<font size="+1" color="#990000"><b><xsl:value-of select="@name"/></b></font>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<br/>
|
||||
<small>
|
||||
<xsl:apply-templates select="link"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue