xsl/newsfile-to-podcast: image fixes
This commit is contained in:
parent
0a5795845d
commit
b73b55e939
|
@ -10,7 +10,7 @@
|
||||||
encoding="utf-8"
|
encoding="utf-8"
|
||||||
indent="yes"/>
|
indent="yes"/>
|
||||||
|
|
||||||
<xsl:include href="common.xsl" />
|
<xsl:include href="date.xsl" />
|
||||||
|
|
||||||
<xsl:variable name="baseurl">http://www.c3d2.de/</xsl:variable>
|
<xsl:variable name="baseurl">http://www.c3d2.de/</xsl:variable>
|
||||||
|
|
||||||
|
@ -30,6 +30,9 @@
|
||||||
<itunes:name>C3D2</itunes:name>
|
<itunes:name>C3D2</itunes:name>
|
||||||
<itunes:email>mail@c3d2.de</itunes:email>
|
<itunes:email>mail@c3d2.de</itunes:email>
|
||||||
</itunes:owner>
|
</itunes:owner>
|
||||||
|
<xsl:if test="image">
|
||||||
|
<itunes:image href="{concat($baseurl, 'images/news/', string(image))}"/>
|
||||||
|
</xsl:if>
|
||||||
|
|
||||||
<xsl:apply-templates select="*[name() = 'resource' or name() = 'addendum']"/>
|
<xsl:apply-templates select="*[name() = 'resource' or name() = 'addendum']"/>
|
||||||
</channel>
|
</channel>
|
||||||
|
@ -40,7 +43,7 @@
|
||||||
<xsl:template match="image">
|
<xsl:template match="image">
|
||||||
<image>
|
<image>
|
||||||
<title><xsl:value-of select="@title"/></title>
|
<title><xsl:value-of select="@title"/></title>
|
||||||
<url><xsl:value-of select="concat($baseurl, 'news/', string(.))"/></url>
|
<url><xsl:value-of select="concat($baseurl, 'images/news/', string(.))"/></url>
|
||||||
<link><xsl:value-of select="$baseurl"/></link>
|
<link><xsl:value-of select="$baseurl"/></link>
|
||||||
</image>
|
</image>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user