summaryrefslogtreecommitdiff
path: root/templates/katsomo.fi/mainmenu.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/katsomo.fi/mainmenu.xsl')
-rw-r--r--templates/katsomo.fi/mainmenu.xsl26
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/katsomo.fi/mainmenu.xsl b/templates/katsomo.fi/mainmenu.xsl
new file mode 100644
index 0000000..2bf3d3a
--- /dev/null
+++ b/templates/katsomo.fi/mainmenu.xsl
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:str="http://exslt.org/strings"
+ exclude-result-prefixes="str">
+
+<xsl:template match="/">
+<wvmenu>
+ <title>MTV3 Katsomo</title>
+
+ <link>
+ <label>Haku</label>
+ <ref>wvt:///katsomo.fi/search.xsl</ref>
+ </link>
+
+ <xsl:for-each select="id('mainMenu')/li[a/@href != '/']">
+ <link>
+ <label><xsl:value-of select="a"/></label>
+ <ref>wvt:///katsomo.fi/navigation.xsl?srcurl=<xsl:value-of select="str:encode-uri(a/@href, true())"/></ref>
+ </link>
+ </xsl:for-each>
+</wvmenu>
+</xsl:template>
+
+</xsl:stylesheet>