Define $urlprefix in place where it is always included
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Reinhard Müller 2020-04-25 20:02:42 +02:00
parent f654181b59
commit 175c0de026
2 changed files with 5 additions and 5 deletions

View File

@ -2,6 +2,11 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- For pages used on external web servers, load the CSS from absolute URL -->
<xsl:variable name="urlprefix">
<xsl:if test="/buildinfo/document/@external">https://fsfe.org</xsl:if>
</xsl:variable>
<xsl:template match="/">
<xsl:apply-templates select="buildinfo/document"/>
</xsl:template>

View File

@ -13,11 +13,6 @@
<xsl:import href="build/xslt/fsfe_head.xsl" />
<xsl:import href="build/xslt/fsfe_body.xsl" />
<!-- For pages used on external web servers, load the CSS from absolute URL -->
<xsl:variable name="urlprefix">
<xsl:if test="/buildinfo/document/@external">https://fsfe.org</xsl:if>
</xsl:variable>
<!-- EXTRACT / DESCRIPTION of each page -->
<xsl:variable name="metadesc">
<!-- Get the meta element description -->