summaryrefslogtreecommitdiff
path: root/templates/moontv.fi/navigation.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/moontv.fi/navigation.xsl')
-rw-r--r--templates/moontv.fi/navigation.xsl20
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/moontv.fi/navigation.xsl b/templates/moontv.fi/navigation.xsl
new file mode 100644
index 0000000..2230251
--- /dev/null
+++ b/templates/moontv.fi/navigation.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><xsl:value-of select="//div[@id='content']/h2"/></title>
+ <xsl:for-each select="//div[@class='entry']">
+ <link>
+ <label><xsl:value-of select="h3"/></label>
+ <ref>wvt:///moontv.fi/description.xsl?srcurl=<xsl:value-of select="str:encode-uri(h3/a/@href, true())"/></ref>
+ <stream>wvt:///moontv.fi/videopage.xsl?srcurl=<xsl:value-of select="str:encode-uri(h3/a/@href, true())"/></stream>
+ </link>
+ </xsl:for-each>
+</wvmenu>
+</xsl:template>
+
+</xsl:stylesheet>