fix local link on root dir

This commit is contained in:
vv01f 2019-06-13 19:09:08 +02:00
parent 69a529f5ce
commit 97b6f73b8a
Signed by untrusted user who does not match committer: vv01f
GPG Key ID: 02625A16AC1D1FF6
1 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,8 @@
<xsl:output omit-xml-declaration="yes"/>
<xsl:template match="/schleudern">
<xsl:variable name="protocol">https://</xsl:variable>
<xsl:variable name="baseurl">ds.ccc.de</xsl:variable>
<xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html&gt;</xsl:text>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
@ -46,7 +48,7 @@
<xsl:element name="div">
<xsl:attribute name="class">schleudercover</xsl:attribute>
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute>
<xsl:attribute name="href"><xsl:value-of select="concat($protocol,$baseurl,link)"/></xsl:attribute>
<xsl:element name="img">
<xsl:attribute name="src"><xsl:value-of select="image"/></xsl:attribute>
<xsl:attribute name="alt"><xsl:value-of select="$alt"/></xsl:attribute>
@ -56,7 +58,7 @@
</xsl:element><xsl:value-of select="concat(@id,' ')"/>
<xsl:for-each select="link">
<xsl:call-template name="anchorlink">
<xsl:with-param name="linkdata" select="." />
<xsl:with-param name="linkdata" select="concat($protocol,$baseurl,.)" />
</xsl:call-template>
</xsl:for-each>
<xsl:if test="not(link)"><!-- fix for no icon glitch -->