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-17 23:13:14 +00:00
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
xmlns:dt="http://xsltsl.org/date-time"
|
|
|
|
exclude-result-prefixes="dt"
|
|
|
|
xmlns:str="http://exslt.org/strings"
|
|
|
|
extension-element-prefixes="str">
|
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" />
|
2014-01-27 20:37:36 +00:00
|
|
|
<xsl:import href="tools/xsltsl/tagging.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">
|
2014-06-16 14:27:50 +00:00
|
|
|
<!-- here you can set the mode to switch between normal and IloveFS style -->
|
2014-02-08 15:23:12 +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-17 23:13:14 +00:00
|
|
|
<xsl:template match="/">
|
|
|
|
<xsl:apply-templates select="buildinfo/document"/>
|
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>
|
2014-01-23 15:39:19 +00:00
|
|
|
|
|
|
|
<xsl:attribute name="class"><xsl:value-of select="/buildinfo/@language" /> no-js</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>
|
2014-01-23 15:39:19 +00:00
|
|
|
|
2013-01-17 23:13:14 +00:00
|
|
|
<!--<xsl:apply-templates select="node()"/>-->
|
|
|
|
<xsl:apply-templates select="head" />
|
|
|
|
<xsl:call-template name="fsfe-body" />
|
2007-03-03 14:52:27 +00:00
|
|
|
</xsl:element>
|
|
|
|
</xsl:template>
|
2013-01-17 23:13:14 +00:00
|
|
|
|
|
|
|
|
2007-05-05 16:34:57 +00:00
|
|
|
<!-- HTML head -->
|
2014-06-17 22:34:59 +00:00
|
|
|
<xsl:import href="build/xslt/fsfe_head.xsl" />
|
2010-10-05 13:44:26 +00:00
|
|
|
|
2014-06-17 22:34:59 +00:00
|
|
|
<xsl:import href="build/xslt/fsfe_headings.xsl" />
|
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 -->
|
2014-06-17 22:34:59 +00:00
|
|
|
<xsl:import href="build/xslt/fsfe_body.xsl" />
|
2010-10-13 14:30:20 +00:00
|
|
|
|
2010-10-13 14:33:32 +00:00
|
|
|
<!-- Insert local menu -->
|
2014-06-17 22:34:59 +00:00
|
|
|
<xsl:import href="build/xslt/fsfe_localmenu.xsl" />
|
2008-12-07 21:07:01 +00:00
|
|
|
|
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>
|
2013-01-17 23:13:14 +00:00
|
|
|
|
|
|
|
<!-- If no template matching <body> is found in the current page's XSL file, this one will be used -->
|
|
|
|
<xsl:template match="body" priority="-1">
|
|
|
|
<xsl:apply-templates />
|
|
|
|
</xsl:template>
|
|
|
|
|
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|
|
2012-04-22 10:42:54 +00:00
|
|
|
buildinfo/document/translator|
|
2011-04-08 19:13:58 +00:00
|
|
|
buildinfo/set|
|
|
|
|
buildinfo/textset|
|
|
|
|
buildinfo/textsetbackup|
|
|
|
|
buildinfo/menuset|
|
|
|
|
buildinfo/trlist|
|
|
|
|
buildinfo/fundraising|
|
|
|
|
buildinfo/localmenuset|
|
2012-04-22 10:42:54 +00:00
|
|
|
buildinfo/document/tags|
|
|
|
|
buildinfo/document/legal|
|
|
|
|
buildinfo/document/author|
|
|
|
|
buildinfo/document/date|
|
2014-01-23 15:39:19 +00:00
|
|
|
buildinfo/document/download|
|
|
|
|
buildinfo/document/followup"/>
|
2013-01-17 23:13:14 +00:00
|
|
|
|
|
|
|
<xsl:template match="set | tags | text"/>
|
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>
|
2011-04-25 13:45:59 +00:00
|
|
|
<xsl:apply-templates select="@* | node()"/>
|
2007-03-03 14:52:27 +00:00
|
|
|
</xsl:copy>
|
|
|
|
</xsl:template>
|
2013-01-17 23:13:14 +00:00
|
|
|
|
|
|
|
<xsl:template match="@dt:*">
|
|
|
|
<xsl:attribute name="{local-name()}">
|
|
|
|
<xsl:value-of select="." />
|
|
|
|
</xsl:attribute>
|
|
|
|
</xsl:template>
|
|
|
|
|
2011-04-25 13:53:48 +00:00
|
|
|
<!--
|
2011-04-25 13:45:59 +00:00
|
|
|
<xsl:template match="@x:*">
|
|
|
|
<xsl:attribute name="{local-name()}">
|
|
|
|
<xsl:value-of select="." />
|
|
|
|
</xsl:attribute>
|
|
|
|
</xsl:template>
|
2011-04-25 13:53:48 +00:00
|
|
|
-->
|
2014-01-27 23:03:27 +00:00
|
|
|
<!--FIXME ↓-->
|
2014-01-27 20:37:36 +00:00
|
|
|
<xsl:template match="fetch-news">
|
|
|
|
<xsl:call-template name="fetch-news">
|
2014-01-27 21:30:08 +00:00
|
|
|
<xsl:with-param name="tag" select="'/buildinfo/document/sidebar/@news'"/>
|
2014-01-27 20:37:36 +00:00
|
|
|
<xsl:with-param name="nb-items" select="4"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
2007-03-03 14:52:27 +00:00
|
|
|
</xsl:stylesheet>
|
2014-01-27 20:37:36 +00:00
|
|
|
|