summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-07-07 00:03:26 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-07-07 00:03:26 +0200
commit219906fbe5b4aaee1cb440e8180338ba88c54dea (patch)
tree17fd34839fc62d721477d5b331d4a8e2ae468c32
parentb0ffb988ac64d19c437cbcd40f7af9a580c8cb2e (diff)
downloadtv.nrk.no-to-atom-219906fbe5b4aaee1cb440e8180338ba88c54dea.tar.gz
tv.nrk.no-to-atom-219906fbe5b4aaee1cb440e8180338ba88c54dea.tar.bz2
tv.nrk.no-to-atom-219906fbe5b4aaee1cb440e8180338ba88c54dea.tar.xz
tv.nrk.no-to-atom-219906fbe5b4aaee1cb440e8180338ba88c54dea.zip
o Building the correct file path after all.
-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>