summaryrefslogtreecommitdiff
path: root/templates/moontv.fi/programlist.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/moontv.fi/programlist.xsl')
-rw-r--r--templates/moontv.fi/programlist.xsl20
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/moontv.fi/programlist.xsl b/templates/moontv.fi/programlist.xsl
new file mode 100644
index 0000000..33dc0ef
--- /dev/null
+++ b/templates/moontv.fi/programlist.xsl
@@ -0,0 +1,20 @@
+<?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:template match="/">
+<wvmenu>
+ <title>MoonTV ohjelmat</title>
+
+ <xsl:for-each select="//ul[@id='ohjelmat-list']/li/h5/a">
+ <link>
+ <label><xsl:value-of select="."/></label>
+ <ref>wvt:///moontv.fi/navigation.xsl?srcurl=<xsl:value-of select="str:encode-uri(concat('http://moontv.fi',@href), true())"/></ref>
+ </link>
+ </xsl:for-each>
+</wvmenu>
+</xsl:template>
+
+</xsl:stylesheet>