2007-05-05 16:34:57 +00:00
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2007-03-03 14:52:27 +00:00
|
|
|
|
|
2007-05-05 16:34:57 +00:00
|
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
2011-01-19 13:37:40 +00:00
|
|
|
|
<xsl:import href="tools/xsltsl/translations.xsl" />
|
2011-01-23 15:17:24 +00:00
|
|
|
|
|
|
|
|
|
<!-- HTML 5 with UTF-8 encoding, using XSLT fallback doctype mode -->
|
2011-01-23 15:34:45 +00:00
|
|
|
|
<xsl:output method="html" encoding="utf-8" indent="yes" /> <!-- doctype-public="XSLT-compat" /> -->
|
|
|
|
|
|
|
|
|
|
<xsl:template match="/">
|
|
|
|
|
<xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text>
|
|
|
|
|
</xsl:template>
|
2007-03-03 14:52:27 +00:00
|
|
|
|
|
2007-05-05 16:34:57 +00:00
|
|
|
|
<!-- The top level element of the input file is "buildinfo" -->
|
2007-03-03 14:52:27 +00:00
|
|
|
|
<xsl:template match="buildinfo">
|
2007-05-05 16:34:57 +00:00
|
|
|
|
<xsl:apply-templates select="node()"/>
|
2007-03-03 14:52:27 +00:00
|
|
|
|
</xsl:template>
|
|
|
|
|
|
2007-05-05 16:34:57 +00:00
|
|
|
|
<!-- The actual HTML tree is in "buildinfo/document" -->
|
2007-03-03 14:52:27 +00:00
|
|
|
|
<xsl:template match="buildinfo/document">
|
|
|
|
|
<xsl:element name="html">
|
|
|
|
|
<xsl:attribute name="lang">
|
2007-05-05 16:34:57 +00:00
|
|
|
|
<xsl:value-of select="/buildinfo/@language"/>
|
2007-03-03 14:52:27 +00:00
|
|
|
|
</xsl:attribute>
|
2011-01-23 15:07:17 +00:00
|
|
|
|
|
|
|
|
|
<!-- Arabic is a right-to-left language -->
|
2009-05-27 20:53:17 +00:00
|
|
|
|
<xsl:if test="/buildinfo/@language='ar'">
|
|
|
|
|
<xsl:attribute name="dir">rtl</xsl:attribute>
|
|
|
|
|
</xsl:if>
|
2011-01-23 15:18:37 +00:00
|
|
|
|
|
2007-05-05 16:34:57 +00:00
|
|
|
|
<xsl:apply-templates select="node()"/>
|
2007-03-03 14:52:27 +00:00
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
2007-05-05 16:34:57 +00:00
|
|
|
|
<!-- HTML head -->
|
|
|
|
|
<xsl:template match="head">
|
|
|
|
|
<xsl:copy>
|
2010-11-22 17:49:06 +00:00
|
|
|
|
|
2010-03-06 15:01:34 +00:00
|
|
|
|
<!-- Don't let search engine robots index untranslated pages -->
|
|
|
|
|
<xsl:element name="meta">
|
|
|
|
|
<xsl:attribute name="name">robots</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="content">
|
|
|
|
|
<xsl:choose>
|
|
|
|
|
<xsl:when test="/buildinfo/@language=/buildinfo/document/@language">index, follow</xsl:when>
|
|
|
|
|
<xsl:otherwise>noindex</xsl:otherwise>
|
|
|
|
|
</xsl:choose>
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
</xsl:element>
|
2011-01-23 14:59:34 +00:00
|
|
|
|
|
|
|
|
|
<!-- Stylesheets -->
|
2010-10-09 10:45:01 +00:00
|
|
|
|
<link rel="stylesheet" media="all" href="/look/generic.css" type="text/css" />
|
|
|
|
|
<link rel="stylesheet" media="print" href="/look/print.css" type="text/css" />
|
2009-06-04 15:46:56 +00:00
|
|
|
|
<xsl:if test="/buildinfo/@language='ar'">
|
2010-10-09 10:45:01 +00:00
|
|
|
|
<link rel="stylesheet" media="all" href="/look/rtl.css" type="text/css" />
|
2009-06-04 15:46:56 +00:00
|
|
|
|
</xsl:if>
|
2011-01-23 14:59:34 +00:00
|
|
|
|
|
|
|
|
|
<!-- Icon -->
|
2010-06-22 10:06:08 +00:00
|
|
|
|
<link rel="shortcut icon" href="/graphics/fsfe.ico" type="image/x-icon" />
|
2011-01-23 14:59:34 +00:00
|
|
|
|
|
|
|
|
|
<!-- Feeds -->
|
2011-01-23 15:19:09 +00:00
|
|
|
|
<xsl:element name="link"> <!-- News feed -->
|
2009-02-15 16:33:03 +00:00
|
|
|
|
<xsl:attribute name="rel">alternate</xsl:attribute>
|
2011-01-19 13:37:40 +00:00
|
|
|
|
<xsl:attribute name="title">FSFE <xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'menu1/news'" /></xsl:call-template></xsl:attribute>
|
2009-02-15 16:33:03 +00:00
|
|
|
|
<xsl:attribute name="href">/news/news.<xsl:value-of select="/buildinfo/@language" />.rss</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="type">application/rss+xml</xsl:attribute>
|
|
|
|
|
</xsl:element>
|
2011-01-23 15:19:09 +00:00
|
|
|
|
|
|
|
|
|
<xsl:element name="link"> <!-- Events feed -->
|
2009-02-15 16:33:03 +00:00
|
|
|
|
<xsl:attribute name="rel">alternate</xsl:attribute>
|
2011-01-19 13:37:40 +00:00
|
|
|
|
<xsl:attribute name="title">FSFE <xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'menu1/events'" /></xsl:call-template></xsl:attribute>
|
2009-02-15 16:33:03 +00:00
|
|
|
|
<xsl:attribute name="href">/events/events.<xsl:value-of select="/buildinfo/@language" />.rss</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="type">application/rss+xml</xsl:attribute>
|
2008-12-19 13:02:46 +00:00
|
|
|
|
</xsl:element>
|
2011-01-23 14:59:34 +00:00
|
|
|
|
|
|
|
|
|
<!-- JavaScripts -->
|
2010-11-13 00:47:35 +00:00
|
|
|
|
<script type="text/javascript" src="/scripts/jquery.js"></script>
|
|
|
|
|
<script type="text/javascript" src="/scripts/master.js"></script>
|
2010-10-10 15:19:09 +00:00
|
|
|
|
<script type="text/javascript" src="/scripts/placeholder.js"></script>
|
2011-01-23 14:58:27 +00:00
|
|
|
|
<xsl:comment>
|
|
|
|
|
<![CDATA[
|
2011-01-23 15:18:37 +00:00
|
|
|
|
[if lt IE 8]>
|
|
|
|
|
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"></script>
|
|
|
|
|
<![endif]
|
2011-01-23 14:58:27 +00:00
|
|
|
|
]]>
|
|
|
|
|
</xsl:comment>
|
2011-01-23 15:19:46 +00:00
|
|
|
|
|
2007-05-05 16:34:57 +00:00
|
|
|
|
<xsl:apply-templates select="@*|node()"/>
|
|
|
|
|
</xsl:copy>
|
|
|
|
|
</xsl:template>
|
2010-10-05 13:44:26 +00:00
|
|
|
|
|
|
|
|
|
<!-- Modify H1 -->
|
|
|
|
|
<xsl:template match="h1">
|
|
|
|
|
<xsl:copy>
|
|
|
|
|
<xsl:apply-templates select="node()"/>
|
|
|
|
|
</xsl:copy>
|
|
|
|
|
|
2010-10-20 12:05:38 +00:00
|
|
|
|
<!-- Apply news page rules -->
|
2010-10-20 13:24:35 +00:00
|
|
|
|
<xsl:if test="string(/buildinfo/document/html/@newsdate)">
|
2010-10-20 12:05:38 +00:00
|
|
|
|
<xsl:element name="div">
|
2011-01-23 14:58:27 +00:00
|
|
|
|
<xsl:attribute name="id">article-metadata</xsl:attribute>
|
2010-10-20 12:05:38 +00:00
|
|
|
|
<xsl:element name="p">
|
2011-01-19 13:37:40 +00:00
|
|
|
|
<span class="label"> <xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'published'" /></xsl:call-template>: </span><xsl:value-of select="/buildinfo/document/html/@newsdate" />
|
2010-10-20 12:05:38 +00:00
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:element>
|
2011-01-23 14:59:34 +00:00
|
|
|
|
</xsl:if>
|
2010-10-20 12:05:38 +00:00
|
|
|
|
<!-- End apply news page rules -->
|
|
|
|
|
|
2010-10-05 13:44:26 +00:00
|
|
|
|
<!-- Apply article rules -->
|
2010-10-20 10:08:24 +00:00
|
|
|
|
<xsl:if test = "string(/buildinfo/document/head/meta[@name='author-name-1']/@content)">
|
2010-10-05 13:44:26 +00:00
|
|
|
|
<xsl:element name="div">
|
2011-01-23 14:58:27 +00:00
|
|
|
|
<xsl:attribute name="id">article-metadata</xsl:attribute>
|
|
|
|
|
<xsl:element name="p">
|
|
|
|
|
<xsl:if test = "string(/buildinfo/document/head/meta[@name='author-name-1']/@content)">
|
|
|
|
|
<span class="label"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'author'" /></xsl:call-template>: </span>
|
|
|
|
|
<xsl:choose>
|
|
|
|
|
<xsl:when test="/buildinfo/document/head/meta[@name='author-link-1']">
|
|
|
|
|
<xsl:variable name="author-link-1" select="/buildinfo/document/head/meta[@name='author-link-1']/@content" />
|
|
|
|
|
<a rel='author' href='{$author-link-1}'>
|
|
|
|
|
<xsl:value-of select="/buildinfo/document/head/meta[@name='author-name-1']/@content" /> </a>
|
|
|
|
|
</xsl:when>
|
|
|
|
|
<xsl:otherwise>
|
|
|
|
|
<xsl:value-of select="/buildinfo/document/head/meta[@name='author-name-1']/@content" />
|
|
|
|
|
</xsl:otherwise>
|
|
|
|
|
</xsl:choose>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
|
|
<xsl:if test = "string(/buildinfo/document/head/meta[@name='author-name-2']/@content)">
|
|
|
|
|
<xsl:choose>
|
|
|
|
|
<xsl:when test="/buildinfo/document/head/meta[@name='author-link-2']">
|
|
|
|
|
<xsl:variable name="author-link-2" select="/buildinfo/document/head/meta[@name='author-link-2']/@content" />
|
|
|
|
|
, <a rel='author' href='{$author-link-2}'>
|
|
|
|
|
<xsl:value-of select="/buildinfo/document/head/meta[@name='author-name-2']/@content" /> </a>
|
|
|
|
|
</xsl:when>
|
|
|
|
|
<xsl:otherwise>
|
|
|
|
|
, <xsl:value-of select="/buildinfo/document/head/meta[@name='author-name-2']/@content" />
|
|
|
|
|
</xsl:otherwise>
|
|
|
|
|
</xsl:choose>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
|
|
<xsl:if test = "string(/buildinfo/document/head/meta[@name='author-name-3']/@content)">
|
|
|
|
|
<xsl:choose>
|
|
|
|
|
<xsl:when test="/buildinfo/document/head/meta[@name='author-link-3']">
|
|
|
|
|
<xsl:variable name="author-link-3" select="/buildinfo/document/head/meta[@name='author-link-3']/@content" />
|
|
|
|
|
, <a rel='author' href='{$author-link-3}'>
|
|
|
|
|
<xsl:value-of select="/buildinfo/document/head/meta[@name='author-name-3']/@content" /> </a>
|
|
|
|
|
</xsl:when>
|
|
|
|
|
<xsl:otherwise>
|
|
|
|
|
, <xsl:value-of select="/buildinfo/document/head/meta[@name='author-name-3']/@content" />
|
|
|
|
|
</xsl:otherwise>
|
|
|
|
|
</xsl:choose>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
|
2011-01-19 13:37:40 +00:00
|
|
|
|
<span class="label"> <xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'published'" /></xsl:call-template>: </span><xsl:value-of select="/buildinfo/document/head/meta[@name='publication-date']/@content" />
|
2010-10-20 10:12:03 +00:00
|
|
|
|
|
|
|
|
|
<xsl:if test = "string(/buildinfo/document/head/meta[@name='pdf-link']/@content)">
|
2010-10-20 12:15:46 +00:00
|
|
|
|
<span class="label">PDF: </span>
|
2010-10-20 12:51:47 +00:00
|
|
|
|
<xsl:variable name="pdf-link" select="/buildinfo/document/head/meta[@name='pdf-link']/@content" />
|
2010-10-20 12:25:05 +00:00
|
|
|
|
<a href='{$pdf-link}'>download</a>
|
|
|
|
|
</xsl:if>
|
2010-10-20 10:12:03 +00:00
|
|
|
|
|
2010-10-05 13:44:26 +00:00
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
<!-- End Apply article rules -->
|
2011-01-23 14:58:27 +00:00
|
|
|
|
|
2010-10-05 13:44:26 +00:00
|
|
|
|
</xsl:template>
|
|
|
|
|
<!-- End modifications to H1 -->
|
2007-05-05 16:34:57 +00:00
|
|
|
|
|
|
|
|
|
<!-- HTML body -->
|
2007-03-03 14:52:27 +00:00
|
|
|
|
<xsl:template match="body">
|
2007-05-05 16:34:57 +00:00
|
|
|
|
<xsl:copy>
|
|
|
|
|
|
|
|
|
|
<!-- First of all, a comment to make clear this is generated -->
|
2010-10-09 13:19:22 +00:00
|
|
|
|
<xsl:comment>This file was generated by an XSLT script. Please do not edit.</xsl:comment>
|
2007-05-05 16:34:57 +00:00
|
|
|
|
|
2010-12-19 13:16:17 +00:00
|
|
|
|
<!-- Service notice (for downtime, upgrades, etc. enable this)
|
2011-01-23 14:58:27 +00:00
|
|
|
|
<div id="service-notice">
|
|
|
|
|
<div class="close">
|
|
|
|
|
<a title="dismiss this notification">×</a>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="text">
|
|
|
|
|
<h1>Site currently under development</h1>
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
If you want to help out, <a
|
|
|
|
|
href="/contribute/web/web.en.html">consider joining the
|
|
|
|
|
web team</a>.
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>-->
|
2010-11-12 23:13:41 +00:00
|
|
|
|
|
2007-05-05 16:34:57 +00:00
|
|
|
|
<xsl:element name="div">
|
2009-11-10 11:45:11 +00:00
|
|
|
|
<xsl:attribute name="id">wrapper</xsl:attribute>
|
2010-10-13 14:30:20 +00:00
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="id">wrapper-inner</xsl:attribute>
|
|
|
|
|
<xsl:comment>Unnecessary div, for IE only</xsl:comment>
|
2010-10-09 10:41:11 +00:00
|
|
|
|
|
2010-10-13 14:30:20 +00:00
|
|
|
|
<xsl:element name="p">
|
2011-01-23 14:58:27 +00:00
|
|
|
|
<xsl:attribute name="class">n</xsl:attribute>
|
|
|
|
|
<xsl:comment>Give non-graphical browsers a way to skip the menu.</xsl:comment>
|
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="href">#content</xsl:attribute>
|
|
|
|
|
<xsl:text>Skip menu</xsl:text>
|
2010-10-09 10:41:11 +00:00
|
|
|
|
</xsl:element>
|
2011-01-23 14:58:27 +00:00
|
|
|
|
</xsl:element>
|
2010-10-09 10:41:11 +00:00
|
|
|
|
|
2011-01-23 14:58:27 +00:00
|
|
|
|
<!-- Page header -->
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="id">header</xsl:attribute>
|
2010-10-13 14:30:20 +00:00
|
|
|
|
|
2011-01-23 14:58:27 +00:00
|
|
|
|
<!-- Logo -->
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="id">logo</xsl:attribute>
|
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="href">/</xsl:attribute>
|
|
|
|
|
<xsl:element name="img">
|
|
|
|
|
<xsl:attribute name="alt">FSFE Logo</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="src">/graphics/logo.png</xsl:attribute>
|
2010-10-13 14:30:20 +00:00
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:element>
|
2011-01-23 14:58:27 +00:00
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
|
<!-- Statement -->
|
|
|
|
|
<xsl:element name="p">
|
|
|
|
|
<xsl:attribute name="id">statement</xsl:attribute>
|
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'statement'" /></xsl:call-template>.<!--intentional full stop goes here-->
|
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="href">/about</xsl:attribute><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'learn-more'" />
|
|
|
|
|
</xsl:call-template>
|
|
|
|
|
</xsl:element>.<!--intentional full stop goes here-->
|
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
|
</xsl:element><!-- end Page header -->
|
2011-01-19 13:37:40 +00:00
|
|
|
|
|
2011-01-23 14:58:27 +00:00
|
|
|
|
<!-- Sidebar -->
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="id">sidebar</xsl:attribute>
|
|
|
|
|
|
|
|
|
|
<!-- Menu -->
|
2010-10-13 14:30:20 +00:00
|
|
|
|
<xsl:element name="div">
|
2011-01-23 14:58:27 +00:00
|
|
|
|
<xsl:attribute name="id">menu</xsl:attribute>
|
|
|
|
|
|
|
|
|
|
<xsl:element name="ul">
|
2010-10-13 14:30:20 +00:00
|
|
|
|
|
2011-01-23 14:58:27 +00:00
|
|
|
|
<!-- FSFE portal menu -->
|
|
|
|
|
<xsl:element name="li">
|
|
|
|
|
<xsl:attribute name="class">fsfe</xsl:attribute>
|
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="href">/</xsl:attribute>
|
|
|
|
|
FSFE
|
|
|
|
|
</xsl:element>
|
|
|
|
|
<xsl:element name="ul">
|
2010-10-13 14:30:20 +00:00
|
|
|
|
|
2011-01-23 14:58:27 +00:00
|
|
|
|
<xsl:variable name="menu"><xsl:value-of select="@id" /></xsl:variable>
|
|
|
|
|
<xsl:for-each select="/buildinfo/menuset/menu[@parent='fsfe']">
|
|
|
|
|
<!--<xsl:sort select="@id"/>-->
|
|
|
|
|
<xsl:sort select="@priority" />
|
|
|
|
|
<xsl:variable name="id"><xsl:value-of select="@id" /></xsl:variable>
|
|
|
|
|
<xsl:element name="li">
|
|
|
|
|
<xsl:choose>
|
|
|
|
|
<xsl:when test="not(string(.))">
|
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="$id" /></xsl:call-template>
|
|
|
|
|
</xsl:when>
|
|
|
|
|
<xsl:when test=". = concat(/buildinfo/@filename ,'.html')">
|
|
|
|
|
<xsl:element name="span">
|
|
|
|
|
<xsl:attribute name="id">selected</xsl:attribute>
|
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="$id" /></xsl:call-template>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:when>
|
|
|
|
|
<xsl:otherwise>
|
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="href"><xsl:value-of select="." /></xsl:attribute>
|
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="$id" /></xsl:call-template>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:otherwise>
|
|
|
|
|
</xsl:choose>
|
|
|
|
|
|
|
|
|
|
</xsl:element> <!-- /li -->
|
|
|
|
|
</xsl:for-each>
|
2010-10-09 15:09:14 +00:00
|
|
|
|
|
2011-01-23 14:58:27 +00:00
|
|
|
|
</xsl:element>
|
2010-10-09 15:18:01 +00:00
|
|
|
|
|
2011-01-23 14:58:27 +00:00
|
|
|
|
</xsl:element> <!-- /li -->
|
|
|
|
|
|
|
|
|
|
<!-- Planet portal menu -->
|
|
|
|
|
<xsl:element name="li">
|
|
|
|
|
<xsl:attribute name="class">planet</xsl:attribute>
|
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="href">http://planet.fsfe.org</xsl:attribute>
|
|
|
|
|
Planet
|
|
|
|
|
</xsl:element>
|
|
|
|
|
<!-- causes validation errors, needs li to pass validator?
|
|
|
|
|
<xsl:element name="ul">
|
|
|
|
|
|
|
|
|
|
</xsl:element>-->
|
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
|
<!-- Fellowship portal menu -->
|
|
|
|
|
<xsl:element name="li">
|
|
|
|
|
<xsl:attribute name="class">fellowship</xsl:attribute>
|
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="href">http://fellowship.fsfe.org</xsl:attribute>
|
|
|
|
|
Fellowship
|
2010-10-09 15:34:22 +00:00
|
|
|
|
</xsl:element>
|
2011-01-23 14:58:27 +00:00
|
|
|
|
<xsl:element name="ul">
|
|
|
|
|
|
|
|
|
|
<xsl:variable name="menu"><xsl:value-of select="@id" /></xsl:variable>
|
|
|
|
|
<xsl:for-each select="/buildinfo/menuset/menu[@parent='fellowship']">
|
|
|
|
|
<!--<xsl:sort select="@id"/>-->
|
|
|
|
|
<xsl:sort select="@priority" />
|
|
|
|
|
<xsl:variable name="id"><xsl:value-of select="@id" /></xsl:variable>
|
|
|
|
|
<xsl:element name="li">
|
|
|
|
|
<xsl:choose>
|
|
|
|
|
<xsl:when test="not(string(.))">
|
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="$id" /></xsl:call-template>
|
|
|
|
|
</xsl:when>
|
|
|
|
|
<xsl:when test=". = concat(/buildinfo/@filename ,'.html')">
|
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="$id" /></xsl:call-template>
|
|
|
|
|
</xsl:when>
|
|
|
|
|
<xsl:otherwise>
|
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="href"><xsl:value-of select="." /></xsl:attribute>
|
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="$id" /></xsl:call-template>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:otherwise>
|
|
|
|
|
</xsl:choose>
|
|
|
|
|
|
|
|
|
|
</xsl:element> <!-- /li -->
|
|
|
|
|
</xsl:for-each>
|
|
|
|
|
</xsl:element><!-- end li -->
|
|
|
|
|
</xsl:element><!-- end ul -->
|
2010-10-13 14:30:20 +00:00
|
|
|
|
|
2011-01-23 14:58:27 +00:00
|
|
|
|
</xsl:element><!-- end ul -->
|
2007-05-05 16:34:57 +00:00
|
|
|
|
|
2011-01-23 14:58:27 +00:00
|
|
|
|
|
|
|
|
|
</xsl:element><!-- end menu -->
|
2010-10-13 14:30:20 +00:00
|
|
|
|
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="id">search</xsl:attribute>
|
|
|
|
|
|
2010-10-09 10:56:53 +00:00
|
|
|
|
<xsl:element name="h2">
|
2011-01-23 14:58:27 +00:00
|
|
|
|
<xsl:attribute name="class">n</xsl:attribute>
|
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'search'" /></xsl:call-template>
|
2010-10-09 10:56:53 +00:00
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
|
<xsl:element name="form">
|
|
|
|
|
<xsl:attribute name="method">get</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="action">http://search.fsfe.org/yacysearch.html</xsl:attribute>
|
|
|
|
|
|
2010-10-13 14:30:20 +00:00
|
|
|
|
<xsl:element name="input">
|
|
|
|
|
<xsl:attribute name="type">hidden</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="name">verify</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="value">true</xsl:attribute>
|
2010-10-10 10:30:52 +00:00
|
|
|
|
</xsl:element>
|
2010-10-13 14:30:20 +00:00
|
|
|
|
|
|
|
|
|
<xsl:element name="input">
|
|
|
|
|
<xsl:attribute name="type">hidden</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="name">maximumRecords</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="value">10</xsl:attribute>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
|
<xsl:element name="input">
|
|
|
|
|
<xsl:attribute name="type">hidden</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="name">meanCount</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="value">5</xsl:attribute>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
|
<xsl:element name="input">
|
|
|
|
|
<xsl:attribute name="type">hidden</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="name">resource</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="value">local</xsl:attribute>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
|
<xsl:element name="input">
|
|
|
|
|
<xsl:attribute name="type">hidden</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="name">prefermaskfilter</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="value">.*.<xsl:value-of select="/buildinfo/@language"/>.html</xsl:attribute>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
|
<xsl:element name="input">
|
|
|
|
|
<xsl:attribute name="type">hidden</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="name">prefermaskfilter</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="value">.*</xsl:attribute>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
|
<xsl:element name="input">
|
|
|
|
|
<xsl:attribute name="type">hidden</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="name">display</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="value">2</xsl:attribute>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
|
<xsl:element name="input">
|
|
|
|
|
<xsl:attribute name="type">hidden</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="name">nav</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="value">hosts</xsl:attribute>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
|
2010-12-13 14:26:02 +00:00
|
|
|
|
<xsl:element name="p">
|
|
|
|
|
<!--<xsl:element name="input">
|
2011-01-23 14:58:27 +00:00
|
|
|
|
<xsl:attribute name="type">image</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="src">/graphics/icons/search-button.png</xsl:attribute>
|
|
|
|
|
</xsl:element>-->
|
2010-12-08 21:07:46 +00:00
|
|
|
|
|
2010-10-09 10:56:53 +00:00
|
|
|
|
<xsl:element name="input">
|
|
|
|
|
<xsl:attribute name="type">text</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="name">query</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="placeholder">
|
2011-01-19 13:37:40 +00:00
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'search'" /></xsl:call-template>
|
2010-10-13 14:30:20 +00:00
|
|
|
|
</xsl:attribute>
|
|
|
|
|
</xsl:element>
|
2010-12-08 21:07:46 +00:00
|
|
|
|
|
2010-12-07 16:33:42 +00:00
|
|
|
|
<xsl:element name="input">
|
|
|
|
|
<xsl:attribute name="type">submit</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="name">search</xsl:attribute>
|
2011-01-17 11:08:15 +00:00
|
|
|
|
<xsl:attribute name="value">
|
2011-01-19 13:37:40 +00:00
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'submit'" /></xsl:call-template>
|
2011-01-17 11:08:15 +00:00
|
|
|
|
</xsl:attribute>
|
2010-12-07 16:33:42 +00:00
|
|
|
|
</xsl:element>
|
2010-10-13 14:30:20 +00:00
|
|
|
|
|
2010-10-09 10:56:53 +00:00
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:element>
|
2010-10-13 14:30:20 +00:00
|
|
|
|
</xsl:element><!-- End search -->
|
|
|
|
|
|
|
|
|
|
<!-- Newsletter form
|
2011-01-23 14:58:27 +00:00
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="id">newsletter</xsl:attribute>
|
|
|
|
|
|
|
|
|
|
<xsl:element name="h2">
|
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'receive-newsletter'" /></xsl:call-template>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
|
<xsl:element name="form">
|
|
|
|
|
<xsl:attribute name="method">get</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="action">http://search.fsfe.org/yacysearch.html</xsl:attribute>
|
|
|
|
|
|
|
|
|
|
<xsl:element name="p">
|
|
|
|
|
|
|
|
|
|
<xsl:element name="select">
|
|
|
|
|
<xsl:attribute name="name">lang</xsl:attribute>
|
|
|
|
|
<option><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'language'" /></xsl:call-template></option>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
|
</xsl:element>
|
|
|
|
|
<xsl:element name="p">
|
|
|
|
|
|
|
|
|
|
<xsl:element name="input">
|
|
|
|
|
<xsl:attribute name="type">image</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="src">/graphics/icons/search-button.png</xsl:attribute>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
|
<xsl:element name="input">
|
|
|
|
|
<xsl:attribute name="type">text</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="name">query</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="placeholder">
|
|
|
|
|
email@example.org
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
end Newsletter form -->
|
2010-10-13 14:30:20 +00:00
|
|
|
|
|
|
|
|
|
<!-- translations -->
|
|
|
|
|
<xsl:element name="div">
|
2011-01-23 14:58:27 +00:00
|
|
|
|
<xsl:attribute name="id">translations</xsl:attribute>
|
|
|
|
|
<xsl:element name="ul">
|
|
|
|
|
<xsl:for-each select="/buildinfo/trlist/tr">
|
|
|
|
|
<xsl:sort select="@id"/>
|
2010-10-13 14:30:20 +00:00
|
|
|
|
<xsl:choose>
|
|
|
|
|
<xsl:when test="@id=/buildinfo/@language">
|
2010-11-22 18:29:47 +00:00
|
|
|
|
<xsl:element name="li">
|
|
|
|
|
<xsl:value-of select="." disable-output-escaping="yes"/>
|
|
|
|
|
</xsl:element>
|
2010-10-13 14:30:20 +00:00
|
|
|
|
</xsl:when>
|
|
|
|
|
<xsl:otherwise>
|
|
|
|
|
<xsl:element name="li">
|
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="href"><xsl:value-of select="/buildinfo/@filename"/>.<xsl:value-of select="@id"/>.html</xsl:attribute>
|
|
|
|
|
<xsl:value-of select="." disable-output-escaping="yes"/>
|
|
|
|
|
</xsl:element>
|
2010-10-09 12:35:50 +00:00
|
|
|
|
</xsl:element>
|
2010-10-13 14:30:20 +00:00
|
|
|
|
</xsl:otherwise>
|
|
|
|
|
</xsl:choose>
|
2011-01-23 14:58:27 +00:00
|
|
|
|
</xsl:for-each>
|
|
|
|
|
</xsl:element><!-- end translations -->
|
|
|
|
|
|
|
|
|
|
</xsl:element><!-- End sidebar -->
|
2010-11-02 13:57:11 +00:00
|
|
|
|
|
|
|
|
|
</xsl:element>
|
2010-10-13 14:30:20 +00:00
|
|
|
|
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="id">content</xsl:attribute>
|
2010-10-20 16:26:27 +00:00
|
|
|
|
|
2010-10-27 15:42:34 +00:00
|
|
|
|
<!-- Outdated note -->
|
|
|
|
|
<xsl:if test="/buildinfo/@outdated='yes'">
|
|
|
|
|
<xsl:element name="p">
|
2011-01-23 14:58:27 +00:00
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'outdated'" /></xsl:call-template>
|
2010-10-27 15:42:34 +00:00
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
|
2010-11-02 13:45:32 +00:00
|
|
|
|
<!-- Missing translation note -->
|
|
|
|
|
<xsl:if test="/buildinfo/@language!=/buildinfo/document/@language">
|
|
|
|
|
<xsl:element name="p">
|
2011-01-23 14:58:27 +00:00
|
|
|
|
<xsl:attribute name="id">outdated-notice</xsl:attribute>
|
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'notranslation'" /></xsl:call-template>
|
2010-11-02 13:45:32 +00:00
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:if>
|
2010-11-02 13:57:11 +00:00
|
|
|
|
<!-- Missing translation note -->
|
2011-01-23 14:58:27 +00:00
|
|
|
|
|
2010-10-20 16:26:27 +00:00
|
|
|
|
<!-- Start info box -->
|
2010-10-20 16:57:16 +00:00
|
|
|
|
<xsl:element name="div">
|
2010-10-20 16:26:27 +00:00
|
|
|
|
<xsl:attribute name="id">infobox</xsl:attribute>
|
|
|
|
|
<xsl:if test = "/buildinfo/document/head/meta[@name='under-construction' and @content='true']">
|
|
|
|
|
<xsl:element name="p">
|
2011-01-19 13:37:40 +00:00
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'under-construction'" /></xsl:call-template>
|
2010-10-20 16:26:27 +00:00
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
<!-- End info box -->
|
2010-12-17 16:09:15 +00:00
|
|
|
|
|
2010-12-19 13:14:03 +00:00
|
|
|
|
<!-- Fundraising box
|
2011-01-23 14:58:27 +00:00
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="id">fundraising</xsl:attribute>
|
|
|
|
|
<xsl:element name="h2">
|
|
|
|
|
<xsl:apply-templates select="/buildinfo/fundraising/call1/node()"/>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="class">button</xsl:attribute>
|
|
|
|
|
<xsl:apply-templates select="/buildinfo/fundraising/call2/node()"/>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="class">button</xsl:attribute>
|
|
|
|
|
<xsl:apply-templates select="/buildinfo/fundraising/call3/node()"/>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
<xsl:element name="img">
|
|
|
|
|
<xsl:attribute name="src">/graphics/wreath.png</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="alt">wreath</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="class">right</xsl:attribute>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
<xsl:element name="p">
|
|
|
|
|
<xsl:attribute name="class">call4</xsl:attribute>
|
|
|
|
|
<xsl:apply-templates select="/buildinfo/fundraising/call4/node()"/>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
disabling the progress bar
|
|
|
|
|
<xsl:if test="/buildinfo/fundraising/current">
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="class">percentbox</xsl:attribute>
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="class">percentbar</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="style">width: 45.9%</xsl:attribute>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
<xsl:element name="p">
|
|
|
|
|
<xsl:attribute name="class">current</xsl:attribute>
|
|
|
|
|
<xsl:apply-templates select="/buildinfo/fundraising/current/node()"/>
|
|
|
|
|
<xsl:text>€ 45 860</xsl:text>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
<xsl:element name="p">
|
|
|
|
|
<xsl:attribute name="class">target</xsl:attribute>
|
|
|
|
|
<xsl:text>€ 100 000</xsl:text>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:if> c
|
|
|
|
|
</xsl:element>-->
|
2010-12-17 16:09:15 +00:00
|
|
|
|
<!-- End Fundraising box -->
|
2010-10-13 14:30:20 +00:00
|
|
|
|
|
|
|
|
|
<!-- Here goes the actual content of the <body> node of the input file -->
|
|
|
|
|
<xsl:apply-templates select="node()"/>
|
|
|
|
|
|
|
|
|
|
<!-- Link to top -->
|
|
|
|
|
<xsl:element name="p">
|
|
|
|
|
<xsl:attribute name="class">n</xsl:attribute>
|
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="href">#top</xsl:attribute>
|
|
|
|
|
<xsl:text>To top</xsl:text>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
<!-- End Content -->
|
|
|
|
|
|
2010-10-13 14:33:32 +00:00
|
|
|
|
</xsl:element><!--end wrapper-inner-->
|
|
|
|
|
|
|
|
|
|
<!-- Footer -->
|
|
|
|
|
<div id="footer">
|
|
|
|
|
<div id="notice">
|
|
|
|
|
<p>
|
2011-01-23 15:03:53 +00:00
|
|
|
|
Copyright © 2001-2011 <a href="/">Free Software
|
2011-01-23 15:02:38 +00:00
|
|
|
|
Foundation Europe</a>. <strong><a
|
|
|
|
|
href="/contact/contact.html"> <xsl:call-template
|
|
|
|
|
name="fsfe-gettext"><xsl:with-param name="id"
|
|
|
|
|
select="'contact'" /></xsl:call-template>
|
|
|
|
|
</a></strong>.<br />
|
2010-10-13 14:33:32 +00:00
|
|
|
|
|
2011-01-23 15:02:38 +00:00
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'permission'" /></xsl:call-template>
|
|
|
|
|
</p>
|
2011-01-23 14:58:27 +00:00
|
|
|
|
|
2011-01-23 15:02:38 +00:00
|
|
|
|
<p>
|
|
|
|
|
<!-- "Last changed" magic -->
|
|
|
|
|
<xsl:variable name="timestamp">
|
|
|
|
|
<xsl:value-of select="/buildinfo/document/timestamp"/>
|
|
|
|
|
</xsl:variable>
|
|
|
|
|
<!-- FIXME: over time, all pages should have the timestamp -->
|
|
|
|
|
<!-- tags, so this conditional could be removed -->
|
|
|
|
|
<xsl:if test="string-length($timestamp) > 0">
|
|
|
|
|
<xsl:variable name="Date">
|
|
|
|
|
<xsl:value-of select="substring-before(substring-after($timestamp, 'Date: '), ' $')"/>
|
|
|
|
|
</xsl:variable>
|
|
|
|
|
<xsl:variable name="Author">
|
|
|
|
|
<xsl:value-of select="substring-before(substring-after($timestamp, 'Author: '), ' $')"/>
|
2010-10-13 14:33:32 +00:00
|
|
|
|
</xsl:variable>
|
2011-01-23 15:02:38 +00:00
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'lastchanged'" /></xsl:call-template>
|
|
|
|
|
<xsl:value-of select="translate ($Date, '/', '-')"/>
|
|
|
|
|
(<xsl:value-of select="$Author"/>)
|
|
|
|
|
</xsl:if>
|
2010-10-13 14:33:32 +00:00
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<ul>
|
2011-01-23 15:03:26 +00:00
|
|
|
|
<!-- Source code -->
|
2010-10-13 14:33:32 +00:00
|
|
|
|
<li>
|
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
|
<xsl:text>/source</xsl:text>
|
|
|
|
|
<xsl:value-of select="/buildinfo/@filename"/>
|
|
|
|
|
<xsl:text>.</xsl:text>
|
|
|
|
|
<xsl:value-of select="/buildinfo/document/@language"/>
|
|
|
|
|
<xsl:text>.xhtml</xsl:text>
|
|
|
|
|
</xsl:attribute>
|
2011-01-19 13:37:40 +00:00
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'source'" /></xsl:call-template>
|
2010-10-13 14:33:32 +00:00
|
|
|
|
</xsl:element>
|
|
|
|
|
</li>
|
|
|
|
|
|
2011-01-23 15:03:26 +00:00
|
|
|
|
<!-- Translate this page? -->
|
2010-10-13 14:33:32 +00:00
|
|
|
|
<li>
|
2011-01-13 14:53:12 +00:00
|
|
|
|
<a href="/contribute/translators/">
|
2011-01-19 13:37:40 +00:00
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'translate'" /></xsl:call-template>
|
2011-01-13 14:53:12 +00:00
|
|
|
|
</a>
|
2010-10-13 14:33:32 +00:00
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
<!-- Insert the appropriate translation notice -->
|
|
|
|
|
<xsl:if test="/buildinfo/document/@language!=/buildinfo/@original">
|
|
|
|
|
<xsl:choose>
|
|
|
|
|
<xsl:when test="/buildinfo/document/translator">
|
2011-01-19 13:37:40 +00:00
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'translator1a'" /></xsl:call-template>
|
2010-10-13 14:33:32 +00:00
|
|
|
|
<xsl:value-of select="/buildinfo/document/translator"/>
|
2011-01-19 13:37:40 +00:00
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'translator1b'" /></xsl:call-template>
|
2010-10-13 14:33:32 +00:00
|
|
|
|
</xsl:when>
|
|
|
|
|
<xsl:otherwise>
|
2011-01-19 13:37:40 +00:00
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'translator2'" /></xsl:call-template>
|
2010-10-13 14:33:32 +00:00
|
|
|
|
</xsl:otherwise>
|
|
|
|
|
</xsl:choose>
|
2011-01-19 13:37:40 +00:00
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'translator3a'" /></xsl:call-template>
|
2010-10-13 14:33:32 +00:00
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
|
<xsl:value-of select="/buildinfo/@filename"/>
|
|
|
|
|
<xsl:text>.en.html</xsl:text>
|
|
|
|
|
</xsl:attribute>
|
2011-01-19 13:37:40 +00:00
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'translator3b'" /></xsl:call-template>
|
2010-10-13 14:33:32 +00:00
|
|
|
|
</xsl:element>
|
2011-01-19 13:37:40 +00:00
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'translator3c'" /></xsl:call-template>
|
2010-10-13 14:33:32 +00:00
|
|
|
|
</xsl:if>
|
|
|
|
|
</p>
|
|
|
|
|
</div> <!-- /#notice -->
|
|
|
|
|
|
2011-01-23 14:58:27 +00:00
|
|
|
|
<!-- Sister organisations -->
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="id">sister-organisations</xsl:attribute>
|
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'fsfnetwork'" /></xsl:call-template>
|
|
|
|
|
</xsl:element>
|
2011-01-23 14:57:33 +00:00
|
|
|
|
</div> <!-- /#footer -->
|
2010-12-08 17:48:07 +00:00
|
|
|
|
|
|
|
|
|
<!-- AWstats javascript tracking code -->
|
|
|
|
|
<script language="javascript" type="text/javascript" src="/scripts/awstats_misc_tracker.js" ></script>
|
2010-12-08 18:08:04 +00:00
|
|
|
|
<noscript><img src="/scripts/awstats_misc_tracker.js?nojs=y" height="0" width="0" border="0" style="display: none" alt="script" /></noscript>
|
2010-12-08 17:48:07 +00:00
|
|
|
|
|
2010-10-13 14:33:32 +00:00
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:copy>
|
|
|
|
|
</xsl:template>
|
2010-10-13 14:30:20 +00:00
|
|
|
|
|
2010-10-13 14:33:32 +00:00
|
|
|
|
<!-- Insert local menu -->
|
|
|
|
|
<xsl:template match="localmenu">
|
|
|
|
|
<xsl:variable name="set">
|
|
|
|
|
<xsl:choose>
|
|
|
|
|
<xsl:when test="@set">
|
|
|
|
|
<xsl:value-of select="@set"/>
|
|
|
|
|
</xsl:when>
|
|
|
|
|
<xsl:otherwise>
|
|
|
|
|
<xsl:text>0</xsl:text>
|
|
|
|
|
</xsl:otherwise>
|
|
|
|
|
</xsl:choose>
|
|
|
|
|
</xsl:variable>
|
|
|
|
|
<xsl:variable name="dir">
|
|
|
|
|
<xsl:value-of select="/buildinfo/@dirname"/>
|
|
|
|
|
</xsl:variable>
|
|
|
|
|
<xsl:variable name="language">
|
|
|
|
|
<xsl:value-of select="/buildinfo/@language"/>
|
|
|
|
|
</xsl:variable>
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="class">localmenu</xsl:attribute>
|
|
|
|
|
<xsl:element name="p">
|
|
|
|
|
<xsl:text>[ </xsl:text>
|
|
|
|
|
<xsl:for-each select="/buildinfo/localmenuset/localmenuitems/menu[@dir=$dir and @set=$set]">
|
|
|
|
|
<xsl:sort select="@id"/>
|
|
|
|
|
<xsl:variable name="style"><xsl:value-of select="@style"/></xsl:variable>
|
|
|
|
|
<xsl:variable name="id"><xsl:value-of select="@id"/></xsl:variable>
|
|
|
|
|
<xsl:variable name="localmenutext">
|
|
|
|
|
<xsl:choose>
|
|
|
|
|
<xsl:when
|
2011-01-23 14:58:27 +00:00
|
|
|
|
test="/buildinfo/localmenuset/translate/lang_part[@dir=$dir and @id=$id and @language=$language]">
|
2010-10-13 14:33:32 +00:00
|
|
|
|
<xsl:value-of
|
2011-01-23 14:58:27 +00:00
|
|
|
|
select="/buildinfo/localmenuset/translate/lang_part[@dir=$dir and @id=$id and @language=$language]"/>
|
2010-10-13 14:33:32 +00:00
|
|
|
|
</xsl:when>
|
|
|
|
|
<xsl:otherwise>
|
|
|
|
|
<xsl:value-of
|
2011-01-23 14:58:27 +00:00
|
|
|
|
select="/buildinfo/localmenuset/translate/lang_part[@dir=$dir and @id=$id and @language='en']"/>
|
2010-10-13 14:33:32 +00:00
|
|
|
|
</xsl:otherwise>
|
|
|
|
|
</xsl:choose>
|
|
|
|
|
</xsl:variable>
|
|
|
|
|
<xsl:element name="span">
|
|
|
|
|
<xsl:attribute name="class">local_menu_item</xsl:attribute>
|
|
|
|
|
<xsl:choose>
|
2011-01-23 14:56:39 +00:00
|
|
|
|
<xsl:when test="not(substring-before(concat(/buildinfo/@filename, '.html'), string(.)))">
|
2010-10-13 14:33:32 +00:00
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
|
2010-10-13 14:30:20 +00:00
|
|
|
|
<xsl:value-of select="$localmenutext"/>
|
2010-10-13 14:33:32 +00:00
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:when>
|
|
|
|
|
<xsl:otherwise>
|
2010-10-13 16:02:03 +00:00
|
|
|
|
<xsl:attribute name="href">bamboo</xsl:attribute>
|
2011-01-23 14:58:27 +00:00
|
|
|
|
<xsl:value-of select="$localmenutext"/>
|
2010-10-13 14:33:32 +00:00
|
|
|
|
</xsl:otherwise>
|
|
|
|
|
</xsl:choose>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
<xsl:if test="position()!=last()">
|
|
|
|
|
<xsl:choose>
|
|
|
|
|
<xsl:when test="$style='number'">
|
|
|
|
|
<xsl:text> | </xsl:text>
|
|
|
|
|
</xsl:when>
|
|
|
|
|
<xsl:otherwise>
|
|
|
|
|
<xsl:text> ] [ </xsl:text>
|
|
|
|
|
</xsl:otherwise>
|
|
|
|
|
</xsl:choose>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
</xsl:for-each>
|
|
|
|
|
<xsl:text> ]</xsl:text>
|
|
|
|
|
|
2011-01-23 14:56:21 +00:00
|
|
|
|
</xsl:element> <!-- /wrapper-->
|
2008-12-07 21:07:01 +00:00
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
2010-05-14 09:54:35 +00:00
|
|
|
|
<!-- Ignore "latin" tags, used only for pritable material -->
|
|
|
|
|
<xsl:template match="latin">
|
|
|
|
|
<xsl:apply-templates select="@*|node()"/>
|
|
|
|
|
</xsl:template>
|
2008-12-07 21:07:01 +00:00
|
|
|
|
|
2007-05-05 16:34:57 +00:00
|
|
|
|
<!-- Do not copy non-HTML elements to output -->
|
2009-04-05 20:34:09 +00:00
|
|
|
|
<xsl:template match="timestamp|
|
|
|
|
|
translator|
|
|
|
|
|
buildinfo/set|
|
|
|
|
|
buildinfo/textset|
|
|
|
|
|
buildinfo/textsetbackup|
|
|
|
|
|
buildinfo/menuset|
|
|
|
|
|
buildinfo/trlist|
|
2009-11-16 17:24:47 +00:00
|
|
|
|
buildinfo/fundraising|
|
2011-01-21 16:48:21 +00:00
|
|
|
|
buildinfo/localmenuset|
|
2011-01-21 17:07:26 +00:00
|
|
|
|
tags"/>
|
2007-03-03 14:52:27 +00:00
|
|
|
|
|
2007-05-05 16:34:57 +00:00
|
|
|
|
<!-- For all other nodes, copy verbatim -->
|
2007-03-03 14:52:27 +00:00
|
|
|
|
<xsl:template match="@*|node()" priority="-1">
|
|
|
|
|
<xsl:copy>
|
|
|
|
|
<xsl:apply-templates select="@*|node()"/>
|
|
|
|
|
</xsl:copy>
|
|
|
|
|
</xsl:template>
|
|
|
|
|
</xsl:stylesheet>
|