split up xsl further
svn path=/branches/test/; revision=28646
This commit is contained in:
@@ -6,10 +6,6 @@
|
||||
xmlns:str="http://exslt.org/strings"
|
||||
extension-element-prefixes="str">
|
||||
|
||||
<xsl:import href="tools/xsltsl/translations.xsl" />
|
||||
<xsl:import href="tools/xsltsl/static-elements.xsl" />
|
||||
<xsl:import href="tools/xsltsl/tagging.xsl" />
|
||||
|
||||
<!-- HTML 5 compatibility doctype, since our XSLT parser doesn't support disabling output escaping -->
|
||||
<xsl:output method="html" encoding="utf-8" indent="yes" doctype-system="about:legacy-compat" />
|
||||
|
||||
@@ -17,59 +13,24 @@
|
||||
<!-- here you can set the mode to switch between normal and IloveFS style -->
|
||||
<xsl:value-of select="'normal'" /> <!-- can be either 'normal' or 'valentine' -->
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:import href="tools/xsltsl/translations.xsl" />
|
||||
<xsl:import href="tools/xsltsl/static-elements.xsl" />
|
||||
<xsl:import href="tools/xsltsl/tagging.xsl" />
|
||||
|
||||
|
||||
<!-- The top level element of the input file is "buildinfo" -->
|
||||
<xsl:template match="/">
|
||||
<xsl:apply-templates select="buildinfo/document"/>
|
||||
</xsl:template>
|
||||
|
||||
<!-- The actual HTML tree is in "buildinfo/document" -->
|
||||
<xsl:template match="buildinfo/document">
|
||||
<xsl:element name="html">
|
||||
<xsl:attribute name="lang">
|
||||
<xsl:value-of select="/buildinfo/@language"/>
|
||||
</xsl:attribute>
|
||||
|
||||
<xsl:attribute name="class"><xsl:value-of select="/buildinfo/@language" /> no-js</xsl:attribute>
|
||||
|
||||
<xsl:if test="/buildinfo/@language='ar'">
|
||||
<xsl:attribute name="dir">rtl</xsl:attribute>
|
||||
</xsl:if>
|
||||
|
||||
<!--<xsl:apply-templates select="node()"/>-->
|
||||
<xsl:apply-templates select="head" />
|
||||
<xsl:call-template name="fsfe-body" />
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
<xsl:import href="build/xslt/fsfe_document.xsl" />
|
||||
|
||||
|
||||
<!-- HTML head -->
|
||||
<xsl:import href="build/xslt/fsfe_head.xsl" />
|
||||
|
||||
<xsl:import href="build/xslt/fsfe_headings.xsl" />
|
||||
|
||||
<!-- Apply support page -->
|
||||
<xsl:template match="support-portal-javascript">
|
||||
<xsl:call-template name="support-portal-javascript" />
|
||||
</xsl:template>
|
||||
<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 -->
|
||||
<xsl:import href="build/xslt/support_js.xsl" />
|
||||
<xsl:import href="build/xslt/support_countries.xsl" />
|
||||
|
||||
<!-- HTML body -->
|
||||
<xsl:import href="build/xslt/fsfe_body.xsl" />
|
||||
|
||||
<!-- Insert local menu -->
|
||||
<xsl:import href="build/xslt/fsfe_localmenu.xsl" />
|
||||
|
||||
<!-- Ignore "latin" tags, used only for pritable material -->
|
||||
<!-- Ignore "latin" tags, used only for printable material -->
|
||||
<xsl:template match="latin">
|
||||
<xsl:apply-templates select="@*|node()"/>
|
||||
</xsl:template>
|
||||
@@ -80,44 +41,14 @@
|
||||
</xsl:template>
|
||||
|
||||
<!-- Do not copy non-HTML elements to output -->
|
||||
<xsl:template match="timestamp|
|
||||
buildinfo/document/translator|
|
||||
buildinfo/set|
|
||||
buildinfo/textset|
|
||||
buildinfo/textsetbackup|
|
||||
buildinfo/menuset|
|
||||
buildinfo/trlist|
|
||||
buildinfo/fundraising|
|
||||
buildinfo/localmenuset|
|
||||
buildinfo/document/tags|
|
||||
buildinfo/document/legal|
|
||||
buildinfo/document/author|
|
||||
buildinfo/document/date|
|
||||
buildinfo/document/download|
|
||||
buildinfo/document/followup"/>
|
||||
|
||||
<xsl:template match="set | tags | text"/>
|
||||
<xsl:import href="build/xslt/fsfe_nolocal.xsl" />
|
||||
|
||||
<!-- 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:template match="@x:*">
|
||||
<xsl:attribute name="{local-name()}">
|
||||
<xsl:value-of select="." />
|
||||
</xsl:attribute>
|
||||
</xsl:template>
|
||||
-->
|
||||
|
||||
<!--FIXME ↓-->
|
||||
<xsl:template match="fetch-news">
|
||||
<xsl:call-template name="fetch-news">
|
||||
@@ -126,6 +57,5 @@
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user