xsl/atom,rss,podcast feeds: copy podlove chapters

This commit is contained in:
Astro 2012-06-27 02:20:02 +02:00
parent 34fb2423fc
commit ae3990fda0
3 changed files with 12 additions and 0 deletions

View File

@ -88,6 +88,9 @@
href="{$resource_href}"
type="{@type}"
length="{@size}" />
<xsl:copy-of select="sc:chapters"
xmlns:sc="http://podlove.de/simple-chapters"/>
</xsl:for-each>
<xsl:variable name="flattr_link">

View File

@ -190,6 +190,8 @@
<xsl:with-param name="resource_url" select="$href"/>
<xsl:with-param name="resource_size" select="@size"/>
<xsl:with-param name="resource_type" select="@type"/>
<xsl:with-param name="chapters" select="sc:chapters"
xmlns:sc="http://podlove.de/simple-chapters"/>
</xsl:call-template>
</xsl:template>
@ -201,6 +203,7 @@
<xsl:param name="resource_url"/>
<xsl:param name="resource_size"/>
<xsl:param name="resource_type"/>
<xsl:param name="chapters"/>
<item>
<xsl:variable name="href">
@ -254,6 +257,8 @@
<xsl:if test="string-length($flattr_link) &gt; 0">
<atom:link rel="payment" href="{$flattr_link}" type="text/html"/>
</xsl:if>
<xsl:copy-of select="$chapters"/>
</item>
</xsl:template>

View File

@ -117,6 +117,10 @@
<xsl:if test="string-length($flattr_link) &gt; 0">
<atom:link rel="payment" href="{$flattr_link}" type="text/html"/>
</xsl:if>
<xsl:copy-of select="resource/sc:chapters"
xmlns:sc="http://podlove.de/simple-chapters"/>
</item>
</xsl:template>