From 541779154be54e113ddd8bfac7245aed484e9ced Mon Sep 17 00:00:00 2001 From: Antti Ajanki Date: Sun, 12 Jun 2011 15:18:36 +0300 Subject: Fix Katsomo, add encoding attribute to node --- templates/katsomo.fi/description.xsl | 55 +++++++++++++++++++++++++++++ templates/katsomo.fi/mainmenu.xsl | 15 ++++---- templates/katsomo.fi/navigation.xsl | 48 ------------------------- templates/katsomo.fi/program.xsl | 36 +++++++++++++++++++ templates/katsomo.fi/search.xsl | 2 +- templates/katsomo.fi/searchresults.xsl | 64 ++++++++++++++++++++++++++++------ templates/katsomo.fi/video.xsl | 26 +++++++++----- templates/katsomo.fi/videopage.xsl | 31 +++++++++++++--- templates/www.katsomo.fi/videopage.xsl | 15 +++----- 9 files changed, 203 insertions(+), 89 deletions(-) create mode 100644 templates/katsomo.fi/description.xsl delete mode 100644 templates/katsomo.fi/navigation.xsl create mode 100644 templates/katsomo.fi/program.xsl (limited to 'templates') diff --git a/templates/katsomo.fi/description.xsl b/templates/katsomo.fi/description.xsl new file mode 100644 index 0000000..59c313b --- /dev/null +++ b/templates/katsomo.fi/description.xsl @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="$title"/> + + + + + + + + + + + + wvt:///katsomo.fi/video.xsl?param=pid,&param=title, + + + + + + + + diff --git a/templates/katsomo.fi/mainmenu.xsl b/templates/katsomo.fi/mainmenu.xsl index 2bf3d3a..1e43126 100644 --- a/templates/katsomo.fi/mainmenu.xsl +++ b/templates/katsomo.fi/mainmenu.xsl @@ -5,6 +5,14 @@ xmlns:str="http://exslt.org/strings" exclude-result-prefixes="str"> + + + + wvt:///katsomo.fi/program.xsl?srcurl= + + + + MTV3 Katsomo @@ -14,12 +22,7 @@ wvt:///katsomo.fi/search.xsl - - - - wvt:///katsomo.fi/navigation.xsl?srcurl= - - + diff --git a/templates/katsomo.fi/navigation.xsl b/templates/katsomo.fi/navigation.xsl deleted file mode 100644 index 15aa98f..0000000 --- a/templates/katsomo.fi/navigation.xsl +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - wvt:///katsomo.fi/navigation.xsl?srcurl= - - - - - - - - - - - wvt:///katsomo.fi/video.xsl?srcurl=&param=title,&HTTP-header=cookie,webtv.bandwidth%3D1000%3BautoFullScreen%3Dfalse%3Bwebtv.playerPlatform%3D0 - - - - - - <xsl:value-of select="/html/head/meta[@name='title']/@content"/> - - - - - - - - - - - - - - diff --git a/templates/katsomo.fi/program.xsl b/templates/katsomo.fi/program.xsl new file mode 100644 index 0000000..f1c527a --- /dev/null +++ b/templates/katsomo.fi/program.xsl @@ -0,0 +1,36 @@ + + + + + + + + + + + + wvt:///katsomo.fi/description.xsl?srcurl=&param=live, + + + + + + wvt:///katsomo.fi/description.xsl?srcurl= + wvt:///katsomo.fi/video.xsl?param=pid,&param=title, + + + + + + + + <xsl:value-of select="/html/head/meta[@name='title']/@content"/> + + + + + + diff --git a/templates/katsomo.fi/search.xsl b/templates/katsomo.fi/search.xsl index aaecfd6..619708d 100644 --- a/templates/katsomo.fi/search.xsl +++ b/templates/katsomo.fi/search.xsl @@ -15,7 +15,7 @@ diff --git a/templates/katsomo.fi/searchresults.xsl b/templates/katsomo.fi/searchresults.xsl index 3b0ab8d..bb6cae2 100644 --- a/templates/katsomo.fi/searchresults.xsl +++ b/templates/katsomo.fi/searchresults.xsl @@ -5,27 +5,69 @@ xmlns:str="http://exslt.org/strings" exclude-result-prefixes="str"> - - - + + + + + + + + + + + + + + + + + + + + + + + - wvt:///katsomo.fi/video.xsl?srcurl=&param=title,&HTTP-header=cookie,webtv.bandwidth%3D1000%3BautoFullScreen%3Dfalse%3Bwebtv.playerPlatform%3D0 + wvt:///katsomo.fi/description.xsl?srcurl= + wvt:///katsomo.fi/video.xsl?param=pid,&param=title, + + + + + + + + + + + + + + - Hakutulokset: <xsl:value-of select="id('searchResults')/div/div[@class='description']/span"/> + <xsl:value-of select="/html/head/title"/> + + + + + - - - + + - + + diff --git a/templates/katsomo.fi/video.xsl b/templates/katsomo.fi/video.xsl index 9d20c49..dee8d21 100644 --- a/templates/katsomo.fi/video.xsl +++ b/templates/katsomo.fi/video.xsl @@ -1,18 +1,28 @@ - + -katsomovideo +katsomo_video + - + + + <xsl:value-of select="$title"/> - - + + + + + + + + + + + + diff --git a/templates/katsomo.fi/videopage.xsl b/templates/katsomo.fi/videopage.xsl index 591a81b..76eb44e 100644 --- a/templates/katsomo.fi/videopage.xsl +++ b/templates/katsomo.fi/videopage.xsl @@ -5,12 +5,33 @@ xmlns:str="http://exslt.org/strings" exclude-result-prefixes="str"> + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="$episodetitle"/> + + + + + - - - - - + diff --git a/templates/www.katsomo.fi/videopage.xsl b/templates/www.katsomo.fi/videopage.xsl index 591a81b..7496df8 100644 --- a/templates/www.katsomo.fi/videopage.xsl +++ b/templates/www.katsomo.fi/videopage.xsl @@ -1,16 +1,11 @@ - + - + + + - - - - - + -- cgit v1.2.3