summaryrefslogtreecommitdiff
path: root/templates/www.ruutu.fi/series.xsl
blob: c94aa1e2f6bfc540d141d75c1064aebc56ee49a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?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:output method="xml" version="1.0" encoding="UTF-8" />

<xsl:template match="a">
  <link>
    <label><xsl:value-of select="."/></label>
    <ref>wvt:///www.ruutu.fi/program.xsl?srcurl=<xsl:value-of select="str:encode-uri(@href, true())"/></ref>
  </link>
</xsl:template>

<xsl:template match="/">
<wvmenu>
  <title>Kaikki sarjat</title>

  <xsl:apply-templates select="//a[@class='has-episodes']"/>
</wvmenu>
</xsl:template>

</xsl:stylesheet>