xsl/common: always match item/image to display news logos, not only in xsl/xhtml5
This commit is contained in:
parent
dc71ae8429
commit
5a72539c71
|
@ -69,6 +69,30 @@
|
||||||
class="{@class}"/>
|
class="{@class}"/>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<!-- Bilder in News-Einträgen haben Pfad immer relativ zu /images/news/ -->
|
||||||
|
<xsl:template match="item/image">
|
||||||
|
<xsl:variable name="path">
|
||||||
|
<xsl:call-template name="normalize-path">
|
||||||
|
<xsl:with-param name="path">
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="contains(., '://')">
|
||||||
|
<xsl:value-of select="."/>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:value-of select="concat($baseurl, 'images/news/', .)"/>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
</xsl:with-param>
|
||||||
|
</xsl:call-template>
|
||||||
|
</xsl:variable>
|
||||||
|
|
||||||
|
<img
|
||||||
|
src="{$path}"
|
||||||
|
title="{@title}"
|
||||||
|
alt="{@title}"
|
||||||
|
class="{@class}"/>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="link">
|
<xsl:template match="link">
|
||||||
<xsl:variable name="href">
|
<xsl:variable name="href">
|
||||||
<xsl:call-template name="make-href">
|
<xsl:call-template name="make-href">
|
||||||
|
|
Loading…
Reference in New Issue