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>
|
2009-05-02 23:35:11 +00:00
|
|
|
<meta name="robots" content="index, follow" />
|
2009-02-15 16:33:03 +00:00
|
|
|
<link rel="stylesheet" media="all" href="/fsfeurope.css" type="text/css" />
|
|
|
|
<link rel="stylesheet" media="print" href="/print.css" type="text/css" />
|
|
|
|
<link rel="icon" href="/graphics/fsfeurope.ico" type="image/x-icon" />
|
|
|
|
<link rel="shortcut icon" href="/graphics/fsfeurope.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>
|
2007-05-05 16:34:57 +00:00
|
|
|
<xsl:apply-templates select="@*|node()"/>
|
|
|
|
</xsl:copy>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<!-- 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-02-27 14:55:12 +00:00
|
|
|
<xsl:attribute name="id">wrapper</xsl:attribute>
|
2007-05-06 16:37:38 +00:00
|
|
|
<xsl:comment>Unnecessary div, for IE only</xsl:comment>
|
2007-05-05 16:34:57 +00:00
|
|
|
|
|
|
|
<xsl:element name="a">
|
|
|
|
<xsl:attribute name="class">n</xsl:attribute>
|
|
|
|
<xsl:attribute name="id">top</xsl:attribute>
|
|
|
|
<xsl:attribute name="href">#content</xsl:attribute>
|
2007-05-06 16:17:23 +00:00
|
|
|
<xsl:text>Skip menu</xsl:text>
|
2007-05-05 16:34:57 +00:00
|
|
|
</xsl:element>
|
2007-05-06 16:37:38 +00:00
|
|
|
<xsl:comment>Give non-graphical browsers a way to skip the menu</xsl:comment>
|
2007-05-05 16:34:57 +00:00
|
|
|
|
|
|
|
<!-- 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>
|
2007-05-06 16:17:23 +00:00
|
|
|
<xsl:attribute name="src">/graphics/logo.png</xsl:attribute>
|
|
|
|
</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)]">
|
|
|
|
<xsl:sort select="@id"/>
|
|
|
|
<xsl:variable name="menu"><xsl:value-of select="@id"/></xsl:variable>
|
|
|
|
<xsl:element name="ul">
|
|
|
|
<xsl:for-each select="/buildinfo/menuset/menu[@parent=$menu]">
|
|
|
|
<xsl:sort select="@id"/>
|
|
|
|
<xsl:variable name="id"><xsl:value-of select="@id"/></xsl:variable>
|
|
|
|
<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]|
|
|
|
|
/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]|
|
|
|
|
/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">
|
2009-03-05 00:24:23 +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]|
|
|
|
|
/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]">
|
|
|
|
<xsl:sort select="@id" />
|
|
|
|
<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]|
|
|
|
|
/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]|
|
|
|
|
/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>
|
2007-05-05 16:34:57 +00:00
|
|
|
|
2007-06-22 21:29:39 +00:00
|
|
|
<!-- Join the Fellowship -->
|
|
|
|
<xsl:element name="a">
|
2009-03-05 00:24:23 +00:00
|
|
|
<xsl:attribute name="href">http://fellowship.fsfe.org/about</xsl:attribute>
|
2007-06-22 21:29:39 +00:00
|
|
|
<xsl:element name="img">
|
|
|
|
<xsl:attribute name="alt">Join the Fellowship!</xsl:attribute>
|
2009-03-23 19:29:19 +00:00
|
|
|
<xsl:attribute name="src">/graphics/join-fellowship.png</xsl:attribute>
|
2007-06-22 21:29:39 +00:00
|
|
|
</xsl:element>
|
|
|
|
</xsl:element>
|
|
|
|
|
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 -->
|
|
|
|
|
|
|
|
<!-- 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 -->
|
|
|
|
<xsl:element name="a">
|
|
|
|
<xsl:attribute name="class">n</xsl:attribute>
|
|
|
|
<xsl:attribute name="href">#top</xsl:attribute>
|
2007-05-06 16:25:47 +00:00
|
|
|
<xsl:text>To top</xsl:text>
|
2007-05-05 16:34:57 +00:00
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
</xsl:element>
|
|
|
|
<!-- End Content -->
|
|
|
|
|
|
|
|
<!-- Footer -->
|
|
|
|
<xsl:element name="div">
|
2009-02-27 14:55:12 +00:00
|
|
|
<xsl:attribute name="id">footer</xsl:attribute>
|
2007-05-05 16:34:57 +00:00
|
|
|
|
|
|
|
<xsl:element name="p">
|
|
|
|
|
|
|
|
<!-- Copyright -->
|
|
|
|
<xsl:apply-templates select="/buildinfo/textset/text[@id='copyright']/node()"/>
|
|
|
|
|
|
|
|
<!-- "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: '), ' $')"/>
|
2007-03-03 14:52:27 +00:00
|
|
|
</xsl:variable>
|
2007-05-05 16:34:57 +00:00
|
|
|
<xsl:apply-templates select="/buildinfo/textset/text[@id='lastchanged']/node()"/>
|
|
|
|
<xsl:value-of select="translate ($Date, '/', '-')"/>
|
|
|
|
(<xsl:value-of select="$Author"/>)
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
<!-- 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>[XHTML]</xsl:text>
|
|
|
|
</xsl:element>
|
|
|
|
|
2007-09-13 19:03:23 +00:00
|
|
|
<!-- Insert the appropriate translation notice -->
|
2007-09-13 20:04:31 +00:00
|
|
|
<xsl:if test="/buildinfo/document/@language!=/buildinfo/@original">
|
2007-05-05 16:34:57 +00:00
|
|
|
<xsl:element name="br"/>
|
2009-01-05 17:52:31 +00:00
|
|
|
<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']"/>
|
2007-03-03 14:52:27 +00:00
|
|
|
<xsl:element name="a">
|
|
|
|
<xsl:attribute name="href">
|
2007-05-05 16:34:57 +00:00
|
|
|
<xsl:value-of select="/buildinfo/@filename"/>
|
|
|
|
<xsl:text>.en.html</xsl:text>
|
2007-03-03 14:52:27 +00:00
|
|
|
</xsl:attribute>
|
2009-01-05 17:52:31 +00:00
|
|
|
<xsl:value-of select="/buildinfo/textset/text[@id='translator3b']"/>
|
2007-03-03 14:52:27 +00:00
|
|
|
</xsl:element>
|
2009-01-05 17:52:31 +00:00
|
|
|
<xsl:value-of select="/buildinfo/textset/text[@id='translator3c']"/>
|
2007-05-05 16:34:57 +00:00
|
|
|
</xsl:if>
|
2007-03-03 14:52:27 +00:00
|
|
|
|
2007-05-05 16:34:57 +00:00
|
|
|
<!-- Permission note -->
|
|
|
|
<xsl:element name="br"/>
|
|
|
|
<xsl:apply-templates select="/buildinfo/textset/text[@id='permission']/node()"/>
|
2007-03-03 14:52:27 +00:00
|
|
|
|
2007-05-05 16:34:57 +00:00
|
|
|
<!-- Webmaster feedback note -->
|
|
|
|
<xsl:element name="br"/>
|
2007-05-05 16:56:24 +00:00
|
|
|
<xsl:apply-templates select="/buildinfo/textset/text[@id='webmaster']/node()"/>
|
2007-05-05 16:34:57 +00:00
|
|
|
</xsl:element>
|
|
|
|
|
|
|
|
</xsl:element>
|
|
|
|
<!-- End Footer -->
|
|
|
|
|
|
|
|
</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>
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
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>
|