diff options
-rw-r--r-- | tv.nrk.no.xsl | 32 |
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> |