summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tv.nrk.no.xsl5
1 files changed, 1 insertions, 4 deletions
diff --git a/tv.nrk.no.xsl b/tv.nrk.no.xsl
index 4d46f05..87b6b6d 100644
--- a/tv.nrk.no.xsl
+++ b/tv.nrk.no.xsl
@@ -18,10 +18,7 @@
<xsl:template name="li">
<entry>
<xsl:variable name='href' select='a/@href'/>
- <!--
- <xsl:variable name='filename' select='concat("tmp/", strings:encode-uri(normalize-space(a), true()), ".xml")'/>
- -->
- <xsl:variable name='filename' select='strings:replace(substring-after(normalize-space(@href), "http://tv.nrk.no/"), "/", "_")'/>
+ <xsl:variable name='filename' select='concat("tmp/", strings:replace(substring-after(normalize-space($href), "http://tv.nrk.no/"), "/", "_"), ".xml")'/>
<xsl:variable name='show' select='document($filename)'/>
<id><xsl:value-of select="$href"/></id>
<title><xsl:value-of select='normalize-space(a)'/></title>