xsl/atom,rss,podcast feeds: copy podlove chapters
This commit is contained in:
parent
34fb2423fc
commit
ae3990fda0
|
@ -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">
|
||||
|
|
|
@ -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) > 0">
|
||||
<atom:link rel="payment" href="{$flattr_link}" type="text/html"/>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:copy-of select="$chapters"/>
|
||||
</item>
|
||||
</xsl:template>
|
||||
|
||||
|
|
|
@ -117,6 +117,10 @@
|
|||
<xsl:if test="string-length($flattr_link) > 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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue