2007-05-05 16:34:57 +00:00
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2007-03-03 14:52:27 +00:00
|
|
|
|
|
2013-01-09 02:38:01 +00:00
|
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
2011-01-23 15:17:24 +00:00
|
|
|
|
|
2011-01-24 11:28:13 +00:00
|
|
|
|
<xsl:import href="tools/xsltsl/translations.xsl" />
|
2011-04-08 20:04:40 +00:00
|
|
|
|
<xsl:import href="tools/xsltsl/static-elements.xsl" />
|
2011-04-25 12:24:53 +00:00
|
|
|
|
|
|
|
|
|
<!-- HTML 5 compatibility doctype, since our XSLT parser doesn't support disabling output escaping -->
|
2011-04-25 11:58:44 +00:00
|
|
|
|
<xsl:output method="html" encoding="utf-8" indent="yes" doctype-system="about:legacy-compat" />
|
2011-04-08 20:04:40 +00:00
|
|
|
|
|
2012-02-11 18:06:19 +00:00
|
|
|
|
<xsl:variable name="mode">
|
2012-02-15 09:30:38 +00:00
|
|
|
|
<xsl:value-of select="'normal'" /> <!-- can be either 'normal' or 'valentine' -->
|
2012-02-11 18:06:19 +00:00
|
|
|
|
</xsl:variable>
|
|
|
|
|
|
2007-05-05 16:34:57 +00:00
|
|
|
|
<!-- The top level element of the input file is "buildinfo" -->
|
2013-01-09 02:38:01 +00:00
|
|
|
|
<xsl:template match="buildinfo">
|
|
|
|
|
<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>
|
2013-01-09 02:38:01 +00:00
|
|
|
|
<xsl:apply-templates select="node()"/>
|
2007-03-03 14:52:27 +00:00
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:template>
|
2013-01-09 02:38:01 +00:00
|
|
|
|
|
2007-05-05 16:34:57 +00:00
|
|
|
|
<!-- HTML head -->
|
|
|
|
|
<xsl:template match="head">
|
2013-01-09 02:38:01 +00:00
|
|
|
|
<xsl:copy>
|
|
|
|
|
|
|
|
|
|
<!-- 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-04-25 11:52:06 +00:00
|
|
|
|
|
2013-01-09 02:38:01 +00:00
|
|
|
|
<!-- For pages used on external web servers, load the CSS from absolute URL -->
|
|
|
|
|
<xsl:variable name="urlprefix"><xsl:if test="/buildinfo/document/@external">https://www.fsfe.org</xsl:if></xsl:variable>
|
|
|
|
|
|
2011-01-31 16:11:09 +00:00
|
|
|
|
<xsl:element name="link">
|
|
|
|
|
<xsl:attribute name="rel">stylesheet</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="media">all</xsl:attribute>
|
2013-01-09 02:38:01 +00:00
|
|
|
|
<xsl:attribute name="href"><xsl:value-of select="$urlprefix"/>/look/generic.css</xsl:attribute>
|
2011-01-31 16:11:09 +00:00
|
|
|
|
<xsl:attribute name="type">text/css</xsl:attribute>
|
|
|
|
|
</xsl:element>
|
2013-01-09 02:38:01 +00:00
|
|
|
|
|
|
|
|
|
<xsl:if test="$mode = 'valentine'">
|
|
|
|
|
<xsl:element name="link">
|
|
|
|
|
<xsl:attribute name="rel">stylesheet</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="media">all</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="href"><xsl:value-of select="$urlprefix"/>/look/genericv.css</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="type">text/css</xsl:attribute>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
|
2011-01-31 16:11:09 +00:00
|
|
|
|
<xsl:element name="link">
|
|
|
|
|
<xsl:attribute name="rel">stylesheet</xsl:attribute>
|
2013-01-09 02:38:01 +00:00
|
|
|
|
<xsl:attribute name="media">print</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="href"><xsl:value-of select="$urlprefix"/>/look/print.css</xsl:attribute>
|
2011-01-31 16:11:09 +00:00
|
|
|
|
<xsl:attribute name="type">text/css</xsl:attribute>
|
|
|
|
|
</xsl:element>
|
2013-01-09 02:38:01 +00:00
|
|
|
|
|
|
|
|
|
<xsl:if test="/buildinfo/@language='ar'">
|
|
|
|
|
<xsl:element name="link">
|
|
|
|
|
<xsl:attribute name="rel">stylesheet</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="media">all</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="href"><xsl:value-of select="$urlprefix"/>/look/rtl.css</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="type">text/css</xsl:attribute>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
|
2011-01-31 16:11:09 +00:00
|
|
|
|
<xsl:element name="link">
|
2013-01-09 02:38:01 +00:00
|
|
|
|
<xsl:attribute name="rel">icon</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="href">
|
|
|
|
|
<xsl:value-of select="$urlprefix"/>
|
2012-02-11 18:06:19 +00:00
|
|
|
|
<xsl:choose>
|
2013-01-09 02:38:01 +00:00
|
|
|
|
<xsl:when test="$mode = 'valentine'">/graphics/fsfev.png</xsl:when>
|
|
|
|
|
<xsl:otherwise>/graphics/fsfe.ico</xsl:otherwise>
|
2012-02-11 18:06:19 +00:00
|
|
|
|
</xsl:choose>
|
|
|
|
|
</xsl:attribute>
|
2013-01-09 02:38:01 +00:00
|
|
|
|
<xsl:attribute name="type">image/x-icon</xsl:attribute>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
|
<xsl:element name="link">
|
|
|
|
|
<xsl:attribute name="rel">alternate</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="title">FSFE <xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'menu1/news'" /></xsl:call-template></xsl:attribute>
|
|
|
|
|
<xsl:attribute name="href"><xsl:value-of select="$urlprefix"/>/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:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'menu1/events'" /></xsl:call-template></xsl:attribute>
|
|
|
|
|
<xsl:attribute name="href"><xsl:value-of select="$urlprefix"/>/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>
|
2012-04-21 18:06:58 +00:00
|
|
|
|
|
2013-01-09 02:38:01 +00:00
|
|
|
|
<xsl:for-each select="/buildinfo/trlist/tr">
|
|
|
|
|
<xsl:sort select="@id"/>
|
|
|
|
|
<xsl:element name="link">
|
|
|
|
|
<xsl:attribute name="type">text/html</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="rel">alternate</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="hreflang"><xsl:value-of select="@id" /></xsl:attribute>
|
|
|
|
|
<xsl:attribute name="lang"><xsl:value-of select="@id" /></xsl:attribute>
|
|
|
|
|
<xsl:attribute name="href"><xsl:value-of select="/buildinfo/@filename"/>.<xsl:value-of select="@id"/>.html</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="title"><xsl:value-of select="." disable-output-escaping="yes" /></xsl:attribute>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:for-each>
|
|
|
|
|
|
|
|
|
|
<xsl:for-each select="/buildinfo/document/author">
|
|
|
|
|
<xsl:variable name="id">
|
|
|
|
|
<xsl:value-of select="@id" />
|
|
|
|
|
</xsl:variable>
|
|
|
|
|
<xsl:element name="meta">
|
|
|
|
|
<xsl:attribute name="name">author</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="content">
|
|
|
|
|
<xsl:choose>
|
|
|
|
|
<xsl:when test="@id and document('about/people/people.en.xml')/personset/person[@id=$id]">
|
|
|
|
|
<xsl:value-of select="document('about/people/people.en.xml')/personset/person[@id=$id]/name" />
|
|
|
|
|
</xsl:when>
|
|
|
|
|
<xsl:otherwise>
|
|
|
|
|
<xsl:value-of select="name" />
|
|
|
|
|
</xsl:otherwise>
|
|
|
|
|
</xsl:choose>
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:for-each>
|
|
|
|
|
|
|
|
|
|
<script src="/scripts/jquery.js"></script>
|
|
|
|
|
<script src="/scripts/master.js"></script>
|
|
|
|
|
<script src="/scripts/placeholder.js"></script>
|
|
|
|
|
<script src="/scripts/highlight.pack.js"></script>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
hljs.tabReplace = " ";
|
2012-07-07 18:04:49 +00:00
|
|
|
|
// hljs.initHighligtingOnLoad();
|
|
|
|
|
// above line throws error: Uncaught TypeError: Object [object Object] has no method 'initHighligtingOnLoad'
|
2013-01-09 02:38:01 +00:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<xsl:comment>
|
|
|
|
|
<![CDATA[
|
|
|
|
|
[if lt IE 8]>
|
|
|
|
|
<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"></script>
|
|
|
|
|
<![endif]
|
|
|
|
|
]]>
|
|
|
|
|
</xsl:comment>
|
|
|
|
|
|
|
|
|
|
<xsl:apply-templates select="@*|node()"/>
|
|
|
|
|
</xsl:copy>
|
2007-05-05 16:34:57 +00:00
|
|
|
|
</xsl:template>
|
2010-10-05 13:44:26 +00:00
|
|
|
|
|
|
|
|
|
<!-- Modify H1 -->
|
|
|
|
|
<xsl:template match="h1">
|
2011-04-08 19:13:58 +00:00
|
|
|
|
|
2011-04-08 19:30:22 +00:00
|
|
|
|
<!-- Apply news page PRE-rules -->
|
2011-04-08 20:04:40 +00:00
|
|
|
|
<xsl:if test="string(/buildinfo/document/@newsdate) and
|
|
|
|
|
(not(string(/buildinfo/document/@type)) or
|
|
|
|
|
/buildinfo/document/@type != 'newsletter')">
|
2011-04-08 19:30:22 +00:00
|
|
|
|
|
|
|
|
|
<!-- add link to press/press.xx.html -->
|
|
|
|
|
<xsl:element name="p">
|
|
|
|
|
<xsl:attribute name="id">category</xsl:attribute>
|
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="href">/press/press.<xsl:value-of select="/buildinfo/@language"/>.html</xsl:attribute>
|
2011-11-10 15:15:12 +00:00
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'press'" /></xsl:call-template>
|
2011-04-08 19:30:22 +00:00
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
|
</xsl:if>
|
2011-04-08 19:47:57 +00:00
|
|
|
|
|
|
|
|
|
<!-- Apply newsletter page PRE-rules -->
|
2011-04-08 19:49:43 +00:00
|
|
|
|
<xsl:if test="string(/buildinfo/document/@newsdate) and /buildinfo/document/@type = 'newsletter'">
|
2011-04-08 20:18:26 +00:00
|
|
|
|
<xsl:element name="p">
|
|
|
|
|
<xsl:attribute name="id">category</xsl:attribute>
|
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="href">/news/newsletter.<xsl:value-of select="/buildinfo/@language"/>.html</xsl:attribute>
|
2011-11-10 15:15:12 +00:00
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'newsletter'" /></xsl:call-template>
|
2011-04-08 20:18:26 +00:00
|
|
|
|
</xsl:element>
|
2011-04-08 19:47:57 +00:00
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
|
2013-01-09 02:38:01 +00:00
|
|
|
|
<!-- auto generate ID for headings if doesn't already exist -->
|
2012-04-21 17:30:25 +00:00
|
|
|
|
<xsl:call-template name="generate-id" />
|
2011-04-08 19:47:57 +00:00
|
|
|
|
|
2010-10-20 12:05:38 +00:00
|
|
|
|
<!-- Apply news page rules -->
|
2011-04-08 20:04:40 +00:00
|
|
|
|
<xsl:if test="string(/buildinfo/document/@newsdate) and
|
|
|
|
|
(not(string(/buildinfo/document/@type)) or
|
|
|
|
|
/buildinfo/document/@type != 'newsletter')">
|
2011-04-08 19:30:22 +00:00
|
|
|
|
|
|
|
|
|
<!-- add publishing information (author, date) -->
|
2010-10-20 12:05:38 +00:00
|
|
|
|
<xsl:element name="div">
|
2011-04-08 19:13:58 +00:00
|
|
|
|
<xsl:attribute name="id">article-metadata</xsl:attribute>
|
|
|
|
|
<xsl:element name="p">
|
|
|
|
|
<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/@newsdate" />
|
|
|
|
|
</xsl:element>
|
2010-10-20 12:05:38 +00:00
|
|
|
|
</xsl:element>
|
2011-04-08 19:30:22 +00:00
|
|
|
|
|
2011-04-08 19:13:58 +00:00
|
|
|
|
</xsl:if>
|
2010-10-20 12:05:38 +00:00
|
|
|
|
<!-- End apply news page rules -->
|
|
|
|
|
|
2011-04-08 20:04:40 +00:00
|
|
|
|
<!-- Apply newsletter page -->
|
|
|
|
|
<xsl:if test="string(/buildinfo/document/@newsdate) and /buildinfo/document/@type = 'newsletter'">
|
|
|
|
|
<xsl:call-template name="subscribe-nl" />
|
|
|
|
|
</xsl:if>
|
|
|
|
|
<!-- End apply newsletter page rules -->
|
2012-08-30 11:15:55 +00:00
|
|
|
|
|
2012-04-22 12:23:25 +00:00
|
|
|
|
<!-- Depreciated- see next block: 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-04-08 19:13:58 +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>
|
|
|
|
|
|
2012-04-23 14:50:59 +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" />
|
2011-04-08 19:13:58 +00:00
|
|
|
|
|
|
|
|
|
<xsl:if test = "string(/buildinfo/document/head/meta[@name='pdf-link']/@content)">
|
2012-04-23 14:50:59 +00:00
|
|
|
|
<span class="label"> PDF: </span>
|
2011-04-08 19:13:58 +00:00
|
|
|
|
<xsl:variable name="pdf-link" select="/buildinfo/document/head/meta[@name='pdf-link']/@content" />
|
|
|
|
|
<a href='{$pdf-link}'>download</a>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
|
|
</xsl:element> <!-- </p> -->
|
|
|
|
|
</xsl:element> <!-- </div> -->
|
2010-10-05 13:44:26 +00:00
|
|
|
|
</xsl:if>
|
|
|
|
|
<!-- End Apply article rules -->
|
2012-04-22 12:23:25 +00:00
|
|
|
|
|
|
|
|
|
<!--Article authors, date -->
|
2012-04-22 14:46:42 +00:00
|
|
|
|
<xsl:if test="/buildinfo/document/author or /buildinfo/document/date or /buildinfo/document/download">
|
2012-04-22 14:43:21 +00:00
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="id">article-metadata</xsl:attribute>
|
2012-04-22 14:46:42 +00:00
|
|
|
|
|
|
|
|
|
<xsl:if test="/buildinfo/document/author">
|
2012-04-22 16:16:06 +00:00
|
|
|
|
<span class="label"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'writtenby'" /></xsl:call-template> </span>
|
2012-04-22 12:23:25 +00:00
|
|
|
|
|
|
|
|
|
<xsl:for-each select="/buildinfo/document/author">
|
|
|
|
|
<xsl:variable name="id">
|
2012-04-22 15:32:01 +00:00
|
|
|
|
<xsl:value-of select="@id" />
|
2012-04-22 12:23:25 +00:00
|
|
|
|
</xsl:variable>
|
2012-04-22 15:32:01 +00:00
|
|
|
|
|
2012-04-22 12:23:25 +00:00
|
|
|
|
<xsl:choose>
|
|
|
|
|
<xsl:when test="@id and document('about/people/people.en.xml')/personset/person[@id=$id]">
|
|
|
|
|
<!-- if the author is in fsfe's people.xml then we take information from there -->
|
2012-04-23 14:50:59 +00:00
|
|
|
|
<xsl:choose>
|
|
|
|
|
<xsl:when test="document('about/people/people.en.xml')/personset/person[@id=$id]/link">
|
2012-04-22 12:23:25 +00:00
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="class">author</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="rel">author</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="href"><xsl:value-of select="document('about/people/people.en.xml')/personset/person[@id=$id]/link" /></xsl:attribute>
|
|
|
|
|
<xsl:if test="document('about/people/people.en.xml')/personset/person[@id=$id]/avatar">
|
|
|
|
|
<xsl:element name="img">
|
|
|
|
|
<xsl:attribute name="alt"></xsl:attribute>
|
|
|
|
|
<xsl:attribute name="src"><xsl:value-of select="document('about/people/people.en.xml')/personset/person[@id=$id]/avatar" /></xsl:attribute>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:if>
|
2012-04-23 22:56:17 +00:00
|
|
|
|
<xsl:value-of select="document('about/people/people.en.xml')/personset/person[@id=$id]/name" />
|
|
|
|
|
</xsl:element> 
|
2012-04-23 14:50:59 +00:00
|
|
|
|
</xsl:when>
|
|
|
|
|
<xsl:otherwise>
|
|
|
|
|
<xsl:if test="document('about/people/people.en.xml')/personset/person[@id=$id]/avatar">
|
|
|
|
|
<xsl:element name="img">
|
|
|
|
|
<xsl:attribute name="alt"></xsl:attribute>
|
|
|
|
|
<xsl:attribute name="src"><xsl:value-of select="document('about/people/people.en.xml')/personset/person[@id=$id]/avatar" /></xsl:attribute>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
<span class="author">
|
2012-04-23 22:46:30 +00:00
|
|
|
|
<xsl:value-of select="document('about/people/people.en.xml')/personset/person[@id=$id]/name" /> 
|
2012-04-23 14:50:59 +00:00
|
|
|
|
</span>
|
|
|
|
|
</xsl:otherwise>
|
|
|
|
|
</xsl:choose>
|
2012-04-22 12:23:25 +00:00
|
|
|
|
</xsl:when>
|
|
|
|
|
<xsl:otherwise>
|
2012-04-23 14:50:59 +00:00
|
|
|
|
<xsl:choose>
|
|
|
|
|
<xsl:when test="link">
|
|
|
|
|
<xsl:element name="a">
|
2012-04-22 12:23:25 +00:00
|
|
|
|
<xsl:attribute name="class">author</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="rel">author</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="href"><xsl:value-of select="link" /></xsl:attribute>
|
2012-04-22 16:27:01 +00:00
|
|
|
|
<xsl:if test="avatar">
|
|
|
|
|
<xsl:element name="img">
|
|
|
|
|
<xsl:attribute name="alt"></xsl:attribute>
|
|
|
|
|
<xsl:attribute name="src"><xsl:value-of select="avatar" /></xsl:attribute>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:if>
|
2012-04-23 22:56:17 +00:00
|
|
|
|
<xsl:value-of select="name" />
|
|
|
|
|
</xsl:element> 
|
2012-04-23 14:50:59 +00:00
|
|
|
|
</xsl:when>
|
|
|
|
|
<xsl:otherwise>
|
|
|
|
|
<xsl:if test="avatar">
|
|
|
|
|
<xsl:element name="img">
|
|
|
|
|
<xsl:attribute name="alt"></xsl:attribute>
|
|
|
|
|
<xsl:attribute name="src"><xsl:value-of select="avatar" /></xsl:attribute>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
<span class="author">
|
2012-04-23 22:46:30 +00:00
|
|
|
|
<xsl:value-of select="name" /> 
|
2012-04-23 14:50:59 +00:00
|
|
|
|
</span>
|
|
|
|
|
</xsl:otherwise>
|
|
|
|
|
</xsl:choose>
|
2012-04-22 12:23:25 +00:00
|
|
|
|
</xsl:otherwise>
|
|
|
|
|
</xsl:choose>
|
|
|
|
|
</xsl:for-each>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
|
|
<xsl:if test="/buildinfo/document/date">
|
2012-04-24 13:31:56 +00:00
|
|
|
|
<span class="label"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'published'" /></xsl:call-template> </span>
|
2012-04-22 16:21:36 +00:00
|
|
|
|
<xsl:value-of select="/buildinfo/document/date/original/@content" /> 
|
2012-04-22 12:23:25 +00:00
|
|
|
|
<xsl:if test="/buildinfo/document/date/revision">
|
2012-04-23 17:43:30 +00:00
|
|
|
|
(<span class="label"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'revision'" /></xsl:call-template></span>
|
|
|
|
|
<xsl:for-each select="/buildinfo/document/date/revision">
|
|
|
|
|
 <xsl:value-of select="@content" />
|
|
|
|
|
</xsl:for-each>) 
|
2012-04-22 12:23:25 +00:00
|
|
|
|
</xsl:if>
|
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
|
|
<xsl:if test="/buildinfo/document/download">
|
2012-04-22 16:16:06 +00:00
|
|
|
|
<span class="label"><xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'download'" /></xsl:call-template> </span>
|
2012-04-22 12:23:25 +00:00
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="href"><xsl:value-of select="/buildinfo/document/download/@content" /></xsl:attribute>
|
|
|
|
|
<xsl:value-of select="/buildinfo/document/download/@type" />
|
|
|
|
|
</xsl:element>
|
2012-04-22 14:46:42 +00:00
|
|
|
|
</xsl:if>
|
|
|
|
|
|
2012-04-22 14:43:21 +00:00
|
|
|
|
</xsl:element>
|
2012-04-22 12:23:25 +00:00
|
|
|
|
</xsl:if>
|
|
|
|
|
<!--End Article authors, date-->
|
2011-04-08 19:13:58 +00:00
|
|
|
|
|
2010-10-05 13:44:26 +00:00
|
|
|
|
</xsl:template>
|
2012-04-21 17:30:25 +00:00
|
|
|
|
<!-- End modifications to H1 -->
|
|
|
|
|
|
|
|
|
|
<!-- Modify H2 -->
|
|
|
|
|
<xsl:template match="h2">
|
2013-01-09 02:38:01 +00:00
|
|
|
|
<!-- auto generate ID for headings if doesn't already exist -->
|
2012-04-21 17:30:25 +00:00
|
|
|
|
<xsl:call-template name="generate-id" />
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
<!-- Modify H3 -->
|
|
|
|
|
<xsl:template match="h3">
|
2013-01-09 02:38:01 +00:00
|
|
|
|
<!-- auto generate ID for headings if doesn't already exist -->
|
2012-04-21 17:30:25 +00:00
|
|
|
|
<xsl:call-template name="generate-id" />
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
<!-- Modify H4 -->
|
|
|
|
|
<xsl:template match="h4">
|
2013-01-09 02:38:01 +00:00
|
|
|
|
<!-- auto generate ID for headings if doesn't already exist -->
|
2012-04-21 17:30:25 +00:00
|
|
|
|
<xsl:call-template name="generate-id" />
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
<!-- Modify H4 -->
|
|
|
|
|
<xsl:template match="h4">
|
2013-01-09 02:38:01 +00:00
|
|
|
|
<!-- auto generate ID for headings if doesn't already exist -->
|
2012-04-21 17:30:25 +00:00
|
|
|
|
<xsl:call-template name="generate-id" />
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
<!-- Modify H5 -->
|
|
|
|
|
<xsl:template match="h5">
|
2013-01-09 02:38:01 +00:00
|
|
|
|
<!-- auto generate ID for headings if doesn't already exist -->
|
2012-04-21 17:30:25 +00:00
|
|
|
|
<xsl:call-template name="generate-id" />
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
<!-- Modify H6 -->
|
|
|
|
|
<xsl:template match="h6">
|
2013-01-09 02:38:01 +00:00
|
|
|
|
<!-- auto generate ID for headings if doesn't already exist -->
|
2012-04-21 17:30:25 +00:00
|
|
|
|
<xsl:call-template name="generate-id" />
|
|
|
|
|
</xsl:template>
|
2007-05-05 16:34:57 +00:00
|
|
|
|
|
2012-08-30 11:41:18 +00:00
|
|
|
|
<!-- Apply support page -->
|
2012-08-30 13:38:54 +00:00
|
|
|
|
<xsl:template match="support-portal-javascript">
|
|
|
|
|
<xsl:call-template name="support-portal-javascript" />
|
|
|
|
|
</xsl:template>
|
2012-08-30 11:41:18 +00:00
|
|
|
|
<xsl:template match="support-form-javascript">
|
|
|
|
|
<xsl:call-template name="support-form-javascript" />
|
|
|
|
|
</xsl:template>
|
|
|
|
|
<xsl:template match="country-list-europe">
|
|
|
|
|
<xsl:call-template name="country-list-europe" />
|
|
|
|
|
</xsl:template>
|
|
|
|
|
<xsl:template match="country-list-other-continents">
|
|
|
|
|
<xsl:call-template name="country-list-other-continents" />
|
|
|
|
|
</xsl:template>
|
|
|
|
|
<!-- End apply support page rules -->
|
|
|
|
|
|
2007-05-05 16:34:57 +00:00
|
|
|
|
<!-- HTML body -->
|
2013-01-09 02:38:01 +00:00
|
|
|
|
<xsl:template match="body">
|
|
|
|
|
<xsl:copy>
|
|
|
|
|
|
2011-01-31 16:11:09 +00:00
|
|
|
|
<!-- For pages used on external web servers, use absolute URLs -->
|
2011-11-12 11:42:06 +00:00
|
|
|
|
<xsl:variable name="urlprefix"><xsl:if test="/buildinfo/document/@external">https://fsfe.org</xsl:if></xsl:variable>
|
2011-01-31 16:11:09 +00:00
|
|
|
|
|
2007-05-05 16:34:57 +00:00
|
|
|
|
<!-- 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-24 11:28:13 +00:00
|
|
|
|
<div id="service-notice">
|
2011-04-08 19:13:58 +00:00
|
|
|
|
<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>
|
2011-01-24 11:28:13 +00:00
|
|
|
|
</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>
|
2011-04-08 19:13:58 +00:00
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="id">wrapper-inner</xsl:attribute>
|
|
|
|
|
<xsl:comment>Unnecessary div, for IE only</xsl:comment>
|
|
|
|
|
|
|
|
|
|
<xsl:element name="p">
|
|
|
|
|
<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>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
|
<!-- Page header -->
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="id">header</xsl:attribute>
|
|
|
|
|
|
|
|
|
|
<!-- 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>
|
2012-02-11 18:06:19 +00:00
|
|
|
|
<xsl:attribute name="src">
|
|
|
|
|
<xsl:value-of select="$urlprefix"/>
|
|
|
|
|
<xsl:choose>
|
|
|
|
|
<xsl:when test="$mode = 'valentine'">/graphics/logov.png</xsl:when>
|
|
|
|
|
<xsl:otherwise>/graphics/logo_transparent.png</xsl:otherwise>
|
|
|
|
|
</xsl:choose>
|
|
|
|
|
</xsl:attribute>
|
2011-04-08 19:13:58 +00:00
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
|
2011-01-24 11:28:13 +00:00
|
|
|
|
<!-- Statement -->
|
|
|
|
|
<xsl:element name="p">
|
2011-03-14 15:39:50 +00:00
|
|
|
|
|
2011-01-24 11:28:13 +00:00
|
|
|
|
<xsl:attribute name="id">statement</xsl:attribute>
|
2011-03-14 15:39:50 +00:00
|
|
|
|
|
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'statement1'" /></xsl:call-template>
|
2011-01-24 11:28:13 +00:00
|
|
|
|
<xsl:element name="a">
|
2011-03-14 15:39:50 +00:00
|
|
|
|
<xsl:attribute name="href">/about/basics/freesoftware.<xsl:value-of select="/buildinfo/@language"/>.html</xsl:attribute>
|
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'statement-fs'" /></xsl:call-template>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'statement2'" /></xsl:call-template>.<!--intentional full stop goes here-->
|
|
|
|
|
|
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="href">/about</xsl:attribute>
|
2011-03-14 15:50:51 +00:00
|
|
|
|
<xsl:attribute name="style">padding-left: 1em;</xsl:attribute>
|
2011-03-14 15:52:11 +00:00
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'learn-more'" />
|
2011-01-24 11:28:13 +00:00
|
|
|
|
</xsl:call-template>
|
|
|
|
|
</xsl:element>.<!--intentional full stop goes here-->
|
2011-03-14 15:39:50 +00:00
|
|
|
|
|
2011-01-24 11:28:13 +00:00
|
|
|
|
</xsl:element>
|
2011-01-19 13:37:40 +00:00
|
|
|
|
|
2011-01-24 11:28:13 +00:00
|
|
|
|
</xsl:element><!-- end Page header -->
|
|
|
|
|
|
2011-04-08 19:13:58 +00:00
|
|
|
|
<!-- Sidebar -->
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="id">sidebar</xsl:attribute>
|
|
|
|
|
|
|
|
|
|
<!-- Menu -->
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="id">menu</xsl:attribute>
|
|
|
|
|
|
|
|
|
|
<xsl:element name="ul">
|
|
|
|
|
|
|
|
|
|
<!-- 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">
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
|
</xsl:element> <!-- /li -->
|
2011-04-25 15:11:20 +00:00
|
|
|
|
|
2012-10-01 10:24:20 +00:00
|
|
|
|
<!-- Support portal menu item -->
|
2011-04-08 19:13:58 +00:00
|
|
|
|
<xsl:element name="li">
|
2012-10-01 10:24:20 +00:00
|
|
|
|
<xsl:attribute name="class">support</xsl:attribute>
|
2011-04-08 19:13:58 +00:00
|
|
|
|
<xsl:element name="a">
|
2012-10-01 10:24:20 +00:00
|
|
|
|
<xsl:attribute name="href">/support/</xsl:attribute>
|
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'support/support'" /></xsl:call-template>
|
2011-04-08 19:13:58 +00:00
|
|
|
|
</xsl:element>
|
2012-10-01 10:24:20 +00:00
|
|
|
|
</xsl:element> <!-- /li -->
|
|
|
|
|
|
2011-04-08 19:13:58 +00:00
|
|
|
|
<!-- Fellowship portal menu -->
|
|
|
|
|
<xsl:element name="li">
|
|
|
|
|
<xsl:attribute name="class">fellowship</xsl:attribute>
|
|
|
|
|
<xsl:element name="a">
|
2011-04-25 15:11:20 +00:00
|
|
|
|
<xsl:attribute name="href">http://fellowship.fsfe.org/</xsl:attribute>
|
2011-11-17 22:45:27 +00:00
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'fellowship/fellowship'" /></xsl:call-template>
|
2011-04-08 19:13:58 +00:00
|
|
|
|
</xsl:element>
|
|
|
|
|
<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')">
|
2011-01-24 11:28:13 +00:00
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="$id" /></xsl:call-template>
|
2011-04-08 19:13:58 +00:00
|
|
|
|
</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 -->
|
2012-10-01 10:24:20 +00:00
|
|
|
|
|
|
|
|
|
<!-- 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>
|
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'planet/blogs'" /></xsl:call-template>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
<!-- causes validation errors, needs li to pass validator?
|
|
|
|
|
<xsl:element name="ul">
|
|
|
|
|
|
|
|
|
|
</xsl:element>-->
|
|
|
|
|
</xsl:element>
|
|
|
|
|
|
2011-04-25 15:11:20 +00:00
|
|
|
|
<!-- Wiki -->
|
|
|
|
|
<xsl:element name="li">
|
|
|
|
|
<xsl:attribute name="class">wiki</xsl:attribute>
|
|
|
|
|
<xsl:element name="a">
|
|
|
|
|
<xsl:attribute name="href">http://wiki.fsfe.org/</xsl:attribute>
|
|
|
|
|
Wiki
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:element> <!-- /li -->
|
|
|
|
|
</xsl:element> <!-- /ul -->
|
2011-04-08 19:13:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</xsl:element><!-- end menu -->
|
|
|
|
|
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="id">search</xsl:attribute>
|
|
|
|
|
|
|
|
|
|
<xsl:element name="h2">
|
2011-04-22 14:27:50 +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>
|
2011-04-08 19:13:58 +00:00
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
|
<xsl:element name="form">
|
|
|
|
|
<xsl:attribute name="method">get</xsl:attribute>
|
2012-05-11 08:11:31 +00:00
|
|
|
|
<xsl:attribute name="action">http://fsfe.yacy.net/yacysearch.html</xsl:attribute>
|
2011-04-08 19:13:58 +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>
|
|
|
|
|
</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>
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
<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>
|
2011-04-22 14:27:50 +00:00
|
|
|
|
<xsl:attribute name="alt">
|
2011-04-08 19:13:58 +00:00
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'submit'" /></xsl:call-template>
|
|
|
|
|
</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">
|
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'search'" /></xsl:call-template>
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
<xsl:element name="input">
|
|
|
|
|
<xsl:attribute name="type">submit</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="name">search</xsl:attribute>
|
|
|
|
|
<xsl:attribute name="value">
|
|
|
|
|
<xsl:call-template name="fsfe-gettext"><xsl:with-param name="id" select="'submit'" /></xsl:call-template>
|
|
|
|
|
</xsl:attribute>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:element><!-- End search -->
|
|
|
|
|
|
|
|
|
|
<!-- Newsletter form
|
|
|
|
|
<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>
|
2012-05-11 08:11:31 +00:00
|
|
|
|
<xsl:attribute name="action">http://fsfe.yacy.net/yacysearch.html</xsl:attribute>
|
2011-04-08 19:13:58 +00:00
|
|
|
|
|
|
|
|
|
<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 -->
|
|
|
|
|
|
|
|
|
|
<!-- translations -->
|
|
|
|
|
<xsl:element name="div">
|
|
|
|
|
<xsl:attribute name="id">translations</xsl:attribute>
|
|
|
|
|
<xsl:element name="ul">
|
|
|
|
|
<xsl:for-each select="/buildinfo/trlist/tr">
|
|
|
|
|
<xsl:sort select="@id"/>
|
|
|
|
|
<xsl:choose>
|
|
|
|
|
<xsl:when test="@id=/buildinfo/@language">
|
|
|
|
|
<xsl:element name="li">
|
2013-01-09 02:38:01 +00:00
|
|
|
|
<xsl:value-of select="." disable-output-escaping="yes"/>
|
2011-04-08 19:13:58 +00:00
|
|
|
|
</xsl:element>
|
|
|
|
|
</xsl:when>
|
|