Sync some stuff from trunk
svn path=/branches/test/; revision=25326
This commit is contained in:
parent
fed2ed4444
commit
7b94d2424d
11
default.xsl
Normal file
11
default.xsl
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<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">
|
||||
|
||||
<xsl:import href="fsfe.xsl" />
|
||||
<xsl:output method="html" encoding="utf-8" indent="yes" doctype-system="about:legacy-compat" />
|
||||
|
||||
</xsl:stylesheet>
|
@ -1,2 +1,3 @@
|
||||
tags/tags:global
|
||||
projects/*/project:global
|
||||
activities/*/project:global
|
||||
campaigns/*/project:global
|
||||
|
32
index.xsl
32
index.xsl
@ -1,29 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<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">
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
|
||||
<xsl:import href="tools/xsltsl/date-time.xsl" />
|
||||
<xsl:import href="tools/xsltsl/tagging.xsl" />
|
||||
<xsl:import href="tools/xsltsl/translations.xsl" />
|
||||
<xsl:import href="tools/xsltsl/static-elements.xsl" />
|
||||
<xsl:import href="tools/xsltsl/quotes.xsl" />
|
||||
<xsl:output method="xml" encoding="UTF-8" indent="yes" />
|
||||
|
||||
<xsl:import href="fsfe.xsl" />
|
||||
<xsl:output method="html" encoding="utf-8" indent="yes" doctype-system="about:legacy-compat" />
|
||||
|
||||
<!-- The top level element of the input file is "buildinfo" -->
|
||||
<xsl:template match="buildinfo">
|
||||
<xsl:apply-templates select="node()"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="/html/body">
|
||||
<xsl:copy>
|
||||
<xsl:template match="body">
|
||||
<div id="frontpage">
|
||||
<xsl:apply-templates />
|
||||
</div>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="quote-box">
|
||||
@ -221,19 +212,4 @@
|
||||
<xsl:call-template name="subscribe-nl" />
|
||||
</xsl:template>
|
||||
|
||||
<!-- Do not copy <set> or <text> to output at all -->
|
||||
<xsl:template match="set | tags | text"/>
|
||||
|
||||
<!-- For all other nodes, copy verbatim -->
|
||||
<xsl:template match="@* | node()" priority="-1">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="@* | node()"/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="@dt:*">
|
||||
<xsl:attribute name="{local-name()}">
|
||||
<xsl:value-of select="." />
|
||||
</xsl:attribute>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
|
@ -1,5 +1,5 @@
|
||||
http://fsfe.org/about/about.en.html
|
||||
http://fsfe.org/projects/work.en.html
|
||||
http://fsfe.org/work.en.html
|
||||
http://fsfe.org/contribute/contribute.en.html
|
||||
http://fsfe.org/order/order.en.html
|
||||
http://planet.fsfe.org
|
||||
|
Loading…
x
Reference in New Issue
Block a user