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">
|
2007-03-03 14:52:27 +00:00
|
|
|
|
2007-05-05 16:34:57 +00:00
|
|
|
<xsl:output method="html" encoding="utf-8" indent="yes"
|
|
|
|
doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN"
|
|
|
|
doctype-system="http://www.w3.org/TR/REC-html40/loose.dtd"/>
|
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>
|
2009-05-27 20:53:17 +00:00
|
|
|
<xsl:if test="/buildinfo/@language='ar'">
|
|
|
|
<xsl:attribute name="dir">rtl</xsl:attribute>
|
|
|
|
</xsl:if>
|
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-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>
|
2010-01-15 12:35:05 +00:00
|
|
|
<link rel="stylesheet" media="all" href="/style/fsfeurope.css" type="text/css" />
|
|
|
|
<link rel="stylesheet" media="print" href="/style/print.css" type="text/css" />
|
2009-06-04 15:46:56 +00:00
|
|
|
<xsl:if test="/buildinfo/@language='ar'">
|
2010-01-15 12:35:05 +00:00
|
|
|
<link rel="stylesheet" media="all" href="/style/rtl.css" type="text/css" />
|
2009-06-04 15:46:56 +00:00
|
|
|
</xsl:if>
|
2010-06-22 10:06:08 +00:00
|
|
|
<link rel="shortcut icon" href="/graphics/fsfe.ico" type="image/x-icon" />
|
2008-12-19 13:02:46 +00:00
|
|
|
<xsl:element name="link">
|
2009-02-15 16:33:03 +00:00
|
|
|
<xsl:attribute name="rel">alternate</xsl:attribute>
|
|
|
|
<xsl:attribute name="title">FSFE <xsl:value-of select="/buildinfo/textset/text[@id='menu1/news']" /></xsl:attribute>
|
|
|
|
<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>
|
|
|
|
<xsl:element name="link">
|
|
|
|
<xsl:attribute name="rel">alternate</xsl:attribute>
|
|
|
|
<xsl:attribute name="title">FSFE <xsl:value-of select="/buildinfo/textset/text[@id='menu1/events']" /></xsl:attribute>
|
|
|
|
<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>
|
2010-03-23 15:03:28 +00:00
|
|
|
<script src="/scripts/placeholder.js"></script>
|
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>
|
|
|
|
|
|
|
|
<!-- Apply article rules -->
|
|
|
|
<xsl:if test = "string(/buildinfo/document/head/meta[@name='author-name']/@content)">
|
|
|
|
<xsl:element name="div">
|
|
|
|
<xsl:attribute name="id">article-metadata</xsl:attribute>
|
|
|
|
<xsl:element name="p">
|
|
|
|
<span class="label"><xsl:apply-templates select="/buildinfo/textset/text[@id='author']/node()" />: </span>
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="/buildinfo/document/head/meta[@name='author-link']">
|
|
|
|
<xsl:variable name="author-link" select="/buildinfo/document/head/meta[@name='author-link']/@content" />
|
2010-10-05 16:18:12 +00:00
|
|
|
<a rel='author' href='{$author-link}'>
|
2010-10-05 13:44:26 +00:00
|
|
|
<xsl:value-of select="/buildinfo/document/head/meta[@name='author-name']/@content" /> </a>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:value-of select="/buildinfo/document/head/meta[@name='author-name']/@content" />
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
<span class="label"> <xsl:apply-templates select="/buildinfo/textset/text[@id='published']/node()" />: </span><xsl:value-of select="/buildinfo/document/head/meta[@name='publication-date']/@content" />
|
|
|
|
</xsl:element>
|
|
|
|
</xsl:element>
|
|
|
|
</xsl:if>
|
|
|
|
<!-- End Apply article rules -->
|
|
|
|
|
|
|
|
</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 -->
|
|
|
|
<xsl:comment>This file was generated by an XSLT script. Please do not edit.</xsl:comment>
|
|
|
|
|
|
|
|
<xsl:element name="div">
|
2009-11-10 11:45:11 +00:00
|
|
|
<xsl:attribute name="id">wrapper</xsl:attribute>
|
2009-11-10 11:52:47 +00:00
|
|
|
<xsl:comment>Unnecessary div, for IE only</xsl:comment>
|
|
|
|
|
|
|
|
<xsl:element name="p">
|
2007-05-05 16:34:57 +00:00
|
|
|
<xsl:attribute name="class">n</xsl:attribute>
|
2009-11-10 11:52:47 +00:00
|
|
|
<xsl:comment>Give non-graphical browsers a way to skip the menu.</xsl:comment>
|
2009-11-10 11:45:11 +00:00
|
|
|
<xsl:element name="a">
|
|
|
|
<!--<xsl:attribute name="id">top</xsl:attribute>-->
|
|
|
|
<xsl:attribute name="href">#content</xsl:attribute>
|
|
|
|
<xsl:text>Skip menu</xsl:text>
|
|
|
|
</xsl:element>
|
2007-05-05 16:34:57 +00:00
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
<!-- Menu bar -->
|
|
|
|
<xsl:element name="div">
|
2009-02-27 14:55:12 +00:00
|
|
|
<xsl:attribute name="id">menu</xsl:attribute>
|
2007-05-05 16:34:57 +00:00
|
|
|
|
|
|
|
<!-- Logo -->
|
|
|
|
<xsl:element name="div">
|
2009-02-27 14:55:12 +00:00
|
|
|
<xsl:attribute name="id">logo</xsl:attribute>
|
2007-05-05 16:34:57 +00:00
|
|
|
<xsl:element name="a">
|
|
|
|
<xsl:attribute name="href">/</xsl:attribute>
|
2007-05-06 16:17:23 +00:00
|
|
|
<xsl:element name="img">
|
2008-09-28 22:30:23 +00:00
|
|
|
<xsl:attribute name="alt">FSFE Logo</xsl:attribute>
|
2010-02-15 15:30:35 +00:00
|
|
|
<xsl:attribute name="src">/graphics/logo.png</xsl:attribute>
|
2007-05-06 16:17:23 +00:00
|
|
|
</xsl:element>
|
2007-05-05 16:34:57 +00:00
|
|
|
</xsl:element>
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
<!-- Menu -->
|
2009-03-05 00:24:23 +00:00
|
|
|
<xsl:for-each select="/buildinfo/menuset/menu[not(@parent)]">
|
2010-01-21 19:04:30 +00:00
|
|
|
<xsl:sort select="@id" />
|
2010-01-23 11:16:38 +00:00
|
|
|
<xsl:variable name="menu"><xsl:value-of select="@id" /></xsl:variable>
|
2009-03-05 00:24:23 +00:00
|
|
|
<xsl:element name="ul">
|
|
|
|
<xsl:for-each select="/buildinfo/menuset/menu[@parent=$menu]">
|
2010-01-21 19:04:30 +00:00
|
|
|
<!--<xsl:sort select="@id"/>-->
|
2010-01-23 11:16:38 +00:00
|
|
|
<xsl:sort select="@priority" />
|
|
|
|
<xsl:variable name="id"><xsl:value-of select="@id" /></xsl:variable>
|
2009-03-05 00:24:23 +00:00
|
|
|
<xsl:element name="li">
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="not(string(.))">
|
2009-04-05 20:34:09 +00:00
|
|
|
<xsl:value-of select="/buildinfo/textset/text[@id=$id]|
|
2009-11-10 11:45:11 +00:00
|
|
|
/buildinfo/textsetbackup/text[@id=$id
|
|
|
|
and not(@id=/buildinfo/textset/text/@id)]"/>
|
2009-03-05 00:24:23 +00:00
|
|
|
</xsl:when>
|
|
|
|
<xsl:when test=". = concat(/buildinfo/@filename ,'.html')">
|
2009-04-05 20:34:09 +00:00
|
|
|
<xsl:value-of select="/buildinfo/textset/text[@id=$id]|
|
2009-11-10 11:45:11 +00:00
|
|
|
/buildinfo/textsetbackup/text[@id=$id
|
|
|
|
and not(@id=/buildinfo/textset/text/@id)]"/>
|
2009-03-05 00:24:23 +00:00
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
2008-05-18 13:52:02 +00:00
|
|
|
<xsl:element name="a">
|
2010-01-23 11:16:38 +00:00
|
|
|
<xsl:attribute name="href"><xsl:value-of select="." /></xsl:attribute>
|
2009-04-05 20:34:09 +00:00
|
|
|
<xsl:value-of select="/buildinfo/textset/text[@id=$id]|
|
2009-11-10 11:45:11 +00:00
|
|
|
/buildinfo/textsetbackup/text[@id=$id
|
|
|
|
and not(@id=/buildinfo/textset/text/@id)]"/>
|
2009-03-05 00:24:23 +00:00
|
|
|
</xsl:element>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
<!-- Submenu -->
|
2009-04-02 16:27:40 +00:00
|
|
|
<xsl:if test="/buildinfo/menuset/menu[@parent=$id]">
|
2009-04-02 16:44:43 +00:00
|
|
|
<xsl:element name="ul">
|
2009-04-02 16:27:40 +00:00
|
|
|
<xsl:for-each select="/buildinfo/menuset/menu[@parent=$id]">
|
2010-01-22 12:00:46 +00:00
|
|
|
<!--<xsl:sort select="@id" />-->
|
2010-01-23 11:16:38 +00:00
|
|
|
<xsl:sort select="@priority" />
|
2009-04-02 16:27:40 +00:00
|
|
|
<xsl:variable name="mid"><xsl:value-of select="@id" /></xsl:variable>
|
|
|
|
<xsl:element name="li">
|
|
|
|
<xsl:attribute name="class">submenu</xsl:attribute>
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test=". = concat(/buildinfo/@filename ,'.html')">
|
2009-04-05 20:34:09 +00:00
|
|
|
<xsl:value-of select="/buildinfo/textset/text[@id=$mid]|
|
2009-11-10 11:45:11 +00:00
|
|
|
/buildinfo/textsetbackup/text[@id=$mid
|
|
|
|
and not(@id=/buildinfo/textset/text/@id)]"/>
|
2009-04-02 16:27:40 +00:00
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:element name="a">
|
|
|
|
<xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
|
2009-04-05 20:34:09 +00:00
|
|
|
<xsl:value-of select="/buildinfo/textset/text[@id=$mid]|
|
2009-11-10 11:45:11 +00:00
|
|
|
/buildinfo/textsetbackup/text[@id=$mid
|
|
|
|
and not(@id=/buildinfo/textset/text/@id)]"/>
|
2009-04-02 16:27:40 +00:00
|
|
|
</xsl:element>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:element>
|
|
|
|
</xsl:for-each>
|
2009-04-02 16:44:43 +00:00
|
|
|
</xsl:element> <!-- /submenu ul -->
|
2009-04-02 16:27:40 +00:00
|
|
|
</xsl:if>
|
2009-03-05 00:24:23 +00:00
|
|
|
</xsl:element> <!-- /li -->
|
2007-03-03 14:52:27 +00:00
|
|
|
</xsl:for-each>
|
2009-04-02 15:30:33 +00:00
|
|
|
</xsl:element> <!-- /ul -->
|
2009-03-05 00:24:23 +00:00
|
|
|
</xsl:for-each>
|
2010-03-23 11:01:05 +00:00
|
|
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
<xsl:attribute name="id">search</xsl:attribute>
|
2010-03-23 15:03:28 +00:00
|
|
|
|
2010-03-23 11:01:05 +00:00
|
|
|
<xsl:element name="h2">
|
|
|
|
<xsl:attribute name="class">n</xsl:attribute>
|
|
|
|
<xsl:value-of select="/buildinfo/textset/text[@id='search']" />
|
|
|
|
</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="input">
|
|
|
|
<xsl:attribute name="type">hidden</xsl:attribute>
|
|
|
|
<xsl:attribute name="name">verify</xsl:attribute>
|
|
|
|
<xsl:attribute name="value">true</xsl:attribute>
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
<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>
|
2010-07-06 21:29:17 +00:00
|
|
|
<xsl:attribute name="name">prefermaskfilter</xsl:attribute>
|
2010-03-23 11:01:05 +00:00
|
|
|
<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>
|
|
|
|
|
|
|
|
<xsl:element name="p">
|
|
|
|
<xsl:element name="input">
|
|
|
|
<xsl:attribute name="type">text</xsl:attribute>
|
|
|
|
<xsl:attribute name="name">query</xsl:attribute>
|
|
|
|
<xsl:attribute name="placeholder">
|
|
|
|
<xsl:value-of select="/buildinfo/textset/text[@id='search']" />
|
|
|
|
</xsl:attribute>
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
</xsl:element>
|
|
|
|
</xsl:element>
|
2007-05-05 16:34:57 +00:00
|
|
|
|
2007-06-22 21:29:39 +00:00
|
|
|
<!-- Join the Fellowship -->
|
2010-08-10 14:18:09 +00:00
|
|
|
<xsl:element name="div">
|
|
|
|
<xsl:attribute name="id">fellowship</xsl:attribute>
|
|
|
|
<xsl:element name="a">
|
|
|
|
<xsl:attribute name="href">http://fellowship.fsfe.org/about</xsl:attribute>
|
|
|
|
<xsl:element name="img">
|
|
|
|
<xsl:attribute name="alt">Join the Fellowship!</xsl:attribute>
|
|
|
|
<xsl:attribute name="src">/graphics/join-fellowship.png</xsl:attribute>
|
|
|
|
</xsl:element>
|
2007-06-22 21:29:39 +00:00
|
|
|
</xsl:element>
|
|
|
|
</xsl:element>
|
|
|
|
|
2010-09-27 08:59:16 +00:00
|
|
|
<!-- PDF Readers Campaign -->
|
|
|
|
<xsl:element name="div">
|
|
|
|
<xsl:attribute name="id">pdfr</xsl:attribute>
|
|
|
|
<xsl:element name="a">
|
|
|
|
<xsl:attribute name="href">http://www.fsfe.org/campaigns/pdfreaders</xsl:attribute>
|
|
|
|
<xsl:element name="img">
|
|
|
|
<xsl:attribute name="alt">PDF Readers Campaign</xsl:attribute>
|
|
|
|
<xsl:attribute name="src">/graphics/pdf-readers-lang-neutral.png</xsl:attribute>
|
|
|
|
</xsl:element>
|
|
|
|
</xsl:element>
|
|
|
|
</xsl:element>
|
|
|
|
|
2010-08-06 15:20:11 +00:00
|
|
|
<!--
|
2010-08-10 14:18:09 +00:00
|
|
|
<div id="newsletter">
|
|
|
|
<p>
|
|
|
|
Subscribe to <a href="/news/">our newsletter</a>!
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<form action="http://mail.fsfeurope.org/mailman/subscribe/press-release" method="post">
|
2010-02-03 13:44:56 +00:00
|
|
|
<p>
|
2010-08-10 14:18:09 +00:00
|
|
|
<input type="text" name="email" placeholder="you@example.com" />
|
|
|
|
<input type="submit" value="Sign up" />
|
2010-02-03 13:44:56 +00:00
|
|
|
</p>
|
2010-08-10 14:18:09 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
2010-08-06 15:36:43 +00:00
|
|
|
-->
|
2009-03-23 19:04:45 +00:00
|
|
|
</xsl:element>
|
|
|
|
<!-- End Menu bar -->
|
|
|
|
|
|
|
|
<!-- Language bar -->
|
|
|
|
<xsl:element name="div">
|
|
|
|
<xsl:attribute name="id">language</xsl:attribute>
|
|
|
|
|
2007-05-05 16:34:57 +00:00
|
|
|
<!-- Translation list -->
|
|
|
|
<xsl:element name="ul">
|
|
|
|
<xsl:for-each select="/buildinfo/trlist/tr">
|
|
|
|
<xsl:sort select="@id"/>
|
|
|
|
<xsl:element name="li">
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="@id=/buildinfo/@language">
|
|
|
|
<xsl:value-of select="." disable-output-escaping="yes"/>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<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>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:element>
|
|
|
|
</xsl:for-each>
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
<!-- Outdated note -->
|
|
|
|
<xsl:if test="/buildinfo/@outdated='yes'">
|
|
|
|
<xsl:element name="p">
|
|
|
|
<xsl:apply-templates select="/buildinfo/textset/text[@id='outdated']/node()" />
|
|
|
|
</xsl:element>
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
<!-- Missing translation note -->
|
|
|
|
<xsl:if test="/buildinfo/@language!=/buildinfo/document/@language">
|
|
|
|
<xsl:element name="p">
|
|
|
|
<xsl:apply-templates select="/buildinfo/textset/text[@id='notranslation']/node()" />
|
|
|
|
</xsl:element>
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
</xsl:element>
|
|
|
|
<!-- End Language bar -->
|
2010-09-24 15:50:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- Start info box -->
|
|
|
|
<xsl:element name="div">
|
|
|
|
<xsl:attribute name="id">infobox</xsl:attribute>
|
|
|
|
<xsl:if test = "/buildinfo/document/head/meta[@name='under-construction' and @content='true']">
|
|
|
|
<xsl:element name="p">
|
|
|
|
<xsl:apply-templates select="/buildinfo/textset/text[@id='under-construction']/node()" />
|
|
|
|
</xsl:element>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:element>
|
|
|
|
<!-- End info box -->
|
|
|
|
|
2007-05-05 16:34:57 +00:00
|
|
|
|
2010-01-21 15:55:00 +00:00
|
|
|
<!-- Fundraising box
|
2009-11-16 17:24:47 +00:00
|
|
|
<xsl:if test="/buildinfo/fundraising">
|
|
|
|
<xsl:element name="div">
|
|
|
|
<xsl:attribute name="id">fundraising</xsl:attribute>
|
|
|
|
<xsl:element name="div">
|
|
|
|
<xsl:attribute name="class">box</xsl:attribute>
|
2010-01-12 14:08:49 +00:00
|
|
|
<xsl:if test="/buildinfo/fundraising/call1">
|
|
|
|
<xsl:element name="p">
|
|
|
|
<xsl:attribute name="class">call1</xsl:attribute>
|
|
|
|
<xsl:apply-templates select="/buildinfo/fundraising/call1/node()"/>
|
|
|
|
</xsl:element>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="/buildinfo/fundraising/call2">
|
|
|
|
<xsl:element name="p">
|
|
|
|
<xsl:attribute name="class">call2</xsl:attribute>
|
|
|
|
<xsl:apply-templates select="/buildinfo/fundraising/call2/node()"/>
|
|
|
|
</xsl:element>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="/buildinfo/fundraising/current">
|
2009-11-16 17:24:47 +00:00
|
|
|
<xsl:element name="div">
|
2010-01-12 14:08:49 +00:00
|
|
|
<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>
|
2009-11-16 17:24:47 +00:00
|
|
|
</xsl:element>
|
2010-01-12 14:08:49 +00:00
|
|
|
<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>
|
2009-11-16 17:24:47 +00:00
|
|
|
</xsl:element>
|
|
|
|
</xsl:element>
|
|
|
|
</xsl:if>
|
2010-01-21 15:55:00 +00:00
|
|
|
End Fundraising box -->
|
2010-02-11 15:57:10 +00:00
|
|
|
|
2007-05-05 16:34:57 +00:00
|
|
|
<!-- Content -->
|
|
|
|
<xsl:element name="div">
|
2007-05-06 17:15:52 +00:00
|
|
|
<xsl:attribute name="id">content</xsl:attribute>
|
2007-05-06 16:25:47 +00:00
|
|
|
|
2007-05-05 16:34:57 +00:00
|
|
|
<!-- Here goes the actual content of the <body> node of the input file -->
|
|
|
|
<xsl:apply-templates select="node()"/>
|
2007-03-03 14:52:27 +00:00
|
|
|
|
2007-05-05 16:34:57 +00:00
|
|
|
<!-- Link to top -->
|
2009-11-10 11:45:11 +00:00
|
|
|
<xsl:element name="p">
|
2007-05-05 16:34:57 +00:00
|
|
|
<xsl:attribute name="class">n</xsl:attribute>
|
2009-11-10 11:45:11 +00:00
|
|
|
<xsl:element name="a">
|
|
|
|
<xsl:attribute name="href">#top</xsl:attribute>
|
|
|
|
<xsl:text>To top</xsl:text>
|
|
|
|
</xsl:element>
|
2007-05-05 16:34:57 +00:00
|
|
|
</xsl:element>
|
|
|
|
</xsl:element>
|
|
|
|
<!-- End Content -->
|
|
|
|
|
|
|
|
<!-- Footer -->
|
2010-07-31 21:19:39 +00:00
|
|
|
<div id="footer">
|
|
|
|
<div id="notice">
|
|
|
|
<p>
|
|
|
|
Copyright © 2001-2010 <a href="/">Free Software
|
|
|
|
Foundation Europe</a>.<br />
|
2010-01-22 16:09:21 +00:00
|
|
|
|
2010-07-31 21:19:39 +00:00
|
|
|
<xsl:apply-templates select="/buildinfo/textset/text[@id='permission']/node()" /><br />
|
2007-05-05 16:34:57 +00:00
|
|
|
|
2010-07-31 21:19:39 +00:00
|
|
|
<!-- "Last changed" magic -->
|
|
|
|
<xsl:variable name="timestamp">
|
|
|
|
<xsl:value-of select="/buildinfo/document/timestamp"/>
|
2007-03-03 14:52:27 +00:00
|
|
|
</xsl:variable>
|
2010-07-31 21:19:39 +00:00
|
|
|
<!-- 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: '), ' $')"/>
|
|
|
|
</xsl:variable>
|
|
|
|
<xsl:apply-templates select="/buildinfo/textset/text[@id='lastchanged']/node()"/>
|
|
|
|
<xsl:value-of select="translate ($Date, '/', '-')"/>
|
|
|
|
(<xsl:value-of select="$Author"/>)
|
|
|
|
</xsl:if>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<!-- Link to the XHTML source -->
|
|
|
|
<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>
|
|
|
|
<xsl:text>Source code</xsl:text>
|
|
|
|
</xsl:element>
|
|
|
|
</li>
|
2007-05-05 16:34:57 +00:00
|
|
|
|
2010-07-31 21:19:39 +00:00
|
|
|
<li>
|
|
|
|
<a href="/contribute/translators/">Translate this
|
|
|
|
page?</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2010-02-12 11:10:10 +00:00
|
|
|
|
2010-07-31 21:19:39 +00:00
|
|
|
<p>
|
|
|
|
<!-- Insert the appropriate translation notice -->
|
|
|
|
<xsl:if test="/buildinfo/document/@language!=/buildinfo/@original">
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="/buildinfo/document/translator">
|
|
|
|
<xsl:value-of select="/buildinfo/textset/text[@id='translator1a']"/>
|
|
|
|
<xsl:value-of select="/buildinfo/document/translator"/>
|
|
|
|
<xsl:value-of select="/buildinfo/textset/text[@id='translator1b']"/>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:value-of select="/buildinfo/textset/text[@id='translator2']"/>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
<xsl:value-of select="/buildinfo/textset/text[@id='translator3a']"/>
|
|
|
|
<xsl:element name="a">
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
<xsl:value-of select="/buildinfo/@filename"/>
|
|
|
|
<xsl:text>.en.html</xsl:text>
|
|
|
|
</xsl:attribute>
|
|
|
|
<xsl:value-of select="/buildinfo/textset/text[@id='translator3b']"/>
|
|
|
|
</xsl:element>
|
|
|
|
<xsl:value-of select="/buildinfo/textset/text[@id='translator3c']"/>
|
|
|
|
</xsl:if>
|
|
|
|
</p>
|
|
|
|
</div> <!-- /#notice -->
|
|
|
|
|
2010-08-10 14:18:09 +00:00
|
|
|
<!--
|
2010-07-31 21:19:39 +00:00
|
|
|
<div id="sister_organizations">
|
|
|
|
<h2>Sister organizations</h2>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li><a href="http://fsf.org/">North America</a></li>
|
|
|
|
<li><a href="http://fsf.org.in/">India</a></li>
|
|
|
|
<li><a href="http://fsfla.org/">Latin America</a></li>
|
|
|
|
</ul>
|
2010-08-10 14:18:09 +00:00
|
|
|
</div>
|
|
|
|
-->
|
2010-09-02 13:47:07 +00:00
|
|
|
|
2010-09-24 15:50:28 +00:00
|
|
|
|
2010-09-02 13:47:07 +00:00
|
|
|
<!-- FSF* netwok note -->
|
|
|
|
<p id="fsfnetwork">
|
|
|
|
<xsl:apply-templates select="/buildinfo/textset/text[@id='fsfnetwork']/node()"/>
|
|
|
|
</p>
|
|
|
|
|
2010-07-31 21:19:39 +00:00
|
|
|
</div> <!-- /#footer -->
|
2007-05-05 16:34:57 +00:00
|
|
|
</xsl:element>
|
|
|
|
</xsl:copy>
|
2007-03-03 14:52:27 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
2008-12-07 21:07:01 +00:00
|
|
|
<!-- Insert local menu -->
|
|
|
|
<xsl:template match="localmenu">
|
|
|
|
<xsl:variable name="set">
|
|
|
|
<xsl:choose>
|
2009-03-05 00:24:23 +00:00
|
|
|
<xsl:when test="@set">
|
|
|
|
<xsl:value-of select="@set"/>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:text>0</xsl:text>
|
|
|
|
</xsl:otherwise>
|
2008-12-07 21:07:01 +00:00
|
|
|
</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">
|
2009-03-05 00:24:23 +00:00
|
|
|
<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
|
|
|
|
test="/buildinfo/localmenuset/translate/lang_part[@dir=$dir and @id=$id and @language=$language]">
|
|
|
|
<xsl:value-of
|
|
|
|
select="/buildinfo/localmenuset/translate/lang_part[@dir=$dir and @id=$id and @language=$language]"/>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:value-of
|
|
|
|
select="/buildinfo/localmenuset/translate/lang_part[@dir=$dir and @id=$id and @language='en']"/>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:variable>
|
|
|
|
<xsl:element name="span">
|
|
|
|
<xsl:attribute name="class">local_menu_item</xsl:attribute>
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="not(substring-before(concat(/buildinfo/@filename ,'.html'), string(.)))">
|
|
|
|
<xsl:element name="a">
|
|
|
|
<xsl:attribute name="href"><xsl:value-of select="."/></xsl:attribute>
|
|
|
|
<xsl:value-of select="$localmenutext"/>
|
|
|
|
</xsl:element>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:value-of select="$localmenutext"/>
|
|
|
|
</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>
|
2008-12-07 21:07:01 +00:00
|
|
|
</xsl:element>
|
|
|
|
</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|
|
2009-04-05 20:34:09 +00:00
|
|
|
buildinfo/localmenuset"/>
|
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>
|
2009-11-10 11:45:11 +00:00
|
|
|
|