diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2012-07-07 00:03:26 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2012-07-07 00:03:26 +0200 |
commit | 219906fbe5b4aaee1cb440e8180338ba88c54dea (patch) | |
tree | 17fd34839fc62d721477d5b331d4a8e2ae468c32 | |
parent | b0ffb988ac64d19c437cbcd40f7af9a580c8cb2e (diff) | |
download | tv.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.xsl | 5 |
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> |