fix local link on root dir
This commit is contained in:
parent
69a529f5ce
commit
97b6f73b8a
|
@ -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'><!DOCTYPE html></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 -->
|
||||
|
|
Loading…
Reference in New Issue