|
|
|
@ -3,7 +3,9 @@
|
|
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
|
xmlns:date="http://exslt.org/dates-and-times"
|
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
|
exclude-result-prefixes="xsl date">
|
|
|
|
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
|
|
|
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
|
|
|
|
|
exclude-result-prefixes="xsl date dc itunes">
|
|
|
|
|
|
|
|
|
|
<xsl:include href="../common.xsl" />
|
|
|
|
|
|
|
|
|
@ -262,5 +264,43 @@
|
|
|
|
|
</span>
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|
|
|
|
|
<xsl:template match="include-feeds">
|
|
|
|
|
<xsl:variable name="feeds" select="."/>
|
|
|
|
|
<xsl:for-each select="feed[1]">
|
|
|
|
|
<xsl:for-each select="document(.)/rss/channel/item">
|
|
|
|
|
<xsl:variable name="identifier" select="dc:identifier"/>
|
|
|
|
|
<xsl:variable name="title" select="substring-after(title, ': ')"/>
|
|
|
|
|
<xsl:variable name="preview"
|
|
|
|
|
select="concat('https://static.media.ccc.de/media/events/datenspuren/2015/',
|
|
|
|
|
substring-before(substring-after(link ,'/datenspuren15-'), '-'),
|
|
|
|
|
'-sd_preview.jpg')"/>
|
|
|
|
|
|
|
|
|
|
<section class="resource">
|
|
|
|
|
<h4><xsl:value-of select="$title"/></h4>
|
|
|
|
|
<div class="preview">
|
|
|
|
|
<img src="{$preview}" title="$title"/>
|
|
|
|
|
</div>
|
|
|
|
|
<ul class="links">
|
|
|
|
|
<xsl:for-each select="$feeds/feed">
|
|
|
|
|
<xsl:for-each select="document(.)/rss/channel/item[dc:identifier = $identifier]/enclosure">
|
|
|
|
|
<li>
|
|
|
|
|
<a href="{@url}" type="{@type}">
|
|
|
|
|
<xsl:call-template name="mime-for-human-short">
|
|
|
|
|
<xsl:with-param name="mime" select="@type"/>
|
|
|
|
|
</xsl:call-template>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
</xsl:for-each>
|
|
|
|
|
</xsl:for-each>
|
|
|
|
|
<li>
|
|
|
|
|
<span class="size">
|
|
|
|
|
<xsl:value-of select="itunes:duration"/>
|
|
|
|
|
</span>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</section>
|
|
|
|
|
</xsl:for-each>
|
|
|
|
|
</xsl:for-each>
|
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|
|
|
|
|