summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-07-06 23:26:57 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-07-06 23:26:57 +0200
commit98d5dcad7e774b40a47b0b4e7552ad0d4b1ac309 (patch)
tree01afb3e11a24833f3605c1de3455af1f715306b9
parente83910a54017cca82d8beb9c5b6b4b28a9a5f5f8 (diff)
downloadtv.nrk.no-to-atom-98d5dcad7e774b40a47b0b4e7552ad0d4b1ac309.tar.gz
tv.nrk.no-to-atom-98d5dcad7e774b40a47b0b4e7552ad0d4b1ac309.tar.bz2
tv.nrk.no-to-atom-98d5dcad7e774b40a47b0b4e7552ad0d4b1ac309.tar.xz
tv.nrk.no-to-atom-98d5dcad7e774b40a47b0b4e7552ad0d4b1ac309.zip
o Adding back missing items.
-rw-r--r--tv.nrk.no.xsl32
1 files changed, 5 insertions, 27 deletions
diff --git a/tv.nrk.no.xsl b/tv.nrk.no.xsl
index b4c53d5..736228a 100644
--- a/tv.nrk.no.xsl
+++ b/tv.nrk.no.xsl
@@ -9,6 +9,7 @@
<feed>
<title>Recently Sent from NRK</title>
<id>urn:trygvis:2012,07,tv.nrk.no,recently-sent</id>
+ <updated><xsl:value-of select="//li[1]/a/strong/time/@datetime"/></updated>
<xsl:for-each select="//li">
<xsl:call-template name="li"/>
</xsl:for-each>
@@ -19,39 +20,16 @@
<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='show' select='document($filename)'/>
- <!--
- <xsl:variable name='href' select='"heli-hogst.html"'/>
- -->
<id><xsl:value-of select="$href"/></id>
- <!--
- <id>urn:trygvis:2012,07,tv.nrk.no,item,<xsl:value-of select='normalize-space(a)'/></id>
- -->
- <!--
- /html/body/div/div/div/div/section/article/div/div/section[@id='information']
- -->
- <!--
- href: <xsl:value-of select="$href"/>
- filename: <xsl:value-of select="$filename"/>
- -->
+ <title><xsl:value-of select='normalize-space(a)'/></title>
+ <updated><xsl:value-of select="a/strong/time/@datetime"/></updated>
+ <author><name>Trygve Laugstøl</name></author>
+ <link><xsl:attribute name="href"><xsl:value-of select="a/@href"/></xsl:attribute></link>
<content type="xhtml" xml:lang="en">
<div xmlns="http://www.w3.org/1999/xhtml">
<xsl:copy-of select="$show/html:html//html:section[@id='information']/*"/>
</div>
</content>
- <!--
- -->
-
- <!--
- <title><xsl:value-of select='normalize-space(a)'/></title>
- <updated><xsl:value-of select="a/strong/time/@datetime"/></updated>
- <author><name>Trygve Laugstøl</name></author>
- <link>
- <xsl:attribute name="href"><xsl:value-of select="a/@href"/></xsl:attribute>
- </link>
- <summary>
- <xsl:value-of select="normalize-space(div[@class='stack-links'])"/>
- </summary>
- -->
</entry>
</xsl:template>
</xsl:stylesheet>