moved xsl imports to beginning of file

svn path=/branches/test/; revision=28648
This commit is contained in:
paul 2014-06-22 15:33:35 +00:00
parent 8d3216dc08
commit e2376c04e5
2 changed files with 13 additions and 16 deletions

View File

@ -3,6 +3,11 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="UTF-8" indent="yes" />
<xsl:variable name="mode">
<!-- 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>
<!-- HTML head -->
<xsl:template match="head">
<head>

View File

@ -5,30 +5,25 @@
exclude-result-prefixes="dt"
xmlns:str="http://exslt.org/strings"
extension-element-prefixes="str">
<!-- 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" />
<xsl:variable name="mode">
<!-- 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" />
<xsl:import href="build/xslt/fsfe_document.xsl" />
<xsl:import href="build/xslt/fsfe_head.xsl" />
<xsl:import href="build/xslt/fsfe_headings.xsl" />
<xsl:import href="build/xslt/fsfe_body.xsl" />
<xsl:import href="build/xslt/fsfe_localmenu.xsl" />
<xsl:import href="build/xslt/support_js.xsl" />
<xsl:import href="build/xslt/support_countries.xsl" />
<xsl:import href="build/xslt/fsfe_body.xsl" />
<xsl:import href="build/xslt/fsfe_localmenu.xsl" />
<!-- Do not copy non-HTML elements to output -->
<xsl:import href="build/xslt/fsfe_nolocal.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" />
<!-- Ignore "latin" tags, used only for printable material -->
<xsl:template match="latin">
@ -39,9 +34,6 @@
<xsl:template match="body" priority="-1">
<xsl:apply-templates />
</xsl:template>
<!-- Do not copy non-HTML elements to output -->
<xsl:import href="build/xslt/fsfe_nolocal.xsl" />
<xsl:template match="@dt:*">
<xsl:attribute name="{local-name()}">