summaryrefslogtreecommitdiff
path: root/templates/moontv.fi/rss.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/moontv.fi/rss.xsl')
-rw-r--r--templates/moontv.fi/rss.xsl28
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/moontv.fi/rss.xsl b/templates/moontv.fi/rss.xsl
new file mode 100644
index 0000000..c89c8c9
--- /dev/null
+++ b/templates/moontv.fi/rss.xsl
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:str="http://exslt.org/strings">
+
+<xsl:param name="docurl"/>
+
+<xsl:template match="/rss/channel/item">
+ <link>
+ <label><xsl:value-of select="concat(category, ': ',title)"/></label>
+ <ref>wvt:///moontv.fi/description.xsl?srcurl=<xsl:value-of select="str:encode-uri(link, true())"/></ref>
+ <!-- MoonTV rss-linkit -->
+ <stream>wvt:///moontv.fi/videopage.xsl?srcurl=<xsl:value-of select="link"/></stream>
+ </link>
+</xsl:template>
+
+<xsl:template match="/">
+<wvmenu>
+ <!-- Videolinkit -->
+ <xsl:if test="/rss">
+ <title><xsl:value-of select="/rss/channel/title"/></title>
+ <xsl:apply-templates select="/rss/channel/item"/>
+ </xsl:if>
+</wvmenu>
+</xsl:template>
+
+</xsl:stylesheet>